@tsparticles/engine 4.0.0-alpha.27 → 4.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -4
- package/browser/Core/Engine.js +1 -1
- package/cjs/Core/Engine.js +1 -1
- package/dist_browser_Core_Container_js.js +1 -1
- package/esm/Core/Engine.js +1 -1
- package/package.json +1 -1
- package/report.html +1 -1
- package/tsparticles.engine.js +2 -2
- package/tsparticles.engine.min.js +1 -1
- package/umd/Core/Engine.js +1 -1
package/README.md
CHANGED
|
@@ -237,10 +237,10 @@ tsParticles
|
|
|
237
237
|
id: "tsparticles",
|
|
238
238
|
url: "presets/default.json",
|
|
239
239
|
})
|
|
240
|
-
.then(
|
|
240
|
+
.then(container => {
|
|
241
241
|
console.log("callback - tsparticles config loaded");
|
|
242
242
|
})
|
|
243
|
-
.catch(
|
|
243
|
+
.catch(error => {
|
|
244
244
|
console.error(error);
|
|
245
245
|
});
|
|
246
246
|
|
|
@@ -699,6 +699,12 @@ flowchart TD
|
|
|
699
699
|
|
|
700
700
|
subgraph basic-plugins [Plugins]
|
|
701
701
|
plugin-move[Move]
|
|
702
|
+
|
|
703
|
+
subgraph basic-plugins-colors [Colors]
|
|
704
|
+
plugin-hex-color[Hex Color]
|
|
705
|
+
plugin-hsl-color[HSL Color]
|
|
706
|
+
plugin-rgb-color[RGB Color]
|
|
707
|
+
end
|
|
702
708
|
end
|
|
703
709
|
|
|
704
710
|
subgraph basic-shapes [Shapes]
|
|
@@ -772,6 +778,7 @@ flowchart TD
|
|
|
772
778
|
end
|
|
773
779
|
|
|
774
780
|
subgraph slim-plugins [Plugins]
|
|
781
|
+
plugin-interactivity[Interactivity]
|
|
775
782
|
|
|
776
783
|
subgraph slim-plugins-easings [Easings]
|
|
777
784
|
plugin-easing-quad[Quad]
|
|
@@ -863,10 +870,10 @@ flowchart TD
|
|
|
863
870
|
|
|
864
871
|
subgraph bundle-all [tsParticles All]
|
|
865
872
|
|
|
866
|
-
bundle-pjs[tsParticles Particles.js Compatibility]
|
|
867
|
-
|
|
868
873
|
subgraph all-effects [Effects]
|
|
869
874
|
effect-bubble[Bubble]
|
|
875
|
+
effect-particles[Particles]
|
|
876
|
+
effect-shadow[Shadow]
|
|
870
877
|
effect-trail[Trail]
|
|
871
878
|
end
|
|
872
879
|
|
|
@@ -884,32 +891,51 @@ flowchart TD
|
|
|
884
891
|
end
|
|
885
892
|
|
|
886
893
|
subgraph all-paths [Paths]
|
|
894
|
+
path-branches[Branches]
|
|
895
|
+
path-brownian[Brownian]
|
|
887
896
|
path-curl-noise[Curl Noise]
|
|
888
897
|
path-curves[Curves]
|
|
898
|
+
path-fractal-noise[Fractal Noise]
|
|
899
|
+
path-grid[Grid]
|
|
900
|
+
path-levy[Levy]
|
|
889
901
|
path-perlin-noise[Perlin Noise]
|
|
890
902
|
path-polygon[Polygon]
|
|
903
|
+
path-random[Random]
|
|
891
904
|
path-simplex-noise[Simplex Noise]
|
|
905
|
+
path-spiral[Spiral]
|
|
892
906
|
path-svg[SVG]
|
|
907
|
+
path-zig-zag[Zig Zag]
|
|
893
908
|
end
|
|
894
909
|
|
|
895
910
|
subgraph all-plugins [Plugins]
|
|
911
|
+
plugin-background-mask[Background Mask]
|
|
912
|
+
plugin-blend[Blend]
|
|
896
913
|
plugin-canvas-mask[Canvas Mask]
|
|
897
914
|
|
|
898
915
|
subgraph all-plugins-colors [Colors]
|
|
899
916
|
plugin-hsv-color[HSV Color]
|
|
917
|
+
plugin-hwb-color[HWB Color]
|
|
918
|
+
plugin-lab-color[Lab Color]
|
|
919
|
+
plugin-lch-color[Lch Color]
|
|
900
920
|
plugin-named-color[Named Color]
|
|
921
|
+
plugin-oklab-color[Oklab Color]
|
|
901
922
|
plugin-oklch-color[Oklch Color]
|
|
902
923
|
end
|
|
903
924
|
|
|
904
925
|
subgraph all-plugins-easings [Easings]
|
|
905
926
|
plugin-easing-back[Back]
|
|
927
|
+
plugin-easing-bounce[Bounce]
|
|
906
928
|
plugin-easing-circ[Circ]
|
|
907
929
|
plugin-easing-cubic[Cubic]
|
|
930
|
+
plugin-easing-elastic[Elastic]
|
|
908
931
|
plugin-easing-expo[Expo]
|
|
932
|
+
plugin-easing-gaussian[Gaussian]
|
|
909
933
|
plugin-easing-linear[Linear]
|
|
910
934
|
plugin-easing-quart[Quart]
|
|
911
935
|
plugin-easing-quint[Quint]
|
|
936
|
+
plugin-easing-sigmoid[Sigmoid]
|
|
912
937
|
plugin-easing-sine[Sine]
|
|
938
|
+
plugin-easing-smoothstep[Smoothstep]
|
|
913
939
|
end
|
|
914
940
|
|
|
915
941
|
subgraph all-plugin-emitters-shapes [Emitters Shapes]
|
|
@@ -925,10 +951,15 @@ flowchart TD
|
|
|
925
951
|
end
|
|
926
952
|
|
|
927
953
|
plugin-infection[Infection]
|
|
954
|
+
plugin-manual-particles[Manual Particles]
|
|
928
955
|
plugin-motion[Motion]
|
|
929
956
|
plugin-poisson-disc[Poisson Disc]
|
|
930
957
|
plugin-polygon-mask[Polygon Mask]
|
|
958
|
+
plugin-responsive[Responsive]
|
|
931
959
|
plugin-sounds[Sounds]
|
|
960
|
+
plugin-themes[Themes]
|
|
961
|
+
plugin-trail[Trail]
|
|
962
|
+
plugin-zoom[Zoom]
|
|
932
963
|
end
|
|
933
964
|
|
|
934
965
|
subgraph all-shapes [Shapes]
|
|
@@ -936,10 +967,13 @@ flowchart TD
|
|
|
936
967
|
shape-cards[Cards]
|
|
937
968
|
shape-cog[Cog]
|
|
938
969
|
shape-heart[Heart]
|
|
970
|
+
shape-infinity[Infinity]
|
|
971
|
+
shape-matrix[Matrix]
|
|
939
972
|
shape-path[Path]
|
|
940
973
|
shape-rounded-polygon[Rounded Polygon]
|
|
941
974
|
shape-rounded-rect[Rounded Rect]
|
|
942
975
|
shape-spiral[Spiral]
|
|
976
|
+
shape-squircle[Squircle]
|
|
943
977
|
end
|
|
944
978
|
|
|
945
979
|
subgraph all-updaters [Updaters]
|
package/browser/Core/Engine.js
CHANGED
package/cjs/Core/Engine.js
CHANGED
package/esm/Core/Engine.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/engine",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.28",
|
|
4
4
|
"description": "Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"scripts": {
|
package/report.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>@tsparticles/engine [
|
|
6
|
+
<title>@tsparticles/engine [15 Mar 2026 at 13:46]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
package/tsparticles.engine.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* tsParticles Engine v4.0.0-alpha.
|
|
2
|
+
* tsParticles Engine v4.0.0-alpha.28
|
|
3
3
|
* Author: Matteo Bruni
|
|
4
4
|
* MIT license: https://opensource.org/licenses/MIT
|
|
5
5
|
* Website: https://particles.js.org/
|
|
@@ -36,7 +36,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
36
36
|
\*************************************/
|
|
37
37
|
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
38
38
|
|
|
39
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Engine: () => (/* binding */ Engine)\n/* harmony export */ });\n/* harmony import */ var _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils/Constants.js */ \"./dist/browser/Core/Utils/Constants.js\");\n/* harmony import */ var _Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Utils/Utils.js */ \"./dist/browser/Utils/Utils.js\");\n/* harmony import */ var _Utils_EventDispatcher_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils/EventDispatcher.js */ \"./dist/browser/Utils/EventDispatcher.js\");\n/* harmony import */ var _Enums_Types_EventType_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Enums/Types/EventType.js */ \"./dist/browser/Enums/Types/EventType.js\");\n/* harmony import */ var _Utils_LogUtils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Utils/LogUtils.js */ \"./dist/browser/Utils/LogUtils.js\");\n/* harmony import */ var _Utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Utils/MathUtils.js */ \"./dist/browser/Utils/MathUtils.js\");\n\n\n\n\n\n\nconst fullPercent = \"100%\";\nasync function getDataFromUrl(data) {\n const url = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.itemFromSingleOrMultiple)(data.url, data.index);\n if (!url) {\n return data.fallback;\n }\n const response = await fetch(url);\n if (response.ok) {\n return await response.json();\n }\n (0,_Utils_LogUtils_js__WEBPACK_IMPORTED_MODULE_4__.getLogger)().error(`${response.status.toString()} while retrieving config file`);\n return data.fallback;\n}\nconst getCanvasFromContainer = (domContainer)=>{\n const documentSafe = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.safeDocument)();\n let canvasEl;\n if (domContainer instanceof HTMLCanvasElement || domContainer.tagName.toLowerCase() === _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag) {\n canvasEl = domContainer;\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] ??= _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedFalse;\n } else {\n const existingCanvases = domContainer.getElementsByTagName(_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag), foundCanvas = existingCanvases[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasFirstIndex];\n if (foundCanvas) {\n canvasEl = foundCanvas;\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedFalse;\n } else {\n canvasEl = documentSafe.createElement(_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag);\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedTrue;\n domContainer.appendChild(canvasEl);\n }\n }\n canvasEl.style.width ||= fullPercent;\n canvasEl.style.height ||= fullPercent;\n return canvasEl;\n}, getDomContainer = (id, source)=>{\n const documentSafe = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.safeDocument)();\n let domContainer = source ?? documentSafe.getElementById(id);\n if (domContainer) {\n return domContainer;\n }\n domContainer = documentSafe.createElement(\"div\");\n domContainer.id = id;\n domContainer.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedTrue;\n documentSafe.body.append(domContainer);\n return domContainer;\n};\nclass Engine {\n colorManagers = new Map();\n easingFunctions = new Map();\n effectDrawers = new Map();\n initializers = {\n effects: new Map(),\n shapes: new Map(),\n updaters: new Map()\n };\n palettes = new Map();\n plugins = [];\n presets = new Map();\n shapeDrawers = new Map();\n updaters = new Map();\n _allLoadersSet = new Set();\n _configs = new Map();\n _domArray = [];\n _eventDispatcher = new _Utils_EventDispatcher_js__WEBPACK_IMPORTED_MODULE_2__.EventDispatcher();\n _executedSet = new Set();\n _initialized = false;\n _isRunningLoaders = false;\n _loadPromises = new Set();\n get configs() {\n const res = {};\n for (const [name, config] of this._configs){\n res[name] = config;\n }\n return res;\n }\n get items() {\n return this._domArray;\n }\n get version() {\n return \"4.0.0-alpha.27\";\n }\n addColorManager(name, manager) {\n this.colorManagers.set(name, manager);\n }\n addConfig(config) {\n const key = config.key ?? config.name ?? \"default\";\n this._configs.set(key, config);\n this._eventDispatcher.dispatchEvent(_Enums_Types_EventType_js__WEBPACK_IMPORTED_MODULE_3__.EventType.configAdded, {\n data: {\n name: key,\n config\n }\n });\n }\n addEasing(name, easing) {\n if (this.easingFunctions.get(name)) {\n return;\n }\n this.easingFunctions.set(name, easing);\n }\n addEffect(effect, drawer) {\n this.initializers.effects.set(effect, drawer);\n }\n addEventListener(type, listener) {\n this._eventDispatcher.addEventListener(type, listener);\n }\n addPalette(name, palette) {\n this.palettes.set(name, palette);\n }\n addParticleUpdater(name, updaterInitializer) {\n this.initializers.updaters.set(name, updaterInitializer);\n }\n addPlugin(plugin) {\n if (this.getPlugin(plugin.id)) {\n return;\n }\n this.plugins.push(plugin);\n }\n addPreset(preset, options, override = false) {\n if (!(override || !this.getPreset(preset))) {\n return;\n }\n this.presets.set(preset, options);\n }\n addShape(shapes, drawer) {\n for (const shape of shapes){\n this.initializers.shapes.set(shape, drawer);\n }\n }\n checkVersion(pluginVersion) {\n if (this.version === pluginVersion) {\n return;\n }\n throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${pluginVersion}`);\n }\n clearPlugins(container) {\n this.effectDrawers.delete(container);\n this.shapeDrawers.delete(container);\n this.updaters.delete(container);\n }\n dispatchEvent(type, args) {\n this._eventDispatcher.dispatchEvent(type, args);\n }\n getEasing(name) {\n return this.easingFunctions.get(name) ?? ((value)=>value);\n }\n getEffectDrawers(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemMapFromInitializer)(container, this.effectDrawers, this.initializers.effects, force);\n }\n getPalette(name) {\n return this.palettes.get(name);\n }\n getPlugin(plugin) {\n return this.plugins.find((t)=>t.id === plugin);\n }\n getPreset(preset) {\n return this.presets.get(preset);\n }\n async getShapeDrawers(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemMapFromInitializer)(container, this.shapeDrawers, this.initializers.shapes, force);\n }\n async getUpdaters(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemsFromInitializer)(container, this.updaters, this.initializers.updaters, force);\n }\n async init() {\n if (this._initialized || this._isRunningLoaders) {\n return;\n }\n this._isRunningLoaders = true;\n this._executedSet = new Set();\n this._allLoadersSet = new Set(this._loadPromises);\n try {\n for (const loader of this._allLoadersSet){\n await this._runLoader(loader, this._executedSet, this._allLoadersSet);\n }\n } finally{\n this._loadPromises.clear();\n this._isRunningLoaders = false;\n this._initialized = true;\n }\n }\n item(index) {\n const { items } = this, item = items[index];\n if (item?.destroyed) {\n items.splice(index, _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.removeDeleteCount);\n return;\n }\n return item;\n }\n async load(params) {\n await this.init();\n const { Container } = await __webpack_require__.e(/*! import() */ \"dist_browser_Core_Container_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Container.js */ \"./dist/browser/Core/Container.js\")), id = params.id ?? params.element?.id ?? `tsparticles${Math.floor((0,_Utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_5__.getRandom)() * _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.loadRandomFactor).toString()}`, { index, url } = params, options = url ? await getDataFromUrl({\n fallback: params.options,\n url,\n index\n }) : params.options, currentOptions = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.itemFromSingleOrMultiple)(options, index), { items } = this, oldIndex = items.findIndex((v)=>v.id.description === id), newItem = new Container(this, id, currentOptions);\n if (oldIndex >= _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.loadMinIndex) {\n const old = this.item(oldIndex), deleteCount = old ? _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.one : _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.none;\n if (old && !old.destroyed) {\n old.destroy(false);\n }\n items.splice(oldIndex, deleteCount, newItem);\n } else {\n items.push(newItem);\n }\n const domContainer = getDomContainer(id, params.element), canvasEl = getCanvasFromContainer(domContainer);\n newItem.canvas.loadCanvas(canvasEl);\n await newItem.start();\n return newItem;\n }\n loadParticlesOptions(container, options, ...sourceOptions) {\n const updaters = this.updaters.get(container);\n if (!updaters) {\n return;\n }\n updaters.forEach((updater)=>updater.loadOptions?.(options, ...sourceOptions));\n }\n async refresh(refresh = true) {\n if (!refresh) {\n return;\n }\n await Promise.all(this.items.map((t)=>t.refresh()));\n }\n async register(...loaders) {\n if (this._initialized) {\n throw new Error(\"Register plugins can only be done before calling tsParticles.load()\");\n }\n for (const loader of loaders){\n if (this._isRunningLoaders) {\n await this._runLoader(loader, this._executedSet, this._allLoadersSet);\n } else {\n this._loadPromises.add(loader);\n }\n }\n }\n removeEventListener(type, listener) {\n this._eventDispatcher.removeEventListener(type, listener);\n }\n async _runLoader(loader, executed, allLoaders) {\n if (executed.has(loader)) return;\n executed.add(loader);\n allLoaders.add(loader);\n await loader(this);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/engine/./dist/browser/Core/Engine.js?\n}");
|
|
39
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Engine: () => (/* binding */ Engine)\n/* harmony export */ });\n/* harmony import */ var _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils/Constants.js */ \"./dist/browser/Core/Utils/Constants.js\");\n/* harmony import */ var _Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Utils/Utils.js */ \"./dist/browser/Utils/Utils.js\");\n/* harmony import */ var _Utils_EventDispatcher_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Utils/EventDispatcher.js */ \"./dist/browser/Utils/EventDispatcher.js\");\n/* harmony import */ var _Enums_Types_EventType_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Enums/Types/EventType.js */ \"./dist/browser/Enums/Types/EventType.js\");\n/* harmony import */ var _Utils_LogUtils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Utils/LogUtils.js */ \"./dist/browser/Utils/LogUtils.js\");\n/* harmony import */ var _Utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Utils/MathUtils.js */ \"./dist/browser/Utils/MathUtils.js\");\n\n\n\n\n\n\nconst fullPercent = \"100%\";\nasync function getDataFromUrl(data) {\n const url = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.itemFromSingleOrMultiple)(data.url, data.index);\n if (!url) {\n return data.fallback;\n }\n const response = await fetch(url);\n if (response.ok) {\n return await response.json();\n }\n (0,_Utils_LogUtils_js__WEBPACK_IMPORTED_MODULE_4__.getLogger)().error(`${response.status.toString()} while retrieving config file`);\n return data.fallback;\n}\nconst getCanvasFromContainer = (domContainer)=>{\n const documentSafe = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.safeDocument)();\n let canvasEl;\n if (domContainer instanceof HTMLCanvasElement || domContainer.tagName.toLowerCase() === _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag) {\n canvasEl = domContainer;\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] ??= _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedFalse;\n } else {\n const existingCanvases = domContainer.getElementsByTagName(_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag), foundCanvas = existingCanvases[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasFirstIndex];\n if (foundCanvas) {\n canvasEl = foundCanvas;\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedFalse;\n } else {\n canvasEl = documentSafe.createElement(_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.canvasTag);\n canvasEl.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedTrue;\n domContainer.appendChild(canvasEl);\n }\n }\n canvasEl.style.width ||= fullPercent;\n canvasEl.style.height ||= fullPercent;\n return canvasEl;\n}, getDomContainer = (id, source)=>{\n const documentSafe = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.safeDocument)();\n let domContainer = source ?? documentSafe.getElementById(id);\n if (domContainer) {\n return domContainer;\n }\n domContainer = documentSafe.createElement(\"div\");\n domContainer.id = id;\n domContainer.dataset[_Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedAttribute] = _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.generatedTrue;\n documentSafe.body.append(domContainer);\n return domContainer;\n};\nclass Engine {\n colorManagers = new Map();\n easingFunctions = new Map();\n effectDrawers = new Map();\n initializers = {\n effects: new Map(),\n shapes: new Map(),\n updaters: new Map()\n };\n palettes = new Map();\n plugins = [];\n presets = new Map();\n shapeDrawers = new Map();\n updaters = new Map();\n _allLoadersSet = new Set();\n _configs = new Map();\n _domArray = [];\n _eventDispatcher = new _Utils_EventDispatcher_js__WEBPACK_IMPORTED_MODULE_2__.EventDispatcher();\n _executedSet = new Set();\n _initialized = false;\n _isRunningLoaders = false;\n _loadPromises = new Set();\n get configs() {\n const res = {};\n for (const [name, config] of this._configs){\n res[name] = config;\n }\n return res;\n }\n get items() {\n return this._domArray;\n }\n get version() {\n return \"4.0.0-alpha.28\";\n }\n addColorManager(name, manager) {\n this.colorManagers.set(name, manager);\n }\n addConfig(config) {\n const key = config.key ?? config.name ?? \"default\";\n this._configs.set(key, config);\n this._eventDispatcher.dispatchEvent(_Enums_Types_EventType_js__WEBPACK_IMPORTED_MODULE_3__.EventType.configAdded, {\n data: {\n name: key,\n config\n }\n });\n }\n addEasing(name, easing) {\n if (this.easingFunctions.get(name)) {\n return;\n }\n this.easingFunctions.set(name, easing);\n }\n addEffect(effect, drawer) {\n this.initializers.effects.set(effect, drawer);\n }\n addEventListener(type, listener) {\n this._eventDispatcher.addEventListener(type, listener);\n }\n addPalette(name, palette) {\n this.palettes.set(name, palette);\n }\n addParticleUpdater(name, updaterInitializer) {\n this.initializers.updaters.set(name, updaterInitializer);\n }\n addPlugin(plugin) {\n if (this.getPlugin(plugin.id)) {\n return;\n }\n this.plugins.push(plugin);\n }\n addPreset(preset, options, override = false) {\n if (!(override || !this.getPreset(preset))) {\n return;\n }\n this.presets.set(preset, options);\n }\n addShape(shapes, drawer) {\n for (const shape of shapes){\n this.initializers.shapes.set(shape, drawer);\n }\n }\n checkVersion(pluginVersion) {\n if (this.version === pluginVersion) {\n return;\n }\n throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${pluginVersion}`);\n }\n clearPlugins(container) {\n this.effectDrawers.delete(container);\n this.shapeDrawers.delete(container);\n this.updaters.delete(container);\n }\n dispatchEvent(type, args) {\n this._eventDispatcher.dispatchEvent(type, args);\n }\n getEasing(name) {\n return this.easingFunctions.get(name) ?? ((value)=>value);\n }\n getEffectDrawers(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemMapFromInitializer)(container, this.effectDrawers, this.initializers.effects, force);\n }\n getPalette(name) {\n return this.palettes.get(name);\n }\n getPlugin(plugin) {\n return this.plugins.find((t)=>t.id === plugin);\n }\n getPreset(preset) {\n return this.presets.get(preset);\n }\n async getShapeDrawers(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemMapFromInitializer)(container, this.shapeDrawers, this.initializers.shapes, force);\n }\n async getUpdaters(container, force = false) {\n return (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getItemsFromInitializer)(container, this.updaters, this.initializers.updaters, force);\n }\n async init() {\n if (this._initialized || this._isRunningLoaders) {\n return;\n }\n this._isRunningLoaders = true;\n this._executedSet = new Set();\n this._allLoadersSet = new Set(this._loadPromises);\n try {\n for (const loader of this._allLoadersSet){\n await this._runLoader(loader, this._executedSet, this._allLoadersSet);\n }\n } finally{\n this._loadPromises.clear();\n this._isRunningLoaders = false;\n this._initialized = true;\n }\n }\n item(index) {\n const { items } = this, item = items[index];\n if (item?.destroyed) {\n items.splice(index, _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.removeDeleteCount);\n return;\n }\n return item;\n }\n async load(params) {\n await this.init();\n const { Container } = await __webpack_require__.e(/*! import() */ \"dist_browser_Core_Container_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./Container.js */ \"./dist/browser/Core/Container.js\")), id = params.id ?? params.element?.id ?? `tsparticles${Math.floor((0,_Utils_MathUtils_js__WEBPACK_IMPORTED_MODULE_5__.getRandom)() * _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.loadRandomFactor).toString()}`, { index, url } = params, options = url ? await getDataFromUrl({\n fallback: params.options,\n url,\n index\n }) : params.options, currentOptions = (0,_Utils_Utils_js__WEBPACK_IMPORTED_MODULE_1__.itemFromSingleOrMultiple)(options, index), { items } = this, oldIndex = items.findIndex((v)=>v.id.description === id), newItem = new Container(this, id, currentOptions);\n if (oldIndex >= _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.loadMinIndex) {\n const old = this.item(oldIndex), deleteCount = old ? _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.one : _Utils_Constants_js__WEBPACK_IMPORTED_MODULE_0__.none;\n if (old && !old.destroyed) {\n old.destroy(false);\n }\n items.splice(oldIndex, deleteCount, newItem);\n } else {\n items.push(newItem);\n }\n const domContainer = getDomContainer(id, params.element), canvasEl = getCanvasFromContainer(domContainer);\n newItem.canvas.loadCanvas(canvasEl);\n await newItem.start();\n return newItem;\n }\n loadParticlesOptions(container, options, ...sourceOptions) {\n const updaters = this.updaters.get(container);\n if (!updaters) {\n return;\n }\n updaters.forEach((updater)=>updater.loadOptions?.(options, ...sourceOptions));\n }\n async refresh(refresh = true) {\n if (!refresh) {\n return;\n }\n await Promise.all(this.items.map((t)=>t.refresh()));\n }\n async register(...loaders) {\n if (this._initialized) {\n throw new Error(\"Register plugins can only be done before calling tsParticles.load()\");\n }\n for (const loader of loaders){\n if (this._isRunningLoaders) {\n await this._runLoader(loader, this._executedSet, this._allLoadersSet);\n } else {\n this._loadPromises.add(loader);\n }\n }\n }\n removeEventListener(type, listener) {\n this._eventDispatcher.removeEventListener(type, listener);\n }\n async _runLoader(loader, executed, allLoaders) {\n if (executed.has(loader)) return;\n executed.add(loader);\n allLoaders.add(loader);\n await loader(this);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/engine/./dist/browser/Core/Engine.js?\n}");
|
|
40
40
|
|
|
41
41
|
/***/ },
|
|
42
42
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a,n,o,s,r,l,d={1590(e,t,i){i.d(t,{$G:()=>C,$O:()=>H,$_:()=>A,$v:()=>ee,$x:()=>P,BF:()=>eR,BW:()=>p,DN:()=>U,D_:()=>ew,Dv:()=>eM,Eo:()=>eo,FS:()=>j,Fl:()=>e_,GW:()=>Z,Ie:()=>V,JC:()=>X,K3:()=>ev,KZ:()=>K,Kw:()=>S,L1:()=>I,LD:()=>eg,M1:()=>el,MX:()=>l,N5:()=>es,NF:()=>o,Nu:()=>eO,Nx:()=>Y,PZ:()=>et,Pf:()=>eA,Pg:()=>R,R1:()=>v,RF:()=>x,RV:()=>q,Rh:()=>eu,Rq:()=>$,TL:()=>W,U0:()=>D,Ug:()=>c,WH:()=>en,X$:()=>b,X_:()=>er,Xu:()=>d,Zp:()=>k,a5:()=>r,aE:()=>ek,aZ:()=>g,bo:()=>u,ce:()=>y,dm:()=>M,dv:()=>ea,eb:()=>a,eu:()=>E,gd:()=>f,hB:()=>_,hK:()=>eF,hv:()=>N,i8:()=>Q,iU:()=>eS,iX:()=>z,jn:()=>eT,lA:()=>em,mR:()=>h,nK:()=>s,nq:()=>eh,oi:()=>T,ou:()=>ec,pH:()=>ey,rq:()=>w,tA:()=>ex,tR:()=>eE,td:()=>eb,un:()=>ed,vF:()=>J,vS:()=>F,vd:()=>ez,w2:()=>G,wM:()=>ep,xH:()=>ei,xd:()=>O,yj:()=>n,yx:()=>L,z$:()=>m,z9:()=>ef,zg:()=>eP,zs:()=>B});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,m=60,g=1,y="true",b="false",x="canvas",w=0,M=2,S=4,z=100,O=1,P=1,k=1,R=4,_=1,T=255,F=360,E=100,A=100,I=0,L=0,D=60,V=0,C=.25,$=.75,Z=0,B=1,G=0,H=0,q=1,N=1,j=1,K=1,W=0,X=1,J=0,Q=120,U=0,Y=0,ee=1e4,et=0,ei=1,ea=0,en=1,eo=1,es=0,er=0,el=0,ed=-.25,eu=1.5,ec=0,eh=1,ep=0,ef=0,ev=1,em=1,eg=1,ey=500,eb=50,ex=0,ew=1,eM=0,eS=1,ez=0,eO=3,eP=6,ek=1,eR=1,e_=0,eT=0,eF=0,eE=0,eA=1},5821(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(3884),s=i(1590);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},o=this.radius;if(e instanceof l||e.type===n.circle)return o+e.radius>Math.hypot(a.x,a.y);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,s.dm)+Math.pow(a.y-i,s.dm)<=o**s.dm||a.x<=o+t&&a.y<=o+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e instanceof d?e.size:{width:0,height:0},s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}}},2067(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(1590);function n(e){return"z"in e?e.z:a.bo.z}class o{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return o.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return o.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return o.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},3096(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},7613(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},5735(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},3494(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},3443(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},3652(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},3048(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},1826(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},7320(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},8202(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},6492(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8113(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},4036(e,t,i){i.d(t,{A:()=>s});var a=i(8130),n=i(9892),o=i(3930);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},127(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3494),n=i(8113),o=i(8130),s=i(3884);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},4162(e,t,i){i.d(t,{V:()=>o});var a=i(3930),n=i(8130);class o{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},580(e,t,i){i.d(t,{e:()=>s});var a=i(127),n=i(8130),o=i(3884);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},3012(e,t,i){i.d(t,{m:()=>n});var a=i(8130);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},9892(e,t,i){i.d(t,{i:()=>s});var a=i(1590),n=i(580),o=i(8130);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},9289(e,t,i){i.d(t,{J:()=>u});var a=i(4874),n=i(8130),o=i(4162),s=i(3012),r=i(7959),l=i(3692),d=i(3884);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._engine.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._engine.getPreset(e))}}},3930(e,t,i){i.d(t,{O:()=>n});var a=i(8130);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},5439(e,t,i){i.d(t,{w:()=>o});var a=i(6912),n=i(8130);class o{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},6912(e,t,i){i.d(t,{F:()=>n});var a=i(7397);class n extends a.PV{constructor(){super(),this.value=1}}},4534(e,t,i){i.d(t,{S:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},7764(e,t,i){i.d(t,{y:()=>h});var a=i(7613),n=i(8130),o=i(8577),s=i(6189),r=i(6604),l=i(2135),d=i(3085),u=i(9693),c=i(3884);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,c.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,c.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},8577(e,t,i){i.d(t,{h:()=>o});var a=i(8130),n=i(3884);class o{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},6189(e,t,i){i.d(t,{Z:()=>o});var a=i(3048),n=i(8130);class o{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},6604(e,t,i){i.d(t,{y:()=>o});var a=i(8130),n=i(3884);class o{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},3085(e,t,i){i.d(t,{j:()=>o});var a=i(3652),n=i(8130);class o{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},2135(e,t,i){i.d(t,{v:()=>s});var a=i(7397),n=i(4874),o=i(8130);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},9693(e,t,i){i.d(t,{t:()=>s});var a=i(4874),n=i(8130),o=i(3884);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},5980(e,t,i){i.d(t,{M:()=>n});var a=i(8130);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},1867(e,t,i){i.d(t,{N:()=>s});var a=i(5980),n=i(7076),o=i(8130);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7076(e,t,i){i.d(t,{A:()=>o});var a=i(3443),n=i(8130);class o{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},3280(e,t,i){i.d(t,{Y:()=>s});var a=i(9080),n=i(7397),o=i(8130);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},9080(e,t,i){i.d(t,{I:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9896(e,t,i){i.d(t,{U:()=>v});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}var s=i(4534),r=i(7764),l=i(3280),d=i(5439),u=i(1867),c=i(3212),h=i(4276),p=i(9231),f=i(9578);class v{bounce;effect;fill;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new u.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},3212(e,t,i){i.d(t,{y:()=>o});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},4276(e,t,i){i.d(t,{o:()=>s});var a=i(7397),n=i(2812),o=i(8130);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},2812(e,t,i){i.d(t,{q:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9231(e,t,i){i.d(t,{t:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},9578(e,t,i){i.d(t,{P:()=>o});var a=i(7397),n=i(8130);class o extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},7959(e,t,i){i.d(t,{z:()=>n});var a=i(8130);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},7397(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(127),n=i(8130),o=i(3884);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},9854(e,t,i){i.d(t,{IU:()=>s,KG:()=>u,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>c,k:()=>l,p0:()=>r,z5:()=>d});var a=i(1590);function n(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:m}=t.particles,g=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:g.x,y:g.y};i.setTransform(y.a,y.b,y.c,y.d,g.x,g.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,M=n.strokeWidth??a.Dv;i.lineWidth=M,s.stroke&&(i.strokeStyle=s.stroke);let S={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:M>a.Dv,transformData:y,position:{...g},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(S);let z=n.effect?v.get(n.effect):void 0,O=n.shape?m.get(n.shape):void 0;d(z,S),h(O,S),u(O,S),c(O,S),l(z,S),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function c(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},1339(e,t,i){i.d(t,{BN:()=>h,EY:()=>O,Jv:()=>E,K6:()=>m,Ko:()=>F,LC:()=>z,OH:()=>w,O_:()=>R,PG:()=>k,R5:()=>v,YL:()=>b,_h:()=>P,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>_,qe:()=>p,xx:()=>M,yx:()=>A,zI:()=>g});var a=i(3884),n=i(1590),o=i(8130),s=i(1826),r=i(3096),l=i(4874);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():c(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?m(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?m(n):void 0}function m(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function y(e,t){return c(e,t)}function b(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),o=t/n.vS,s=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+s):r+s-r*s,u=n.gd*r-d,c=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(u,d,o+c))),g:Math.round(Math.min(n.oi,n.oi*l(u,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(u,d,o-c)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function M(e,t,i){let a=i??n.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?S(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??n.hv).toString()})`)})}function S(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function z(e,t,i){let a=i??n.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,S(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function O(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function P(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return O(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function k(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function _(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function F(e,t,i){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function E(e,t){if(!e)return;let{h:i,s:a,l:n}=e;F(i,!1,t),F(a,!0,t),F(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},3112(e,t,i){i.d(t,{B:()=>n,t:()=>o});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function o(){return a}},3884(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>c,JY:()=>k,M3:()=>L,Mh:()=>F,Nx:()=>A,OE:()=>u,OW:()=>_,Sc:()=>S,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>T,gp:()=>O,i0:()=>f,jh:()=>g,l1:()=>E,pu:()=>P,px:()=>v,qE:()=>m,qM:()=>I,vE:()=>y,vr:()=>M});var a=i(7613),n=i(1590),o=i(2067),s=i(8130);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function c(){return m(l(),0,1-Number.EPSILON)}function h(e,t){return c()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function m(e,t,i){return Math.min(Math.max(e,t),i)}function g(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function S(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function z(e,t){return Math.sqrt(S(e,t))}function O(e,t,i){return S(e,t)<=i*i}function P(e){return e*r}function k(e,t,i){if((0,s.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return c()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function _(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function T(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function F(e){return{x:(e.position?.x??c()*n.a5)*e.size.width/n.a5,y:(e.position?.y??c()*n.a5)*e.size.height/n.a5}}function E(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return F({size:e.size,position:t})}function A(e){let{position:t,size:i}=e;return{x:t?.x??c()*i.width,y:t?.y??c()*i.height}}function I(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return A({size:e.size,position:t})}function L(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},3692(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(9896);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},8130(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},4874(e,t,i){i.d(t,{AE:()=>z,BR:()=>g,Bj:()=>p,E9:()=>E,HQ:()=>C,Kp:()=>V,O2:()=>S,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>O,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>T,YC:()=>A,hJ:()=>D,hn:()=>b,lV:()=>m,n0:()=>x,pE:()=>P,q8:()=>f,tG:()=>y,td:()=>L,w3:()=>_,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(3884),n=i(1590),o=i(8130),s=i(3494),r=i(3096),l=i(7320),d=i(5735),u=i(3048),c=i(8113),h=i(2067);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),u=i.get(l);if(void 0!==u)if(!n||!(d-u.ts>n))return i.delete(l),i.set(l,{value:u.value,ts:u.ts}),u.value;else i.delete(l);let c=e(...t);if(i.set(l,{value:c,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return c}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function m(e){if(f())return matchMedia(e)}function g(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function M(e,t,i,a,n){return S(z(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function z(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function O(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),u=e.mass,c=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,u,c),v=(0,a.OW)(p,h,u,c),m=f.rotate(-d),g=v.rotate(-d);e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function k(e,t){return(0,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function _(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function T(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case c.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case c.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case c.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function F(e,t){if(e.mode!==u.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function E(e,t){return F(e,t)}function A(e,t){return F(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,u=t.max,c=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value>=u?(i?t.status=r.H.decreasing:t.value-=u,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=u,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==c&&(t.velocity*=c);var h=t.value;switch(n){case l.V.max:h>=u&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,u)}}function L(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let D=p(function(e){let t=v().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,i)=>(c.f[i](e,t),t),[])),c.u=e=>""+e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},c.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,o,s=document.getElementsByTagName("script"),r=0;r<s.length;r++){var l=s[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",c.nc&&n.setAttribute("nonce",c.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(u);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},u=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),o&&document.head.appendChild(n)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(p=c.g.location+"");var h,p,f=c.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var m=v.length-1;m>-1&&(!p||!/^http(s?):/.test(p));)p=v[m--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");c.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},c.f.j=(t,i)=>{var a=c.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var o=c.p+c.u(t),s=Error();c.l(o,i=>{if(c.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;s.message="Loading chunk "+t+` failed.
|
|
2
|
-
(`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var g={};c.r(g),c.d(g,{AlterType:()=>L.H,AnimatableColor:()=>Z.A,AnimationMode:()=>F.g,AnimationOptions:()=>B.p,AnimationStatus:()=>$.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>G.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>H.e,DestroyType:()=>D.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>Q.S,FullScreen:()=>q.m,GradientType:()=>r,HslAnimation:()=>N.i,LimitMode:()=>E.d,Move:()=>Y.y,MoveAngle:()=>ee.h,MoveCenter:()=>et.Z,MoveDirection:()=>_.F,MoveGravity:()=>ei.y,MovePath:()=>en.v,Opacity:()=>ed.Y,OpacityAnimation:()=>eu.I,Options:()=>j.J,OptionsColor:()=>K.O,OutMode:()=>A.Y,OutModeDirection:()=>T.v,OutModes:()=>ea.j,ParticleOutType:()=>V.x,ParticlesBounce:()=>W.w,ParticlesBounceFactor:()=>X.F,ParticlesDensity:()=>el.M,ParticlesNumber:()=>es.N,ParticlesNumberLimit:()=>er.A,ParticlesOptions:()=>J.U,PixelMode:()=>I.q,RangedAnimationOptions:()=>B.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>k.M_,ResizeEvent:()=>ev.z,RotateDirection:()=>s,Shape:()=>ec.y,Size:()=>eh.o,SizeAnimation:()=>ep.q,Spin:()=>eo.t,StartValueType:()=>C.S,Stroke:()=>U.t,ValueWithRandom:()=>em.PV,Vector:()=>R.M,Vector3d:()=>R.p,ZIndex:()=>ef.P,alterHsl:()=>ey.yx,animate:()=>S.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>S.Nx,calcExactPositionOrRandomFromSizeRanged:()=>S.qM,calcPositionFromSize:()=>S.eh,calcPositionOrRandomFromSize:()=>S.Mh,calcPositionOrRandomFromSizeRanged:()=>S.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>S.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,checkDistance:()=>S.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>S.qE,clear:()=>eg.IU,clickRadius:()=>y.FS,cloneStyle:()=>b.td,collisionVelocity:()=>S.OW,colorMix:()=>ey.EY,colorToHsl:()=>ey.mK,colorToRgb:()=>ey.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRadius:()=>y.M1,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,defaultZoom:()=>y.Pf,degToRad:()=>S.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>eg.k,drawBeforeEffect:()=>eg.z5,drawParticle:()=>eg.p0,drawParticlePlugin:()=>eg.Wb,drawShape:()=>eg.KG,drawShapeAfterDraw:()=>eg.gF,drawShapeBeforeDraw:()=>eg.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>S.Yf,getDistanceSq:()=>S.Sc,getDistances:()=>S.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>ey.pz,getHslFromAnimation:()=>ey.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>ey._h,getLinkRandomColor:()=>ey.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>S.$m,getParticleDirectionAngle:()=>S.JY,getPosition:()=>b.E9,getRandom:()=>S.G0,getRandomInRange:()=>S.e4,getRandomRgbColor:()=>ey.OH,getRangeMax:()=>S.W9,getRangeMin:()=>S.Sg,getRangeValue:()=>S.VG,getSize:()=>b.YC,getStyleFromHsl:()=>ey.LC,getStyleFromRgb:()=>ey.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>ey.YL,hslaToRgba:()=>ey.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ex.cy,isBoolean:()=>ex.Lm,isFunction:()=>ex.Tn,isInArray:()=>b.hn,isNull:()=>ex.kZ,isNumber:()=>ex.Et,isObject:()=>ex.Gv,isPointInside:()=>b.Tj,isString:()=>ex.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>eb.Z,loadParticlesOptions:()=>eb.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,manualDefaultPosition:()=>y.td,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCoordinate:()=>y.TL,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minRetries:()=>y.N5,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumLength:()=>y.$O,minimumSize:()=>y.w2,mix:()=>S.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>eg.Sn,paintImage:()=>eg.Md,parseAlpha:()=>S.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,posOffset:()=>y.un,qTreeCapacity:()=>y.Kw,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>S.vE,rangeColorToHsl:()=>ey.R5,rangeColorToRgb:()=>ey.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>ey.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>S.AD,setLogger:()=>M.B,setRandom:()=>S.OE,setRangeValue:()=>S.DT,sextuple:()=>y.zg,sizeFactor:()=>y.Rh,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>ey.zI,stringToRgb:()=>ey.eg,subdivideCount:()=>y.Pg,threeQuarter:()=>y.Rq,touchDelay:()=>y.pH,touchEndLengthOffset:()=>y.KZ,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>ew,updateAnimation:()=>b.UC,updateColor:()=>ey.Jv,updateColorValue:()=>ey.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=c(1590),b=c(4874);class x{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=c(8202),M=c(3112),S=c(3884);let z="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class P{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.27"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(w.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await c.e(164).then(c.bind(c,8164)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,S.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await O({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n(this,o,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=z,t.style.height||=z,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(o))||((a=i.createElement("div")).id=o,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var k=c(5821),R=c(2067),_=c(7613);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(5735),F=c(3494),E=c(3443),A=c(3652),I=c(3048),L=c(1826),D=c(7320);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var V=c(6492),C=c(8113);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var $=c(3096),Z=c(4036),B=c(127),G=c(4162),H=c(580),q=c(3012),N=c(9892),j=c(9289),K=c(3930),W=c(5439),X=c(6912),J=c(9896),Q=c(4534),U=c(9231),Y=c(7764),ee=c(8577),et=c(6189),ei=c(6604),ea=c(3085),en=c(2135),eo=c(9693),es=c(1867),er=c(7076),el=c(5980),ed=c(3280),eu=c(9080),ec=c(3212),eh=c(4276),ep=c(2812),ef=c(9578),ev=c(7959),em=c(7397),eg=c(9854),ey=c(1339),eb=c(3692),ex=c(8130);let ew=new P;return globalThis.tsParticles=ew,g})());
|
|
2
|
+
(`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var g={};c.r(g),c.d(g,{AlterType:()=>L.H,AnimatableColor:()=>Z.A,AnimationMode:()=>F.g,AnimationOptions:()=>B.p,AnimationStatus:()=>$.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>G.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>H.e,DestroyType:()=>D.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>Q.S,FullScreen:()=>q.m,GradientType:()=>r,HslAnimation:()=>N.i,LimitMode:()=>E.d,Move:()=>Y.y,MoveAngle:()=>ee.h,MoveCenter:()=>et.Z,MoveDirection:()=>_.F,MoveGravity:()=>ei.y,MovePath:()=>en.v,Opacity:()=>ed.Y,OpacityAnimation:()=>eu.I,Options:()=>j.J,OptionsColor:()=>K.O,OutMode:()=>A.Y,OutModeDirection:()=>T.v,OutModes:()=>ea.j,ParticleOutType:()=>V.x,ParticlesBounce:()=>W.w,ParticlesBounceFactor:()=>X.F,ParticlesDensity:()=>el.M,ParticlesNumber:()=>es.N,ParticlesNumberLimit:()=>er.A,ParticlesOptions:()=>J.U,PixelMode:()=>I.q,RangedAnimationOptions:()=>B.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>k.M_,ResizeEvent:()=>ev.z,RotateDirection:()=>s,Shape:()=>ec.y,Size:()=>eh.o,SizeAnimation:()=>ep.q,Spin:()=>eo.t,StartValueType:()=>C.S,Stroke:()=>U.t,ValueWithRandom:()=>em.PV,Vector:()=>R.M,Vector3d:()=>R.p,ZIndex:()=>ef.P,alterHsl:()=>ey.yx,animate:()=>S.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>S.Nx,calcExactPositionOrRandomFromSizeRanged:()=>S.qM,calcPositionFromSize:()=>S.eh,calcPositionOrRandomFromSize:()=>S.Mh,calcPositionOrRandomFromSizeRanged:()=>S.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>S.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,checkDistance:()=>S.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>S.qE,clear:()=>eg.IU,clickRadius:()=>y.FS,cloneStyle:()=>b.td,collisionVelocity:()=>S.OW,colorMix:()=>ey.EY,colorToHsl:()=>ey.mK,colorToRgb:()=>ey.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRadius:()=>y.M1,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,defaultZoom:()=>y.Pf,degToRad:()=>S.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>eg.k,drawBeforeEffect:()=>eg.z5,drawParticle:()=>eg.p0,drawParticlePlugin:()=>eg.Wb,drawShape:()=>eg.KG,drawShapeAfterDraw:()=>eg.gF,drawShapeBeforeDraw:()=>eg.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>S.Yf,getDistanceSq:()=>S.Sc,getDistances:()=>S.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>ey.pz,getHslFromAnimation:()=>ey.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>ey._h,getLinkRandomColor:()=>ey.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>S.$m,getParticleDirectionAngle:()=>S.JY,getPosition:()=>b.E9,getRandom:()=>S.G0,getRandomInRange:()=>S.e4,getRandomRgbColor:()=>ey.OH,getRangeMax:()=>S.W9,getRangeMin:()=>S.Sg,getRangeValue:()=>S.VG,getSize:()=>b.YC,getStyleFromHsl:()=>ey.LC,getStyleFromRgb:()=>ey.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>ey.YL,hslaToRgba:()=>ey.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ex.cy,isBoolean:()=>ex.Lm,isFunction:()=>ex.Tn,isInArray:()=>b.hn,isNull:()=>ex.kZ,isNumber:()=>ex.Et,isObject:()=>ex.Gv,isPointInside:()=>b.Tj,isString:()=>ex.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>eb.Z,loadParticlesOptions:()=>eb.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,manualDefaultPosition:()=>y.td,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCoordinate:()=>y.TL,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minRetries:()=>y.N5,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumLength:()=>y.$O,minimumSize:()=>y.w2,mix:()=>S.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>eg.Sn,paintImage:()=>eg.Md,parseAlpha:()=>S.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,posOffset:()=>y.un,qTreeCapacity:()=>y.Kw,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>S.vE,rangeColorToHsl:()=>ey.R5,rangeColorToRgb:()=>ey.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>ey.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>S.AD,setLogger:()=>M.B,setRandom:()=>S.OE,setRangeValue:()=>S.DT,sextuple:()=>y.zg,sizeFactor:()=>y.Rh,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>ey.zI,stringToRgb:()=>ey.eg,subdivideCount:()=>y.Pg,threeQuarter:()=>y.Rq,touchDelay:()=>y.pH,touchEndLengthOffset:()=>y.KZ,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>ew,updateAnimation:()=>b.UC,updateColor:()=>ey.Jv,updateColorValue:()=>ey.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=c(1590),b=c(4874);class x{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=c(8202),M=c(3112),S=c(3884);let z="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class P{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.28"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(w.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await c.e(164).then(c.bind(c,8164)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,S.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await O({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n(this,o,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=z,t.style.height||=z,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(o))||((a=i.createElement("div")).id=o,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var k=c(5821),R=c(2067),_=c(7613);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(5735),F=c(3494),E=c(3443),A=c(3652),I=c(3048),L=c(1826),D=c(7320);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var V=c(6492),C=c(8113);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var $=c(3096),Z=c(4036),B=c(127),G=c(4162),H=c(580),q=c(3012),N=c(9892),j=c(9289),K=c(3930),W=c(5439),X=c(6912),J=c(9896),Q=c(4534),U=c(9231),Y=c(7764),ee=c(8577),et=c(6189),ei=c(6604),ea=c(3085),en=c(2135),eo=c(9693),es=c(1867),er=c(7076),el=c(5980),ed=c(3280),eu=c(9080),ec=c(3212),eh=c(4276),ep=c(2812),ef=c(9578),ev=c(7959),em=c(7397),eg=c(9854),ey=c(1339),eb=c(3692),ex=c(8130);let ew=new P;return globalThis.tsParticles=ew,g})());
|
package/umd/Core/Engine.js
CHANGED
|
@@ -130,7 +130,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
130
130
|
return this._domArray;
|
|
131
131
|
}
|
|
132
132
|
get version() {
|
|
133
|
-
return "4.0.0-alpha.
|
|
133
|
+
return "4.0.0-alpha.28";
|
|
134
134
|
}
|
|
135
135
|
addColorManager(name, manager) {
|
|
136
136
|
this.colorManagers.set(name, manager);
|