@tsparticles/preset-bubbles 4.0.0-beta.0 → 4.0.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/browser/browser.js +5 -0
  2. package/browser/bundle.js +4 -0
  3. package/browser/index.js +3 -5
  4. package/browser/index.lazy.js +15 -0
  5. package/cjs/browser.js +5 -0
  6. package/cjs/bundle.js +4 -0
  7. package/cjs/index.js +3 -5
  8. package/cjs/index.lazy.js +15 -0
  9. package/esm/browser.js +5 -0
  10. package/esm/bundle.js +4 -0
  11. package/esm/index.js +3 -5
  12. package/esm/index.lazy.js +15 -0
  13. package/package.json +12 -5
  14. package/report.html +4949 -94
  15. package/tsparticles.preset.bubbles.bundle.js +6613 -967
  16. package/tsparticles.preset.bubbles.bundle.min.js +1 -2
  17. package/tsparticles.preset.bubbles.js +77 -362
  18. package/tsparticles.preset.bubbles.min.js +1 -2
  19. package/types/browser.d.ts +1 -0
  20. package/types/index.lazy.d.ts +2 -0
  21. package/172.min.js +0 -1
  22. package/188.min.js +0 -1
  23. package/245.min.js +0 -1
  24. package/304.min.js +0 -1
  25. package/326.min.js +0 -1
  26. package/358.min.js +0 -1
  27. package/361.min.js +0 -1
  28. package/392.min.js +0 -1
  29. package/404.min.js +0 -1
  30. package/467.min.js +0 -1
  31. package/48.min.js +0 -1
  32. package/592.min.js +0 -1
  33. package/619.min.js +0 -1
  34. package/63.min.js +0 -1
  35. package/632.min.js +0 -1
  36. package/659.min.js +0 -1
  37. package/700.min.js +0 -1
  38. package/714.min.js +0 -1
  39. package/719.min.js +0 -1
  40. package/72.min.js +0 -1
  41. package/74.min.js +0 -1
  42. package/750.min.js +0 -1
  43. package/778.min.js +0 -1
  44. package/824.min.js +0 -1
  45. package/857.min.js +0 -1
  46. package/86.min.js +0 -1
  47. package/892.min.js +0 -1
  48. package/925.min.js +0 -1
  49. package/957.min.js +0 -1
  50. package/990.min.js +0 -1
  51. package/dist_browser_options_js.js +0 -30
  52. package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
  53. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
  54. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
  55. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
  56. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
  57. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
  58. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
  59. package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
  60. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
  61. package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
  62. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
  63. package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
  64. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
  65. package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
  66. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
  67. package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
  68. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
  69. package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
  70. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
  71. package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
  72. package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
  73. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
  74. package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
  75. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
  76. package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
  77. package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
  78. package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
  79. package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
  80. package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
@@ -1,367 +1,82 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v4.0.0-beta.0
8
- */
9
- /*
10
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
11
- * This devtool is neither made for production nor for readable output files.
12
- * It uses "eval()" calls to create a separate source file in the browser devtools.
13
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
14
- * or disable the default devtool with "devtool: false".
15
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
16
- */
17
- (function webpackUniversalModuleDefinition(root, factory) {
18
- if(typeof exports === 'object' && typeof module === 'object')
19
- module.exports = factory(require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/basic"), require("@tsparticles/engine"));
20
- else if(typeof define === 'function' && define.amd)
21
- define(["@tsparticles/plugin-emitters/plugin", "@tsparticles/basic", "@tsparticles/engine"], factory);
22
- else {
23
- var a = typeof exports === 'object' ? factory(require("@tsparticles/plugin-emitters/plugin"), require("@tsparticles/basic"), require("@tsparticles/engine")) : factory(root["window"], root["window"], root["window"]);
24
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
25
- }
26
- })(this, (__WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__, __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__, __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__) => {
27
- return /******/ (() => { // webpackBootstrap
28
- /******/ "use strict";
29
- /******/ var __webpack_modules__ = ({
1
+ (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
+ /* Preset v4.0.0-beta.15 */
3
+ (function (global, factory) {
4
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/plugin-emitters/plugin'), require('@tsparticles/engine')) :
5
+ typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/plugin-emitters/plugin', '@tsparticles/engine'], factory) :
6
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.bubbles = global.__tsParticlesInternals.presets.bubbles || {}), global.__tsParticlesInternals.bundles.basic, global.__tsParticlesInternals.plugins["emitters/plugin"], global.__tsParticlesInternals.engine));
7
+ })(this, (function (exports, basic, plugin, engine) { 'use strict';
30
8
 
31
- /***/ "@tsparticles/basic"
32
- /*!******************************************************************************************************************************!*\
33
- !*** external {"commonjs":"@tsparticles/basic","commonjs2":"@tsparticles/basic","amd":"@tsparticles/basic","root":"window"} ***!
34
- \******************************************************************************************************************************/
35
- (module) {
9
+ const options = {
10
+ fpsLimit: 120,
11
+ particles: {
12
+ paint: {
13
+ fill: {
14
+ color: {
15
+ value: "random",
16
+ },
17
+ enable: true,
18
+ },
19
+ },
20
+ shape: {
21
+ type: "circle",
22
+ },
23
+ opacity: {
24
+ value: 0.3,
25
+ },
26
+ size: {
27
+ value: { min: 5, max: 10 },
28
+ },
29
+ move: {
30
+ angle: {
31
+ offset: 0,
32
+ value: 30,
33
+ },
34
+ enable: true,
35
+ speed: 15,
36
+ direction: engine.MoveDirection.top,
37
+ random: false,
38
+ straight: false,
39
+ outModes: {
40
+ default: engine.OutMode.destroy,
41
+ },
42
+ },
43
+ },
44
+ detectRetina: true,
45
+ background: {
46
+ color: "#fff",
47
+ },
48
+ emitters: [
49
+ {
50
+ direction: engine.MoveDirection.top,
51
+ position: {
52
+ y: 100,
53
+ },
54
+ life: {
55
+ duration: 3,
56
+ delay: 5,
57
+ count: 0,
58
+ },
59
+ },
60
+ ],
61
+ };
36
62
 
37
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_basic__;
63
+ const presetName = "bubbles";
64
+ async function loadBubblesPreset(engine) {
65
+ await engine.pluginManager.register(async (e) => {
66
+ await Promise.all([
67
+ basic.loadBasic(e),
68
+ plugin.loadEmittersPluginSimple(e),
69
+ ]);
70
+ e.pluginManager.addPreset(presetName, options);
71
+ });
72
+ }
38
73
 
39
- /***/ },
74
+ const globalObject = globalThis;
75
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
76
+ globalObject.loadBubblesPreset = loadBubblesPreset;
40
77
 
41
- /***/ "@tsparticles/engine"
42
- /*!*********************************************************************************************************************************!*\
43
- !*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
44
- \*********************************************************************************************************************************/
45
- (module) {
78
+ exports.loadBubblesPreset = loadBubblesPreset;
46
79
 
47
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
48
-
49
- /***/ },
50
-
51
- /***/ "@tsparticles/plugin-emitters/plugin"
52
- /*!*********************************************************************************************************************************************************************************!*\
53
- !*** external {"commonjs":"@tsparticles/plugin-emitters/plugin","commonjs2":"@tsparticles/plugin-emitters/plugin","amd":"@tsparticles/plugin-emitters/plugin","root":"window"} ***!
54
- \*********************************************************************************************************************************************************************************/
55
- (module) {
56
-
57
- module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_plugin_emitters_plugin__;
58
-
59
- /***/ },
60
-
61
- /***/ "./dist/browser/index.js"
62
- /*!*******************************!*\
63
- !*** ./dist/browser/index.js ***!
64
- \*******************************/
65
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
66
-
67
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBubblesPreset: () => (/* binding */ loadBubblesPreset)\n/* harmony export */ });\nconst presetName = \"bubbles\";\nasync function loadBubblesPreset(engine) {\n await engine.pluginManager.register(async (e)=>{\n const [{ loadBasic }, { loadEmittersPluginSimple }, { options }] = await Promise.all([\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/basic */ \"@tsparticles/basic\", 19)),\n Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @tsparticles/plugin-emitters/plugin */ \"@tsparticles/plugin-emitters/plugin\", 19)),\n __webpack_require__.e(/*! import() */ \"dist_browser_options_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./options.js */ \"./dist/browser/options.js\"))\n ]);\n await Promise.all([\n loadBasic(e),\n loadEmittersPluginSimple(e)\n ]);\n e.pluginManager.addPreset(presetName, options);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-bubbles/./dist/browser/index.js?\n}");
68
-
69
- /***/ }
70
-
71
- /******/ });
72
- /************************************************************************/
73
- /******/ // The module cache
74
- /******/ var __webpack_module_cache__ = {};
75
- /******/
76
- /******/ // The require function
77
- /******/ function __webpack_require__(moduleId) {
78
- /******/ // Check if module is in cache
79
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
80
- /******/ if (cachedModule !== undefined) {
81
- /******/ return cachedModule.exports;
82
- /******/ }
83
- /******/ // Create a new module (and put it into the cache)
84
- /******/ var module = __webpack_module_cache__[moduleId] = {
85
- /******/ // no module.id needed
86
- /******/ // no module.loaded needed
87
- /******/ exports: {}
88
- /******/ };
89
- /******/
90
- /******/ // Execute the module function
91
- /******/ if (!(moduleId in __webpack_modules__)) {
92
- /******/ delete __webpack_module_cache__[moduleId];
93
- /******/ var e = new Error("Cannot find module '" + moduleId + "'");
94
- /******/ e.code = 'MODULE_NOT_FOUND';
95
- /******/ throw e;
96
- /******/ }
97
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
98
- /******/
99
- /******/ // Return the exports of the module
100
- /******/ return module.exports;
101
- /******/ }
102
- /******/
103
- /******/ // expose the modules object (__webpack_modules__)
104
- /******/ __webpack_require__.m = __webpack_modules__;
105
- /******/
106
- /************************************************************************/
107
- /******/ /* webpack/runtime/create fake namespace object */
108
- /******/ (() => {
109
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
110
- /******/ var leafPrototypes;
111
- /******/ // create a fake namespace object
112
- /******/ // mode & 1: value is a module id, require it
113
- /******/ // mode & 2: merge all properties of value into the ns
114
- /******/ // mode & 4: return value when already ns object
115
- /******/ // mode & 16: return value when it's Promise-like
116
- /******/ // mode & 8|1: behave like require
117
- /******/ __webpack_require__.t = function(value, mode) {
118
- /******/ if(mode & 1) value = this(value);
119
- /******/ if(mode & 8) return value;
120
- /******/ if(typeof value === 'object' && value) {
121
- /******/ if((mode & 4) && value.__esModule) return value;
122
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
123
- /******/ }
124
- /******/ var ns = Object.create(null);
125
- /******/ __webpack_require__.r(ns);
126
- /******/ var def = {};
127
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
128
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
129
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
130
- /******/ }
131
- /******/ def['default'] = () => (value);
132
- /******/ __webpack_require__.d(ns, def);
133
- /******/ return ns;
134
- /******/ };
135
- /******/ })();
136
- /******/
137
- /******/ /* webpack/runtime/define property getters */
138
- /******/ (() => {
139
- /******/ // define getter functions for harmony exports
140
- /******/ __webpack_require__.d = (exports, definition) => {
141
- /******/ for(var key in definition) {
142
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
143
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
144
- /******/ }
145
- /******/ }
146
- /******/ };
147
- /******/ })();
148
- /******/
149
- /******/ /* webpack/runtime/ensure chunk */
150
- /******/ (() => {
151
- /******/ __webpack_require__.f = {};
152
- /******/ // This file contains only the entry chunk.
153
- /******/ // The chunk loading function for additional chunks
154
- /******/ __webpack_require__.e = (chunkId) => {
155
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
156
- /******/ __webpack_require__.f[key](chunkId, promises);
157
- /******/ return promises;
158
- /******/ }, []));
159
- /******/ };
160
- /******/ })();
161
- /******/
162
- /******/ /* webpack/runtime/get javascript chunk filename */
163
- /******/ (() => {
164
- /******/ // This function allow to reference async chunks
165
- /******/ __webpack_require__.u = (chunkId) => {
166
- /******/ // return url for filenames based on template
167
- /******/ return "" + chunkId + ".js";
168
- /******/ };
169
- /******/ })();
170
- /******/
171
- /******/ /* webpack/runtime/global */
172
- /******/ (() => {
173
- /******/ __webpack_require__.g = (function() {
174
- /******/ if (typeof globalThis === 'object') return globalThis;
175
- /******/ try {
176
- /******/ return this || new Function('return this')();
177
- /******/ } catch (e) {
178
- /******/ if (typeof window === 'object') return window;
179
- /******/ }
180
- /******/ })();
181
- /******/ })();
182
- /******/
183
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
184
- /******/ (() => {
185
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
186
- /******/ })();
187
- /******/
188
- /******/ /* webpack/runtime/load script */
189
- /******/ (() => {
190
- /******/ var inProgress = {};
191
- /******/ var dataWebpackPrefix = "@tsparticles/preset-bubbles:";
192
- /******/ // loadScript function to load a script via script tag
193
- /******/ __webpack_require__.l = (url, done, key, chunkId) => {
194
- /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
195
- /******/ var script, needAttach;
196
- /******/ if(key !== undefined) {
197
- /******/ var scripts = document.getElementsByTagName("script");
198
- /******/ for(var i = 0; i < scripts.length; i++) {
199
- /******/ var s = scripts[i];
200
- /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
201
- /******/ }
202
- /******/ }
203
- /******/ if(!script) {
204
- /******/ needAttach = true;
205
- /******/ script = document.createElement('script');
206
- /******/
207
- /******/ script.charset = 'utf-8';
208
- /******/ if (__webpack_require__.nc) {
209
- /******/ script.setAttribute("nonce", __webpack_require__.nc);
210
- /******/ }
211
- /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
212
- /******/
213
- /******/ script.src = url;
214
- /******/ }
215
- /******/ inProgress[url] = [done];
216
- /******/ var onScriptComplete = (prev, event) => {
217
- /******/ // avoid mem leaks in IE.
218
- /******/ script.onerror = script.onload = null;
219
- /******/ clearTimeout(timeout);
220
- /******/ var doneFns = inProgress[url];
221
- /******/ delete inProgress[url];
222
- /******/ script.parentNode && script.parentNode.removeChild(script);
223
- /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
224
- /******/ if(prev) return prev(event);
225
- /******/ }
226
- /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
227
- /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
228
- /******/ script.onload = onScriptComplete.bind(null, script.onload);
229
- /******/ needAttach && document.head.appendChild(script);
230
- /******/ };
231
- /******/ })();
232
- /******/
233
- /******/ /* webpack/runtime/make namespace object */
234
- /******/ (() => {
235
- /******/ // define __esModule on exports
236
- /******/ __webpack_require__.r = (exports) => {
237
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
238
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
239
- /******/ }
240
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
241
- /******/ };
242
- /******/ })();
243
- /******/
244
- /******/ /* webpack/runtime/publicPath */
245
- /******/ (() => {
246
- /******/ var scriptUrl;
247
- /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
248
- /******/ var document = __webpack_require__.g.document;
249
- /******/ if (!scriptUrl && document) {
250
- /******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
251
- /******/ scriptUrl = document.currentScript.src;
252
- /******/ if (!scriptUrl) {
253
- /******/ var scripts = document.getElementsByTagName("script");
254
- /******/ if(scripts.length) {
255
- /******/ var i = scripts.length - 1;
256
- /******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
257
- /******/ }
258
- /******/ }
259
- /******/ }
260
- /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
261
- /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
262
- /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
263
- /******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
264
- /******/ __webpack_require__.p = scriptUrl;
265
- /******/ })();
266
- /******/
267
- /******/ /* webpack/runtime/jsonp chunk loading */
268
- /******/ (() => {
269
- /******/ // no baseURI
270
- /******/
271
- /******/ // object to store loaded and loading chunks
272
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
273
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
274
- /******/ var installedChunks = {
275
- /******/ "tsparticles.preset.bubbles": 0
276
- /******/ };
277
- /******/
278
- /******/ __webpack_require__.f.j = (chunkId, promises) => {
279
- /******/ // JSONP chunk loading for javascript
280
- /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
281
- /******/ if(installedChunkData !== 0) { // 0 means "already installed".
282
- /******/
283
- /******/ // a Promise means "currently loading".
284
- /******/ if(installedChunkData) {
285
- /******/ promises.push(installedChunkData[2]);
286
- /******/ } else {
287
- /******/ if(true) { // all chunks have JS
288
- /******/ // setup Promise in chunk cache
289
- /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
290
- /******/ promises.push(installedChunkData[2] = promise);
291
- /******/
292
- /******/ // start chunk loading
293
- /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
294
- /******/ // create error before stack unwound to get useful stacktrace later
295
- /******/ var error = new Error();
296
- /******/ var loadingEnded = (event) => {
297
- /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
298
- /******/ installedChunkData = installedChunks[chunkId];
299
- /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
300
- /******/ if(installedChunkData) {
301
- /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
302
- /******/ var realSrc = event && event.target && event.target.src;
303
- /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
304
- /******/ error.name = 'ChunkLoadError';
305
- /******/ error.type = errorType;
306
- /******/ error.request = realSrc;
307
- /******/ installedChunkData[1](error);
308
- /******/ }
309
- /******/ }
310
- /******/ };
311
- /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
312
- /******/ }
313
- /******/ }
314
- /******/ }
315
- /******/ };
316
- /******/
317
- /******/ // no prefetching
318
- /******/
319
- /******/ // no preloaded
320
- /******/
321
- /******/ // no HMR
322
- /******/
323
- /******/ // no HMR manifest
324
- /******/
325
- /******/ // no on chunks loaded
326
- /******/
327
- /******/ // install a JSONP callback for chunk loading
328
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
329
- /******/ var [chunkIds, moreModules, runtime] = data;
330
- /******/ // add "moreModules" to the modules object,
331
- /******/ // then flag all "chunkIds" as loaded and fire callback
332
- /******/ var moduleId, chunkId, i = 0;
333
- /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
334
- /******/ for(moduleId in moreModules) {
335
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
336
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
337
- /******/ }
338
- /******/ }
339
- /******/ if(runtime) var result = runtime(__webpack_require__);
340
- /******/ }
341
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
342
- /******/ for(;i < chunkIds.length; i++) {
343
- /******/ chunkId = chunkIds[i];
344
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
345
- /******/ installedChunks[chunkId][0]();
346
- /******/ }
347
- /******/ installedChunks[chunkId] = 0;
348
- /******/ }
349
- /******/
350
- /******/ }
351
- /******/
352
- /******/ var chunkLoadingGlobal = this["webpackChunk_tsparticles_preset_bubbles"] = this["webpackChunk_tsparticles_preset_bubbles"] || [];
353
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
354
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
355
- /******/ })();
356
- /******/
357
- /************************************************************************/
358
- /******/
359
- /******/ // startup
360
- /******/ // Load entry module and return exports
361
- /******/ // This entry module can't be inlined because the eval devtool is used.
362
- /******/ var __webpack_exports__ = __webpack_require__("./dist/browser/index.js");
363
- /******/
364
- /******/ return __webpack_exports__;
365
- /******/ })()
366
- ;
367
- });
80
+ }));
81
+ Object.assign(globalThis.window || globalThis, { loadBubblesPreset: (globalThis.__tsParticlesInternals.presets.bubbles || {}).loadBubblesPreset });
82
+ delete (globalThis.window || globalThis).tsparticlesInternalExports;
@@ -1,2 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/basic"),require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/plugin-emitters/plugin","@tsparticles/basic","@tsparticles/engine"],t);else{var r="object"==typeof exports?t(require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/basic"),require("@tsparticles/engine")):t(e.window,e.window,e.window);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,(e,t,r)=>(()=>{"use strict";var o,i,n,s={145(e){e.exports=t},303(e){e.exports=r},90(t){t.exports=e}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return s[e](r,r.exports,l),r.exports}l.m=s,c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,t){if(1&t&&(e=this(e)),8&t||"object"==typeof e&&e&&(4&t&&e.__esModule||16&t&&"function"==typeof e.then))return e;var r=Object.create(null);l.r(r);var o={};p=p||[null,c({}),c([]),c(c)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~p.indexOf(i);i=c(i))Object.getOwnPropertyNames(i).forEach(t=>o[t]=()=>e[t]);return o.default=()=>e,l.d(r,o),r},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce((t,r)=>(l.f[r](e,t),t),[])),l.u=e=>""+e+".min.js",l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u={},l.l=(e,t,r,o)=>{if(u[e])return void u[e].push(t);if(void 0!==r)for(var i,n,s=document.getElementsByTagName("script"),a=0;a<s.length;a++){var p=s[a];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")=="@tsparticles/preset-bubbles:"+r){i=p;break}}i||(n=!0,(i=document.createElement("script")).charset="utf-8",l.nc&&i.setAttribute("nonce",l.nc),i.setAttribute("data-webpack","@tsparticles/preset-bubbles:"+r),i.src=e),u[e]=[t];var c=(t,r)=>{i.onerror=i.onload=null,clearTimeout(b);var o=u[e];if(delete u[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(r)),t)return t(r)},b=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),n&&document.head.appendChild(i)},l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.g.importScripts&&(b=l.g.location+"");var p,c,u,b,f=l.g.document;if(!b&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(b=f.currentScript.src),!b)){var d=f.getElementsByTagName("script");if(d.length)for(var g=d.length-1;g>-1&&(!b||!/^http(s?):/.test(b));)b=d[g--].src}if(!b)throw Error("Automatic publicPath is not supported in this browser");l.p=b=b.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o={353:0},l.f.j=(e,t)=>{var r=l.o(o,e)?o[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((t,i)=>r=o[e]=[t,i]);t.push(r[2]=i);var n=l.p+l.u(e),s=Error();l.l(n,t=>{if(l.o(o,e)&&(0!==(r=o[e])&&(o[e]=void 0),r)){var i=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;s.message="Loading chunk "+e+` failed.
2
- (`+i+": "+n+")",s.name="ChunkLoadError",s.type=i,s.request=n,r[1](s)}},"chunk-"+e,e)}},i=(e,t)=>{var r,i,[n,s,a]=t,p=0;if(n.some(e=>0!==o[e])){for(r in s)l.o(s,r)&&(l.m[r]=s[r]);a&&a(l)}for(e&&e(t);p<n.length;p++)i=n[p],l.o(o,i)&&o[i]&&o[i][0](),o[i]=0},(n=this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).forEach(i.bind(null,0)),n.push=i.bind(null,n.push.bind(n));var m={};async function h(e){await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadEmittersPluginSimple:r},{options:o}]=await Promise.all([Promise.resolve().then(l.t.bind(l,145,19)),Promise.resolve().then(l.t.bind(l,90,19)),l.e(361).then(l.bind(l,361))]);await Promise.all([t(e),r(e)]),e.pluginManager.addPreset("bubbles",o)})}return l.r(m),l.d(m,{loadBubblesPreset:()=>h}),m})());
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path),s.tsparticlesInternalExports=s.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tsparticles/basic"),require("@tsparticles/plugin-emitters/plugin"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/basic","@tsparticles/plugin-emitters/plugin","@tsparticles/engine"],t):t(((s="undefined"!=typeof globalThis?globalThis:s||self).__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.presets.bubbles=s.__tsParticlesInternals.presets.bubbles||{}),s.__tsParticlesInternals.bundles.basic,s.__tsParticlesInternals.plugins["emitters/plugin"],s.__tsParticlesInternals.engine)}(this,function(s,t,e,n){"use strict";const a={fpsLimit:120,particles:{paint:{fill:{color:{value:"random"},enable:!0}},shape:{type:"circle"},opacity:{value:.3},size:{value:{min:5,max:10}},move:{angle:{offset:0,value:30},enable:!0,speed:15,direction:n.MoveDirection.top,random:!1,straight:!1,outModes:{default:n.OutMode.destroy}}},detectRetina:!0,background:{color:"#fff"},emitters:[{direction:n.MoveDirection.top,position:{y:100},life:{duration:3,delay:5,count:0}}]};async function l(s){await s.pluginManager.register(async s=>{await Promise.all([t.loadBasic(s),e.loadEmittersPluginSimple(s)]),s.pluginManager.addPreset("bubbles",a)})}const r=globalThis;r.__tsParticlesInternals=r.__tsParticlesInternals??{},r.loadBubblesPreset=l,s.loadBubblesPreset=l}),Object.assign(globalThis.window||globalThis,{loadBubblesPreset:(globalThis.__tsParticlesInternals.presets.bubbles||{}).loadBubblesPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
@@ -0,0 +1 @@
1
+ export * from "./index.js";
@@ -0,0 +1,2 @@
1
+ import type { Engine } from "@tsparticles/engine/lazy";
2
+ export declare function loadBubblesPreset(engine: Engine): Promise<void>;
package/172.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[172],{3172(e,s,t){t.d(s,{MovePlugin:()=>n});class n{id="move";_pluginManager;constructor(e){this._pluginManager=e}async getPlugin(e){let{MovePluginInstance:s}=await t.e(714).then(t.bind(t,6714));return new s(this._pluginManager,e)}loadOptions(){}needsPlugin(){return!0}}}}]);
package/188.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[188],{188(e,a,t){t.d(a,{CircleDrawer:()=>n});var i=t(3227);class n{draw(e){!function(e){let{context:a,particle:t,radius:n}=e;t.circleRange??={min:0,max:i.R1e};let r=t.circleRange;a.arc(i.boI.x,i.boI.y,n,r.min,r.max,!1)}(e)}getSidesCount(){return 12}particleInit(e,a){let t=a.shapeData,n=t?.angle??{max:360,min:0};a.circleRange=(0,i.Gvm)(n)?{min:(0,i.puj)(n.min),max:(0,i.puj)(n.max)}:{min:0,max:(0,i.puj)(n)}}}}}]);
package/245.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[245],{9245(t,i,s){s.d(i,{EmitterInstance:()=>h});var e=s(3227),o=s(7054),a=s(1797);let n=1;function r(t,i,s,o){(t.paint??=new e.PiR).fill={color:e.A9e.create(void 0,{value:i}),enable:o,opacity:s}}class h{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;_container;_currentDuration;_currentEmitDelay;_currentSpawnDelay;_duration;_emitDelay;_firstSpawn;_immortal;_initialPosition;_lifeCount;_mutationObserver;_particlesOptions;_paused;_pluginManager;_removeCallback;_resizeObserver;_shape;_size;_spawnDelay;_startParticlesAdded;constructor(t,i,s,a,n){this._pluginManager=t,this._container=i,this._removeCallback=s,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=n,a instanceof o.v?this.options=a:(this.options=new o.v,this.options.load(a)),this._spawnDelay=i.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/i.retina.reduceFactor:1/0,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;const r=(0,e.zwS)({},this.options.particles);if(r.move??={},r.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=(0,e.R5R)(this._pluginManager,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=(0,e.R5R)(this._pluginManager,this.options.spawn.stroke.color)),this._paused=!this.options.autoPlay,this._particlesOptions=r,this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,this._container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const t=(0,e.T5G)().getElementById(this.options.domId);t&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(t))}const h=this.options.shape,l=this._pluginManager.emitterShapeManager?.getShapeGenerator(h.type);l&&(this._shape=l.generate(this._container,this.position,this.size,this.fill,h.options)),this._container.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await this._shape?.init()}pause(){this._paused||delete this._emitDelay}play(){if(this._paused||!((this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))))return;let t=this._container;if(void 0===this._emitDelay){let i=(0,e.VGA)(this.options.rate.delay);this._emitDelay=t.retina.reduceFactor?i*e.XuV/t.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){let t=this._initialPosition,i=this._container;this.position=t&&(0,e.Tj8)(t,i.canvas.size,e.Miz.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=(0,e.YCE)(this._size,i.canvas.size),this._shape?.resize(this.position,this.size)}update(t){if(this._paused)return;let i=this._container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,!this._immortal&&this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=i.retina.reduceFactor?(0,e.VGA)(this.options.life.delay??0)*e.XuV/i.retina.reduceFactor:1/0):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._container.dispatchEvent("emitterPlay"),this.play(),this._currentSpawnDelay-=this._spawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){let t=this._container;if(this.options.domId){let i=(0,e.T5G)().getElementById(this.options.domId);if(i){let s=i.getBoundingClientRect(),o=t.retina.pixelRatio;return{x:(s.x+s.width*e.MXx)*o,y:(s.y+s.height*e.MXx)*o}}}return(0,e.l1q)({size:t.canvas.size,position:this.options.position})}_calcSize(){let t,i=this._container;if(this.options.domId){let t=(0,e.T5G)().getElementById(this.options.domId);if(t){let s=t.getBoundingClientRect();return{width:s.width*i.retina.pixelRatio,height:s.height*i.retina.pixelRatio,mode:e.qiC.precise}}}return this.options.size??((t=new a.G).load({height:0,mode:e.qiC.percent,width:0}),t)}_destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this._removeCallback(this),this._container.dispatchEvent("emitterDestroyed",{emitter:this})};_emit(){if(this._paused)return;let t=(0,e.VGA)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){let i=(0,e.TA3)(this._particlesOptions)??{},s=this.options.spawn.fill?.color.animation,o=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,a=this.options.spawn.fill?.opacity===void 0?e.hvP:(0,e.VGA)(this.options.spawn.fill.opacity),n=this.options.spawn.stroke?.color?.animation,h=this.options.spawn.stroke?.opacity===void 0?e.hvP:(0,e.VGA)(this.options.spawn.stroke.opacity),l=this.options.spawn.stroke?.width===void 0?1:(0,e.VGA)(this.options.spawn.stroke.width),p=this._container.retina.reduceFactor,_=!!s,c=!!n,u=!!this._shape,d=_||c,w=d||u,m=d?{h:e.vSh,s:e.euA,l:e.$_c}:null,y=this.options.shape;for(let _=0;_<t*p;_++){let t=w?(0,e.zwS)({},i):i;if(this.spawnFillOpacity=a,this.spawnFillEnabled=o,this.spawnStrokeOpacity=h,this.spawnStrokeWidth=l,this.spawnFillColor&&(s&&m&&(this.spawnFillColor.h=this._setColorAnimation(s.h,this.spawnFillColor.h,m.h,3.6),this.spawnFillColor.s=this._setColorAnimation(s.s,this.spawnFillColor.s,m.s),this.spawnFillColor.l=this._setColorAnimation(s.l,this.spawnFillColor.l,m.l)),r(t,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor){var v,f,C;n&&m&&(this.spawnStrokeColor.h=this._setColorAnimation(n.h,this.spawnStrokeColor.h,m.h,3.6),this.spawnStrokeColor.s=this._setColorAnimation(n.s,this.spawnStrokeColor.s,m.s),this.spawnStrokeColor.l=this._setColorAnimation(n.l,this.spawnStrokeColor.l,m.l)),v=this.spawnStrokeColor,f=this.spawnStrokeOpacity,C=this.spawnStrokeWidth,(t.paint??=new e.PiR).stroke={color:e.A9e.create(void 0,{value:v}),opacity:f,width:C}}let p=this.position;if(this._shape){let i=this._shape.randomPosition();if(i){p=i.position;let s=y.replace;s.color&&i.color&&r(t,i.color,s.opacity?i.opacity??e.hvP:e.hvP,!0)}else p=null}p&&this._container.particles.addParticle(p,t)}}_prepareToDie=()=>{if(this._paused)return;let t=void 0!==this.options.life.duration?(0,e.VGA)(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*e.XuV)};_setColorAnimation=(t,i,s,o=n)=>{let a=this._container;if(!t.enable)return i;let r=(0,e.vEz)(t.offset),h=(0,e.VGA)(this.options.rate.delay),l=a.retina.reduceFactor?h*e.XuV/a.retina.reduceFactor:1/0;return(i+(0,e.VGA)(t.speed)*a.fpsLimit/l+r*o)%s}}}}]);
package/304.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[304],{8304(e,t,a){async function s(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",async e=>{let{SizeUpdater:t}=await a.e(750).then(a.bind(a,4750));return new t(e)})})}a.r(t),a.d(t,{loadSizeUpdater:()=>s})}}]);
package/326.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[326],{3326(t,i,s){s.r(i),s.d(i,{EmittersPlugin:()=>a});var o=s(3227),e=s(7054);class a{id="emitters";_instancesManager;constructor(t){this._instancesManager=t}async getPlugin(t){let{EmittersPluginInstance:i}=await s.e(925).then(s.bind(s,4925));return new i(this._instancesManager,t)}loadOptions(t,i,s){(this.needsPlugin(i)||this.needsPlugin(s))&&s?.emitters&&(i.emitters=(0,o.wJ2)(s.emitters,t=>{let i=new e.v;return i.load(t),i}))}needsPlugin(t){if(!t)return!1;let i=t.emitters;return(0,o.cyL)(i)&&!!i.length||void 0!==i}}},7054(t,i,s){s.d(i,{v:()=>d});var o=s(3227);class e{count;delay;duration;wait;constructor(){this.wait=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,o.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class a{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(t){(0,o.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,o.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)))}}class l{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class n{options;replace;type;constructor(){this.options={},this.replace=new l,this.type="square"}load(t){(0,o.kZJ)(t)||(void 0!==t.options&&(this.options=(0,o.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var r=s(1797);class h{fill;stroke;load(t){!(0,o.kZJ)(t)&&(t.fill&&(this.fill??=new o.SQl,this.fill.load(t.fill)),t.stroke&&(this.stroke??=new o.tcj,this.stroke.load(t.stroke)))}}class d{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawn;spawnFillColor;spawnStrokeColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new e,this.rate=new a,this.shape=new n,this.spawn=new h,this.startCount=0}load(t){(0,o.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new r.G,this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,o.wJ2)(t.particles,t=>(0,o.zwS)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),this.spawn.load(t.spawn),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,o.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,o.DT4)(t.position.y))),void 0!==t.spawnFillColor&&(this.spawnFillColor??=new o.A9e,this.spawnFillColor.load(t.spawnFillColor)),void 0!==t.spawnStrokeColor&&(this.spawnStrokeColor??=new o.A9e,this.spawnStrokeColor.load(t.spawnStrokeColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}},1797(t,i,s){s.d(i,{G:()=>e});var o=s(3227);class e{height;mode;width;constructor(){this.mode=o.qiC.percent,this.height=0,this.width=0}load(t){(0,o.kZJ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}}}]);
package/358.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[358],{9358(e,t,r){r.d(t,{ShapeManager:()=>a});let s=new Map;class a{addShapeGenerator(e,t){this.getShapeGenerator(e)||s.set(e,t)}getShapeGenerator(e){return s.get(e)}getSupportedShapeGenerators(){return s.keys()}}}}]);
package/361.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[361],{1361(e,t,i){i.r(t),i.d(t,{options:()=>s});var a=i(3227);let s={fpsLimit:120,particles:{paint:{fill:{color:{value:"random"},enable:!0}},shape:{type:"circle"},opacity:{value:.3},size:{value:{min:5,max:10}},move:{angle:{offset:0,value:30},enable:!0,speed:15,direction:a.FWc.top,random:!1,straight:!1,outModes:{default:a.Yzx.destroy}}},detectRetina:!0,background:{color:"#fff"},emitters:[{direction:a.FWc.top,position:{y:100},life:{duration:3,delay:5,count:0}}]}}}]);
package/392.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[392],{9392(e,a,s){async function t(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(async e=>{let{HslColorManager:a}=await s.e(857).then(s.bind(s,5857));e.pluginManager.addColorManager("hsl",new a)})}s.r(a),s.d(a,{loadHslColorPlugin:()=>t})}}]);
package/404.min.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).push([[404],{7404(e,a,t){async function n(e){e.checkVersion("4.0.0-beta.11"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",async a=>{let{PaintUpdater:n}=await t.e(659).then(t.bind(t,3659));return new n(e.pluginManager,a)})})}t.r(a),t.d(a,{loadPaintUpdater:()=>n})}}]);