@tsparticles/preset-hyperspace 4.0.0-alpha.0 → 4.0.0-alpha.2
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/121.min.js +2 -0
- package/121.min.js.LICENSE.txt +1 -0
- package/142.min.js +2 -0
- package/142.min.js.LICENSE.txt +1 -0
- package/158.min.js +2 -0
- package/158.min.js.LICENSE.txt +1 -0
- package/196.min.js +2 -0
- package/196.min.js.LICENSE.txt +1 -0
- package/2.min.js +2 -0
- package/2.min.js.LICENSE.txt +1 -0
- package/{213.min.js → 202.min.js} +2 -2
- package/202.min.js.LICENSE.txt +1 -0
- package/294.min.js +2 -0
- package/294.min.js.LICENSE.txt +1 -0
- package/30.min.js +2 -0
- package/30.min.js.LICENSE.txt +1 -0
- package/309.min.js +2 -0
- package/309.min.js.LICENSE.txt +1 -0
- package/352.min.js +2 -0
- package/352.min.js.LICENSE.txt +1 -0
- package/413.min.js +2 -0
- package/413.min.js.LICENSE.txt +1 -0
- package/414.min.js +2 -0
- package/414.min.js.LICENSE.txt +1 -0
- package/420.min.js +2 -0
- package/420.min.js.LICENSE.txt +1 -0
- package/425.min.js +2 -0
- package/425.min.js.LICENSE.txt +1 -0
- package/426.min.js +2 -0
- package/426.min.js.LICENSE.txt +1 -0
- package/429.min.js +2 -0
- package/429.min.js.LICENSE.txt +1 -0
- package/440.min.js +2 -0
- package/440.min.js.LICENSE.txt +1 -0
- package/464.min.js +2 -0
- package/464.min.js.LICENSE.txt +1 -0
- package/{22.min.js → 47.min.js} +2 -2
- package/47.min.js.LICENSE.txt +1 -0
- package/488.min.js +2 -0
- package/488.min.js.LICENSE.txt +1 -0
- package/500.min.js +2 -0
- package/500.min.js.LICENSE.txt +1 -0
- package/505.min.js +2 -0
- package/505.min.js.LICENSE.txt +1 -0
- package/56.min.js +2 -0
- package/56.min.js.LICENSE.txt +1 -0
- package/60.min.js +2 -0
- package/60.min.js.LICENSE.txt +1 -0
- package/668.min.js +2 -0
- package/668.min.js.LICENSE.txt +1 -0
- package/684.min.js +2 -0
- package/684.min.js.LICENSE.txt +1 -0
- package/685.min.js +2 -0
- package/685.min.js.LICENSE.txt +1 -0
- package/688.min.js +2 -0
- package/688.min.js.LICENSE.txt +1 -0
- package/{481.min.js → 726.min.js} +2 -2
- package/726.min.js.LICENSE.txt +1 -0
- package/778.min.js +2 -0
- package/778.min.js.LICENSE.txt +1 -0
- package/{751.min.js → 792.min.js} +2 -2
- package/792.min.js.LICENSE.txt +1 -0
- package/{264.min.js → 847.min.js} +2 -2
- package/847.min.js.LICENSE.txt +1 -0
- package/864.min.js +2 -0
- package/864.min.js.LICENSE.txt +1 -0
- package/909.min.js +2 -0
- package/909.min.js.LICENSE.txt +1 -0
- package/926.min.js +1 -1
- package/926.min.js.LICENSE.txt +1 -1
- package/933.min.js +2 -0
- package/933.min.js.LICENSE.txt +1 -0
- package/949.min.js +2 -0
- package/949.min.js.LICENSE.txt +1 -0
- package/990.min.js +2 -0
- package/990.min.js.LICENSE.txt +1 -0
- package/browser/index.js +9 -8
- package/browser/options.js +0 -1
- package/cjs/index.js +9 -8
- package/cjs/options.js +0 -1
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +9 -8
- package/esm/options.js +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_5_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-26eaee.js +40 -0
- package/{node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-fb148a.js → node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_5_node_modules_tsparticles_move-base_brow-29272f.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cafd8c.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-40dd7e.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_2_node_modules_tsparti-cf2f58.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_5_node_modules_tsparti-80d7f0.js} +17 -17
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-6bd6f8.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-051d5b.js} +11 -11
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_plugin-e-122a51.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-50442a.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-9414b7.js +90 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-b376d4.js +90 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_plugin-e-db7965.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--d06b2a.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--082572.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--91288b.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--7ee633.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--e141e9.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--175cc6.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--70976c.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--d17710.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-4ef54e.js +120 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparticles_plu-c0445f.js +70 -0
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--60c9df.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--3fa544.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_2_node_modules_tsparticles_plugin--732407.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_5_node_modules_tsparticles_plugin--8050b3.js} +5 -5
- package/{node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_2_node_modules_tsparticles_plugin-trai-a61828.js → node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-5cc589.js} +5 -5
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-d221e1.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_5_node_modules_tsparticles_plugin-trai-de3f95.js +50 -0
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-c98489.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-2a85dc.js} +8 -8
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_2_node_modules_tsparticles_shape-circl-ce96e8.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_5_node_modules_tsparticles_shape-circl-d95142.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-6ff909.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-9b6d65.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_2_node_modules_tsparticles_updater-co-210bd6.js → node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_5_node_modules_tsparticles_updater-co-a17be7.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-dbf90f.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-e3e3ae.js} +17 -17
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_2_node_modules_tsparticles_updater-lif-50f821.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_5_node_modules_tsparticles_updater-lif-ef30bd.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--4e8c57.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--35fbab.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_2_node_modules_tsparticles_updater--ac14ff.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_5_node_modules_tsparticles_updater--4bc1f3.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticles_update-cd317f.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticles_update-04964a.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-aaa117.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-547e88.js} +5 -5
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_2_node_modules_tsparticles_updater-siz-53e0fe.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_5_node_modules_tsparticles_updater-siz-7c3e56.js} +5 -5
- package/package.json +7 -7
- package/report.html +1 -1
- package/tsparticles.preset.hyperspace.bundle.js +197 -389
- package/tsparticles.preset.hyperspace.bundle.min.js +1 -1
- package/tsparticles.preset.hyperspace.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.preset.hyperspace.js +4 -16
- package/tsparticles.preset.hyperspace.min.js +1 -1
- package/tsparticles.preset.hyperspace.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/types/options.d.ts +0 -1
- package/umd/index.js +9 -8
- package/umd/options.js +1 -2
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_5_node_modules_tsparticles_engine_br-85ef38.js +90 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-302925.js +200 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_5_node_modules_tsparticles_-4cf04b.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_5_node_modules_tsparti-98de40.js +50 -0
- package/{vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_2_node_modules_tsparticle-124574.js → vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_5_node_modules_tsparticle-f9a455.js} +20 -20
- package/125.min.js +0 -2
- package/125.min.js.LICENSE.txt +0 -1
- package/157.min.js +0 -2
- package/157.min.js.LICENSE.txt +0 -1
- package/171.min.js +0 -2
- package/171.min.js.LICENSE.txt +0 -1
- package/213.min.js.LICENSE.txt +0 -1
- package/22.min.js.LICENSE.txt +0 -1
- package/226.min.js +0 -2
- package/226.min.js.LICENSE.txt +0 -1
- package/264.min.js.LICENSE.txt +0 -1
- package/267.min.js +0 -2
- package/267.min.js.LICENSE.txt +0 -1
- package/283.min.js +0 -2
- package/283.min.js.LICENSE.txt +0 -1
- package/313.min.js +0 -2
- package/313.min.js.LICENSE.txt +0 -1
- package/319.min.js +0 -2
- package/319.min.js.LICENSE.txt +0 -1
- package/349.min.js +0 -2
- package/349.min.js.LICENSE.txt +0 -1
- package/370.min.js +0 -2
- package/370.min.js.LICENSE.txt +0 -1
- package/397.min.js +0 -2
- package/397.min.js.LICENSE.txt +0 -1
- package/418.min.js +0 -2
- package/418.min.js.LICENSE.txt +0 -1
- package/453.min.js +0 -2
- package/453.min.js.LICENSE.txt +0 -1
- package/455.min.js +0 -2
- package/455.min.js.LICENSE.txt +0 -1
- package/459.min.js +0 -2
- package/459.min.js.LICENSE.txt +0 -1
- package/481.min.js.LICENSE.txt +0 -1
- package/49.min.js +0 -2
- package/49.min.js.LICENSE.txt +0 -1
- package/509.min.js +0 -2
- package/509.min.js.LICENSE.txt +0 -1
- package/633.min.js +0 -2
- package/633.min.js.LICENSE.txt +0 -1
- package/637.min.js +0 -2
- package/637.min.js.LICENSE.txt +0 -1
- package/669.min.js +0 -2
- package/669.min.js.LICENSE.txt +0 -1
- package/751.min.js.LICENSE.txt +0 -1
- package/802.min.js +0 -2
- package/802.min.js.LICENSE.txt +0 -1
- package/803.min.js +0 -2
- package/803.min.js.LICENSE.txt +0 -1
- package/819.min.js +0 -2
- package/819.min.js.LICENSE.txt +0 -1
- package/98.min.js +0 -2
- package/98.min.js.LICENSE.txt +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_2_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_2_node_modules_tsparticles_move-base_brow-7d79eb.js +0 -40
- package/node_modules_pnpm_tsparticles_plugin-trail_4_0_0-alpha_2_node_modules_tsparticles_plugin-trai-e79d1c.js +0 -60
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_2_node_modules_tsparticles_engine_br-9c0a0f.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_2_node_modules_tsparticles_-1e60b5.js +0 -110
package/121.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 121.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[121,685],{137(t,i,e){e.d(i,{d:()=>o});var s=e(3511);class o{constructor(t,i){this._engine=t,this._container=i}load(t){if((0,s.kZJ)(t))return;if(!this._container)return;const i=this._engine.interactors?.get(this._container);if(i)for(const e of i)e.loadModeOptions&&e.loadModeOptions(this,t)}}},1121(t,i,e){e.d(i,{EmittersInteractor:()=>c});var s=e(3685),o=e(3511),a=e(8588);const n={count:1,enable:!0},r="emitters";class c extends s.sJ{constructor(t,i){super(i),this._instancesManager=t,this.handleClickMode=(t,i)=>{const e=this.container.actualOptions.interactivity.modes.emitters;if(!e||t!==r)return;let s;if((0,o.cyL)(e.value)){const t=0,i=e.value.length;if(i>t&&e.random.enable){s=[];const t=new Set;for(let a=0;a<e.random.count;a++){const n=(0,o.n02)(e.value);if(t.has(n)&&t.size<i){a--;continue}t.add(n);const r=(0,o.Vh1)(e.value,n);r&&s.push(r)}}else s=e.value}else s=e.value;const a=s,n=i.mouse.clickPosition;(0,o.wJ2)(a,async t=>{await this._instancesManager.addEmitter(this.container,t,n)})}}clear(){}init(){}interact(t,i){for(const t of this._instancesManager.getArray(this.container))t.update(i)}isEnabled(t,i){const e=this.container.actualOptions,s=t.mouse,a=(i?.interactivity??e.interactivity).events;return!(!s.clickPosition||!a.onClick.enable)&&(0,o.hnD)(r,a.onClick.mode)}loadModeOptions(t,...i){t.emitters={random:n,value:[]};for(const e of i)if(e?.emitters)if((0,o.cyL)(e.emitters))for(const i of e.emitters){const e=new a.v;e.load(i),t.emitters.value.push(e)}else if(Object.hasOwn(e.emitters,"value")){const i=e.emitters;if(t.emitters.random.enable=i.random?.enable??t.emitters.random.enable,t.emitters.random.count=i.random?.count??t.emitters.random.count,(0,o.cyL)(i.value))for(const e of i.value){const i=new a.v;i.load(e),t.emitters.value.push(i)}else{const e=new a.v;e.load(i.value),t.emitters.value.push(e)}}else{const i=new a.v;i.load(e.emitters),t.emitters.value.push(i)}}removeEmitter(t){const i=this._instancesManager.getArray(this.container).indexOf(t);i>=0&&this._instancesManager.getArray(this.container).splice(i,1)}reset(){}}},1776(t,i,e){var s;e.d(i,{Q:()=>s}),function(t){t.circle="circle",t.rectangle="rectangle"}(s||(s={}))},2269(t,i,e){e.d(i,{G:()=>o});var s=e(3511);class o{constructor(){this.mode=s.qiC.percent,this.height=0,this.width=0}load(t){(0,s.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))}}},3685(t,i,e){e.d(i,{sJ:()=>a,loadInteractivityPlugin:()=>n});var s=e(3511),o=(e(1776),e(7941));class a{constructor(t){this.type=o.e.external,this.container=t}}e(5352);e(7337),e(137);async function n(t){t.checkVersion("4.0.0-alpha.5"),await t.register(async t=>{const i=t,{InteractivityPlugin:o}=await e.e(420).then(e.bind(e,4420));i.addPlugin(new o(i)),i.interactorsInitializers??=new Map,i.interactors??=new Map,i.addInteractor=(t,e)=>{i.interactorsInitializers??=new Map,i.interactorsInitializers.set(t,e)},i.getInteractors=async(t,e=!1)=>(i.interactors??=new Map,i.interactorsInitializers??=new Map,(0,s.HQK)(t,i.interactors,i.interactorsInitializers,e)),i.setOnClickHandler=t=>{const{items:e}=i;if(!e.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");e.forEach(i=>{const e=i;e.addClickHandler?.(t)})}})}},5352(t,i,e){var s;e.d(i,{h:()=>s}),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(s||(s={}))},7337(t,i,e){e.d(i,{G:()=>a});var s=e(3511),o=e(1776);class a{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=o.Q.circle}load(t){(0,s.kZJ)(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},7941(t,i,e){var s;e.d(i,{e:()=>s}),function(t){t.external="external",t.particles="particles"}(s||(s={}))},8588(t,i,e){e.d(i,{v:()=>l});var s=e(3511);class o{constructor(){this.wait=!1}load(t){(0,s.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,s.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,s.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class a{constructor(){this.quantity=1,this.delay=.1}load(t){(0,s.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,s.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,s.DT4)(t.delay)))}}class n{constructor(){this.color=!1,this.opacity=!1}load(t){(0,s.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class r{constructor(){this.options={},this.replace=new n,this.type="square"}load(t){(0,s.kZJ)(t)||(void 0!==t.options&&(this.options=(0,s.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var c=e(2269);class l{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new o,this.rate=new a,this.shape=new r,this.startCount=0}load(t){(0,s.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new c.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,s.wJ2)(t.particles,t=>(0,s.zwS)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,s.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,s.DT4)(t.position.y))),void 0!==t.spawnColor&&(this.spawnColor??=new s.A9e,this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/142.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 142.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[142],{8142(e,a,t){async function s(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addParticleUpdater("life",async e=>{const{LifeUpdater:a}=await t.e(47).then(t.bind(t,6047));return new a(e)})})}t.d(a,{loadLifeUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/158.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 158.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[158],{2158(e,a,s){async function i(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async a=>{const{TrailPlugin:i}=await s.e(500).then(s.bind(s,4500));a.addPlugin(new i(e))})}s.d(a,{loadTrailPlugin:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/196.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 196.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[196],{1196(a,e,t){async function i(a){a.checkVersion("4.0.0-alpha.5"),await a.register(async a=>{const{loadHexColorPlugin:e}=await t.e(684).then(t.bind(t,1684)),{loadHslColorPlugin:i}=await t.e(688).then(t.bind(t,8688)),{loadRgbColorPlugin:n}=await t.e(56).then(t.bind(t,8056)),{loadBaseMover:d}=await t.e(464).then(t.bind(t,3464)),{loadCircleShape:o}=await t.e(426).then(t.bind(t,2426)),{loadColorUpdater:l}=await t.e(352).then(t.bind(t,6352)),{loadOpacityUpdater:w}=await t.e(60).then(t.bind(t,6060)),{loadOutModesUpdater:s}=await t.e(864).then(t.bind(t,3864)),{loadSizeUpdater:h}=await t.e(440).then(t.bind(t,4440));await e(a),await i(a),await n(a),await d(a),await o(a),await l(a),await w(a),await s(a),await h(a)})}t.d(e,{loadBasic:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/2.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[2],{2(t,i,s){s.d(i,{EmittersInstancesManager:()=>a});var e=s(3511),o=s(8588);class a{constructor(t){this._containerArrays=new Map,this._engine=t}async addEmitter(t,i,e){const a=new o.v;a.load(i);const{EmitterInstance:r}=await s.e(429).then(s.bind(s,9429)),n=new r(this._engine,t,i=>{this.removeEmitter(t,i)},a,e);return await n.init(),this.getArray(t).push(n),n}clear(t){this.initContainer(t),this._containerArrays.set(t,[])}getArray(t){this.initContainer(t);let i=this._containerArrays.get(t);return i||(i=[],this._containerArrays.set(t,i)),i}initContainer(t){this._containerArrays.has(t)||(this._containerArrays.set(t,[]),t.getEmitter=i=>{const s=this.getArray(t);return void 0===i||(0,e.EtT)(i)?s[i??0]:s.find(t=>t.name===i)},t.addEmitter=async(i,s)=>this.addEmitter(t,i,s),t.removeEmitter=i=>{const s=t.getEmitter?.(i);s&&this.removeEmitter(t,s)},t.playEmitter=i=>{const s=t.getEmitter?.(i);s&&s.externalPlay()},t.pauseEmitter=i=>{const s=t.getEmitter?.(i);s&&s.externalPause()})}removeEmitter(t,i){const s=this.getArray(t).indexOf(i);s>=0&&this.getArray(t).splice(s,1)}}},2269(t,i,s){s.d(i,{G:()=>o});var e=s(3511);class o{constructor(){this.mode=e.qiC.percent,this.height=0,this.width=0}load(t){(0,e.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))}}},8588(t,i,s){s.d(i,{v:()=>d});var e=s(3511);class o{constructor(){this.wait=!1}load(t){(0,e.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,e.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,e.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class a{constructor(){this.quantity=1,this.delay=.1}load(t){(0,e.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,e.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,e.DT4)(t.delay)))}}class r{constructor(){this.color=!1,this.opacity=!1}load(t){(0,e.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class n{constructor(){this.options={},this.replace=new r,this.type="square"}load(t){(0,e.kZJ)(t)||(void 0!==t.options&&(this.options=(0,e.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var h=s(2269);class d{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new o,this.rate=new a,this.shape=new n,this.startCount=0}load(t){(0,e.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new h.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,e.wJ2)(t.particles,t=>(0,e.zwS)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,e.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,e.DT4)(t.position.y))),void 0!==t.spawnColor&&(this.spawnColor??=new e.A9e,this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[
|
|
1
|
+
/*! For license information please see 202.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[202],{3202(e,o,t){t.d(o,{ColorUpdater:()=>n});var i=t(3511);class n{constructor(e,o){this._container=o,this._engine=e}init(e){const o=(0,i.R5R)(this._engine,e.options.color,e.id,e.options.reduceDuplicates);o&&(e.color=(0,i.pzy)(o,e.options.color.animation,this._container.retina.reduceFactor))}isEnabled(e){const{h:o,s:t,l:i}=e.options.color.animation,{color:n}=e;return!e.destroyed&&!e.spawning&&(void 0!==n?.h.value&&o.enable||void 0!==n?.s.value&&t.enable||void 0!==n?.l.value&&i.enable)}update(e,o){(0,i.JvX)(e.color,o)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/294.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 294.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[294],{2294(t,i,o){o.d(i,{OutOfCanvasUpdater:()=>c});var e=o(3511);class s{constructor(t){this.container=t,this.modes=[e.Yzx.bounce,e.Yzx.split]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;let a=!1;for(const e of n.plugins)if(void 0!==e.particleBounce&&(a=e.particleBounce(t,o,i)),a)break;if(a)return;const r=t.getPosition(),c=t.offset,d=t.getRadius(),p=(0,e.AEc)(r,d),u=n.canvas.size;!function(t){if(t.outMode!==e.Yzx.bounce&&t.outMode!==e.Yzx.split||t.direction!==e.v5k.left&&t.direction!==e.v5k.right)return;t.bounds.right<0&&t.direction===e.v5k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===e.v5k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const i=t.particle.velocity.x;let o=!1;if(t.direction===e.v5k.right&&t.bounds.right>=t.canvasSize.width&&i>0||t.direction===e.v5k.left&&t.bounds.left<=0&&i<0){const i=(0,e.VGA)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-i,o=!0}if(!o)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===e.v5k.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===e.v5k.left&&(t.particle.position.x=s),t.outMode===e.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:u,offset:c,size:d}),function(t){if(t.outMode!==e.Yzx.bounce&&t.outMode!==e.Yzx.split||t.direction!==e.v5k.bottom&&t.direction!==e.v5k.top)return;t.bounds.bottom<0&&t.direction===e.v5k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===e.v5k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const i=t.particle.velocity.y;let o=!1;if(t.direction===e.v5k.bottom&&t.bounds.bottom>=t.canvasSize.height&&i>0||t.direction===e.v5k.top&&t.bounds.top<=0&&i<0){const i=(0,e.VGA)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-i,o=!0}if(!o)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===e.v5k.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===e.v5k.top&&(t.particle.position.y=s),t.outMode===e.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:u,offset:c,size:d})}}class n{constructor(t){this.container=t,this.modes=[e.Yzx.destroy]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case e.x_I.normal:case e.x_I.outside:if((0,e.Tj8)(t.position,n.canvas.size,e.Miz.origin,t.getRadius(),i))return;break;case e.x_I.inside:{const{dx:i,dy:o}=(0,e.vrU)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&i>t.moveCenter.radius||n<0&&o>t.moveCenter.radius||s>=0&&i<-t.moveCenter.radius||n>=0&&o<-t.moveCenter.radius)return;break}}n.particles.remove(t,t.group,!0)}}class a{constructor(t){this.container=t,this.modes=[e.Yzx.none]}update(t,i,o,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(i===e.v5k.left||i===e.v5k.right))??(t.options.move.distance.vertical&&(i===e.v5k.top||i===e.v5k.bottom)))return;const n=t.options.move.gravity,a=this.container,r=a.canvas.size,c=t.getRadius();if(n.enable){const o=t.position;(!n.inverse&&o.y>r.height+c&&i===e.v5k.bottom||n.inverse&&o.y<-c&&i===e.v5k.top)&&a.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=r.height+c||t.velocity.y<0&&t.position.y>=-c||t.velocity.x>0&&t.position.x<=r.width+c||t.velocity.x<0&&t.position.x>=-c)return;(0,e.Tj8)(t.position,a.canvas.size,e.Miz.origin,c,i)||a.particles.remove(t)}}}class r{constructor(t){this.container=t,this.modes=[e.Yzx.out]}update(t,i,o,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case e.x_I.inside:{const{x:i,y:o}=t.velocity,s=e.Miz.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(e.Miz.create(t.moveCenter));const{dx:a,dy:r}=(0,e.vrU)(t.position,s);if(i<=0&&a>=0||o<=0&&r>=0||i>=0&&a<=0||o>=0&&r<=0)return;t.position.x=Math.floor((0,e.vEz)({min:0,max:n.canvas.size.width})),t.position.y=Math.floor((0,e.vEz)({min:0,max:n.canvas.size.height}));const{dx:c,dy:d}=(0,e.vrU)(t.position,t.moveCenter);t.direction=Math.atan2(-d,-c),t.velocity.angle=t.direction;break}default:if((0,e.Tj8)(t.position,n.canvas.size,e.Miz.origin,t.getRadius(),i))return;switch(t.outType){case e.x_I.outside:{t.position.x=Math.floor((0,e.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,e.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:i,dy:o}=(0,e.vrU)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(o,i),t.velocity.angle=t.direction);break}case e.x_I.normal:{const o=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},r=t.getRadius(),c=(0,e.AEc)(t.position,r);i===e.v5k.right&&c.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,o||(t.position.y=(0,e.G0i)()*s.height,t.initialPosition.y=t.position.y)):i===e.v5k.left&&c.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,o||(t.position.y=(0,e.G0i)()*s.height,t.initialPosition.y=t.position.y)),i===e.v5k.bottom&&c.top>s.height+t.offset.y?(o||(t.position.x=(0,e.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y):i===e.v5k.top&&c.bottom<-t.offset.y&&(o||(t.position.x=(0,e.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y);break}}}}}class c{constructor(t){this._addUpdaterIfMissing=(t,i,o)=>{const e=t.options.move.outModes;!this.updaters.has(i)&&((t,i)=>t.default===i||t.bottom===i||t.left===i||t.right===i||t.top===i)(e,i)&&this.updaters.set(i,o(this.container))},this._updateOutMode=(t,i,o,e)=>{for(const s of this.updaters.values())s.update(t,e,i,o)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,e.Yzx.bounce,t=>new s(t)),this._addUpdaterIfMissing(t,e.Yzx.out,t=>new r(t)),this._addUpdaterIfMissing(t,e.Yzx.destroy,t=>new n(t)),this._addUpdaterIfMissing(t,e.Yzx.none,t=>new a(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,i){const o=t.options.move.outModes;this._updateOutMode(t,i,o.bottom??o.default,e.v5k.bottom),this._updateOutMode(t,i,o.left??o.default,e.v5k.left),this._updateOutMode(t,i,o.right??o.default,e.v5k.right),this._updateOutMode(t,i,o.top??o.default,e.v5k.top)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/30.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 30.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[30],{4030(t,i,e){e.d(i,{TrailPluginInstance:()=>a});var r=e(3511);class a{constructor(t,i){this._initTrail=async()=>{const t=this._container.actualOptions.trail;if(!t?.enable)return;const i=t.fill,e=r.hBr/t.length;if(i.color){const t=(0,r.BN0)(this._engine,i.color);if(!t)return;this._trailFill={color:{...t},opacity:e}}else await new Promise((t,a)=>{if(!i.image)return;const n=(0,r.T5G)().createElement("img");n.addEventListener("load",()=>{this._trailFill={image:n,opacity:e},t()}),n.addEventListener("error",t=>{(0,r.tZQ)().error(t),a(new Error("Error loading image"))}),n.src=i.image})},this._container=t,this._engine=i}canvasClear(){const t=this._container,i=t.actualOptions.trail,e=this._trailFill;if(!i?.enable||!e||i.length<=0)return!1;let a=!1;const n=t.canvas;return e.color?(n.paintBase((0,r.xxz)(e.color,t.hdr,e.opacity)),a=!0):e.image&&(n.paintImage(e.image,e.opacity),a=!0),a}async init(){try{await this._initTrail()}catch(t){(0,r.tZQ)().error(t)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/309.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 309.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[309],{7309(e,t,a){a.d(t,{B:()=>i,loadEmittersPlugin:()=>s});class i{constructor(e,t,a,i){this.position=e,this.size=t,this.fill=a,this.options=i}resize(e,t){this.position=e,this.size=t}}var n;async function s(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{const{loadInteractivityPlugin:t}=await a.e(685).then(a.bind(a,3685)),{ShapeManager:i}=await a.e(926).then(a.bind(a,7926)),{EmittersInstancesManager:n}=await a.e(2).then(a.bind(a,2)),{EmittersPlugin:s}=await a.e(414).then(a.bind(a,5414)),r=new n(e);await t(e),e.emitterShapeManager??=new i,e.addEmitterShapeGenerator??=(t,a)=>{e.emitterShapeManager?.addShapeGenerator(t,a)},e.addPlugin(new s(r)),e.addInteractor?.("externalEmitters",async e=>{const{EmittersInteractor:t}=await a.e(121).then(a.bind(a,1121));return new t(r,e)})})}!function(e){e.emitter="emitter"}(n||(n={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/352.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 352.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[352],{6352(e,a,t){async function r(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addParticleUpdater("color",async a=>{const{ColorUpdater:r}=await t.e(202).then(t.bind(t,3202));return new r(e,a)})})}t.d(a,{loadColorUpdater:()=>r})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/413.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 413.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[413],{9413(e,i,t){t.d(i,{BaseMover:()=>o});var n=t(3511);function a(e,i,t,a,o,s,c){!function(e,i){const t=e.options,a=t.move.path;if(!a.enable)return;if(e.lastPathTime<=e.pathDelay)return void(e.lastPathTime+=i.value);const o=e.pathGenerator?.generate(e,i);o&&e.velocity.addTo(o);a.clamp&&(e.velocity.x=(0,n.qE8)(e.velocity.x,-1,1),e.velocity.y=(0,n.qE8)(e.velocity.y,-1,1));e.lastPathTime-=e.pathDelay}(e,c);const r=e.gravity,l=r?.enable&&r.inverse?-1:1;o&&t&&(e.velocity.x+=o*c.factor/(60*t)),r?.enable&&t&&(e.velocity.y+=l*(r.acceleration*c.factor)/(60*t));const p=e.moveDecay;e.velocity.multTo(p);const y=e.velocity.mult(t);r?.enable&&a>0&&(!r.inverse&&y.y>=0&&y.y>=a||r.inverse&&y.y<=0&&y.y<=-a)&&(y.y=l*a,t&&(e.velocity.y=y.y/t));const v=e.options.zIndex,d=(1-e.zIndexFactor)**v.velocityRate;y.multTo(d),y.multTo(s);const{position:x}=e;x.addTo(y),i.vibrate&&(x.x+=Math.sin(x.x*Math.cos(x.y))*s,x.y+=Math.cos(x.y*Math.sin(x.x))*s)}class o{init(e){const i=e.options.move.gravity;e.gravity={enable:i.enable,acceleration:(0,n.VGA)(i.acceleration),inverse:i.inverse},function(e){const i=e.container,t=e.options.move.spin;if(!t.enable)return;const a=t.position??{x:50,y:50},o={x:.01*a.x*i.canvas.size.width,y:.01*a.y*i.canvas.size.height},s=e.getPosition(),c=(0,n.YfF)(s,o),r=(0,n.VGA)(t.acceleration);e.retina.spinAcceleration=r*i.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?n.pTR.clockwise:n.pTR.counterClockwise,angle:(0,n.G0i)()*n.R1e,radius:c,acceleration:e.retina.spinAcceleration}}(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,i){const t=e.options,o=t.move;if(!o.enable)return;const s=e.container,c=s.retina.pixelRatio;e.retina.moveSpeed??=(0,n.VGA)(o.speed)*c,e.retina.moveDrift??=(0,n.VGA)(e.options.move.drift)*c;const r=function(e){return e.slow.inRange?e.slow.factor:1}(e),l=s.retina.reduceFactor,p=e.retina.moveSpeed,y=e.retina.moveDrift,v=(0,n.W9e)(t.size.value)*c,d=p*(o.size?e.getRadius()/v:1)*r*(i.factor||1)/2,x=e.retina.maxSpeed??s.retina.maxSpeed;o.spin.enable?function(e,i,t){const a=e.container;if(!e.spin)return;const o=e.spin.direction===n.pTR.clockwise,s={x:o?Math.cos:Math.sin,y:o?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*s.x(e.spin.angle)*t,e.position.y=e.spin.center.y+e.spin.radius*s.y(e.spin.angle)*t,e.spin.radius+=e.spin.acceleration*t;const c=Math.max(a.canvas.size.width,a.canvas.size.height),r=c*n.MXx;e.spin.radius>r?(e.spin.radius=r,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/c)}(e,d,l):a(e,o,d,x,y,l,i),function(e){const i=e.initialPosition,{dx:t,dy:a}=(0,n.vrU)(i,e.position),o=Math.abs(t),s=Math.abs(a),{maxDistance:c}=e.retina,r=c.horizontal,l=c.vertical;if(!r&&!l)return;if((r&&o>=r||l&&s>=l)&&!e.misplaced)e.misplaced=!!r&&o>r||!!l&&s>l,r&&(e.velocity.x=e.velocity.y*n.MXx-e.velocity.x),l&&(e.velocity.y=e.velocity.x*n.MXx-e.velocity.y);else if((!r||o<r)&&(!l||s<l)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){const t=e.position,a=e.velocity;r&&(t.x<i.x&&a.x<0||t.x>i.x&&a.x>0)&&(a.x*=-(0,n.G0i)()),l&&(t.y<i.y&&a.y<0||t.y>i.y&&a.y>0)&&(a.y*=-(0,n.G0i)())}}(e)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/414.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 414.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[414],{2269(t,i,s){s.d(i,{G:()=>e});var o=s(3511);class e{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))}}},5414(t,i,s){s.d(i,{EmittersPlugin:()=>a});var o=s(3511),e=s(8588);class a{constructor(t){this._instancesManager=t,this.id="emitters"}async getPlugin(t){const{EmittersPluginInstance:i}=await s.e(933).then(s.bind(s,933));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=>{const i=new e.v;return i.load(t),i}))}needsPlugin(t){if(!t)return!1;const i=t.emitters;return(0,o.cyL)(i)&&!!i.length||void 0!==i}}},8588(t,i,s){s.d(i,{v:()=>r});var o=s(3511);class e{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{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 n{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 h{constructor(){this.options={},this.replace=new n,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 d=s(2269);class r{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new e,this.rate=new a,this.shape=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 d.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),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.spawnColor&&(this.spawnColor??=new o.A9e,this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/420.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 420.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[420],{4381(t,e,i){i.d(e,{k:()=>l});var n=i(3511);class s{constructor(){this.enable=!1,this.mode=[]}load(t){(0,n.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}var o=i(7337);class a{constructor(){this.enable=!1,this.mode=[]}load(t){(0,n.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class r{constructor(){this.onClick=new s,this.onDiv=new o.G,this.onHover=new a}load(t){if((0,n.kZJ)(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,n.wJ2)(e,t=>{const e=new o.G;return e.load(t),e})),this.onHover.load(t.onHover)}}var c=i(5352),d=i(137);class l{constructor(t,e){this.detectsOn=c.h.window,this.events=new r,this.modes=new d.d(t,e)}load(t){if((0,n.kZJ)(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},4420(t,e,i){i.d(e,{InteractivityPlugin:()=>o});var n=i(3511),s=i(4381);class o{constructor(t){this._engine=t,this.id="interactivity"}async getPlugin(t){const{InteractivityPluginInstance:e}=await i.e(909).then(i.bind(i,1909));return new e(this._engine,t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let n=e.interactivity;n?.load||(e.interactivity=n=new s.k(this._engine,t)),n.load(i?.interactivity);const o=this._engine.interactors?.get(t);if(o)for(const t of o)t.loadOptions&&t.loadOptions(e,i)}loadParticlesOptions(t,e,i){i?.interactivity&&(e.interactivity=(0,n.zwS)({},i.interactivity));const s=this._engine.interactors?.get(t);if(s)for(const t of s)t.loadParticlesOptions&&t.loadParticlesOptions(e,i)}needsPlugin(){return!0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/425.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 425.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[309,425],{1425(t,e,i){i.d(e,{EmittersSquareShapeGenerator:()=>h});var n=i(7309),a=i(3511);var s;function r(t,e){return t+e*((0,a.G0i)()-a.MXx)}!function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomRight=2]="BottomRight",t[t.BottomLeft=3]="BottomLeft"}(s||(s={}));class o extends n.B{constructor(t,e,i,n){super(t,e,i,n)}async init(){}randomPosition(){const t=this.fill,e=this.position,i=this.size;if(t)return{position:{x:r(e.x,i.width),y:r(e.y,i.height)}};{const t=i.width*a.MXx,n=i.height*a.MXx,r=Math.floor(4*(0,a.G0i)()),o=((0,a.G0i)()-a.MXx)*a.gdl;switch(r){case s.TopLeft:return{position:{x:e.x+o*t,y:e.y-n}};case s.TopRight:return{position:{x:e.x-t,y:e.y+o*n}};case s.BottomRight:return{position:{x:e.x+o*t,y:e.y+n}};case s.BottomLeft:default:return{position:{x:e.x+t,y:e.y+o*n}}}}}}class h{generate(t,e,i,n){return new o(t,e,i,n)}}},7309(t,e,i){i.d(e,{B:()=>n,loadEmittersPlugin:()=>s});class n{constructor(t,e,i,n){this.position=t,this.size=e,this.fill=i,this.options=n}resize(t,e){this.position=t,this.size=e}}var a;async function s(t){t.checkVersion("4.0.0-alpha.5"),await t.register(async t=>{const{loadInteractivityPlugin:e}=await i.e(685).then(i.bind(i,3685)),{ShapeManager:n}=await i.e(926).then(i.bind(i,7926)),{EmittersInstancesManager:a}=await i.e(2).then(i.bind(i,2)),{EmittersPlugin:s}=await i.e(414).then(i.bind(i,5414)),r=new a(t);await e(t),t.emitterShapeManager??=new n,t.addEmitterShapeGenerator??=(e,i)=>{t.emitterShapeManager?.addShapeGenerator(e,i)},t.addPlugin(new s(r)),t.addInteractor?.("externalEmitters",async t=>{const{EmittersInteractor:e}=await i.e(121).then(i.bind(i,1121));return new e(r,t)})})}!function(t){t.emitter="emitter"}(a||(a={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/426.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 426.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[426],{2426(e,a,s){async function c(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{const{CircleDrawer:a}=await s.e(668).then(s.bind(s,1668));e.addShape(new a)})}s.d(a,{loadCircleShape:()=>c})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/429.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 429.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[429],{9429(t,i,s){s.d(i,{EmitterInstance:()=>r});var e=s(3511),o=s(8588),n=s(2269);function a(t,i){t.color?t.color.value=i:t.color={value:i}}class r{constructor(t,i,s,n,a){this.container=i,this.removeCallback=s,this._destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this.removeCallback(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{if(this._paused)return;const 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)},this._setColorAnimation=(t,i,s,o=1)=>{const n=this.container;if(!t.enable)return i;const a=(0,e.vEz)(t.offset),r=(0,e.VGA)(this.options.rate.delay),h=n.retina.reduceFactor?r*e.XuV/n.retina.reduceFactor:1/0;return(i+(0,e.VGA)(t.speed)*n.fpsLimit/h+a*o)%s},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,n instanceof o.v?this.options=n:(this.options=new o.v,this.options.load(n)),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.spawnColor&&(this.spawnColor=(0,e.R5R)(this._engine,this.options.spawnColor)),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._engine.emitterShapeManager?.getShapeGenerator(h.type);l&&(this._shape=l.generate(this.position,this.size,this.fill,h.options)),this._engine.dispatchEvent("emitterCreated",{container:i,data:{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)return;if(!(this._lifeCount>0||this._immortal)&&this.options.life.count||!(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0)))return;const t=this.container;if(void 0===this._emitDelay){const 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(){const 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;const 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._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){const t=this.container;if(this.options.domId){const i=(0,e.T5G)().getElementById(this.options.domId);if(i){const 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(){const t=this.container;if(this.options.domId){const i=(0,e.T5G)().getElementById(this.options.domId);if(i){const s=i.getBoundingClientRect();return{width:s.width*t.retina.pixelRatio,height:s.height*t.retina.pixelRatio,mode:e.qiC.precise}}}return this.options.size??(()=>{const t=new n.G;return t.load({height:0,mode:e.qiC.percent,width:0}),t})()}_emit(){if(this._paused)return;const t=(0,e.VGA)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){const i=(0,e.TA3)(this._particlesOptions)??{},s=this.options.spawnColor?.animation,o=this.container.retina.reduceFactor,n=!!s,r=!!this._shape,h=n||r,l=n?{h:e.vSh,s:e.euA,l:e.$_c}:null,c=this.options.shape;for(let n=0;n<t*o;n++){const t=h?(0,e.zwS)({},i):i;this.spawnColor&&(s&&l&&(this.spawnColor.h=this._setColorAnimation(s.h,this.spawnColor.h,l.h,3.6),this.spawnColor.s=this._setColorAnimation(s.s,this.spawnColor.s,l.s),this.spawnColor.l=this._setColorAnimation(s.l,this.spawnColor.l,l.l)),a(t,this.spawnColor));let o=this.position;if(this._shape){const i=this._shape.randomPosition();if(i){o=i.position;const s=c.replace;s.color&&i.color&&a(t,i.color),s.opacity&&(t.opacity?t.opacity.value=i.opacity:t.opacity={value:i.opacity})}else o=null}o&&this.container.particles.addParticle(o,t)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/440.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 440.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[440],{4440(e,a,t){async function s(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addParticleUpdater("size",async()=>{const{SizeUpdater:e}=await t.e(726).then(t.bind(t,726));return new e})})}t.d(a,{loadSizeUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/464.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 464.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[464],{3464(e,a,s){async function t(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addMover("base",async()=>{const{BaseMover:e}=await s.e(413).then(s.bind(s,9413));return new e})})}s.d(a,{loadBaseMover:()=>t})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/{22.min.js → 47.min.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[
|
|
1
|
+
/*! For license information please see 47.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[47],{6047(e,i,t){t.d(i,{LifeUpdater:()=>r});var n=t(3511);class a extends n.PVU{constructor(){super(),this.sync=!1}load(e){(0,n.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class s extends n.PVU{constructor(){super(),this.sync=!1}load(e){(0,n.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class o{constructor(){this.count=0,this.delay=new a,this.duration=new s}load(e){(0,n.kZJ)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class r{constructor(e){this.container=e}init(e){const i=this.container,t=e.options.life;t&&(e.life={delay:i.retina.reduceFactor?(0,n.VGA)(t.delay.value)*(t.delay.sync?1:(0,n.G0i)())/i.retina.reduceFactor*n.XuV:0,delayTime:0,duration:i.retina.reduceFactor?(0,n.VGA)(t.duration.value)*(t.duration.sync?1:(0,n.G0i)())/i.retina.reduceFactor*n.XuV:0,time:0,count:t.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.spawning=e.life.delay>0)}isEnabled(e){return!e.destroyed}loadOptions(e,...i){e.life??=new o;for(const t of i)e.life.load(t?.life)}update(e,i){this.isEnabled(e)&&e.life&&function(e,i,t){if(!e.life)return;const a=e.life;let s=!1;if(e.spawning){if(a.delayTime+=i.value,!(a.delayTime>=e.life.delay))return;s=!0,e.spawning=!1,a.delayTime=0,a.time=0}if(-1===a.duration)return;if(s?a.time=0:a.time+=i.value,a.time<a.duration)return;if(a.time=0,e.life.count>0&&e.life.count--,0===e.life.count)return void e.destroy();const o=(0,n.DT4)(0,t.width),r=(0,n.DT4)(0,t.width);e.position.x=(0,n.vEz)(o),e.position.y=(0,n.vEz)(r),e.spawning=!0,a.delayTime=0,a.time=0,e.reset();const c=e.options.life;c&&(a.delay=(0,n.VGA)(c.delay.value)*n.XuV,a.duration=(0,n.VGA)(c.duration.value)*n.XuV)}(e,i,this.container.canvas.size)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/488.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 488.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[488],{9488(e,t,a){async function r(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{if(!e.addEmitterShapeGenerator)throw new Error("tsParticles emitters plugin missing or initialized after shapes");const{EmittersSquareShapeGenerator:t}=await a.e(425).then(a.bind(a,1425));e.addEmitterShapeGenerator("square",new t)})}a.d(t,{loadEmittersShapeSquare:()=>r})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/500.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 500.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[500],{4500(e,i,t){t.d(i,{TrailPlugin:()=>a});var l=t(3511);class s{load(e){(0,l.kZJ)(e)||(void 0!==e.color&&(this.color=l.Oit.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image))}}class n{constructor(){this.enable=!1,this.length=10,this.fill=new s}load(e){(0,l.kZJ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.fill&&this.fill.load(e.fill),void 0!==e.length&&(this.length=e.length))}}class a{constructor(e){this.id="trail",this._engine=e}async getPlugin(e){const{TrailPluginInstance:i}=await t.e(30).then(t.bind(t,4030));return new i(e,this._engine)}loadOptions(e,i,t){if(!this.needsPlugin())return;let l=i.trail;l?.load||(i.trail=l=new n),l.load(t?.trail)}needsPlugin(){return!0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/505.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 505.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[505],{5505(s,e,t){t.d(e,{HslColorManager:()=>r});var a,h=t(3511);!function(s){s[s.h=1]="h",s[s.s=2]="s",s[s.l=3]="l",s[s.a=5]="a"}(a||(a={}));const n=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class r{constructor(){this.key="hsl"}accepts(s){return s.startsWith("hsl")}handleColor(s){const e=s.value.hsl??s.value;if(Object.hasOwn(e,"h")&&Object.hasOwn(e,"s")&&Object.hasOwn(e,"l"))return(0,h.YLU)(e)}handleRangeColor(s){const e=s.value.hsl??s.value;if(Object.hasOwn(e,"h")&&Object.hasOwn(e,"s")&&Object.hasOwn(e,"l"))return(0,h.YLU)({h:(0,h.VGA)(e.h),l:(0,h.VGA)(e.l),s:(0,h.VGA)(e.s)})}parseString(s){if(!this.accepts(s))return;const e=n.exec(s);return e?(0,h.ayx)({a:e.length>4?(0,h.M3Y)(e[a.a]):1,h:parseInt(e[a.h]??"0",10),l:parseInt(e[a.l]??"0",10),s:parseInt(e[a.s]??"0",10)}):void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/56.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 56.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[56],{8056(e,a,s){async function n(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{const{RgbColorManager:a}=await s.e(949).then(s.bind(s,949));e.addColorManager(new a)})}s.d(a,{loadRgbColorPlugin:()=>n})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/60.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 60.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[60],{6060(e,a,t){async function p(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addParticleUpdater("opacity",async e=>{const{OpacityUpdater:a}=await t.e(792).then(t.bind(t,5792));return new a(e)})})}t.d(a,{loadOpacityUpdater:()=>p})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/668.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 668.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[668],{1668(e,a,c){c.d(a,{CircleDrawer:()=>i});var t=c(3511);class i{constructor(){this.validTypes=["circle"]}draw(e){!function(e){const{context:a,particle:c,radius:i}=e;c.circleRange??={min:0,max:t.R1e};const r=c.circleRange;a.arc(t.boI.x,t.boI.y,i,r.min,r.max,!1)}(e)}getSidesCount(){return 12}particleInit(e,a){const c=a.shapeData,i=c?.angle??{max:360,min:0};a.circleRange=(0,t.Gvm)(i)?{min:(0,t.puj)(i.min),max:(0,t.puj)(i.max)}:{min:0,max:(0,t.puj)(i)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/684.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 684.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[684],{1684(e,a,s){async function n(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{const{HexColorManager:a}=await s.e(847).then(s.bind(s,2847));e.addColorManager(new a)})}s.d(a,{loadHexColorPlugin:()=>n})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/685.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 685.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[685],{137(t,e,n){n.d(e,{d:()=>a});var i=n(3511);class a{constructor(t,e){this._engine=t,this._container=e}load(t){if((0,i.kZJ)(t))return;if(!this._container)return;const e=this._engine.interactors?.get(this._container);if(e)for(const n of e)n.loadModeOptions&&n.loadModeOptions(this,t)}}},1776(t,e,n){var i;n.d(e,{Q:()=>i}),function(t){t.circle="circle",t.rectangle="rectangle"}(i||(i={}))},3685(t,e,n){n.d(e,{sJ:()=>r,loadInteractivityPlugin:()=>s});var i=n(3511),a=(n(1776),n(7941));class r{constructor(t){this.type=a.e.external,this.container=t}}n(5352);n(7337),n(137);async function s(t){t.checkVersion("4.0.0-alpha.5"),await t.register(async t=>{const e=t,{InteractivityPlugin:a}=await n.e(420).then(n.bind(n,4420));e.addPlugin(new a(e)),e.interactorsInitializers??=new Map,e.interactors??=new Map,e.addInteractor=(t,n)=>{e.interactorsInitializers??=new Map,e.interactorsInitializers.set(t,n)},e.getInteractors=async(t,n=!1)=>(e.interactors??=new Map,e.interactorsInitializers??=new Map,(0,i.HQK)(t,e.interactors,e.interactorsInitializers,n)),e.setOnClickHandler=t=>{const{items:n}=e;if(!n.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");n.forEach(e=>{const n=e;n.addClickHandler?.(t)})}})}},5352(t,e,n){var i;n.d(e,{h:()=>i}),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(i||(i={}))},7337(t,e,n){n.d(e,{G:()=>r});var i=n(3511),a=n(1776);class r{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=a.Q.circle}load(t){(0,i.kZJ)(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},7941(t,e,n){var i;n.d(e,{e:()=>i}),function(t){t.external="external",t.particles="particles"}(i||(i={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/688.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 688.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[688],{8688(e,a,s){async function n(e){e.checkVersion("4.0.0-alpha.5"),await e.register(async e=>{const{HslColorManager:a}=await s.e(505).then(s.bind(s,5505));e.addColorManager(new a)})}s.d(a,{loadHslColorPlugin:()=>n})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[
|
|
1
|
+
/*! For license information please see 726.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[726],{726(e,s,i){i.d(s,{SizeUpdater:()=>t});var a=i(3511);class t{init(e){const s=e.container,i=e.options.size.animation;i.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/a.a56*s.retina.reduceFactor,i.sync||(e.size.velocity*=(0,a.G0i)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,s){this.isEnabled(e)&&(0,a.UC0)(e,e.size,!0,e.options.size.animation.destroy,s)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/778.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 778.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[778],{8778(e,t,a){a.d(t,{options:()=>s});var i=a(3511);const s={background:{color:"#000000"},particles:{number:{value:100},color:{value:"#ffffff"},life:{count:1,duration:{value:5}},shape:{type:"circle"},opacity:{value:1},size:{value:3},move:{enable:!0,speed:10,decay:.005,direction:i.FWc.outside,straight:!0,outModes:i.Yzx.destroy}},emitters:{position:{x:50,y:50},size:{width:100,height:100},rate:{quantity:10,delay:.1}},trail:{enable:!0,length:15,fill:{color:"#000000"}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[
|
|
1
|
+
/*! For license information please see 792.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[792],{5792(t,a,o){o.d(a,{OpacityUpdater:()=>p});var i=o(3511);class p{constructor(t){this.container=t}init(t){const a=t.options.opacity;t.opacity=(0,i.XsS)(a,1);const o=a.animation;o.enable&&(t.opacity.velocity=(0,i.VGA)(o.speed)/i.a56*this.container.retina.reduceFactor,o.sync||(t.opacity.velocity*=(0,i.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,a){this.isEnabled(t)&&t.opacity&&(0,i.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,a)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[
|
|
1
|
+
/*! For license information please see 847.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[847],{2847(r,e,a){var t;a.d(e,{HexColorManager:()=>p}),function(r){r[r.r=1]="r",r[r.g=2]="g",r[r.b=3]="b",r[r.a=4]="a"}(t||(t={}));const s=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class p{constructor(){this.key="hex"}accepts(r){return r.startsWith("#")}handleColor(r){return this._parseString(r.value)}handleRangeColor(r){return this._parseString(r.value)}parseString(r){return this._parseString(r)}_parseString(r){if("string"!=typeof r||!this.accepts(r))return;const e=r.replace(s,(r,e,a,t,s)=>e+e+a+a+t+t+(void 0!==s?s+s:"")),a=n.exec(e);return a?{a:a[t.a]?parseInt(a[t.a],16)/255:1,b:parseInt(a[t.b]??"0",16),g:parseInt(a[t.g]??"0",16),r:parseInt(a[t.r]??"0",16)}:void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/864.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 864.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[864],{3864(e,a,t){async function s(e){e.checkVersion("4.0.0-alpha.5"),await e.register(e=>{e.addParticleUpdater("outModes",async e=>{const{OutOfCanvasUpdater:a}=await t.e(294).then(t.bind(t,2294));return new a(e)})})}t.d(a,{loadOutModesUpdater:()=>s})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/909.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 909.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[909],{1909(t,e,i){i.d(e,{InteractivityPluginInstance:()=>v});var n=i(3511);const s="pointerleave",a="pointermove",o="touchstart",r="touchend",c="touchmove",h="touchcancel";var l=i(5352);class d{constructor(t,e){this._canPush=!0,this._doMouseTouchClick=t=>{const e=this._container,i=this._interactionManager,s=e.actualOptions;if(this._canPush){const t=i.interactivityData.mouse,e=t.position;if(!e)return;t.clickPosition={...e},t.clickTime=Date.now();const a=s.interactivity?.events.onClick;if(!a?.mode)return;(0,n.wJ2)(a.mode,t=>{i.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this._mouseTouchFinish()},n.pHD)},this._handleVisibilityChange=()=>{this._mouseTouchFinish()},this._manageInteractivityListeners=(t,e)=>{const i=this._handlers,s=this._container,l=this._interactionManager,d=s.actualOptions,u=l.interactivityData.element;if(!u)return;const _=u,p=s.canvas;p.setPointerEvents(_===p.element?"initial":"none"),(d.interactivity?.events.onHover.enable||d.interactivity?.events.onClick.enable)&&((0,n.KpY)(u,a,i.mouseMove,e),(0,n.KpY)(u,o,i.touchStart,e),(0,n.KpY)(u,c,i.touchMove,e),d.interactivity.events.onClick.enable?((0,n.KpY)(u,r,i.touchEndClick,e),(0,n.KpY)(u,"pointerup",i.mouseUp,e),(0,n.KpY)(u,"pointerdown",i.mouseDown,e)):(0,n.KpY)(u,r,i.touchEnd,e),(0,n.KpY)(u,t,i.mouseLeave,e),(0,n.KpY)(u,h,i.touchCancel,e))},this._manageListeners=t=>{const e=this._handlers,i=this._container,a=this._interactionManager,o=i.actualOptions,r=o.interactivity?.detectsOn,c=i.canvas.element;let h=s;r===l.h.window?(a.interactivityData.element=globalThis,h="pointerout"):r===l.h.parent&&c?a.interactivityData.element=c.parentElement??c.parentNode:a.interactivityData.element=c,this._manageInteractivityListeners(h,t),(0,n.KpY)(document,n.nKi,e.visibilityChange,t,!1)},this._mouseDown=()=>{const{interactivityData:t}=this._interactionManager,{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{const e=this._container,i=this._interactionManager,n=e.actualOptions,{mouse:s}=i.interactivityData;s.inside=!0;let a=!1;const o=s.position;if(o&&n.interactivity?.events.onClick.enable){for(const t of e.plugins)if(t.clickPositionValid&&(a=t.clickPositionValid(o),a))break;a||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const{interactivityData:t}=this._interactionManager,{mouse:e}=t;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=s,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{const e=this._container,i=this._interactionManager,s=e.actualOptions,o=i.interactivityData,r=e.canvas.element;if(!o.element)return;let c;if(o.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const e=t;if(o.element===globalThis){if(r){const t=r.getBoundingClientRect();c={x:e.clientX-t.left,y:e.clientY-t.top}}}else if(s.interactivity?.detectsOn===l.h.parent){const t=e.target,i=e.currentTarget;if(r){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),o=r.getBoundingClientRect();c={x:e.offsetX+n.gdl*s.left-(a.left+o.left),y:e.offsetY+n.gdl*s.top-(a.top+o.top)}}else c={x:e.offsetX,y:e.offsetY}}else e.target===r&&(c={x:e.offsetX,y:e.offsetY})}else if(this._canPush="touchmove"!==t.type,r){const e=t,i=e.touches[e.touches.length-n.K3],s=r.getBoundingClientRect();if(!i)return;c={x:i.clientX-s.left,y:i.clientY-s.top}}const h=e.retina.pixelRatio;c&&(c.x*=h,c.y*=h),o.mouse.position=c,o.status=a},this._touchEnd=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._container=t,this._interactionManager=e,this._touches=new Map,this._handlers={mouseDown:()=>{this._mouseDown()},mouseLeave:()=>{this._mouseTouchFinish()},mouseMove:t=>{this._mouseTouchMove(t)},mouseUp:t=>{this._mouseTouchClick(t)},touchStart:t=>{this._touchStart(t)},touchMove:t=>{this._mouseTouchMove(t)},touchEnd:t=>{this._touchEnd(t)},touchCancel:t=>{this._touchEnd(t)},touchEndClick:t=>{this._touchEndClick(t)},visibilityChange:()=>{this._handleVisibilityChange()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var u=i(7941);class _{constructor(t,e){this.container=e,this._intersectionManager=t=>{const{container:e}=this;if(!e.destroyed&&e.actualOptions.pauseOnOutsideViewport)for(const i of t)i.target===this.interactivityData.element&&(i.isIntersecting?e.play():e.pause())},this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[],this._clickHandlers=new Map,this._eventListeners=new d(e,this),this.interactivityData={mouse:{clicking:!1,inside:!1}},this._intersectionObserver=(0,n.BRq)(t=>{this._intersectionManager(t)})}addClickHandler(t){const{container:e,interactivityData:i}=this;if(e.destroyed)return;const s=i.element;if(!s)return;const a=(i,n,s)=>{if(e.destroyed)return;const a=e.retina.pixelRatio,o={x:n.x*a,y:n.y*a},r=e.particles.quadTree.queryCircle(o,s*a);t(i,r)};let l=!1,d=!1;this._clickHandlers.set("click",t=>{if(e.destroyed)return;const i=t,s={x:i.offsetX,y:i.offsetY};a(t,s,n.FSi)}),this._clickHandlers.set(o,()=>{e.destroyed||(l=!0,d=!1)}),this._clickHandlers.set(c,()=>{e.destroyed||(d=!0)}),this._clickHandlers.set(r,t=>{if(!e.destroyed){if(l&&!d){const i=t,s=i.touches[i.touches.length-n.KZx];if(!s)return;const o=e.canvas.element,r=o?o.getBoundingClientRect():void 0,c={x:s.clientX-(r?r.left:n.TLE),y:s.clientY-(r?r.top:n.TLE)};a(t,c,Math.max(s.radiusX,s.radiusY))}l=!1,d=!1}}),this._clickHandlers.set(h,()=>{e.destroyed||(l=!1,d=!1)});for(const[t,e]of this._clickHandlers)s.addEventListener(t,e)}addListeners(){this._eventListeners.addListeners()}clearClickHandlers(){const{container:t,interactivityData:e}=this;if(!t.destroyed){for(const[t,i]of this._clickHandlers)e.element?.removeEventListener(t,i);this._clickHandlers.clear()}}externalInteract(t){for(const e of this._externalInteractors){const{interactivityData:i}=this;e.isEnabled(i)&&e.interact(i,t)}}handleClickMode(t){if(this.container.destroyed)return;const{interactivityData:e}=this;for(const i of this._externalInteractors)i.handleClickMode?.(t,e)}async init(){const t=await(this._engine.getInteractors?.(this.container,!0));if(t){this._interactors=t,this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case u.e.external:this._externalInteractors.push(t);break;case u.e.particles:this._particleInteractors.push(t)}t.init()}}}particlesInteract(t,e){const{interactivityData:i}=this;for(const i of this._externalInteractors)i.clear(t,e);for(const n of this._particleInteractors)n.isEnabled(t,i)&&n.interact(t,i,e)}removeListeners(){this._eventListeners.removeListeners()}reset(t){const{interactivityData:e}=this;for(const i of this._externalInteractors)i.isEnabled(e)&&i.reset(e,t);for(const i of this._particleInteractors)i.isEnabled(t,e)&&i.reset(e,t)}startObserving(){const{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(t.element)}stopObserving(){const{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(t.element)}}var p=i(4381);class v{constructor(t,e){this._container=e,this._engine=t,this.interactionManager=new _(t,e),this._container.addClickHandler=t=>{this.interactionManager.addClickHandler(t)}}addClickHandler(t){this.interactionManager.addClickHandler(t)}clearClickHandlers(){this.interactionManager.clearClickHandlers()}destroy(){this.clearClickHandlers(),this._engine.interactors?.delete(this._container)}particleCreated(t){const e=t,i=new p.k(this._engine,this._container);i.load(this._container.actualOptions.interactivity),i.load(e.options.interactivity),e.interactivity=i}particleReset(t){this.interactionManager.reset(t)}postParticleUpdate(t,e){this.interactionManager.particlesInteract(t,e)}postUpdate(t){this.interactionManager.externalInteract(t)}async preInit(){await this.interactionManager.init()}async redrawInit(){await this.interactionManager.init()}start(){return this.interactionManager.addListeners(),this.interactionManager.startObserving(),Promise.resolve()}stop(){this.interactionManager.removeListeners(),this.interactionManager.stopObserving()}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/926.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 926.min.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[926],{
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[926],{7926(e,t,a){a.d(t,{ShapeManager:()=>p});const r=new Map;class p{addShapeGenerator(e,t){this.getShapeGenerator(e)||r.set(e,t)}getShapeGenerator(e){return r.get(e)}getSupportedShapeGenerators(){return r.keys()}}}}]);
|
package/926.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Hyperspace Preset v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/933.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 933.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[933],{933(t,a,s){s.d(a,{EmittersPluginInstance:()=>e});var n=s(3511);class e{constructor(t,a){this.container=a,this._instancesManager=t,this._instancesManager.initContainer(a)}async init(){const t=this.container.actualOptions.emitters;if((0,n.cyL)(t))for(const a of t)await this._instancesManager.addEmitter(this.container,a);else await this._instancesManager.addEmitter(this.container,t)}pause(){for(const t of this._instancesManager.getArray(this.container))t.pause()}play(){for(const t of this._instancesManager.getArray(this.container))t.play()}resize(){for(const t of this._instancesManager.getArray(this.container))t.resize()}stop(){this._instancesManager.clear(this.container)}update(t){this._instancesManager.getArray(this.container).forEach(a=>{a.update(t)})}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/949.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 949.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[949],{949(s,r,e){e.d(r,{RgbColorManager:()=>c});var t,a=e(3511);!function(s){s[s.r=1]="r",s[s.g=2]="g",s[s.b=3]="b",s[s.a=5]="a"}(t||(t={}));const n=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class c{constructor(){this.key="rgb"}accepts(s){return s.startsWith("rgb")}handleColor(s){const r=s.value.rgb??s.value;if(Object.hasOwn(r,"r")&&Object.hasOwn(r,"g")&&Object.hasOwn(r,"b"))return r}handleRangeColor(s){const r=s.value.rgb??s.value;if(Object.hasOwn(r,"r")&&Object.hasOwn(r,"g")&&Object.hasOwn(r,"b"))return{r:(0,a.VGA)(r.r),g:(0,a.VGA)(r.g),b:(0,a.VGA)(r.b)}}parseString(s){if(!this.accepts(s))return;const r=n.exec(s);return r?{a:r.length>4?(0,a.M3Y)(r[t.a]):1,b:parseInt(r[t.b]??"0",10),g:parseInt(r[t.g]??"0",10),r:parseInt(r[t.r]??"0",10)}:void 0}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/990.min.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 990.min.js.LICENSE.txt */
|
|
2
|
+
(this.webpackChunk_tsparticles_preset_hyperspace=this.webpackChunk_tsparticles_preset_hyperspace||[]).push([[990],{1990(t,i,e){e.d(i,{Container:()=>M});var s=e(9395),n=e(595),a=e(8473),r=e(3269),o=e(4338);function h(t,i,e){const s=i[e];void 0!==s&&(t[e]=(t[e]??n.zs)*s)}function c(t,i,e=!1){if(!i)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const i=s.item(t);i&&n.add(i)}for(let t=0;t<i.length;t++){const e=i.item(t);e&&n.add(e)}for(const t of n){const n=i.getPropertyValue(t);n?s.setProperty(t,n,e?"important":""):s.removeProperty(t)}}class l{constructor(t,i){this.container=t,this._reusableColorStyles={},this._reusablePluginColors=[void 0,void 0],this._reusableTransform={},this._applyPostDrawUpdaters=t=>{for(const i of this._postDrawUpdaters)i.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,i,e,s,n,a)=>{for(const r of this._preDrawUpdaters){if(r.getColorStyles){const{fill:a,stroke:o}=r.getColorStyles(i,t,e,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){const t=r.getTransformValues(i);for(const i in t)h(a,t,i)}r.beforeDraw?.(i)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let i,e;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=(0,o.R5)(this._engine,s.particleFillColor(t))),!e&&s.particleStrokeColor&&(e=(0,o.R5)(this._engine,s.particleStrokeColor(t))),i&&e)break;return this._reusablePluginColors[0]=i,this._reusablePluginColors[1]=e,this._reusablePluginColors},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const e in i.style){if(!e||!Object.hasOwn(i.style,e))continue;const s=i.style[e];s&&t.style.setProperty(e,s,"important")}}},this._repairStyle=()=>{const t=this.element;if(!t)return;this._safeMutationObserver(t=>{t.disconnect()}),this._initStyle(),this.initBackground();const i=this._pointerEvents;t.style.pointerEvents=i,t.setAttribute("pointer-events",i),this._safeMutationObserver(i=>{t instanceof Node&&i.observe(t,{attributes:!0})})},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&c(t,i,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;t&&c(t,(0,r.hJ)(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=i,this._standardSize={height:0,width:0};const e=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*e,width:s.width*e},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}canvasClear(){this.container.actualOptions.clear&&this.draw(t=>{(0,a.IU)(t,this.size)})}clear(){let t=!1;for(const i of this.container.plugins)!t&&i.canvasClear&&(t=i.canvasClear());t||this.canvasClear()}clearDrawPlugin(t,i){this.draw(e=>{(0,a.l7)(e,t,i)})}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const i=this._context;if(i)return t(i)}drawParticle(t,i){if(t.spawning||t.destroyed)return;const e=t.getRadius();if(e<=n.w2)return;const s=t.getFillColor(),r=t.getStrokeColor()??s;let[h,c]=this._getPluginParticleColors(t);if(h??=s,c??=r,!h&&!c)return;const l=this.container,d=t.options.zIndex,p=n.RV-t.zIndexFactor,{opacity:u,strokeOpacity:f}=t.getOpacity(),_=this._reusableTransform,g=this._reusableColorStyles,y=h?(0,o.LC)(h,l.hdr,u):void 0,m=c?(0,o.LC)(c,l.hdr,f):y;_.a=_.b=_.c=_.d=void 0,g.fill=y,g.stroke=m,this.draw(s=>{this._applyPreDrawUpdaters(s,t,e,u,g,_),(0,a.p0)({container:l,context:s,particle:t,delta:i,colorStyles:g,radius:e*p**d.sizeRate,opacity:u,transform:_})}),this._applyPostDrawUpdaters(t)}drawParticlePlugin(t,i,e){this.draw(s=>{(0,a.Wb)(s,t,i,e)})}drawParticles(t){const{particles:i,plugins:e}=this.container;this.clear(),i.update(t);for(const i of e.values())this.drawPlugin(i,t);this.draw(()=>{i.drawParticles(t)});for(const i of e.values())this.clearDrawPlugin(i,t)}drawPlugin(t,i){this.draw(e=>{(0,a.e_)(e,t,i)})}init(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=(0,r.tG)(t=>{for(const i of t)"attributes"===i.type&&"style"===i.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const{container:t}=this,i=t.actualOptions.background,e=this.element;if(!e)return;const s=e.style,n=(0,o.BN)(this._engine,i.color);s.backgroundColor=n?(0,o.xx)(n,t.hdr,i.opacity):"",s.backgroundImage=i.image||"",s.backgroundPosition=i.position||"",s.backgroundRepeat=i.repeat||"",s.backgroundSize=i.size||""}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove();const i=this.container;this._generated=n.eb in t.dataset?"true"===t.dataset[n.eb]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,r.td)(this.element.style);const e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;const s=this.container.retina.pixelRatio,a=this.size;t.height=a.height=e.height*s,t.width=a.width=e.width*s;const o=(0,r.lV)("(color-gamut: p3)");this._context=this.element.getContext("2d",{alpha:!0,colorSpace:o?.matches&&i.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this._safeMutationObserver(t=>{t.disconnect()}),i.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=!1;for(const i of this.container.plugins){if(t)break;t=i.canvasPaint?.()??!1}t||this.paintBase()}paintBase(t){this.draw(i=>{(0,a.Sn)(i,this.size,t)})}paintImage(t,i){this.draw(e=>{(0,a.Md)(e,this.size,t,i)})}resize(){if(!this.element)return!1;const t=this.container,i=t.canvas._standardSize,e={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:e.width*s,height:e.height*s};if(e.height===i.height&&e.width===i.width&&n.height===this.element.height&&n.width===this.element.width)return!1;const a={...i};i.height=e.height,i.width=e.width;const r=this.size;return this.element.width=r.width=n.width,this.element.height=r.height=n.height,this.container.started&&t.particles.setResizeFactor({width:i.width/a.width,height:i.height/a.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=void 0,this.draw(t=>{(0,a.IU)(t,this.size)})}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,i=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),i&&await t.refresh()}}class d{constructor(t){this.container=t,this._handleVisibilityChange=()=>{const t=this.container;t.actualOptions.pauseOnBlur&&((0,r.T5)().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await t.windowResize()};this._resizeTimeout=setTimeout(()=>{t()},this.container.actualOptions.resize.delay*n.Xu)},this._manageListeners=t=>{const i=this._handlers;this._manageResize(t),(0,r.Kp)(document,n.nK,i.visibilityChange,t,!1)},this._manageResize=t=>{const i=this._handlers,e=this.container;if(!e.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void(0,r.Kp)(globalThis,n.NF,i.resize,t);const s=e.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._handlers={visibilityChange:()=>{this._handleVisibilityChange()},resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var p=e(5805),u=e(4045),f=e(1512),_=e(5450),g=e(8096),y=e(6827),m=e(3019),v=e(9029);function w(t){if(!(0,r.hn)(t.outMode,t.checkModes))return;const i=t.radius*n.gd;t.coord>t.maxCoord-i?t.setCb(-t.radius):t.coord<i&&t.setCb(t.radius)}class b{constructor(t,i){this.container=i,this._cachedOpacityData={opacity:n.hv,strokeOpacity:n.hv},this._cachedPosition=_.p.origin,this._cachedRotateData={sin:0,cos:0},this._cachedTransform={a:1,b:0,c:0,d:1},this._calcPosition=(t,i)=>{let e=n.rq,a=t?_.p.create(t.x,t.y,i):void 0;const r=this.container,o=Array.from(r.plugins),h=this.options.move.outModes,c=this.getRadius(),l=r.canvas.size,d=new AbortController,{signal:p}=d;for(;!p.aborted;){for(const t of o){const e=t.particlePosition?.(a,this);if(e)return _.p.create(e.x,e.y,i)}const t=(0,s.Nx)({size:l,position:a}),r=_.p.create(t.x,t.y,i);this._fixHorizontal(r,c,h.left??h.default),this._fixHorizontal(r,c,h.right??h.default),this._fixVertical(r,c,h.top??h.default),this._fixVertical(r,c,h.bottom??h.default);let d=!0;for(const t of o)if(d=t.checkParticlePosition?.(this,r,e)??!0,!d)break;if(d)return r;e+=n.Eo,a=void 0}return a},this._calculateVelocity=()=>{const t=(0,s.$m)(this.direction).copy(),i=this.options.move;if(i.direction===g.F.inside||i.direction===g.F.outside)return t;const e=(0,s.pu)((0,s.VG)(i.angle.value)),a=(0,s.pu)((0,s.VG)(i.angle.offset)),r={left:a-e*n.MX,right:a+e*n.MX};return i.straight||(t.angle+=(0,s.vE)((0,s.DT)(r.left,r.right))),i.random&&"number"==typeof i.speed&&(t.length*=(0,s.G0)()),t},this._fixHorizontal=(t,i,e)=>{w({outMode:e,checkModes:[y.Y.bounce],coord:t.x,maxCoord:this.container.canvas.size.width,setCb:i=>t.x+=i,radius:i})},this._fixVertical=(t,i,e)=>{w({outMode:e,checkModes:[y.Y.bounce],coord:t.y,maxCoord:this.container.canvas.size.height,setCb:i=>t.y+=i,radius:i})},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const i=this.roll.horizontal&&this.roll.vertical?n.gd*n.l:n.l,e=this.roll.horizontal?Math.PI*n.MX:n.dv;return Math.floor((this.roll.angle+e)/(Math.PI/i))%n.gd?this.backColor?this.backColor:this.roll.alter?(0,a.yx)(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const i=this.container,e=(0,s.VG)(this.options.zIndex.value),a=this._calcPosition(t,(0,s.qE)(e,n.X_,i.zLayers));if(!a)throw new Error("a valid position cannot be found for particle");this.position=a,this.initialPosition=this.position.copy();const o=i.canvas.size;switch(this.moveCenter={...(0,r.E9)(this.options.move.center,o),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=(0,s.JY)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case g.F.inside:this.outType=m.x.inside;break;case g.F.outside:this.outType=m.x.outside}this.offset=_.M.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const i=this.container,e=this.pathGenerator,s=this.shape?i.shapeDrawers.get(this.shape):void 0;s?.particleDestroy?.(this);for(const e of i.plugins)e.particleDestroyed?.(this,t);for(const e of i.particles.updaters)e.particleDestroyed?.(this,t);e?.reset(this),this._engine.dispatchEvent(p.B.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const i=this.container,e=i.canvas;for(const s of i.plugins)e.drawParticlePlugin(s,this,t);e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:n.tA)}getFillColor(){return this._getRollColor(this.bubble.color??(0,o.O_)(this.color))}getMass(){return this.getRadius()**n.dm*Math.PI*n.MX}getOpacity(){const t=this.options.zIndex,i=(n.RV-this.zIndexFactor)**t.opacityRate,e=this.bubble.opacity??(0,s.VG)(this.opacity?.value??n.hv),a=this.strokeOpacity??e;return this._cachedOpacityData.opacity=e*i,this._cachedOpacityData.strokeOpacity=a*i,this._cachedOpacityData}getPosition(){return this._cachedPosition.x=this.position.x+this.offset.x,this._cachedPosition.y=this.position.y+this.offset.y,this._cachedPosition.z=this.position.z,this._cachedPosition}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this._cachedRotateData.sin=Math.sin(t),this._cachedRotateData.cos=Math.cos(t),this._cachedRotateData}getStrokeColor(){return this._getRollColor(this.bubble.color??(0,o.O_)(this.strokeColor))}getTransformData(t){const i=this.getRotateData(),e=this.isRotating;return this._cachedTransform.a=i.cos*(t.a??n.Ug.a),this._cachedTransform.b=e?i.sin*(t.b??n.D_):t.b??n.Ug.b,this._cachedTransform.c=e?-i.sin*(t.c??n.D_):t.c??n.Ug.c,this._cachedTransform.d=i.cos*(t.d??n.Ug.d),this._cachedTransform}init(t,i,e,a){const o=this.container;this.id=t,this.group=a,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=m.x.normal,this.ignoresResizeRatio=!0;const h=o.retina.pixelRatio,c=o.actualOptions,l=(0,v.y)(this._engine,o,c.particles),d=l.reduceDuplicates,p=l.effect.type,u=l.shape.type;this.effect=(0,r.TA)(p,this.id,d),this.shape=(0,r.TA)(u,this.id,d);const f=l.effect,_=l.shape;if(e){if(e.effect?.type){const t=e.effect.type,i=(0,r.TA)(t,this.id,d);i&&(this.effect=i,f.load(e.effect))}if(e.shape?.type){const t=e.shape.type,i=(0,r.TA)(t,this.id,d);i&&(this.shape=i,_.load(e.shape))}}if(this.effect===n.mR){const t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor((0,s.G0)()*t.length)]}if(this.shape===n.mR){const t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor((0,s.G0)()*t.length)]}this.effectData=this.effect?function(t,i,e,s){const n=i.options[t];return(0,r.zw)({close:i.close,fill:i.fill},(0,r.TA)(n,e,s))}(this.effect,f,this.id,d):void 0,this.shapeData=this.shape?function(t,i,e,s){const n=i.options[t];return(0,r.zw)({close:i.close,fill:i.fill},(0,r.TA)(n,e,s))}(this.shape,_,this.id,d):void 0,l.load(e);const g=this.effectData;g&&l.load(g.particles);const y=this.shapeData;y&&l.load(y.particles),this.effectFill=g?.fill??l.effect.fill,this.effectClose=g?.close??l.effect.close,this.shapeFill=y?.fill??l.shape.fill,this.shapeClose=y?.close??l.shape.close,this.options=l;const w=this.options.move.path;this.pathDelay=(0,s.VG)(w.delay.value)*n.Xu,w.generator&&(this.pathGenerator=this._engine.getPathGenerator(w.generator),this.pathGenerator&&o.addPath(w.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=(0,r.Xs)(this.options.size,h),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(i),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=n.WH-(0,s.VG)(this.options.move.decay);const b=o.particles;let z,P;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24,this.effect&&(z=o.effectDrawers.get(this.effect),z||(z=this._engine.getEffectDrawer(this.effect),z&&o.effectDrawers.set(this.effect,z))),z?.loadEffect&&z.loadEffect(this),this.shape&&(P=o.shapeDrawers.get(this.shape),P||(P=this._engine.getShapeDrawer(this.shape),P&&o.shapeDrawers.set(this.shape,P))),P?.loadShape&&P.loadShape(this);const D=P?.getSidesCount;D&&(this.sides=D(this)),this.spawning=!1;for(const t of b.updaters)t.init(this);for(const t of b.movers)t.init(this);z?.particleInit?.(o,this),P?.particleInit?.(o,this);for(const t of o.plugins)t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),i=this.container.canvas.size,e=this.position;return e.x>=-t&&e.y>=-t&&e.y<=i.height+t&&e.x<=i.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class z{constructor(t,i){this.position=t,this.particle=i}}var P=e(7962);class D{constructor(t,i){this.rectangle=t,this.capacity=i,this._subdivide=()=>{const{x:t,y:i}=this.rectangle.position,{width:e,height:s}=this.rectangle.size,{capacity:a}=this;for(let r=0;r<n.Pg;r++){const o=r%n.gd;this._subs.push(new D(new P.M_(t+e*n.MX*o,i+s*n.MX*(Math.round(r*n.MX)-o),e*n.MX,s*n.MX),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(i=>i.insert(t))))}query(t,i){const e=[];if(!t.intersects(this.rectangle))return[];for(const n of this._points)!t.contains(n.position)&&(0,s.Yf)(t.position,n.position)>n.particle.getRadius()&&(!i||i(n.particle))||e.push(n.particle);if(this._divided)for(const s of this._subs)e.push(...s.query(t,i));return e}queryCircle(t,i,e){return this.query(new P.jl(t.x,t.y,i),e)}queryRectangle(t,i,e){return this.query(new P.M_(t.x,t.y,i.width,i.height),e)}}var x=e(9385);const O=t=>{const{height:i,width:e}=t;return new P.M_(n.un*e,n.un*i,n.Rh*e,n.Rh*i)};class S{constructor(t,i){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,i,e,s)=>{const a=t.number;if(!a.density.enable)return void(void 0===e?this._limit=a.limit.value:(s?.number.limit.value??a.limit.value)&&this._groupLimits.set(e,s?.number.limit.value??a.limit.value));const r=this._initDensityFactor(a.density),o=a.value,h=a.limit.value>n.ou?a.limit.value:o,c=Math.min(o,h)*r+i,l=Math.min(this.count,this.filter(t=>t.group===e).length);void 0===e?this._limit=a.limit.value*r:this._groupLimits.set(e,a.limit.value*r),l<c?this.push(Math.abs(c-l),void 0,t,e):l>c&&this.removeQuantity(l-c,e)},this._initDensityFactor=t=>{const i=this._container;if(!i.canvas.element||!t.enable)return n.lA;const e=i.canvas.element,s=i.retina.pixelRatio;return e.width*e.height/(t.height*t.width*s**n.dm)},this._pushParticle=(t,i,e,s)=>{try{const n=this._pool.pop()??new b(this._engine,this._container);n.init(this._nextId,t,i,e);let a=!0;if(s&&(a=s(n)),!a)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(p.B.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){(0,x.t)().warning(`error adding particle: ${t}`)}},this._removeParticle=(t,i,e)=>{const s=this._array[t];if(!s)return!1;if(s.group!==i)return!1;const a=this._zArray.indexOf(s);return this._array.splice(t,n.LD),this._zArray.splice(a,n.LD),s.destroy(e),this._engine.dispatchEvent(p.B.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._pluginsInitialized=!1;const e=i.canvas.size;this.quadTree=new D(O(e),n.Kw),this.movers=[],this.updaters=[]}get count(){return this._array.length}addParticle(t,i,e,s){const a=this._container.actualOptions.particles.number.limit.mode,r=void 0===e?this._limit:this._groupLimits.get(e)??this._limit,o=this.count;if(r>n.ou)switch(a){case f.d.delete:{const t=o+n.nq-r;t>n.wM&&this.removeQuantity(t);break}case f.d.wait:if(o>=r)return}return this._pushParticle(t,i,e,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}drawParticles(t){for(const i of this._zArray)i.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}async init(){const t=this._container,i=t.actualOptions;this._lastZIndex=0,this._needsSort=!1;for(const i of t.plugins)i.redrawInit&&await i.redrawInit();await this.initPlugins();let e=!1;for(const i of t.plugins)if(e=i.particlesInitialization?.()??e,e)break;if(!e){const t=i.particles,e=t.groups;for(const i in e){const s=e[i];if(s)for(let e=this.count,n=0;n<s.number.value&&e<t.number.value;e++,n++)this.addParticle(void 0,s,i)}for(let i=this.count;i<t.number.value;i++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0);for(const i of t.pathGenerators.values())i.init(t)}push(t,i,e,s){for(let n=0;n<t;n++)this.addParticle(i,e,s)}async redraw(){this.clear(),await this.init(),this._container.canvas.drawParticles({value:0,factor:0})}remove(t,i,e){this.removeAt(this._array.indexOf(t),void 0,i,e)}removeAt(t,i=n.xd,e,s){if(t<n.z9||t>this.count)return;let a=0;for(let n=t;a<i&&n<this.count;n++)this._removeParticle(n,e,s)&&(n--,a++)}removeQuantity(t,i){this.removeAt(n.z9,t,i)}setDensity(){const t=this._container.actualOptions,i=t.particles.groups;let e=0;for(const t of this._container.plugins)t.particlesDensityCount&&(e+=t.particlesDensityCount());for(const t in i){const s=i[t];if(!s)continue;const n=(0,v.y)(this._engine,this._container,s);this._applyDensity(n,e,t)}this._applyDensity(t.particles,e)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const i=this._container,e=new Set;this.quadTree=new D(O(i.canvas.size),n.Kw);for(const t of i.pathGenerators.values())t.update();for(const e of i.plugins)e.update?.(t);const s=this._resizeFactor;for(const i of this._array){s&&!i.ignoresResizeRatio&&(i.position.x*=s.width,i.position.y*=s.height,i.initialPosition.x*=s.width,i.initialPosition.y*=s.height),i.ignoresResizeRatio=!1;for(const t of this._container.plugins)t.particleReset&&t.particleReset(i);for(const e of this._container.plugins){if(i.destroyed)break;e.particleUpdate?.(i,t)}for(const e of this.movers)e.isEnabled(i)&&e.move(i,t);i.destroyed?e.add(i):this.quadTree.insert(new z(i.getPosition(),i))}if(e.size){const t=t=>!e.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of e)this._engine.dispatchEvent(p.B.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...e)}for(const e of i.plugins)e.postUpdate&&e.postUpdate(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);if(!e.destroyed&&!e.spawning)for(const s of i.plugins)s.postParticleUpdate&&s.postParticleUpdate(e,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort((t,i)=>i.position.z-t.position.z||t.id-i.id);const i=t[t.length-n.K3];if(!i)return;this._lastZIndex=i.position.z,this._needsSort=!1}}}class R{constructor(t){this.container=t,this.pixelRatio=n.$x,this.reduceFactor=n.Zp}init(){const t=this.container,i=t.actualOptions;this.pixelRatio=i.detectRetina?devicePixelRatio:n.$x,this.reduceFactor=n.Zp;const e=this.pixelRatio,a=t.canvas;if(a.element){const t=a.element;a.size.width=t.offsetWidth*e,a.size.height=t.offsetHeight*e}const r=i.particles,o=r.move;this.maxSpeed=(0,s.VG)(o.gravity.maxSpeed)*e,this.sizeAnimationSpeed=(0,s.VG)(r.size.animation.speed)*e}initParticle(t){const i=t.options,e=this.pixelRatio,n=i.move,a=n.distance,r=t.retina;r.moveDrift=(0,s.VG)(n.drift)*e,r.moveSpeed=(0,s.VG)(n.speed)*e,r.sizeAnimationSpeed=(0,s.VG)(i.size.animation.speed)*e;const o=r.maxDistance;o.horizontal=void 0!==a.horizontal?a.horizontal*e:void 0,o.vertical=void 0!==a.vertical?a.vertical*e:void 0,r.maxSpeed=(0,s.VG)(n.gravity.maxSpeed)*e}}function C(t){return!t.destroyed}function T(t,i,...e){const s=new u.J(t,i);return(0,v.Z)(s,...e),s}class M{constructor(t,i,e){this._delta={value:0,factor:0},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+n.Xu/this.fpsLimit)return void this.draw(!1);if(this._lastFrameTime??=t,function(t,i,e=n.z$,s=!1){t.value=i,t.factor=s?n.z$/e:n.z$*i/n.Xu}(this._delta,t-this._lastFrameTime,this.fpsLimit,this._smooth),this.addLifeTime(this._delta.value),this._lastFrameTime=t,this._delta.value>n.Xu)return void this.draw(!1);if(this.canvas.drawParticles(this._delta),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){(0,x.t)().error("error in animation loop",t)}},this._engine=t,this.id=Symbol(i),this.fpsLimit=120,this.hdr=!1,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=e,this._initialSourceOptions=e,this.retina=new R(this),this.canvas=new l(this,this._engine),this.particles=new S(this._engine,this),this.pathGenerators=new Map,this.plugins=[],this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=T(this._engine,this),this.actualOptions=T(this._engine,this),this._eventListeners=new d(this),this._engine.dispatchEvent(p.B.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&C(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addLifeTime(t){this._lifeTime+=t}addPath(t,i,e=!1){return!(!C(this)||!e&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(t=!0){if(C(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const t of this.effectDrawers.values())t.destroy?.(this);this.effectDrawers.clear();for(const t of this.shapeDrawers.values())t.destroy?.(this);this.shapeDrawers.clear();for(const t of this.plugins)t.destroy?.();if(this.plugins.length=0,this._engine.clearPlugins(this),this.destroyed=!0,t){const t=this._engine.items,i=t.indexOf(this);i>=n.vF&&t.splice(i,n.JC)}this._engine.dispatchEvent(p.B.containerDestroyed,{container:this})}}draw(t){if(!C(this))return;let i=t;const e=t=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(t)};this._drawAnimationFrame=(0,s.i0)(t=>{e(t)})}async export(t,i={}){for(const e of this.plugins){if(!e.export)continue;const s=await e.export(t,i);if(s.supported)return s.blob}(0,x.t)().error(`Export plugin with type ${t} not found`)}async init(){if(!C(this))return;const t=this._engine.getSupportedEffects();for(const i of t){const t=this._engine.getEffectDrawer(i);t&&this.effectDrawers.set(i,t)}const i=this._engine.getSupportedShapes();for(const t of i){const i=this._engine.getShapeDrawer(t);i&&this.shapeDrawers.set(t,i)}const e=new Map;for(const t of this._engine.plugins){const i=await t.getPlugin(this);i.preInit&&await i.preInit(),e.set(t,i)}await this.particles.initPlugins(),this._options=T(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=T(this._engine,this,this._options);for(const[t,i]of e)t.needsPlugin(this.actualOptions)&&this.plugins.push(i);this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:a,duration:r,fpsLimit:o,hdr:h,smooth:c,zLayers:l}=this.actualOptions;this.hdr=h,this.zLayers=l,this._duration=(0,s.VG)(r)*n.Xu,this._delay=(0,s.VG)(a)*n.Xu,this._lifeTime=0,this.fpsLimit=o>n.DN?o:n.i8,this._smooth=c;for(const t of this.plugins)await(t.init?.());for(const t of this.effectDrawers.values())await(t.init?.(this));for(const t of this.shapeDrawers.values())await(t.init?.(this));this._engine.dispatchEvent(p.B.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this._engine.dispatchEvent(p.B.particlesSetup,{container:this})}pause(){if(C(this)&&(void 0!==this._drawAnimationFrame&&((0,s.px)(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(p.B.containerPaused,{container:this})}}play(t){if(!C(this))return;const i=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),i)for(const t of this.plugins)t.play&&t.play();this._engine.dispatchEvent(p.B.containerPlay,{container:this}),this.draw(i??!1)}else this._firstStart=!1}async refresh(){if(C(this))return this.stop(),this.start()}async reset(t){if(C(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=T(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=T(this._engine,this,this._options),this.refresh()}async start(){C(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const i=async()=>{this._eventListeners.addListeners();for(const t of this.plugins)await(t.start?.());this._engine.dispatchEvent(p.B.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>{i()},this._delay)}))}stop(){if(C(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.plugins.length=0,this._sourceOptions=this._options,this._engine.dispatchEvent(p.B.containerStopped,{container:this})}}updateActualOptions(){let t=!1;for(const i of this.plugins)i.updateActualOptions&&(t=i.updateActualOptions()||t);return t}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! tsParticles Hyperspace Preset v4.0.0-alpha.2 by Matteo Bruni */
|
package/browser/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
loadBasic(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const presetName = "hyperspace";
|
|
2
|
+
export async function loadHyperspacePreset(engine) {
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
|
+
const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadEmittersShapeSquare } = await import("@tsparticles/plugin-emitters-shape-square"), { loadTrailPlugin } = await import("@tsparticles/plugin-trail"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { options } = await import("./options.js");
|
|
5
|
+
await loadBasic(e);
|
|
6
|
+
await loadEmittersPlugin(e);
|
|
7
|
+
await loadEmittersShapeSquare(e);
|
|
8
|
+
await loadTrailPlugin(e);
|
|
9
|
+
await loadLifeUpdater(e);
|
|
9
10
|
e.addPreset(presetName, options);
|
|
10
11
|
});
|
|
11
12
|
}
|
package/browser/options.js
CHANGED
package/cjs/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
loadBasic(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const presetName = "hyperspace";
|
|
2
|
+
export async function loadHyperspacePreset(engine) {
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
|
+
const { loadBasic } = await import("@tsparticles/basic"), { loadEmittersPlugin } = await import("@tsparticles/plugin-emitters"), { loadEmittersShapeSquare } = await import("@tsparticles/plugin-emitters-shape-square"), { loadTrailPlugin } = await import("@tsparticles/plugin-trail"), { loadLifeUpdater } = await import("@tsparticles/updater-life"), { options } = await import("./options.js");
|
|
5
|
+
await loadBasic(e);
|
|
6
|
+
await loadEmittersPlugin(e);
|
|
7
|
+
await loadEmittersShapeSquare(e);
|
|
8
|
+
await loadTrailPlugin(e);
|
|
9
|
+
await loadLifeUpdater(e);
|
|
9
10
|
e.addPreset(presetName, options);
|
|
10
11
|
});
|
|
11
12
|
}
|