@tsparticles/preset-fireworks 4.0.0-alpha.4 → 4.0.0-alpha.5
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/126.min.js +1 -0
- package/131.min.js +1 -0
- package/182.min.js +1 -0
- package/{252.min.js → 204.min.js} +1 -1
- package/22.min.js +1 -0
- package/231.min.js +1 -0
- package/270.min.js +1 -0
- package/278.min.js +1 -0
- package/28.min.js +1 -0
- package/3.min.js +1 -0
- package/302.min.js +1 -0
- package/316.min.js +1 -0
- package/{341.min.js → 337.min.js} +1 -1
- package/356.min.js +1 -0
- package/382.min.js +1 -0
- package/{634.min.js → 390.min.js} +1 -1
- package/406.min.js +1 -0
- package/434.min.js +1 -0
- package/47.min.js +1 -0
- package/488.min.js +1 -1
- package/508.min.js +1 -0
- package/{551.min.js → 523.min.js} +1 -1
- package/530.min.js +1 -0
- package/536.min.js +1 -0
- package/{163.min.js → 543.min.js} +2 -2
- package/558.min.js +1 -0
- package/596.min.js +1 -0
- package/608.min.js +1 -0
- package/646.min.js +1 -1
- package/652.min.js +1 -0
- package/691.min.js +1 -0
- package/730.min.js +1 -0
- package/731.min.js +1 -0
- package/{837.min.js → 754.min.js} +1 -1
- package/774.min.js +1 -0
- package/78.min.js +1 -0
- package/784.min.js +1 -0
- package/{939.min.js → 799.min.js} +1 -1
- package/819.min.js +1 -0
- package/830.min.js +1 -0
- package/834.min.js +1 -0
- package/844.min.js +1 -0
- package/85.min.js +1 -0
- package/922.min.js +1 -0
- package/930.min.js +1 -0
- package/955.min.js +1 -0
- package/964.min.js +1 -0
- package/986.min.js +1 -0
- package/991.min.js +1 -0
- package/README.md +17 -2
- package/browser/index.js +30 -15
- package/browser/options.js +11 -5
- package/cjs/index.js +30 -15
- package/cjs/options.js +11 -5
- package/dist_browser_options_js.js +2 -2
- package/esm/index.js +30 -15
- package/esm/options.js +11 -5
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_1_node_modules_tsparticles_basic_browser_index_js.js +30 -0
- package/{node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_14_node_modules_tsparticles_effect-tra-79faa6.js → node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_1_node_modules_tsparticles_effect-trail-8ed413.js} +7 -7
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-beta_1_node_modules_tsparticles_effect-trail-aabdff.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_14_node_modules_tspart-1854a5.js → node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_1_node_modules_tspartic-99f284.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-beta_1_node_modules_tspartic-a8bf09.js +70 -0
- package/{node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--0e469e.js → node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-486a11.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-815c1c.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-9a4af1.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-c7125a.js +100 -0
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_plugin-em-e8ed4a.js +50 -0
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-5a675f.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-8932d7.js} +7 -7
- package/{node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-bd3833.js → node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-a0aea9.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1179c3.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-651bc0.js → node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_1_node_modules_tsparticles_plugin-h-1737bf.js} +7 -7
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-908f96.js +120 -0
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tsparticles_plug-d6e6b1.js +70 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-aa7108.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugin-move_b-c23e73.js +30 -0
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-0f881a.js +30 -0
- package/{node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-2d40c5.js → node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_1_node_modules_tsparticles_plugin-r-ae3d6b.js} +7 -7
- package/{node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_14_node_modules_tsparticles_plugin-so-dc7531.js → node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_1_node_modules_tsparticles_plugin-soun-56e0fe.js} +7 -7
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_14_node_modules_tsparticles_shape-circ-21bd73.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-07826a.js} +12 -12
- package/{node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_14_node_modules_tsparticles_shape-circ-365204.js → node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_1_node_modules_tsparticles_shape-circle-c2187f.js} +7 -7
- package/{node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-0258ba.js → node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_1_node_modules_tsparticles_shape-line_bro-00ff14.js} +5 -5
- package/{node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_14_node_modules_tsparticles_shape-line_b-275ffe.js → node_modules_pnpm_tsparticles_shape-line_4_0_0-beta_1_node_modules_tsparticles_shape-line_bro-ee8e87.js} +12 -12
- package/{node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_14_node_modules_tsparticles_updater-5833c9.js → node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_1_node_modules_tsparticles_updater-d-1451bc.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-75868d.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-fill-color_4_0_0-beta_1_node_modules_tsparticles_update-7cca03.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_1_node_modules_tsparticles_updater-life-0d5869.js +70 -0
- package/{node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_14_node_modules_tsparticles_updater-li-b2cf28.js → node_modules_pnpm_tsparticles_updater-life_4_0_0-beta_1_node_modules_tsparticles_updater-life-3af196.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-138fb5.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_14_node_modules_tsparticles_updater-349756.js → node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_1_node_modules_tsparticles_updater-o-8a311f.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_14_node_modules_tsparticles_updat-54df0b.js → node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles_updater-265a6a.js} +7 -7
- package/{node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_14_node_modules_tsparticles_updater--2bc889.js → node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_1_node_modules_tsparticles_updater-ro-82c0df.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-beta_1_node_modules_tsparticles_updater-ro-f03001.js +50 -0
- package/{node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_14_node_modules_tsparticles_updater-si-9bb044.js → node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-124f3f.js} +7 -7
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_1_node_modules_tsparticles_updater-size-cbf46f.js +30 -0
- package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-beta_1_node_modules_tsparticles_upda-01fd08.js +30 -0
- package/{node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_14_node_modules_tsparticles_up-06cc80.js → node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-beta_1_node_modules_tsparticles_upda-fa7131.js} +7 -7
- package/package.json +13 -15
- package/report.html +84 -29
- package/tsparticles.preset.fireworks.bundle.js +325 -325
- package/tsparticles.preset.fireworks.bundle.min.js +2 -2
- package/tsparticles.preset.fireworks.js +26 -46
- package/tsparticles.preset.fireworks.min.js +2 -2
- package/umd/index.js +30 -15
- package/umd/options.js +11 -5
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_1_node_modules_tsparticles_engine_bro-0bb20b.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-168eb1.js +30 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_1_node_modules_tsparticles_p-c5a6f7.js +210 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-beta_1_node_modules_tspartic-d557a0.js +50 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_1_node_modules_tsparticles_plugi-2dea06.js +40 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_1_node_modules_tsparticles_plu-b8727b.js +40 -0
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-beta_1_node_modules_tsparticles_plu-dcfdc3.js +130 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-destroy_4_0_0-beta_1_node_modules_tsparticles_u-b77b5b.js +100 -0
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_1_node_modules_tsparticles-a5ec2f.js +80 -0
- package/110.min.js +0 -1
- package/115.min.js +0 -1
- package/120.min.js +0 -1
- package/15.min.js +0 -1
- package/154.min.js +0 -1
- package/162.min.js +0 -1
- package/177.min.js +0 -1
- package/218.min.js +0 -1
- package/219.min.js +0 -1
- package/227.min.js +0 -1
- package/239.min.js +0 -1
- package/240.min.js +0 -1
- package/258.min.js +0 -1
- package/26.min.js +0 -1
- package/298.min.js +0 -1
- package/323.min.js +0 -1
- package/355.min.js +0 -1
- package/359.min.js +0 -1
- package/386.min.js +0 -1
- package/388.min.js +0 -1
- package/402.min.js +0 -1
- package/418.min.js +0 -1
- package/486.min.js +0 -1
- package/491.min.js +0 -1
- package/542.min.js +0 -1
- package/571.min.js +0 -1
- package/584.min.js +0 -1
- package/654.min.js +0 -1
- package/662.min.js +0 -1
- package/666.min.js +0 -1
- package/668.min.js +0 -1
- package/68.min.js +0 -1
- package/714.min.js +0 -1
- package/72.min.js +0 -1
- package/722.min.js +0 -1
- package/835.min.js +0 -1
- package/876.min.js +0 -1
- package/891.min.js +0 -1
- package/96.min.js +0 -1
- package/node_modules_pnpm_tsparticles_basic_4_0_0-alpha_14_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_14_node_modules_tsparticles_effect-tra-e1d476.js +0 -30
- package/node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-5558e3.js +0 -40
- package/node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_14_node_modules_tspart-acf999.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--01c506.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--a27da9.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--da9aa3.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--e12e29.js +0 -90
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-9b85f2.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-07239f.js +0 -120
- package/node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-20b658.js +0 -70
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-9d691b.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-line_4_0_0-alpha_14_node_modules_tsparticles_shape-line_b-33a49d.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_14_node_modules_tsparticles_updater-c-a242d8.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_14_node_modules_tsparticles_updater-c-ed63c1.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-destroy_4_0_0-alpha_14_node_modules_tsparticles_updater-2645de.js +0 -100
- package/node_modules_pnpm_tsparticles_updater-life_4_0_0-alpha_14_node_modules_tsparticles_updater-li-bdb0d6.js +0 -70
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_14_node_modules_tsparticles_updater-2e428a.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-rotate_4_0_0-alpha_14_node_modules_tsparticles_updater--9ebf81.js +0 -50
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_14_node_modules_tsparticles_updater-si-1784d7.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-stroke-color_4_0_0-alpha_14_node_modules_tsparticles_up-58f25b.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-alpha_14_node_modules_tsparticles_engine_b-f5db4e.js +0 -90
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-2b5629.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-88ac5e.js +0 -200
- package/vendors-node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tspart-261f0c.js +0 -50
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_14_node_modules_tsparticles_p-50eeb2.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_plugin-sounds_4_0_0-alpha_14_node_modules_tsparticles_p-a4b657.js +0 -130
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_14_node_modules_tsparticl-56603a.js +0 -80
package/177.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[177],{2177(e,t,a){a.d(t,{initOptions:()=>n});var i=a(5643);function n(){let e=(e,t,a)=>{let n=e.max>a?e.max-a:0,r=(0,i.DT4)(e);n&&(r=(0,i.DT4)(e.min-n,a));let F=e.min<t?e.min:0;return F&&(r=(0,i.DT4)(0,e.max+F)),r},t=["#FF0000","#FF2A00","#FF5500","#FF8000","#FFAA00","#FFD400","#FFFF00","#D4FF00","#AAFF00","#80FF00","#55FF00","#2AFF00","#00FF00","#00FF2A","#00FF55","#00FF80","#00FFAA","#00FFD4","#00FFFF","#00D4FF","#00AAFF","#0080FF","#0055FF","#002AFF","#0000FF","#2A00FF","#5500FF","#8000FF","#AA00FF","#D400FF","#FF00FF","#FF00D4","#FF00AA","#FF0080","#FF0055","#FF002A"].map(t=>{let a=(e=>{let t=e,a=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i;a.test(t)&&(t=t.replace(a,(e,t,a,i,n)=>t+t+a+a+i+i+(n?n+n:"")));let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(!n)return;n.shift();let r={a:n[3],b:n[2],g:n[1],r:n[0]};return{r:r.r?Number.parseInt(r.r,16):i.dvp,g:r.g?Number.parseInt(r.g,16):i.dvp,b:r.b?Number.parseInt(r.b,16):i.dvp,a:r.a?Number.parseInt(r.a,16):i.aZx}})(t);if(!a)return;let n=(0,i.K6u)(a),r=e({min:n.s-30,max:n.s+30},0,100),F=e({min:n.l-30,max:n.l+30},0,100);return{color:{value:{h:n.h,s:r,l:F}},stroke:{width:0},number:{value:0},opacity:{value:{min:.1,max:1},animation:{enable:!0,speed:.7,sync:!1,startValue:i.SKz.max,destroy:i.VKE.min}},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:10}}}},size:{value:{min:1,max:2},animation:{enable:!0,speed:5,count:1,sync:!1,startValue:i.SKz.min,destroy:i.VKE.none}},life:{count:1,duration:{value:{min:1,max:2}}},move:{decay:{min:.075,max:.1},enable:!0,gravity:{enable:!0,inverse:!1,acceleration:5},speed:{min:5,max:15},direction:"none",outModes:i.Yzx.destroy}}}).filter(e=>void 0!==e);return{detectRetina:!0,background:{color:"#000"},fpsLimit:120,emitters:{direction:i.FWc.top,rate:{delay:.3,quantity:1},size:{width:100,height:0},position:{y:100,x:50}},particles:{number:{value:0},destroy:{mode:"split",bounds:{top:{min:15,max:35}},split:{sizeOffset:!1,count:1,factor:{value:.333333},rate:{value:{min:75,max:150}},particles:t}},life:{count:1},shape:{type:"circle"},effect:{type:"trail",options:{trail:{length:{min:5,max:15},minWidth:1,maxWidth:1}}},size:{value:1},stroke:{color:{value:"#ffffff"},width:1},move:{enable:!0,gravity:{acceleration:15,enable:!0,inverse:!0,maxSpeed:100},speed:{min:10,max:20},outModes:{default:i.Yzx.destroy,top:i.Yzx.none}}},sounds:{enable:!0,events:[{event:i.Bx4.particleRemoved,filter:e=>e.data.particle.options.move.gravity.inverse,audio:["https://particles.js.org/audio/explosion0.mp3","https://particles.js.org/audio/explosion1.mp3","https://particles.js.org/audio/explosion2.mp3"]}],volume:50}}}}}]);
|
package/218.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[218],{218(t,i,o){o.d(i,{OpacityUpdater:()=>e});var a=o(5643);class e{container;constructor(t){this.container=t}init(t){let i=t.options.opacity;t.opacity=(0,a.XsS)(i,1);let o=i.animation;o.enable&&(t.opacity.velocity=(0,a.VGA)(o.speed)/a.a56*this.container.retina.reduceFactor,o.sync||(t.opacity.velocity*=(0,a.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,i){this.isEnabled(t)&&t.opacity&&(0,a.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,i)}}}}]);
|
package/219.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[219],{4600(e,t,r){r.d(t,{ShapeManager:()=>a});let s=new Map;class a{addShapeGenerator(e,t){this.getShapeGenerator(e)||s.set(e,t)}getShapeGenerator(e){return s.get(e)}getSupportedShapeGenerators(){return s.keys()}}}}]);
|
package/227.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[227],{4227(t,e,i){i.d(e,{InteractivityPluginInstance:()=>p});var n=i(5643);let s="pointerleave",r="pointermove",a="touchstart",o="touchend",c="touchmove",l="touchcancel";var h=i(5510);class u{_canPush=!0;_clickPositionPlugins;_container;_handlers;_interactionManager;_touches;constructor(t,e){this._container=t,this._clickPositionPlugins=[],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)}init(){for(let t of(this._clickPositionPlugins.length=0,this._container.plugins.filter(t=>!!t.clickPositionValid)))this._clickPositionPlugins.push(t)}removeListeners(){this._manageListeners(!1)}_doMouseTouchClick=t=>{let e=this._container,i=this._interactionManager,s=e.actualOptions;if(this._canPush){let t=i.interactivityData.mouse,e=t.position;if(!e)return;t.clickPosition={...e},t.clickTime=performance.now();let r=s.interactivity?.events.onClick;if(!r?.mode)return;(0,n.wJ2)(r.mode,t=>{i.handleClickMode(t)})}"touchend"===t.type&&setTimeout(()=>{this._mouseTouchFinish()},n.pHD)};_handleVisibilityChange=()=>{this._mouseTouchFinish()};_manageInteractivityListeners=(t,e)=>{let i=this._handlers,s=this._container,h=this._interactionManager,u=s.actualOptions,d=h.interactivityData.element;if(!d)return;let _=s.canvas;_.setPointerEvents(d===_.element?"initial":"none"),(u.interactivity?.events.onHover.enable||u.interactivity?.events.onClick.enable)&&((0,n.KpY)(d,r,i.mouseMove,e),(0,n.KpY)(d,a,i.touchStart,e),(0,n.KpY)(d,c,i.touchMove,e),u.interactivity.events.onClick.enable?((0,n.KpY)(d,o,i.touchEndClick,e),(0,n.KpY)(d,"pointerup",i.mouseUp,e),(0,n.KpY)(d,"pointerdown",i.mouseDown,e)):(0,n.KpY)(d,o,i.touchEnd,e),(0,n.KpY)(d,t,i.mouseLeave,e),(0,n.KpY)(d,l,i.touchCancel,e))};_manageListeners=t=>{let e=this._handlers,i=this._container,r=this._interactionManager,a=i.actualOptions,o=a.interactivity?.detectsOn,c=i.canvas.element,l=s;o===h.h.window?(r.interactivityData.element=globalThis,l="pointerout"):o===h.h.parent&&c?r.interactivityData.element=c.parentElement??c.parentNode:r.interactivityData.element=c,this._manageInteractivityListeners(l,t),(0,n.KpY)(document,n.nKi,e.visibilityChange,t,!1)};_mouseDown=()=>{let{interactivityData:t}=this._interactionManager,{mouse:e}=t;e.clicking=!0,e.downPosition=e.position};_mouseTouchClick=t=>{let e=this._container,i=this._interactionManager,n=e.actualOptions,{mouse:s}=i.interactivityData;s.inside=!0;let r=!1,a=s.position;if(a&&n.interactivity?.events.onClick.enable){for(let t of this._clickPositionPlugins)if(r=t.clickPositionValid?.(a)??!1)break;r||this._doMouseTouchClick(t),s.clicking=!1}};_mouseTouchFinish=()=>{let{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};_mouseTouchMove=t=>{let e,i=this._container,s=this._interactionManager,a=i.actualOptions,o=s.interactivityData,c=i.canvas.element;if(!o.element)return;if(o.mouse.inside=!0,t.type.startsWith("pointer"))if(this._canPush=!0,o.element===globalThis){if(c){let i=c.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(a.interactivity?.detectsOn===h.h.parent){let i=t.target,s=t.currentTarget;if(c){let r=i.getBoundingClientRect(),a=s.getBoundingClientRect(),o=c.getBoundingClientRect();e={x:t.offsetX+n.gdl*r.left-(a.left+o.left),y:t.offsetY+n.gdl*r.top-(a.top+o.top)}}else e={x:t.offsetX,y:t.offsetY}}else t.target===c&&(e={x:t.offsetX,y:t.offsetY});else if(this._canPush="touchmove"!==t.type,c){let i=t.touches[t.touches.length-n.K3],s=c.getBoundingClientRect();if(!i)return;e={x:i.clientX-s.left,y:i.clientY-s.top}}let l=i.retina.pixelRatio;e&&(e.x*=l,e.y*=l),o.mouse.position=e,o.status=r};_touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()};_touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)};_touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)}}var d=i(4671);class _{container;interactivityData;_clickHandlers;_engine;_eventListeners;_externalInteractors;_interactors;_intersectionObserver;_particleInteractors;constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[],this._clickHandlers=new Map,this._eventListeners=new u(e,this),this.interactivityData={mouse:{clicking:!1,inside:!1}},this._intersectionObserver=(0,n.BRq)(t=>{this._intersectionManager(t)})}addClickHandler(t){let{container:e,interactivityData:i}=this;if(e.destroyed)return;let s=i.element;if(!s)return;let r=(i,n,s)=>{if(e.destroyed)return;let r=e.retina.pixelRatio,a={x:n.x*r,y:n.y*r};t(i,e.particles.quadTree.queryCircle(a,s*r))},h=!1,u=!1;for(let[t,i]of(this._clickHandlers.set("click",t=>{if(e.destroyed)return;let i={x:t.offsetX,y:t.offsetY};r(t,i,n.FSi)}),this._clickHandlers.set(a,()=>{e.destroyed||(h=!0,u=!1)}),this._clickHandlers.set(c,()=>{e.destroyed||(u=!0)}),this._clickHandlers.set(o,t=>{if(!e.destroyed){if(h&&!u){let i=t.touches[t.touches.length-n.KZx];if(!i)return;let s=e.canvas.element,a=s?s.getBoundingClientRect():void 0;r(t,{x:i.clientX-(a?a.left:n.TLE),y:i.clientY-(a?a.top:n.TLE)},Math.max(i.radiusX,i.radiusY))}h=!1,u=!1}}),this._clickHandlers.set(l,()=>{e.destroyed||(h=!1,u=!1)}),this._clickHandlers))s.addEventListener(t,i)}addListeners(){this._eventListeners.addListeners()}clearClickHandlers(){let{container:t,interactivityData:e}=this;if(!t.destroyed){for(let[t,i]of this._clickHandlers)e.element?.removeEventListener(t,i);this._clickHandlers.clear()}}externalInteract(t){for(let e of this._externalInteractors){let{interactivityData:i}=this;e.isEnabled(i)&&e.interact(i,t)}}handleClickMode(t){if(this.container.destroyed)return;let{interactivityData:e}=this;for(let i of this._externalInteractors)i.handleClickMode?.(t,e)}async init(){let t=await this._engine.getInteractors?.(this.container,!0);if(t)for(let e of(this._interactors=t,this._externalInteractors=[],this._particleInteractors=[],this._eventListeners.init(),this._interactors)){switch(e.type){case d.e.external:this._externalInteractors.push(e);break;case d.e.particles:this._particleInteractors.push(e)}e.init()}}particlesInteract(t,e){let{interactivityData:i}=this;for(let i of this._externalInteractors)i.clear(t,e);for(let n of this._particleInteractors)n.isEnabled(t,i)&&n.interact(t,i,e)}removeListeners(){this._eventListeners.removeListeners()}reset(t){let{interactivityData:e}=this;for(let i of this._externalInteractors)i.isEnabled(e)&&i.reset(e,t);for(let i of this._particleInteractors)i.isEnabled(t,e)&&i.reset(e,t)}startObserving(){let{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(t.element)}stopObserving(){let{interactivityData:t}=this;t.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(t.element)}_intersectionManager=t=>{let{container:e}=this;if(!e.destroyed&&e.actualOptions.pauseOnOutsideViewport)for(let i of t)i.target===this.interactivityData.element&&(i.isIntersecting?e.play():e.pause())}}var f=i(8035);class p{interactionManager;_container;_engine;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){let e=new f.k(this._engine,this._container);e.load(this._container.actualOptions.interactivity),e.load(t.options.interactivity),t.interactivity=e}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()}}}}]);
|
package/239.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[239,491],{38(t,e,i){i.d(e,{v:()=>c});var a=i(5643);class s{count;delay;duration;wait;constructor(){this.wait=!1}load(t){(0,a.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,a.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,a.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class o{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(t){(0,a.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,a.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,a.DT4)(t.delay)))}}class n{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(t){(0,a.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class r{options;replace;type;constructor(){this.options={},this.replace=new n,this.type="square"}load(t){(0,a.kZJ)(t)||(void 0!==t.options&&(this.options=(0,a.zwS)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var l=i(5223);class c{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawnColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new s,this.rate=new o,this.shape=new r,this.startCount=0}load(t){(0,a.kZJ)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new l.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,a.wJ2)(t.particles,t=>(0,a.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,a.DT4)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,a.DT4)(t.position.y))),void 0!==t.spawnColor&&(this.spawnColor??=new a.A9e,this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}},1583(t,e,i){i.d(e,{G:()=>o});var a=i(5643),s=i(2521);class o{enable;mode;selectors;type;constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=s.Q.circle}load(t){(0,a.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))}}},2521(t,e,i){var a,s;i.d(e,{Q:()=>a}),(s=a||(a={})).circle="circle",s.rectangle="rectangle"},3491(t,e,i){i.d(e,{sJ:()=>o,loadInteractivityPlugin:()=>n});var a=i(5643);i(2521);var s=i(4671);class o{type=s.e.external;container;constructor(t){this.container=t}}async function n(t){t.checkVersion("4.0.0-alpha.14"),await t.register(async t=>{let{InteractivityPlugin:e}=await i.e(646).then(i.bind(i,646));t.addPlugin(new e(t)),t.initializers.interactors??=new Map,t.interactors??=new Map,t.addInteractor=(e,i)=>{t.initializers.interactors??=new Map,t.initializers.interactors.set(e,i)},t.getInteractors=async(e,i=!1)=>(t.interactors??=new Map,t.initializers.interactors??=new Map,(0,a.HQK)(e,t.interactors,t.initializers.interactors,i)),t.setOnClickHandler=e=>{let{items:i}=t;if(!i.length)throw Error("Click handlers can only be set after calling tsParticles.load()");i.forEach(t=>{t.addClickHandler?.(e)})}})}i(5510),i(1583),i(9031)},4671(t,e,i){var a,s;i.d(e,{e:()=>a}),(s=a||(a={})).external="external",s.particles="particles"},5223(t,e,i){i.d(e,{G:()=>s});var a=i(5643);class s{height;mode;width;constructor(){this.mode=a.qiC.percent,this.height=0,this.width=0}load(t){(0,a.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))}}},5510(t,e,i){var a,s;i.d(e,{h:()=>a}),(s=a||(a={})).canvas="canvas",s.parent="parent",s.window="window"},6239(t,e,i){i.d(e,{EmittersInteractor:()=>l});var a=i(3491),s=i(5643),o=i(38);let n={count:1,enable:!0},r="emitters";class l extends a.sJ{handleClickMode;_instancesManager;constructor(t,e){super(e),this._instancesManager=t,this.handleClickMode=(t,e)=>{let i,a=this.container.actualOptions.interactivity.modes.emitters;if(!a||t!==r)return;if((0,s.cyL)(a.value)){let t=a.value.length;if(t>0&&a.random.enable){i=[];let e=new Set;for(let o=0;o<a.random.count;o++){let n=(0,s.n02)(a.value);if(e.has(n)&&e.size<t){o--;continue}e.add(n);let r=(0,s.Vh1)(a.value,n);r&&i.push(r)}}else i=a.value}else i=a.value;let o=i,n=e.mouse.clickPosition;(0,s.wJ2)(o,async t=>{await this._instancesManager.addEmitter(this.container,t,n)})}}clear(){}init(){}interact(t,e){for(let t of this._instancesManager.getArray(this.container))t.update(e)}isEnabled(t,e){let i=this.container.actualOptions,a=t.mouse,o=(e?.interactivity??i.interactivity).events;return!!a.clickPosition&&!!o.onClick.enable&&(0,s.hnD)(r,o.onClick.mode)}loadModeOptions(t,...e){for(let i of(t.emitters={random:n,value:[]},e))if(i?.emitters)if((0,s.cyL)(i.emitters))for(let e of i.emitters){let i=new o.v;i.load(e),t.emitters.value.push(i)}else if(Object.hasOwn(i.emitters,"value")){let e=i.emitters;if(t.emitters.random.enable=e.random?.enable??t.emitters.random.enable,t.emitters.random.count=e.random?.count??t.emitters.random.count,(0,s.cyL)(e.value))for(let i of e.value){let e=new o.v;e.load(i),t.emitters.value.push(e)}else{let i=new o.v;i.load(e.value),t.emitters.value.push(i)}}else{let e=new o.v;e.load(i.emitters),t.emitters.value.push(e)}}removeEmitter(t){let e=this._instancesManager.getArray(this.container).indexOf(t);e>=0&&this._instancesManager.getArray(this.container).splice(e,1)}reset(){}}},9031(t,e,i){i.d(e,{d:()=>s});var a=i(5643);class s{_container;_engine;constructor(t,e){this._engine=t,this._container=e}load(t){if((0,a.kZJ)(t)||!this._container)return;let e=this._engine.interactors?.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}}}]);
|
package/240.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[240],{4240(e,i,s){s.d(i,{SizeUpdater:()=>a});var t=s(5643);class a{init(e){let i=e.container,s=e.options.size.animation;s.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??i.retina.sizeAnimationSpeed)/t.a56*i.retina.reduceFactor,s.sync||(e.size.velocity*=(0,t.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,i){this.isEnabled(e)&&(0,t.UC0)(e,e.size,!0,e.options.size.animation.destroy,i)}}}}]);
|
package/258.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[258],{2258(e,s,a){a.d(s,{loadHexColorPlugin:()=>t});async function t(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{let{HexColorManager:s}=await a.e(341).then(a.bind(a,5341));e.addColorManager("hex",new s)})}}}]);
|
package/26.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[26],{2026(e,t,a){a.d(t,{loadLifeUpdater:()=>r});async function r(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("life",async e=>{let{LifeUpdater:t}=await a.e(323).then(a.bind(a,323));return new t(e)})})}}}]);
|
package/298.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[298],{1298(e,s,t){t.d(s,{loadCircleShape:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addShape(["circle"],async()=>{let{CircleDrawer:e}=await t.e(252).then(t.bind(t,2252));return new e})})}}}]);
|
package/323.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[323],{323(e,i,t){t.d(i,{LifeUpdater:()=>r});var n=t(5643);class a extends n.PVU{sync;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{sync;constructor(){super(),this.sync=!1}load(e){(0,n.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class o{count;delay;duration;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{container;constructor(e){this.container=e}init(e){let 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){for(let t of(e.life??=new o,i))e.life.load(t?.life)}update(e,i){this.isEnabled(e)&&e.life&&function(e,i,t){if(!e.life)return;let a=e.life,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||(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 e.destroy();let 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();let l=e.options.life;l&&(a.delay=(0,n.VGA)(l.delay.value)*n.XuV,a.duration=(0,n.VGA)(l.duration.value)*n.XuV)}(e,i,this.container.canvas.size)}}}}]);
|
package/355.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[355],{7355(e,i,t){t.d(i,{BaseMover:()=>n});var a=t(5643);class n{init(e){let i=e.options.move.gravity;e.gravity={enable:i.enable,acceleration:(0,a.VGA)(i.acceleration),inverse:i.inverse},function(e){let i=e.container,t=e.options.move.spin;if(!t.enable)return;let n=t.position??{x:50,y:50},o={x:.01*n.x*i.canvas.size.width,y:.01*n.y*i.canvas.size.height},s=e.getPosition(),l=(0,a.YfF)(s,o),r=(0,a.VGA)(t.acceleration);e.retina.spinAcceleration=r*i.retina.pixelRatio,e.spin={center:o,direction:e.velocity.x>=0?a.pTR.clockwise:a.pTR.counterClockwise,angle:(0,a.G0i)()*a.R1e,radius:l,acceleration:e.retina.spinAcceleration}}(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,i){let t=e.options,n=t.move;if(!n.enable)return;let o=e.container,s=o.retina.pixelRatio;e.retina.moveSpeed??=(0,a.VGA)(n.speed)*s,e.retina.moveDrift??=(0,a.VGA)(e.options.move.drift)*s;let l=e.slow.inRange?e.slow.factor:1,r=o.retina.reduceFactor,c=e.retina.moveSpeed,p=e.retina.moveDrift,y=(0,a.W9e)(t.size.value)*s,v=c*(n.size?e.getRadius()/y:1)*l*(i.factor||1)/2,d=e.retina.maxSpeed??o.retina.maxSpeed;n.spin.enable?function(e,i,t){let n=e.container;if(!e.spin)return;let o=e.spin.direction===a.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;let l=Math.max(n.canvas.size.width,n.canvas.size.height),r=l*a.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/l)}(e,v,r):function(e,i,t,n,o,s,l){!function(e,i){let t=e.options.move.path;if(!t.enable)return;if(e.lastPathTime<=e.pathDelay){e.lastPathTime+=i.value;return}let n=e.pathGenerator?.generate(e,i);n&&e.velocity.addTo(n),t.clamp&&(e.velocity.x=(0,a.qE8)(e.velocity.x,-1,1),e.velocity.y=(0,a.qE8)(e.velocity.y,-1,1)),e.lastPathTime-=e.pathDelay}(e,l);let r=e.gravity,c=r?.enable&&r.inverse?-1:1;o&&t&&(e.velocity.x+=o*l.factor/(60*t)),r?.enable&&t&&(e.velocity.y+=c*(r.acceleration*l.factor)/(60*t));let p=e.moveDecay;e.velocity.multTo(p);let y=e.velocity.mult(t);r?.enable&&n>0&&(!r.inverse&&y.y>=0&&y.y>=n||r.inverse&&y.y<=0&&y.y<=-n)&&(y.y=c*n,t&&(e.velocity.y=y.y/t));let v=e.options.zIndex,d=(1-e.zIndexFactor)**v.velocityRate;y.multTo(d),y.multTo(s);let{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)}(e,n,v,d,p,r,i),function(e){let i=e.initialPosition,{dx:t,dy:n}=(0,a.vrU)(i,e.position),o=Math.abs(t),s=Math.abs(n),{maxDistance:l}=e.retina,r=l.horizontal,c=l.vertical;if(r||c){if((r&&o>=r||c&&s>=c)&&!e.misplaced)e.misplaced=!!r&&o>r||!!c&&s>c,r&&(e.velocity.x=e.velocity.y*a.MXx-e.velocity.x),c&&(e.velocity.y=e.velocity.x*a.MXx-e.velocity.y);else if((!r||o<r)&&(!c||s<c)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){let t=e.position,n=e.velocity;r&&(t.x<i.x&&n.x<0||t.x>i.x&&n.x>0)&&(n.x*=-(0,a.G0i)()),c&&(t.y<i.y&&n.y<0||t.y>i.y&&n.y>0)&&(n.y*=-(0,a.G0i)())}}}(e)}}}}]);
|
package/359.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[359],{6359(t,i,e){e.d(i,{EmitterInstance:()=>h});var s=e(5643),o=e(38),n=e(5223);let a=1;function r(t,i){t.color?t.color.value=i:t.color={value:i}}class h{container;removeCallback;fill;name;options;position;size;spawnColor;_currentDuration;_currentEmitDelay;_currentSpawnDelay;_duration;_emitDelay;_engine;_firstSpawn;_immortal;_initialPosition;_lifeCount;_mutationObserver;_particlesOptions;_paused;_resizeObserver;_shape;_size;_spawnDelay;_startParticlesAdded;constructor(t,i,e,n,a){this.container=i,this.removeCallback=e,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,s.VGA)(this.options.life.delay??0)*s.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,s.zwS)({},this.options.particles);if(r.move??={},r.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,s.R5R)(this._engine,this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=r,this._size=this._calcSize(),this.size=(0,s.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,s.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.container,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||!((this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))))return;let t=this.container;if(void 0===this._emitDelay){let i=(0,s.VGA)(this.options.rate.delay);this._emitDelay=t.retina.reduceFactor?i*s.XuV/t.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){let t=this._initialPosition,i=this.container;this.position=t&&(0,s.Tj8)(t,i.canvas.size,s.Miz.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=(0,s.YCE)(this._size,i.canvas.size),this._shape?.resize(this.position,this.size)}update(t){if(this._paused)return;let i=this.container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,!this._immortal&&this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=i.retina.reduceFactor?(0,s.VGA)(this.options.life.delay??0)*s.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._spawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){let t=this.container;if(this.options.domId){let i=(0,s.T5G)().getElementById(this.options.domId);if(i){let e=i.getBoundingClientRect(),o=t.retina.pixelRatio;return{x:(e.x+e.width*s.MXx)*o,y:(e.y+e.height*s.MXx)*o}}}return(0,s.l1q)({size:t.canvas.size,position:this.options.position})}_calcSize(){let t,i=this.container;if(this.options.domId){let t=(0,s.T5G)().getElementById(this.options.domId);if(t){let e=t.getBoundingClientRect();return{width:e.width*i.retina.pixelRatio,height:e.height*i.retina.pixelRatio,mode:s.qiC.precise}}}return this.options.size??((t=new n.G).load({height:0,mode:s.qiC.percent,width:0}),t)}_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}})};_emit(){if(this._paused)return;let t=(0,s.VGA)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){let i=(0,s.TA3)(this._particlesOptions)??{},e=this.options.spawnColor?.animation,o=this.container.retina.reduceFactor,n=!!e,a=!!this._shape,h=n||a,l=n?{h:s.vSh,s:s.euA,l:s.$_c}:null,p=this.options.shape;for(let n=0;n<t*o;n++){let t=h?(0,s.zwS)({},i):i;this.spawnColor&&(e&&l&&(this.spawnColor.h=this._setColorAnimation(e.h,this.spawnColor.h,l.h,3.6),this.spawnColor.s=this._setColorAnimation(e.s,this.spawnColor.s,l.s),this.spawnColor.l=this._setColorAnimation(e.l,this.spawnColor.l,l.l)),r(t,this.spawnColor));let o=this.position;if(this._shape){let i=this._shape.randomPosition();if(i){o=i.position;let e=p.replace;e.color&&i.color&&r(t,i.color),e.opacity&&(t.opacity?t.opacity.value=i.opacity:t.opacity={value:i.opacity})}else o=null}o&&this.container.particles.addParticle(o,t)}}_prepareToDie=()=>{if(this._paused)return;let t=void 0!==this.options.life.duration?(0,s.VGA)(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*s.XuV)};_setColorAnimation=(t,i,e,o=a)=>{let n=this.container;if(!t.enable)return i;let r=(0,s.vEz)(t.offset),h=(0,s.VGA)(this.options.rate.delay),l=n.retina.reduceFactor?h*s.XuV/n.retina.reduceFactor:1/0;return(i+(0,s.VGA)(t.speed)*n.fpsLimit/l+r*o)%e}}}}]);
|
package/386.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[386],{8386(e,t,s){s.d(t,{loadOutModesUpdater:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("outModes",async e=>{let{OutOfCanvasUpdater:t}=await s.e(72).then(s.bind(s,6072));return new t(e)})})}}}]);
|
package/388.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[388],{3388(e,t,i){i.d(t,{StrokeColorUpdater:()=>r});var o=i(5643);class r{_container;_engine;constructor(e,t){this._container=t,this._engine=e}init(e){let t=this._container,i=e.options,r=(0,o.TA3)(i.stroke,e.id,i.reduceDuplicates);if(!r)return;e.strokeWidth=(0,o.VGA)(r.width)*t.retina.pixelRatio,e.strokeOpacity=(0,o.VGA)(r.opacity??1),e.strokeAnimation=r.color?.animation;let s=(0,o.R5R)(this._engine,r.color)??e.getFillColor();s&&(e.strokeColor=(0,o.pzy)(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){let t=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!t&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(e,t){this.isEnabled(e)&&(0,o.JvX)(e.strokeColor,t)}}}}]);
|
package/402.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[402],{8402(e,t,s){s.d(t,{loadSizeUpdater:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("size",async()=>{let{SizeUpdater:e}=await s.e(240).then(s.bind(s,4240));return new e})})}}}]);
|
package/418.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[418],{9418(e,t,r){r.d(t,{loadColorUpdater:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("color",async t=>{let{ColorUpdater:a}=await r.e(488).then(r.bind(r,7488));return new a(e,t)})})}}}]);
|
package/486.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[486],{5486(e,s,a){a.d(s,{loadHslColorPlugin:()=>t});async function t(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{let{HslColorManager:s}=await a.e(115).then(a.bind(a,7115));e.addColorManager("hsl",new s)})}}}]);
|
package/491.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[491],{1583(e,t,i){i.d(t,{G:()=>n});var r=i(5643),a=i(2521);class n{enable;mode;selectors;type;constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=a.Q.circle}load(e){(0,r.kZJ)(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.type=e.type))}}},2521(e,t,i){var r,a;i.d(t,{Q:()=>r}),(a=r||(r={})).circle="circle",a.rectangle="rectangle"},3491(e,t,i){i.d(t,{sJ:()=>n,loadInteractivityPlugin:()=>s});var r=i(5643);i(2521);var a=i(4671);class n{type=a.e.external;container;constructor(e){this.container=e}}async function s(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{let{InteractivityPlugin:t}=await i.e(646).then(i.bind(i,646));e.addPlugin(new t(e)),e.initializers.interactors??=new Map,e.interactors??=new Map,e.addInteractor=(t,i)=>{e.initializers.interactors??=new Map,e.initializers.interactors.set(t,i)},e.getInteractors=async(t,i=!1)=>(e.interactors??=new Map,e.initializers.interactors??=new Map,(0,r.HQK)(t,e.interactors,e.initializers.interactors,i)),e.setOnClickHandler=t=>{let{items:i}=e;if(!i.length)throw Error("Click handlers can only be set after calling tsParticles.load()");i.forEach(e=>{e.addClickHandler?.(t)})}})}i(5510),i(1583),i(9031)},4671(e,t,i){var r,a;i.d(t,{e:()=>r}),(a=r||(r={})).external="external",a.particles="particles"},5510(e,t,i){var r,a;i.d(t,{h:()=>r}),(a=r||(r={})).canvas="canvas",a.parent="parent",a.window="window"},9031(e,t,i){i.d(t,{d:()=>a});var r=i(5643);class a{_container;_engine;constructor(e,t){this._engine=e,this._container=t}load(e){if((0,r.kZJ)(e)||!this._container)return;let t=this._engine.interactors?.get(this._container);if(t)for(let i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}}}]);
|
package/542.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[542],{9542(e,t,a){a.d(t,{loadRotateUpdater:()=>r});async function r(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("rotate",async e=>{let{RotateUpdater:t}=await a.e(837).then(a.bind(a,7218));return new t(e)})})}}}]);
|
package/571.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[571],{5571(e,t,i){var a;i.d(t,{B:()=>s,loadEmittersPlugin:()=>n});class s{fill;options;position;size;constructor(e,t,i,a){this.position=e,this.size=t,this.fill=i,this.options=a}resize(e,t){this.position=e,this.size=t}}async function n(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{let{loadInteractivityPlugin:t}=await i.e(491).then(i.bind(i,3491)),{ShapeManager:a}=await i.e(219).then(i.bind(i,4600)),{EmittersInstancesManager:s}=await i.e(876).then(i.bind(i,3876)),{EmittersPlugin:n}=await i.e(96).then(i.bind(i,1096)),r=new s(e);await t(e),e.emitterShapeManager??=new a,e.addEmitterShapeGenerator??=(t,i)=>{e.emitterShapeManager?.addShapeGenerator(t,i)},e.addPlugin(new n(r)),e.addInteractor?.("externalEmitters",async e=>{let{EmittersInteractor:t}=await i.e(239).then(i.bind(i,6239));return new t(r,e)})})}(a||(a={})).emitter="emitter"}}]);
|
package/584.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[584],{5584(a,t,i){i.d(t,{loadBasic:()=>e});async function e(a){a.checkVersion("4.0.0-alpha.14"),await a.register(async a=>{let{loadHexColorPlugin:t}=await i.e(258).then(i.bind(i,2258)),{loadHslColorPlugin:e}=await i.e(486).then(i.bind(i,5486)),{loadRgbColorPlugin:n}=await i.e(110).then(i.bind(i,3110)),{loadBaseMover:w}=await i.e(722).then(i.bind(i,722)),{loadCircleShape:s}=await i.e(298).then(i.bind(i,1298)),{loadColorUpdater:h}=await i.e(418).then(i.bind(i,9418)),{loadOpacityUpdater:r}=await i.e(154).then(i.bind(i,3154)),{loadOutModesUpdater:b}=await i.e(386).then(i.bind(i,8386)),{loadSizeUpdater:c}=await i.e(402).then(i.bind(i,8402));await t(a),await e(a),await n(a),await w(a),await s(a),await h(a),await r(a),await b(a),await c(a)})}}}]);
|
package/654.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[654],{7654(e,t,r){r.d(t,{loadEmittersShapeSquare:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async e=>{if(!e.addEmitterShapeGenerator)throw Error("tsParticles emitters plugin missing or initialized after shapes");let{EmittersSquareShapeGenerator:t}=await r.e(891).then(r.bind(r,1891));e.addEmitterShapeGenerator("square",new t)})}}}]);
|
package/662.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[662],{4662(e,t,r){r.d(t,{loadStrokeColorUpdater:()=>s});async function s(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("strokeColor",async t=>{let{StrokeColorUpdater:s}=await r.e(388).then(r.bind(r,3388));return new s(e,t)})})}}}]);
|
package/666.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[666],{5666(e,t,s){s.d(t,{loadTrailEffect:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addEffect("trail",async()=>{let{TrailDrawer:e}=await s.e(835).then(s.bind(s,835));return new e})})}}}]);
|
package/668.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[668],{9668(e,s,t){t.d(s,{loadSoundsPlugin:()=>i});async function i(e){e.checkVersion("4.0.0-alpha.14"),await e.register(async s=>{let{SoundsPlugin:i}=await t.e(163).then(t.bind(t,3163));s.addPlugin(new i(e))})}}}]);
|
package/68.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[68],{6068(e,t,r){r.d(t,{loadDestroyUpdater:()=>s});async function s(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addParticleUpdater("destroy",async t=>{let{DestroyUpdater:s}=await r.e(120).then(r.bind(r,6120));return new s(e,t)})})}}}]);
|
package/714.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[714],{1714(e,s,t){t.d(s,{loadLineShape:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addShape(["line"],async()=>{let{LineDrawer:e}=await t.e(939).then(t.bind(t,8939));return new e})})}}}]);
|
package/72.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[72],{6072(t,i,e){e.d(i,{OutOfCanvasUpdater:()=>d});var o=e(5643);class s{container;modes;_particleBouncePlugins;constructor(t){this.container=t,this.modes=[o.Yzx.bounce,o.Yzx.split],this._particleBouncePlugins=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,i,e,s){if(!this.modes.includes(s))return;let n=this.container,r=!1;for(let o of this._particleBouncePlugins)if(r=o.particleBounce?.(t,e,i)??!1)break;if(r)return;let a=t.getPosition(),d=t.offset,c=t.getRadius(),p=(0,o.AEc)(a,c),l=n.canvas.size;!function(t){if(t.outMode!==o.Yzx.bounce&&t.outMode!==o.Yzx.split||t.direction!==o.v5k.left&&t.direction!==o.v5k.right)return;t.bounds.right<0&&t.direction===o.v5k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===o.v5k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let i=t.particle.velocity.x,e=!1;if(t.direction===o.v5k.right&&t.bounds.right>=t.canvasSize.width&&i>0||t.direction===o.v5k.left&&t.bounds.left<=0&&i<0){let i=(0,o.VGA)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-i,e=!0}if(!e)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===o.v5k.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===o.v5k.left&&(t.particle.position.x=s),t.outMode===o.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:l,offset:d,size:c}),function(t){if(t.outMode!==o.Yzx.bounce&&t.outMode!==o.Yzx.split||t.direction!==o.v5k.bottom&&t.direction!==o.v5k.top)return;t.bounds.bottom<0&&t.direction===o.v5k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===o.v5k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let i=t.particle.velocity.y,e=!1;if(t.direction===o.v5k.bottom&&t.bounds.bottom>=t.canvasSize.height&&i>0||t.direction===o.v5k.top&&t.bounds.top<=0&&i<0){let i=(0,o.VGA)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-i,e=!0}if(!e)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===o.v5k.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===o.v5k.top&&(t.particle.position.y=s),t.outMode===o.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:i,bounds:p,canvasSize:l,offset:d,size:c})}}class n{container;modes;constructor(t){this.container=t,this.modes=[o.Yzx.destroy]}update(t,i,e,s){if(!this.modes.includes(s))return;let n=this.container;switch(t.outType){case o.x_I.normal:case o.x_I.outside:if((0,o.Tj8)(t.position,n.canvas.size,o.Miz.origin,t.getRadius(),i))return;break;case o.x_I.inside:{let{dx:i,dy:e}=(0,o.vrU)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&i>t.moveCenter.radius||n<0&&e>t.moveCenter.radius||s>=0&&i<-t.moveCenter.radius||n>=0&&e<-t.moveCenter.radius)return}}n.particles.remove(t,t.group,!0)}}class r{container;modes;constructor(t){this.container=t,this.modes=[o.Yzx.none]}update(t,i,e,s){if(!this.modes.includes(s)||((t.options.move.distance.horizontal&&(i===o.v5k.left||i===o.v5k.right))??(t.options.move.distance.vertical&&(i===o.v5k.top||i===o.v5k.bottom))))return;let n=t.options.move.gravity,r=this.container,a=r.canvas.size,d=t.getRadius();if(n.enable){let e=t.position;(!n.inverse&&e.y>a.height+d&&i===o.v5k.bottom||n.inverse&&e.y<-d&&i===o.v5k.top)&&r.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=a.height+d||t.velocity.y<0&&t.position.y>=-d||t.velocity.x>0&&t.position.x<=a.width+d||t.velocity.x<0&&t.position.x>=-d)return;(0,o.Tj8)(t.position,r.canvas.size,o.Miz.origin,d,i)||r.particles.remove(t)}}}class a{container;modes;constructor(t){this.container=t,this.modes=[o.Yzx.out]}update(t,i,e,s){if(!this.modes.includes(s))return;let n=this.container;if(t.outType===o.x_I.inside){let{x:i,y:e}=t.velocity,s=o.Miz.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(o.Miz.create(t.moveCenter));let{dx:r,dy:a}=(0,o.vrU)(t.position,s);if(i<=0&&r>=0||e<=0&&a>=0||i>=0&&r<=0||e>=0&&a<=0)return;t.position.x=Math.floor((0,o.vEz)({min:0,max:n.canvas.size.width})),t.position.y=Math.floor((0,o.vEz)({min:0,max:n.canvas.size.height}));let{dx:d,dy:c}=(0,o.vrU)(t.position,t.moveCenter);t.direction=Math.atan2(-c,-d),t.velocity.angle=t.direction}else{if((0,o.Tj8)(t.position,n.canvas.size,o.Miz.origin,t.getRadius(),i))return;switch(t.outType){case o.x_I.outside:{t.position.x=Math.floor((0,o.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,o.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:i,dy:e}=(0,o.vrU)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(e,i),t.velocity.angle=t.direction);break}case o.x_I.normal:{let e=t.options.move.warp,s=n.canvas.size,r={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},a=t.getRadius(),d=(0,o.AEc)(t.position,a);i===o.v5k.right&&d.left>s.width+t.offset.x?(t.position.x=r.left,t.initialPosition.x=t.position.x,e||(t.position.y=(0,o.G0i)()*s.height,t.initialPosition.y=t.position.y)):i===o.v5k.left&&d.right<-t.offset.x&&(t.position.x=r.right,t.initialPosition.x=t.position.x,e||(t.position.y=(0,o.G0i)()*s.height,t.initialPosition.y=t.position.y)),i===o.v5k.bottom&&d.top>s.height+t.offset.y?(e||(t.position.x=(0,o.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=r.top,t.initialPosition.y=t.position.y):i===o.v5k.top&&d.bottom<-t.offset.y&&(e||(t.position.x=(0,o.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=r.bottom,t.initialPosition.y=t.position.y)}}}}}class d{updaters;container;constructor(t){this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,o.Yzx.bounce,t=>new s(t)),this._addUpdaterIfMissing(t,o.Yzx.out,t=>new a(t)),this._addUpdaterIfMissing(t,o.Yzx.destroy,t=>new n(t)),this._addUpdaterIfMissing(t,o.Yzx.none,t=>new r(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,i){let e=t.options.move.outModes;this._updateOutMode(t,i,e.bottom??e.default,o.v5k.bottom),this._updateOutMode(t,i,e.left??e.default,o.v5k.left),this._updateOutMode(t,i,e.right??e.default,o.v5k.right),this._updateOutMode(t,i,e.top??e.default,o.v5k.top)}_addUpdaterIfMissing=(t,i,e)=>{let o=t.options.move.outModes;this.updaters.has(i)||o.default!==i&&o.bottom!==i&&o.left!==i&&o.right!==i&&o.top!==i||this.updaters.set(i,e(this.container))};_updateOutMode=(t,i,e,o)=>{for(let s of this.updaters.values())s.update(t,o,i,e)}}}}]);
|
package/722.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[722],{722(e,s,t){t.d(s,{loadBaseMover:()=>a});async function a(e){e.checkVersion("4.0.0-alpha.14"),await e.register(e=>{e.addMover("base",async()=>{let{BaseMover:e}=await t.e(355).then(t.bind(t,7355));return new e})})}}}]);
|
package/835.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[835],{835(t,i,a){a.d(i,{TrailDrawer:()=>l});var e=a(5643);let r={a:1,b:0,c:0,d:1};class l{drawAfter(t){let{context:i,radius:a,particle:l,transformData:h}=t,n=a*e.gdl,o=l.container.retina.pixelRatio,s=l.getPosition(),x=l.trail;if(!x||!l.trailLength)return;let d=l.trailLength+a;if(x.push({color:i.fillStyle||i.strokeStyle,position:{x:s.x,y:s.y},transformData:h}),x.length<2)return;for(;x.length>d;)x.shift();let f=Math.min(x.length,d),c={width:l.container.canvas.size.width+n,height:l.container.canvas.size.height+n},p=x[f-1];if(!p)return;let g=p.position;for(let t=f;t>e.dvp;t--){let a=x[t-1];if(!a)continue;let h=a.position,s=l.trailTransform?a.transformData??r:r;i.setTransform(s.a,s.b,s.c,s.d,h.x,h.y),i.beginPath(),i.moveTo(g.x-h.x,g.y-h.y);let d={x:(g.x+c.width)%c.width,y:(g.y+c.height)%c.height};if(Math.abs(g.x-h.x)>c.width*e.MXx||Math.abs(g.y-h.y)>c.height*e.MXx){g=h;continue}i.lineTo(Math.abs(g.x-h.x)>c.width*e.MXx?d.x:e.boI.x,Math.abs(g.y-h.y)>c.height*e.MXx?d.y:e.boI.y);let p=Math.max(t/f*n,o,l.trailMinWidth??-1),y=i.globalAlpha;i.globalAlpha=l.trailFade?t/f:e.aZx,i.lineWidth=l.trailMaxWidth?Math.min(p,l.trailMaxWidth):p,i.strokeStyle=a.color,i.stroke(),i.globalAlpha=y,g=h}i.setTransform(h.a,h.b,h.c,h.d,s.x,s.y)}particleInit(t,i){i.trail=[];let a=i.effectData;i.trailFade=a?.fade??!0,i.trailLength=(0,e.VGA)(a?.length??10)*t.retina.pixelRatio,i.trailMaxWidth=a?.maxWidth?(0,e.VGA)(a.maxWidth)*t.retina.pixelRatio:void 0,i.trailMinWidth=a?.minWidth?(0,e.VGA)(a.minWidth)*t.retina.pixelRatio:void 0,i.trailTransform=a?.transform??!1}}}}]);
|
package/876.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[876],{38(t,i,e){e.d(i,{v:()=>d});var s=e(5643);class o{count;delay;duration;wait;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{delay;quantity;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 r{color;opacity;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 n{options;replace;type;constructor(){this.options={},this.replace=new r,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 h=e(5223);class d{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawnColor;startCount;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,s.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,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))}}},3876(t,i,e){e.d(i,{EmittersInstancesManager:()=>a});var s=e(5643),o=e(38);class a{_containerArrays;_engine;constructor(t){this._containerArrays=new Map,this._engine=t}async addEmitter(t,i,s){let a=new o.v;a.load(i);let{EmitterInstance:r}=await e.e(359).then(e.bind(e,6359)),n=new r(this._engine,t,i=>{this.removeEmitter(t,i)},a,s);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=>{let e=this.getArray(t);return void 0===i||(0,s.EtT)(i)?e[i??0]:e.find(t=>t.name===i)},t.addEmitter=async(i,e)=>this.addEmitter(t,i,e),t.removeEmitter=i=>{let e=t.getEmitter?.(i);e&&this.removeEmitter(t,e)},t.playEmitter=i=>{let e=t.getEmitter?.(i);e&&e.externalPlay()},t.pauseEmitter=i=>{let e=t.getEmitter?.(i);e&&e.externalPause()})}removeEmitter(t,i){let e=this.getArray(t).indexOf(i);e>=0&&this.getArray(t).splice(e,1)}}},5223(t,i,e){e.d(i,{G:()=>o});var s=e(5643);class o{height;mode;width;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))}}}}]);
|
package/891.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[571,891],{1891(t,e,i){i.d(e,{EmittersSquareShapeGenerator:()=>p});var s,n,o=i(5571),r=i(5643);function a(t,e){return t+e*((0,r.G0i)()-r.MXx)}(s=n||(n={}))[s.TopLeft=0]="TopLeft",s[s.TopRight=1]="TopRight",s[s.BottomRight=2]="BottomRight",s[s.BottomLeft=3]="BottomLeft";class h extends o.B{constructor(t,e,i,s){super(t,e,i,s)}async init(){}randomPosition(){let t=this.fill,e=this.position,i=this.size;if(t)return{position:{x:a(e.x,i.width),y:a(e.y,i.height)}};{let t=i.width*r.MXx,s=i.height*r.MXx,o=Math.floor(4*(0,r.G0i)()),a=((0,r.G0i)()-r.MXx)*r.gdl;switch(o){case n.TopLeft:return{position:{x:e.x+a*t,y:e.y-s}};case n.TopRight:return{position:{x:e.x-t,y:e.y+a*s}};case n.BottomRight:return{position:{x:e.x+a*t,y:e.y+s}};case n.BottomLeft:default:return{position:{x:e.x+t,y:e.y+a*s}}}}}}class p{generate(t,e,i,s,n){return new h(e,i,s,n)}}},5571(t,e,i){var s;i.d(e,{B:()=>n,loadEmittersPlugin:()=>o});class n{fill;options;position;size;constructor(t,e,i,s){this.position=t,this.size=e,this.fill=i,this.options=s}resize(t,e){this.position=t,this.size=e}}async function o(t){t.checkVersion("4.0.0-alpha.14"),await t.register(async t=>{let{loadInteractivityPlugin:e}=await i.e(491).then(i.bind(i,3491)),{ShapeManager:s}=await i.e(219).then(i.bind(i,4600)),{EmittersInstancesManager:n}=await i.e(876).then(i.bind(i,3876)),{EmittersPlugin:o}=await i.e(96).then(i.bind(i,1096)),r=new n(t);await e(t),t.emitterShapeManager??=new s,t.addEmitterShapeGenerator??=(e,i)=>{t.emitterShapeManager?.addShapeGenerator(e,i)},t.addPlugin(new o(r)),t.addInteractor?.("externalEmitters",async t=>{let{EmittersInteractor:e}=await i.e(239).then(i.bind(i,6239));return new e(r,t)})})}(s||(s={})).emitter="emitter"}}]);
|
package/96.min.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(this.webpackChunk_tsparticles_preset_fireworks=this.webpackChunk_tsparticles_preset_fireworks||[]).push([[96],{38(t,i,s){s.d(i,{v:()=>h});var o=s(5643);class e{count;delay;duration;wait;constructor(){this.wait=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)),void 0!==t.duration&&(this.duration=(0,o.DT4)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class a{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(t){(0,o.kZJ)(t)||(void 0!==t.quantity&&(this.quantity=(0,o.DT4)(t.quantity)),void 0!==t.delay&&(this.delay=(0,o.DT4)(t.delay)))}}class n{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(t){(0,o.kZJ)(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class r{options;replace;type;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(5223);class h{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawnColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new e,this.rate=new a,this.shape=new r,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))}}},1096(t,i,s){s.d(i,{EmittersPlugin:()=>a});var o=s(5643),e=s(38);class a{id="emitters";_instancesManager;constructor(t){this._instancesManager=t}async getPlugin(t){let{EmittersPluginInstance:i}=await s.e(551).then(s.bind(s,1551));return new i(this._instancesManager,t)}loadOptions(t,i,s){(this.needsPlugin(i)||this.needsPlugin(s))&&s?.emitters&&(i.emitters=(0,o.wJ2)(s.emitters,t=>{let i=new e.v;return i.load(t),i}))}needsPlugin(t){if(!t)return!1;let i=t.emitters;return(0,o.cyL)(i)&&!!i.length||void 0!==i}}},5223(t,i,s){s.d(i,{G:()=>e});var o=s(5643);class e{height;mode;width;constructor(){this.mode=o.qiC.percent,this.height=0,this.width=0}load(t){(0,o.kZJ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}}}]);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_basic_4_0_0-alpha_14_node_modules_tsparticles_basic_browser_index_js"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.14/node_modules/@tsparticles/basic/browser/index.js"
|
|
21
|
-
/*!*******************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.14/node_modules/@tsparticles/basic/browser/index.js ***!
|
|
23
|
-
\*******************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBasic: () => (/* binding */ loadBasic)\n/* harmony export */ });\nasync function loadBasic(engine) {\n engine.checkVersion(\"4.0.0-alpha.14\");\n await engine.register(async (e) => {\n const { loadHexColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-5a675f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hex-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hex-color@4.0.0-alpha.14/node_modules/@tsparticles/plugin-hex-color/browser/index.js\")), { loadHslColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-651bc0\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-hsl-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-hsl-color@4.0.0-alpha.14/node_modules/@tsparticles/plugin-hsl-color/browser/index.js\")), { loadRgbColorPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-alpha_14_node_modules_tsparticles_plugin-2d40c5\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-rgb-color */ \"../../node_modules/.pnpm/@tsparticles+plugin-rgb-color@4.0.0-alpha.14/node_modules/@tsparticles/plugin-rgb-color/browser/index.js\")), { loadBaseMover } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-0258ba\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/move-base */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/index.js\")), { loadCircleShape } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_shape-circle_4_0_0-alpha_14_node_modules_tsparticles_shape-circ-365204\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../node_modules/.pnpm/@tsparticles+shape-circle@4.0.0-alpha.14/node_modules/@tsparticles/shape-circle/browser/index.js\")), { loadColorUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-color_4_0_0-alpha_14_node_modules_tsparticles_updater-c-a242d8\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-color */ \"../../node_modules/.pnpm/@tsparticles+updater-color@4.0.0-alpha.14/node_modules/@tsparticles/updater-color/browser/index.js\")), { loadOpacityUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-opacity_4_0_0-alpha_14_node_modules_tsparticles_updater-349756\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../node_modules/.pnpm/@tsparticles+updater-opacity@4.0.0-alpha.14/node_modules/@tsparticles/updater-opacity/browser/index.js\")), { loadOutModesUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-alpha_14_node_modules_tsparticles_updat-54df0b\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../node_modules/.pnpm/@tsparticles+updater-out-modes@4.0.0-alpha.14/node_modules/@tsparticles/updater-out-modes/browser/index.js\")), { loadSizeUpdater } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_updater-size_4_0_0-alpha_14_node_modules_tsparticles_updater-si-9bb044\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../node_modules/.pnpm/@tsparticles+updater-size@4.0.0-alpha.14/node_modules/@tsparticles/updater-size/browser/index.js\"));\n await loadHexColorPlugin(e);\n await loadHslColorPlugin(e);\n await loadRgbColorPlugin(e);\n await loadBaseMover(e);\n await loadCircleShape(e);\n await loadColorUpdater(e);\n await loadOpacityUpdater(e);\n await loadOutModesUpdater(e);\n await loadSizeUpdater(e);\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+basic@4.0.0-alpha.14/node_modules/@tsparticles/basic/browser/index.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ }
|
|
29
|
-
|
|
30
|
-
}]);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_effect-trail_4_0_0-alpha_14_node_modules_tsparticles_effect-tra-e1d476"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+effect-trail@4.0.0-alpha.14/node_modules/@tsparticles/effect-trail/browser/TrailDrawer.js"
|
|
21
|
-
/*!***************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+effect-trail@4.0.0-alpha.14/node_modules/@tsparticles/effect-trail/browser/TrailDrawer.js ***!
|
|
23
|
-
\***************************************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrailDrawer: () => (/* binding */ TrailDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.14/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst minTrailLength = 2, trailLengthOffset = 1, minWidth = -1, defaultLength = 10;\nconst defaultTransform = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n};\nclass TrailDrawer {\n drawAfter(data) {\n const { context, radius, particle, transformData } = data, diameter = radius * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.double, pxRatio = particle.container.retina.pixelRatio, currentPos = particle.getPosition(), trail = particle.trail;\n if (!trail || !particle.trailLength) {\n return;\n }\n const pathLength = particle.trailLength + radius;\n trail.push({\n color: context.fillStyle || context.strokeStyle,\n position: {\n x: currentPos.x,\n y: currentPos.y,\n },\n transformData,\n });\n if (trail.length < minTrailLength) {\n return;\n }\n while (trail.length > pathLength) {\n trail.shift();\n }\n const trailLength = Math.min(trail.length, pathLength), canvasSize = {\n width: particle.container.canvas.size.width + diameter,\n height: particle.container.canvas.size.height + diameter,\n }, trailPos = trail[trailLength - trailLengthOffset];\n if (!trailPos) {\n return;\n }\n let lastPos = trailPos.position;\n for (let i = trailLength; i > _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.none; i--) {\n const step = trail[i - trailLengthOffset];\n if (!step) {\n continue;\n }\n const position = step.position, stepTransformData = particle.trailTransform ? (step.transformData ?? defaultTransform) : defaultTransform;\n context.setTransform(stepTransformData.a, stepTransformData.b, stepTransformData.c, stepTransformData.d, position.x, position.y);\n context.beginPath();\n context.moveTo(lastPos.x - position.x, lastPos.y - position.y);\n const warp = {\n x: (lastPos.x + canvasSize.width) % canvasSize.width,\n y: (lastPos.y + canvasSize.height) % canvasSize.height,\n };\n if (Math.abs(lastPos.x - position.x) > canvasSize.width * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half ||\n Math.abs(lastPos.y - position.y) > canvasSize.height * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half) {\n lastPos = position;\n continue;\n }\n context.lineTo(Math.abs(lastPos.x - position.x) > canvasSize.width * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half ? warp.x : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.originPoint.x, Math.abs(lastPos.y - position.y) > canvasSize.height * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half ? warp.y : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.originPoint.y);\n const width = Math.max((i / trailLength) * diameter, pxRatio, particle.trailMinWidth ?? minWidth), oldAlpha = context.globalAlpha;\n context.globalAlpha = particle.trailFade ? i / trailLength : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.defaultAlpha;\n context.lineWidth = particle.trailMaxWidth ? Math.min(width, particle.trailMaxWidth) : width;\n context.strokeStyle = step.color;\n context.stroke();\n context.globalAlpha = oldAlpha;\n lastPos = position;\n }\n context.setTransform(transformData.a, transformData.b, transformData.c, transformData.d, currentPos.x, currentPos.y);\n }\n particleInit(container, particle) {\n particle.trail = [];\n const effectData = particle.effectData;\n particle.trailFade = effectData?.fade ?? true;\n particle.trailLength = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData?.length ?? defaultLength) * container.retina.pixelRatio;\n particle.trailMaxWidth = effectData?.maxWidth\n ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData.maxWidth) * container.retina.pixelRatio\n : undefined;\n particle.trailMinWidth = effectData?.minWidth\n ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData.minWidth) * container.retina.pixelRatio\n : undefined;\n particle.trailTransform = effectData?.transform ?? false;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+effect-trail@4.0.0-alpha.14/node_modules/@tsparticles/effect-trail/browser/TrailDrawer.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ }
|
|
29
|
-
|
|
30
|
-
}]);
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_move-base_4_0_0-alpha_14_node_modules_tsparticles_move-base_bro-5558e3"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/BaseMover.js"
|
|
21
|
-
/*!*******************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/BaseMover.js ***!
|
|
23
|
-
\*******************************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ BaseMover: () => (/* binding */ BaseMover)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.14/node_modules/@tsparticles/engine/browser/index.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/Utils.js\");\n\n\nconst diffFactor = 2, defaultSizeFactor = 1, defaultDeltaFactor = 1;\nclass BaseMover {\n init(particle) {\n const options = particle.options, gravityOptions = options.move.gravity;\n particle.gravity = {\n enable: gravityOptions.enable,\n acceleration: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(gravityOptions.acceleration),\n inverse: gravityOptions.inverse,\n };\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.initSpin)(particle);\n }\n isEnabled(particle) {\n return !particle.destroyed && particle.options.move.enable;\n }\n move(particle, delta) {\n const particleOptions = particle.options, moveOptions = particleOptions.move;\n if (!moveOptions.enable) {\n return;\n }\n const container = particle.container, pxRatio = container.retina.pixelRatio;\n particle.retina.moveSpeed ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(moveOptions.speed) * pxRatio;\n particle.retina.moveDrift ??= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(particle.options.move.drift) * pxRatio;\n const slowFactor = (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.getProximitySpeedFactor)(particle), reduceFactor = container.retina.reduceFactor, baseSpeed = particle.retina.moveSpeed, moveDrift = particle.retina.moveDrift, maxSize = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(particleOptions.size.value) * pxRatio, sizeFactor = moveOptions.size ? particle.getRadius() / maxSize : defaultSizeFactor, deltaFactor = delta.factor || defaultDeltaFactor, moveSpeed = (baseSpeed * sizeFactor * slowFactor * deltaFactor) / diffFactor, maxSpeed = particle.retina.maxSpeed ?? container.retina.maxSpeed;\n if (moveOptions.spin.enable) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.spin)(particle, moveSpeed, reduceFactor);\n }\n else {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.move)(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta);\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.applyDistance)(particle);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/BaseMover.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ },
|
|
29
|
-
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/Utils.js"
|
|
31
|
-
/*!***************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/Utils.js ***!
|
|
33
|
-
\***************************************************************************************************************************/
|
|
34
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
-
|
|
36
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ applyDistance: () => (/* binding */ applyDistance),\n/* harmony export */ applyPath: () => (/* binding */ applyPath),\n/* harmony export */ getProximitySpeedFactor: () => (/* binding */ getProximitySpeedFactor),\n/* harmony export */ initSpin: () => (/* binding */ initSpin),\n/* harmony export */ move: () => (/* binding */ move),\n/* harmony export */ spin: () => (/* binding */ spin)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.14/node_modules/@tsparticles/engine/browser/index.js\");\n\nconst minVelocity = 0, identity = 1, moveSpeedFactor = 60, minSpinRadius = 0, spinFactor = 0.01;\nfunction applyDistance(particle) {\n const initialPosition = particle.initialPosition, { dx, dy } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(initialPosition, particle.position), dxFixed = Math.abs(dx), dyFixed = Math.abs(dy), { maxDistance } = particle.retina, hDistance = maxDistance.horizontal, vDistance = maxDistance.vertical;\n if (!hDistance && !vDistance) {\n return;\n }\n const hasHDistance = (hDistance && dxFixed >= hDistance) ?? false, hasVDistance = (vDistance && dyFixed >= vDistance) ?? false;\n if ((hasHDistance || hasVDistance) && !particle.misplaced) {\n particle.misplaced = (!!hDistance && dxFixed > hDistance) || (!!vDistance && dyFixed > vDistance);\n if (hDistance) {\n particle.velocity.x = particle.velocity.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.x;\n }\n if (vDistance) {\n particle.velocity.y = particle.velocity.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half - particle.velocity.y;\n }\n }\n else if ((!hDistance || dxFixed < hDistance) && (!vDistance || dyFixed < vDistance) && particle.misplaced) {\n particle.misplaced = false;\n }\n else if (particle.misplaced) {\n const pos = particle.position, vel = particle.velocity;\n if (hDistance &&\n ((pos.x < initialPosition.x && vel.x < minVelocity) || (pos.x > initialPosition.x && vel.x > minVelocity))) {\n vel.x *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n if (vDistance &&\n ((pos.y < initialPosition.y && vel.y < minVelocity) || (pos.y > initialPosition.y && vel.y > minVelocity))) {\n vel.y *= -(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n}\nfunction move(particle, moveOptions, moveSpeed, maxSpeed, moveDrift, reduceFactor, delta) {\n applyPath(particle, delta);\n const gravityOptions = particle.gravity, gravityFactor = gravityOptions?.enable && gravityOptions.inverse ? -identity : identity;\n if (moveDrift && moveSpeed) {\n particle.velocity.x += (moveDrift * delta.factor) / (moveSpeedFactor * moveSpeed);\n }\n if (gravityOptions?.enable && moveSpeed) {\n particle.velocity.y +=\n (gravityFactor * (gravityOptions.acceleration * delta.factor)) / (moveSpeedFactor * moveSpeed);\n }\n const decay = particle.moveDecay;\n particle.velocity.multTo(decay);\n const velocity = particle.velocity.mult(moveSpeed);\n if (gravityOptions?.enable &&\n maxSpeed > minVelocity &&\n ((!gravityOptions.inverse && velocity.y >= minVelocity && velocity.y >= maxSpeed) ||\n (gravityOptions.inverse && velocity.y <= minVelocity && velocity.y <= -maxSpeed))) {\n velocity.y = gravityFactor * maxSpeed;\n if (moveSpeed) {\n particle.velocity.y = velocity.y / moveSpeed;\n }\n }\n const zIndexOptions = particle.options.zIndex, zVelocityFactor = (identity - particle.zIndexFactor) ** zIndexOptions.velocityRate;\n velocity.multTo(zVelocityFactor);\n velocity.multTo(reduceFactor);\n const { position } = particle;\n position.addTo(velocity);\n if (moveOptions.vibrate) {\n position.x += Math.sin(position.x * Math.cos(position.y)) * reduceFactor;\n position.y += Math.cos(position.y * Math.sin(position.x)) * reduceFactor;\n }\n}\nfunction spin(particle, moveSpeed, reduceFactor) {\n const container = particle.container;\n if (!particle.spin) {\n return;\n }\n const spinClockwise = particle.spin.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise, updateFunc = {\n x: spinClockwise ? Math.cos : Math.sin,\n y: spinClockwise ? Math.sin : Math.cos,\n };\n particle.position.x =\n particle.spin.center.x + particle.spin.radius * updateFunc.x(particle.spin.angle) * reduceFactor;\n particle.position.y =\n particle.spin.center.y + particle.spin.radius * updateFunc.y(particle.spin.angle) * reduceFactor;\n particle.spin.radius += particle.spin.acceleration * reduceFactor;\n const maxCanvasSize = Math.max(container.canvas.size.width, container.canvas.size.height), halfMaxSize = maxCanvasSize * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half;\n if (particle.spin.radius > halfMaxSize) {\n particle.spin.radius = halfMaxSize;\n particle.spin.acceleration *= -identity;\n }\n else if (particle.spin.radius < minSpinRadius) {\n particle.spin.radius = minSpinRadius;\n particle.spin.acceleration *= -identity;\n }\n particle.spin.angle += moveSpeed * spinFactor * (identity - particle.spin.radius / maxCanvasSize);\n}\nfunction applyPath(particle, delta) {\n const particlesOptions = particle.options, pathOptions = particlesOptions.move.path, pathEnabled = pathOptions.enable;\n if (!pathEnabled) {\n return;\n }\n if (particle.lastPathTime <= particle.pathDelay) {\n particle.lastPathTime += delta.value;\n return;\n }\n const path = particle.pathGenerator?.generate(particle, delta);\n if (path) {\n particle.velocity.addTo(path);\n }\n if (pathOptions.clamp) {\n particle.velocity.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.x, -identity, identity);\n particle.velocity.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.clamp)(particle.velocity.y, -identity, identity);\n }\n particle.lastPathTime -= particle.pathDelay;\n}\nfunction getProximitySpeedFactor(particle) {\n return particle.slow.inRange ? particle.slow.factor : identity;\n}\nfunction initSpin(particle) {\n const container = particle.container, options = particle.options, spinOptions = options.move.spin;\n if (!spinOptions.enable) {\n return;\n }\n const spinPos = spinOptions.position ?? { x: 50, y: 50 }, spinFactor = 0.01, spinCenter = {\n x: spinPos.x * spinFactor * container.canvas.size.width,\n y: spinPos.y * spinFactor * container.canvas.size.height,\n }, pos = particle.getPosition(), distance = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistance)(pos, spinCenter), spinAcceleration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(spinOptions.acceleration);\n particle.retina.spinAcceleration = spinAcceleration * container.retina.pixelRatio;\n particle.spin = {\n center: spinCenter,\n direction: particle.velocity.x >= minVelocity ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise,\n angle: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI,\n radius: distance,\n acceleration: particle.retina.spinAcceleration,\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+move-base@4.0.0-alpha.14/node_modules/@tsparticles/move-base/browser/Utils.js?\n}");
|
|
37
|
-
|
|
38
|
-
/***/ }
|
|
39
|
-
|
|
40
|
-
}]);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters-shape-square_4_0_0-alpha_14_node_modules_tspart-acf999"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js"
|
|
21
|
-
/*!*******************************************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js ***!
|
|
23
|
-
\*******************************************************************************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShape: () => (/* binding */ EmittersSquareShape)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/plugin-emitters */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.14/node_modules/@tsparticles/engine/browser/index.js\");\n\n\nconst sides = 4;\nvar Sides;\n(function (Sides) {\n Sides[Sides[\"TopLeft\"] = 0] = \"TopLeft\";\n Sides[Sides[\"TopRight\"] = 1] = \"TopRight\";\n Sides[Sides[\"BottomRight\"] = 2] = \"BottomRight\";\n Sides[Sides[\"BottomLeft\"] = 3] = \"BottomLeft\";\n})(Sides || (Sides = {}));\nfunction randomSquareCoordinate(position, offset) {\n return position + offset * ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() - _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half);\n}\nclass EmittersSquareShape extends _tsparticles_plugin_emitters__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase {\n constructor(position, size, fill, options) {\n super(position, size, fill, options);\n }\n async init() {\n }\n randomPosition() {\n const fill = this.fill, position = this.position, size = this.size;\n if (fill) {\n return {\n position: {\n x: randomSquareCoordinate(position.x, size.width),\n y: randomSquareCoordinate(position.y, size.height),\n },\n };\n }\n else {\n const halfW = size.width * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half, halfH = size.height * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half, side = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * sides), v = ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() - _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.double;\n switch (side) {\n case Sides.TopLeft:\n return {\n position: {\n x: position.x + v * halfW,\n y: position.y - halfH,\n },\n };\n case Sides.TopRight:\n return {\n position: {\n x: position.x - halfW,\n y: position.y + v * halfH,\n },\n };\n case Sides.BottomRight:\n return {\n position: {\n x: position.x + v * halfW,\n y: position.y + halfH,\n },\n };\n case Sides.BottomLeft:\n default:\n return {\n position: {\n x: position.x + halfW,\n y: position.y + v * halfH,\n },\n };\n }\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ },
|
|
29
|
-
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js"
|
|
31
|
-
/*!****************************************************************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js ***!
|
|
33
|
-
\****************************************************************************************************************************************************************************************/
|
|
34
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
-
|
|
36
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersSquareShapeGenerator: () => (/* binding */ EmittersSquareShapeGenerator)\n/* harmony export */ });\n/* harmony import */ var _EmittersSquareShape_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmittersSquareShape.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShape.js\");\n\nclass EmittersSquareShapeGenerator {\n generate(_container, position, size, fill, options) {\n return new _EmittersSquareShape_js__WEBPACK_IMPORTED_MODULE_0__.EmittersSquareShape(position, size, fill, options);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters-shape-square@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters-shape-square/browser/EmittersSquareShapeGenerator.js?\n}");
|
|
37
|
-
|
|
38
|
-
/***/ },
|
|
39
|
-
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
|
|
41
|
-
/*!**************************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
|
|
43
|
-
\**************************************************************************************************************************************************/
|
|
44
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
-
|
|
46
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n fill;\n options;\n position;\n size;\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
|
|
47
|
-
|
|
48
|
-
/***/ },
|
|
49
|
-
|
|
50
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
|
|
51
|
-
/*!********************************************************************************************************************************************************!*\
|
|
52
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
|
|
53
|
-
\********************************************************************************************************************************************************/
|
|
54
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
55
|
-
|
|
56
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
|
|
57
|
-
|
|
58
|
-
/***/ },
|
|
59
|
-
|
|
60
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js"
|
|
61
|
-
/*!***************************************************************************************************************************************!*\
|
|
62
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
|
|
63
|
-
\***************************************************************************************************************************************/
|
|
64
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
65
|
-
|
|
66
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.14\");\n await engine.register(async (e) => {\n const { loadInteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-07239f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-alpha.14/node_modules/@tsparticles/plugin-interactivity/browser/index.js\")), { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--0e469e\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersInstancesManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--e12e29\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--da9aa3\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")), instancesManager = new EmittersInstancesManager(e);\n await loadInteractivityPlugin(e);\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n e.addPlugin(new EmittersPlugin(instancesManager));\n e.addInteractor?.(\"externalEmitters\", async (container) => {\n const { EmittersInteractor } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-88ac5e\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInteractor.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js\"));\n return new EmittersInteractor(instancesManager, container);\n });\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
|
|
67
|
-
|
|
68
|
-
/***/ }
|
|
69
|
-
|
|
70
|
-
}]);
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--01c506"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js"
|
|
21
|
-
/*!**************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js ***!
|
|
23
|
-
\**************************************************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterShapeBase: () => (/* binding */ EmitterShapeBase)\n/* harmony export */ });\nclass EmitterShapeBase {\n fill;\n options;\n position;\n size;\n constructor(position, size, fill, options) {\n this.position = position;\n this.size = size;\n this.fill = fill;\n this.options = options;\n }\n resize(position, size) {\n this.position = position;\n this.size = size;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ },
|
|
29
|
-
|
|
30
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js"
|
|
31
|
-
/*!********************************************************************************************************************************************************!*\
|
|
32
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js ***!
|
|
33
|
-
\********************************************************************************************************************************************************/
|
|
34
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35
|
-
|
|
36
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* binding */ EmitterClickMode)\n/* harmony export */ });\nvar EmitterClickMode;\n(function (EmitterClickMode) {\n EmitterClickMode[\"emitter\"] = \"emitter\";\n})(EmitterClickMode || (EmitterClickMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js?\n}");
|
|
37
|
-
|
|
38
|
-
/***/ },
|
|
39
|
-
|
|
40
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js"
|
|
41
|
-
/*!***************************************************************************************************************************************!*\
|
|
42
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js ***!
|
|
43
|
-
\***************************************************************************************************************************************/
|
|
44
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
45
|
-
|
|
46
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmitterClickMode: () => (/* reexport safe */ _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__.EmitterClickMode),\n/* harmony export */ EmitterShapeBase: () => (/* reexport safe */ _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__.EmitterShapeBase),\n/* harmony export */ loadEmittersPlugin: () => (/* binding */ loadEmittersPlugin)\n/* harmony export */ });\n/* harmony import */ var _EmitterShapeBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EmitterShapeBase.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmitterShapeBase.js\");\n/* harmony import */ var _Enums_EmitterClickMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/EmitterClickMode.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/Enums/EmitterClickMode.js\");\nasync function loadEmittersPlugin(engine) {\n engine.checkVersion(\"4.0.0-alpha.14\");\n await engine.register(async (e) => {\n const { loadInteractivityPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-interactivity_4_0_0-alpha_14_node_modules_tsparticles_pl-07239f\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/plugin-interactivity */ \"../../node_modules/.pnpm/@tsparticles+plugin-interactivity@4.0.0-alpha.14/node_modules/@tsparticles/plugin-interactivity/browser/index.js\")), { ShapeManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--0e469e\").then(__webpack_require__.bind(__webpack_require__, /*! ./ShapeManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/ShapeManager.js\")), { EmittersInstancesManager } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--e12e29\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInstancesManager.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersInstancesManager.js\")), { EmittersPlugin } = await __webpack_require__.e(/*! import() */ \"node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--da9aa3\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersPlugin.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersPlugin.js\")), instancesManager = new EmittersInstancesManager(e);\n await loadInteractivityPlugin(e);\n e.emitterShapeManager ??= new ShapeManager();\n e.addEmitterShapeGenerator ??= (name, generator) => {\n e.emitterShapeManager?.addShapeGenerator(name, generator);\n };\n e.addPlugin(new EmittersPlugin(instancesManager));\n e.addInteractor?.(\"externalEmitters\", async (container) => {\n const { EmittersInteractor } = await __webpack_require__.e(/*! import() */ \"vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles-88ac5e\").then(__webpack_require__.bind(__webpack_require__, /*! ./EmittersInteractor.js */ \"../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersInteractor.js\"));\n return new EmittersInteractor(instancesManager, container);\n });\n });\n}\n\n\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/index.js?\n}");
|
|
47
|
-
|
|
48
|
-
/***/ }
|
|
49
|
-
|
|
50
|
-
}]);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Author : Matteo Bruni
|
|
3
|
-
* MIT license: https://opensource.org/licenses/MIT
|
|
4
|
-
* Demo / Generator : https://particles.js.org/
|
|
5
|
-
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
|
-
* How to use? : Check the GitHub README
|
|
7
|
-
* v4.0.0-alpha.4
|
|
8
|
-
*/
|
|
9
|
-
"use strict";
|
|
10
|
-
/*
|
|
11
|
-
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
12
|
-
* This devtool is neither made for production nor for readable output files.
|
|
13
|
-
* It uses "eval()" calls to create a separate source file in the browser devtools.
|
|
14
|
-
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
|
|
15
|
-
* or disable the default devtool with "devtool: false".
|
|
16
|
-
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
|
|
17
|
-
*/
|
|
18
|
-
(this["webpackChunk_tsparticles_preset_fireworks"] = this["webpackChunk_tsparticles_preset_fireworks"] || []).push([["node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-alpha_14_node_modules_tsparticles_plugin--a27da9"],{
|
|
19
|
-
|
|
20
|
-
/***/ "../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersPluginInstance.js"
|
|
21
|
-
/*!********************************************************************************************************************************************************!*\
|
|
22
|
-
!*** ../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersPluginInstance.js ***!
|
|
23
|
-
\********************************************************************************************************************************************************/
|
|
24
|
-
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25
|
-
|
|
26
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ EmittersPluginInstance: () => (/* binding */ EmittersPluginInstance)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../node_modules/.pnpm/@tsparticles+engine@4.0.0-alpha.14/node_modules/@tsparticles/engine/browser/index.js\");\n\nclass EmittersPluginInstance {\n container;\n _instancesManager;\n constructor(instancesManager, container) {\n this.container = container;\n this._instancesManager = instancesManager;\n this._instancesManager.initContainer(container);\n }\n async init() {\n const emittersOptions = this.container.actualOptions.emitters;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isArray)(emittersOptions)) {\n for (const emitterOptions of emittersOptions) {\n await this._instancesManager.addEmitter(this.container, emitterOptions);\n }\n }\n else {\n await this._instancesManager.addEmitter(this.container, emittersOptions);\n }\n }\n pause() {\n for (const emitter of this._instancesManager.getArray(this.container)) {\n emitter.pause();\n }\n }\n play() {\n for (const emitter of this._instancesManager.getArray(this.container)) {\n emitter.play();\n }\n }\n resize() {\n for (const emitter of this._instancesManager.getArray(this.container)) {\n emitter.resize();\n }\n }\n stop() {\n this._instancesManager.clear(this.container);\n }\n update(delta) {\n this._instancesManager.getArray(this.container).forEach(emitter => {\n emitter.update(delta);\n });\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/preset-fireworks/../../node_modules/.pnpm/@tsparticles+plugin-emitters@4.0.0-alpha.14/node_modules/@tsparticles/plugin-emitters/browser/EmittersPluginInstance.js?\n}");
|
|
27
|
-
|
|
28
|
-
/***/ }
|
|
29
|
-
|
|
30
|
-
}]);
|