@tsparticles/engine 4.0.0-alpha.21 → 4.0.0-alpha.23
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/515.min.js +1 -1
- package/browser/Core/Canvas.js +17 -1
- package/browser/Core/Engine.js +1 -1
- package/browser/Core/Utils/Constants.js +1 -1
- package/browser/Utils/CanvasUtils.js +15 -2
- package/cjs/Core/Canvas.js +17 -1
- package/cjs/Core/Engine.js +1 -1
- package/cjs/Core/Utils/Constants.js +1 -1
- package/cjs/Utils/CanvasUtils.js +15 -2
- package/dist_browser_Core_Container_js.js +2 -2
- package/esm/Core/Canvas.js +17 -1
- package/esm/Core/Engine.js +1 -1
- package/esm/Core/Utils/Constants.js +1 -1
- package/esm/Utils/CanvasUtils.js +15 -2
- package/package.json +1 -1
- package/report.html +1 -1
- package/tsparticles.engine.js +6 -6
- package/tsparticles.engine.min.js +2 -2
- package/types/Core/Canvas.d.ts +5 -0
- package/types/Core/Interfaces/IContainerPlugin.d.ts +2 -0
- package/types/Core/Interfaces/IShapeDrawData.d.ts +8 -0
- package/types/Core/Utils/Constants.d.ts +1 -1
- package/umd/Core/Canvas.js +16 -0
- package/umd/Core/Engine.js +1 -1
- package/umd/Core/Utils/Constants.js +2 -2
- package/umd/Utils/CanvasUtils.js +14 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a,n,s,o,r,l,d={7157(e,t,i){i.d(t,{$G:()=>L,$O:()=>B,$_:()=>_,$v:()=>J,$x:()=>S,BF:()=>eR,BW:()=>h,DN:()=>Q,D_:()=>eb,Dv:()=>ex,Eo:()=>ea,FS:()=>H,Fl:()=>eP,GW:()=>C,Ie:()=>D,JC:()=>K,K3:()=>ep,KZ:()=>N,Kw:()=>M,L1:()=>E,LD:()=>ev,M1:()=>eo,MX:()=>r,N5:()=>en,NF:()=>n,Nu:()=>ez,Nx:()=>U,PZ:()=>Y,Pg:()=>R,R1:()=>f,RF:()=>b,RV:()=>G,Rh:()=>el,Rq:()=>V,TL:()=>j,U0:()=>A,Ug:()=>c,WH:()=>ei,X$:()=>y,X_:()=>es,Xu:()=>l,Zp:()=>O,a5:()=>o,aE:()=>eO,aZ:()=>g,bo:()=>d,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>a,eu:()=>F,gd:()=>p,hB:()=>P,hK:()=>eT,hv:()=>q,i8:()=>X,iU:()=>ew,jn:()=>ek,lA:()=>ef,mR:()=>u,nK:()=>s,nq:()=>ec,oi:()=>k,ou:()=>ed,pH:()=>eg,rq:()=>x,tA:()=>ey,tR:()=>eF,td:()=>em,un:()=>er,vF:()=>W,vS:()=>T,vd:()=>eM,w2:()=>Z,wM:()=>eu,xH:()=>ee,xd:()=>z,yx:()=>I,z$:()=>v,z9:()=>eh,zg:()=>eS,zs:()=>$});let a="generated",n="resize",s="visibilitychange",o=100,r=.5,l=1e3,d={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},u="random",h="mid",p=2,f=2*Math.PI,v=60,g=1,m="true",y="false",b="canvas",x=0,w=2,M=4,z=1,S=1,O=1,R=4,P=1,k=255,T=360,F=100,_=100,E=0,I=0,A=60,D=0,L=.25,V=.75,C=0,$=1,Z=0,B=0,G=1,q=1,H=1,N=1,j=0,K=1,W=0,X=120,Q=0,U=0,J=1e4,Y=0,ee=1,et=0,ei=1,ea=1,en=0,es=0,eo=0,er=-.25,el=1.5,ed=0,ec=1,eu=0,eh=0,ep=1,ef=1,ev=1,eg=500,em=50,ey=0,eb=1,ex=0,ew=1,eM=0,ez=3,eS=6,eO=1,eR=1,eP=0,ek=0,eT=0,eF=0},2714(e,t,i){i.d(t,{b:()=>a});class a{particle;position;constructor(e,t){this.position=e,this.particle=t}}},1636(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,s=i(493),o=i(7157);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,s.Yf)(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof l||e.type===n.circle)return s+e.radius>Math.sqrt(a.x**o.dm+a.y**o.dm);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,o.dm)+Math.pow(a.y-i,o.dm)<=s**o.dm||a.x<=s+t&&a.y<=s+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,s=e instanceof d?e.size:{width:0,height:0},o=s.width,r=s.height;return n.x<a.x+t&&n.x+o>a.x&&n.y<a.y+i&&n.y+r>a.y}}},1808(e,t,i){i.d(t,{M:()=>s,p:()=>n});var a=i(7157);class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,e.z)}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,Object.hasOwn(e,"z")?e.z:a.bo.z)}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return n.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:a.bo.z}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}_updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},1609(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},3702(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},9890(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},5615(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},1610(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},3849(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},7917(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},1903(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},5717(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},6911(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},3457(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8910(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},2249(e,t,i){i.d(t,{A:()=>o});var a=i(3727),n=i(1311),s=i(7981);class o extends s.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},7896(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(5615),n=i(8910),s=i(3727),o=i(493);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},5767(e,t,i){i.d(t,{V:()=>s});var a=i(7981),n=i(3727);class s{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},8859(e,t,i){i.d(t,{e:()=>o});var a=i(7896),n=i(3727),s=i(493);class o extends a.p{offset;constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},1845(e,t,i){i.d(t,{m:()=>n});var a=i(3727);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},1311(e,t,i){i.d(t,{i:()=>s});var a=i(8859),n=i(3727);class s{h=new a.e;l=new a.e;s=new a.e;load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},5872(e,t,i){i.d(t,{J:()=>c});var a=i(2439),n=i(3727),s=i(5767),o=i(1845),r=i(8590),l=i(9875),d=i(493);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new o.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(0,a.wJ)(e.preset,e=>{this._importPreset(e)}),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let s=e.fullScreen;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPreset=e=>{this.load(this._engine.getPreset(e))}}},7981(e,t,i){i.d(t,{O:()=>n});var a=i(3727);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},5484(e,t,i){i.d(t,{w:()=>s});var a=i(1799),n=i(3727);class s{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},1799(e,t,i){i.d(t,{F:()=>n});var a=i(424);class n extends a.PV{constructor(){super(),this.value=1}}},2657(e,t,i){i.d(t,{y:()=>p});var a=i(3702),n=i(3727),s=i(6086),o=i(2816),r=i(608),l=i(2256),d=i(8136),c=i(668),u=i(3072),h=i(493);class p{angle;attract;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new s.h,this.attract=new o.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new l.y,this.path=new d.v,this.outModes=new c.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},6086(e,t,i){i.d(t,{h:()=>s});var a=i(3727),n=i(493);class s{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},2816(e,t,i){i.d(t,{R:()=>s});var a=i(3727),n=i(493);class s{distance;enable;rotate;constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,a.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,n.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},608(e,t,i){i.d(t,{Z:()=>s});var a=i(7917),n=i(3727);class s{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},2256(e,t,i){i.d(t,{y:()=>s});var a=i(3727),n=i(493);class s{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},668(e,t,i){i.d(t,{j:()=>s});var a=i(3849),n=i(3727);class s{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},8136(e,t,i){i.d(t,{v:()=>o});var a=i(424),n=i(2439),s=i(3727);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,s.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},3072(e,t,i){i.d(t,{t:()=>o});var a=i(2439),n=i(3727),s=i(493);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},9829(e,t,i){i.d(t,{M:()=>n});var a=i(3727);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},2096(e,t,i){i.d(t,{N:()=>o});var a=i(9829),n=i(7537),s=i(3727);class o{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7537(e,t,i){i.d(t,{A:()=>s});var a=i(1610),n=i(3727);class s{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},7089(e,t,i){i.d(t,{Y:()=>o});var a=i(763),n=i(424),s=i(3727);class o extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},763(e,t,i){i.d(t,{I:()=>o});var a=i(5717),n=i(7896),s=i(3727);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},3068(e,t,i){i.d(t,{U:()=>v});var a=i(2439),n=i(2249),s=i(3727);class o{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(2657),l=i(7089),d=i(5484),c=i(2096),u=i(8861),h=i(2825),p=i(3480),f=i(9651);class v{bounce;color;effect;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.color=new n.A,this.color.value="#fff",this.effect=new o,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(n.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.stroke;if(t&&(this.stroke=(0,a.wJ)(t,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},8861(e,t,i){i.d(t,{y:()=>s});var a=i(2439),n=i(3727);class s{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},2825(e,t,i){i.d(t,{o:()=>o});var a=i(424),n=i(5555),s=i(3727);class o extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},5555(e,t,i){i.d(t,{q:()=>o});var a=i(5717),n=i(7896),s=i(3727);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},3480(e,t,i){i.d(t,{t:()=>o});var a=i(2249),n=i(3727),s=i(493);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},9651(e,t,i){i.d(t,{P:()=>s});var a=i(424),n=i(3727);class s extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},8590(e,t,i){i.d(t,{z:()=>n});var a=i(3727);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},424(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>o});var a=i(7896),n=i(3727),s=i(493);class o{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,s.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},1963(e,t,i){i.d(t,{IU:()=>r,KG:()=>u,Md:()=>o,Sn:()=>s,VG:()=>p,Wb:()=>f,gF:()=>h,k:()=>d,p0:()=>l,yx:()=>v,z5:()=>c});var a=i(7157),n=i(1903);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=1)}function r(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function l(e){let{container:t,context:i,particle:n,delta:s,colorStyles:o,radius:r,opacity:l,transform:f}=e,v=n.getPosition(),g=n.getTransformData(f);i.setTransform(g.a,g.b,g.c,g.d,v.x,v.y),o.fill&&(i.fillStyle=o.fill);let m=n.strokeWidth??a.Dv;i.lineWidth=m,o.stroke&&(i.strokeStyle=o.stroke);let y={context:i,particle:n,radius:r,opacity:l,delta:s,pixelRatio:t.retina.pixelRatio,fill:n.shapeFill,stroke:m>a.Dv||!n.shapeFill,transformData:g};c(t,y),p(t,y),u(t,y),h(t,y),d(t,y),i.resetTransform()}function d(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect),n=a?.drawAfter;n&&n(t)}function c(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect);a?.drawBefore&&a.drawBefore(t)}function u(e,t){let{context:i,particle:a,stroke:n}=t;if(!a.shape)return;let s=e.particles.shapeDrawers.get(a.shape);s&&(i.beginPath(),s.draw(t),a.shapeClose&&i.closePath(),n&&i.stroke(),a.shapeFill&&i.fill())}function h(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.afterDraw&&a.afterDraw(t)}function p(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.beforeDraw&&a.beforeDraw(t)}function f(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}function v(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===n.H.darken?-a.iU:a.iU)*i}}},6720(e,t,i){i.d(t,{BN:()=>u,EY:()=>S,Jv:()=>_,K6:()=>v,Ko:()=>F,LC:()=>z,OH:()=>x,O_:()=>P,PG:()=>R,R5:()=>f,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>p,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var a=i(493),n=i(7157),s=i(3727),o=i(1609),r=i(2439);let l=new Map;function d(e,t){let i=l.get(e);return i||(i=t(),l.size>=1e3&&[...l.keys()].slice(0,1e3*n.MX).forEach(e=>l.delete(e)),l.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function u(e,t,i,a=!0){if(!t)return;let n=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(n.value))return h(e,n.value,i,a);if((0,s.cy)(n.value)){let t=(0,r.Vh)(n.value,i,a);if(!t)return;return u(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function h(e,t,i,a=!0){if(!t)return;let o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===n.mR?x():c(e,o.value);if((0,s.cy)(o.value)){let t=(0,r.Vh)(o.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}function p(e,t,i,a=!0){let n=h(e,t,i,a);return n?v(n):void 0}function f(e,t,i,a=!0){let n=u(e,t,i,a);return n?v(n):void 0}function v(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,s=Math.max(t,i,a),o=Math.min(t,i,a),r={h:n.L1,l:(s+o)*n.MX,s:n.yx};return s!==o&&(r.s=r.l<n.MX?(s-o)/(s+o):(s-o)/(n.gd-s-o),t===s?r.h=(i-a)/(s-o):i===s?r.h=n.gd+(a-t)/(s-o):r.h=n.gd*n.gd+(t-i)/(s-o)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),s=t/n.vS,o=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+o):r+o-r*o,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,s+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,s))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,s-u)))}}function b(e){let t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){let t=e??n.Fl,i=n.oi+n.D_,s=()=>Math.floor((0,a.e4)(t,i));return{b:s(),g:s(),r:s()}}function w(e,t,i){let a=i??n.hv;return d(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s;return t?M(e,i):(a=e,s=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(s??n.hv).toString()})`)})}function M(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function z(e,t,i){let a=i??n.hv;return d(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s,o,r;return t?(a=e,s=i,M(y(a),s)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??n.hv).toString()})`)})}function S(e,t,i,n){let s=e,o=t;return Object.hasOwn(s,"r")||(s=y(e)),Object.hasOwn(o,"r")||(o=y(t)),{b:(0,a.jh)(s.b,o.b,i,n),g:(0,a.jh)(s.g,o.g,i,n),r:(0,a.jh)(s.r,o.r,i,n)}}function O(e,t,i){if(i===n.mR)return x();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return S(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return y(e)}}}function R(e,t,i,a){let o=(0,s.Kg)(t)?t:t.value;return o===n.mR?a?u(e,{value:o}):i?n.mR:n.BW:o===n.BW?n.BW:u(e,{value:o})}function P(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function k(e,t,i){let a={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=o.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function F(e,t,i,n){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,r=(e.velocity??0)*n.factor+3.6*s,l=e.decay??1,d=(0,a.W9)(t),c=(0,a.Sg)(t);i&&e.status!==o.H.increasing?(e.value-=r,e.value<0&&(e.loops??=0,e.loops++,e.status=o.H.increasing)):(e.value+=r,e.value>d&&(e.loops??=0,e.loops++,i?e.status=o.H.decreasing:e.value-=d)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,a.qE)(e.value,c,d)}function _(e,t){if(!e)return;let{h:i,s:a,l:s}=e,o={h:{min:n.L1,max:n.vS},s:{min:n.yx,max:n.eu},l:{min:n.vd,max:n.$_}};F(i,o.h,!1,t),F(a,o.s,!0,t),F(s,o.l,!0,t)}},567(e,t,i){i.d(t,{B:()=>n,t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function s(){return a}},493(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>I,Mh:()=>T,Nx:()=>_,OE:()=>c,OW:()=>P,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>k,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>S,px:()=>v,qE:()=>g,qM:()=>E,vE:()=>y,vr:()=>M});var a=i(3702),n=i(7157),s=i(1808),o=i(3727);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=t=>e(t),d.cancel=e=>{t(e)}}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,o.Et)(e)?e:y(e)}function x(e){return(0,o.Et)(e)?e:e.min}function w(e){return(0,o.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.sqrt(i**2+a**2)}}function z(e,t){return M(e,t).distance}function S(e){return e*r}function O(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=s.M.origin;return t.length=1,t.angle=e,t}function P(e,t,i,a){return s.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function k(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function T(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function F(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return T({size:e.size,position:t})}function _(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function E(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return _({size:e.size,position:t})}function I(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},9875(e,t,i){i.d(t,{Z:()=>n,y:()=>s});var a=i(3068);function n(e,...t){for(let i of t)e.load(i)}function s(e,t,...i){let o=new a.U(e,t);return n(o,...i),o}},3727(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function s(e){return"number"==typeof e}function o(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>o,cy:()=>l,kZ:()=>d})},2439(e,t,i){let a;i.d(t,{AE:()=>O,BR:()=>y,E9:()=>I,HQ:()=>$,Kp:()=>C,O2:()=>S,Ot:()=>Z,T5:()=>g,TA:()=>T,Tg:()=>R,Tj:()=>z,UC:()=>D,Vh:()=>M,Xs:()=>_,YC:()=>A,hJ:()=>V,hn:()=>x,lV:()=>m,n0:()=>w,pE:()=>P,q8:()=>v,tG:()=>b,td:()=>L,w3:()=>F,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i)if(null!=a){if(!(0,r.Gv)(a)){t=a;continue}for(let i in Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,r.Gv)(t)||Array.isArray(t))&&(t={}),a){if("__proto__"===i)continue;let n=a[i],s=t;s[i]=(0,r.Gv)(n)&&Array.isArray(n)?n.map(t=>e(s[i],t)):e(s[i],n)}}return t}});var n,s=i(493),o=i(7157),r=i(3727),l=i(5615),d=i(1609),c=i(5717),u=i(9890),h=i(7917),p=i(8910),f=i(1808);function v(){return"u">typeof matchMedia}function g(){return globalThis.document}function m(e){if(v())return matchMedia(e)}function y(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function b(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,r.cy)(t)&&t.includes(e)}function w(e){return Math.floor((0,s.G0)()*e.length)}function M(e,t,i=!0){return e[void 0!==t&&i?t%e.length:w(e)]}function z(e,t,i,a,n){return S(O(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==u.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===u.v.left)&&(n=e.right>i.x),n&&(!a||a===u.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===u.v.top)&&(n=e.bottom>i.y),n}function O(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.M.create((0,s.VG)(e.options.bounce.horizontal.value),(0,s.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:a}=e.velocity.sub(t.velocity),[n,o]=[e.position,t.position],{dx:r,dy:l}=(0,s.vr)(o,n);if(i*r+a*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,s.OW)(h,p,c,u),v=(0,s.OW)(p,h,c,u),g=f.rotate(-d),m=v.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function k(e,t){return(0,r.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function T(e,t,i){return(0,r.cy)(e)?M(e,t,i):e}function F(e,t){return(0,r.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function _(e,t){let i=e.value,a=e.animation,n={delayTime:(0,s.VG)(a.delay)*o.Xu,enable:a.enable,value:(0,s.VG)(e.value)*t,max:(0,s.W9)(i)*t,min:(0,s.Sg)(i)*t,loops:0,maxLoops:(0,s.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.VG)(a.decay),a.mode){case l.g.increase:n.status=d.H.increasing;break;case l.g.decrease:n.status=d.H.decreasing;break;case l.g.random:n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing}let e=a.mode===l.g.auto;switch(a.startValue){case p.S.min:n.value=n.min,e&&(n.status=d.H.increasing);break;case p.S.max:n.value=n.max,e&&(n.status=d.H.decreasing);break;case p.S.random:default:n.value=(0,s.vE)(n),e&&(n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing)}}return n.initialValue=n.value,n}function E(e,t){if(e.mode!==h.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function I(e,t){return E(e,t)}function A(e,t){return E(e,t)}function D(e,t,i,a,n){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*n.factor,r=t.min,l=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case d.H.increasing:t.value>=l?(i?t.status=d.H.decreasing:t.value-=l,t.loops??=0,t.loops++):t.value+=o;break;case d.H.decreasing:t.value<=r?(i?t.status=d.H.increasing:t.value+=l,t.loops??=0,t.loops++):t.value-=o}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(a){case c.V.max:h>=l&&e.destroy();break;case c.V.min:h<=r&&e.destroy()}t.value=(0,s.qE)(t.value,r,l)}}function L(e){let t=g().createElement("div").style;for(let i in e){let a=e[i];if(!Object.hasOwn(e,i)||(0,r.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let V=(n=function(e){let t=g().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,(...e)=>{let t=JSON.stringify(e);if(a.has(t))return a.get(t);let i=n(...e);return a.set(t,i),i});function C(e,t,i,a,n){if(a){let a={passive:!0};(0,r.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function Z(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return d[e](i,i.exports,u),i.exports}u.m=d,u.d=(e,t)=>{for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce((t,i)=>(u.f[i](e,t),t),[])),u.u=e=>""+e+".min.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},u.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,s,o=document.getElementsByTagName("script"),r=0;r<o.length;r++){var l=o[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(s=!0,(n=document.createElement("script")).charset="utf-8",u.nc&&n.setAttribute("nonce",u.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(c);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),s&&document.head.appendChild(n)},u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(p=u.g.location+"");var h,p,f=u.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=v[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");u.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},u.f.j=(t,i)=>{var a=u.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var s=u.p+u.u(t),o=Error();u.l(s,i=>{if(u.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+t+` failed.
|
|
2
|
-
(`+n+": "+s+")",o.name="ChunkLoadError",o.type=n,o.request=s,a[1](o)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[s,o,r]=i,l=0;if(s.some(t=>0!==e[t])){for(a in o)u.o(o,a)&&(u.m[a]=o[a]);r&&r(u)}for(t&&t(i);l<s.length;l++)n=s[l],u.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var m={};u.r(m),u.d(m,{AlterType:()=>L.H,AnimatableColor:()=>B.A,AnimationMode:()=>E.g,AnimationOptions:()=>G.p,AnimationStatus:()=>Z.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>q.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>H.e,DestroyType:()=>V.V,EasingType:()=>l,EventType:()=>w.B,FullScreen:()=>N.m,GradientType:()=>r,HslAnimation:()=>j.i,LimitMode:()=>I.d,Move:()=>ee.y,MoveAngle:()=>et.h,MoveAttract:()=>Y.R,MoveCenter:()=>ei.Z,MoveDirection:()=>F.F,MoveGravity:()=>ea.y,MovePath:()=>es.v,Opacity:()=>ec.Y,OpacityAnimation:()=>eu.I,Options:()=>K.J,OptionsColor:()=>W.O,OutMode:()=>A.Y,OutModeDirection:()=>_.v,OutModes:()=>en.j,ParticleOutType:()=>C.x,ParticlesBounce:()=>X.w,ParticlesBounceFactor:()=>Q.F,ParticlesDensity:()=>ed.M,ParticlesNumber:()=>er.N,ParticlesNumberLimit:()=>el.A,ParticlesOptions:()=>U.U,PixelMode:()=>D.q,Point:()=>P.b,RangedAnimationOptions:()=>G.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>k.M_,ResizeEvent:()=>eg.z,RotateDirection:()=>o,Shape:()=>eh.y,Size:()=>ep.o,SizeAnimation:()=>ef.q,Spin:()=>eo.t,StartValueType:()=>$.S,Stroke:()=>J.t,ValueWithRandom:()=>em.PV,Vector:()=>T.M,Vector3d:()=>T.p,ZIndex:()=>ev.P,alterHsl:()=>ey.yx,animate:()=>z.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>z.Nx,calcExactPositionOrRandomFromSizeRanged:()=>z.qM,calcPositionFromSize:()=>z.eh,calcPositionOrRandomFromSize:()=>z.Mh,calcPositionOrRandomFromSizeRanged:()=>z.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>z.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>z.qE,clear:()=>ey.IU,clickRadius:()=>y.FS,cloneStyle:()=>b.td,collisionVelocity:()=>z.OW,colorMix:()=>eb.EY,colorToHsl:()=>eb.mK,colorToRgb:()=>eb.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRadius:()=>y.M1,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,degToRad:()=>z.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>ey.k,drawBeforeEffect:()=>ey.z5,drawParticle:()=>ey.p0,drawParticlePlugin:()=>ey.Wb,drawShape:()=>ey.KG,drawShapeAfterDraw:()=>ey.gF,drawShapeBeforeDraw:()=>ey.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>z.Yf,getDistances:()=>z.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>eb.pz,getHslFromAnimation:()=>eb.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>eb._h,getLinkRandomColor:()=>eb.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>z.$m,getParticleDirectionAngle:()=>z.JY,getPosition:()=>b.E9,getRandom:()=>z.G0,getRandomInRange:()=>z.e4,getRandomRgbColor:()=>eb.OH,getRangeMax:()=>z.W9,getRangeMin:()=>z.Sg,getRangeValue:()=>z.VG,getSize:()=>b.YC,getStyleFromHsl:()=>eb.LC,getStyleFromRgb:()=>eb.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>eb.YL,hslaToRgba:()=>eb.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ew.cy,isBoolean:()=>ew.Lm,isFunction:()=>ew.Tn,isInArray:()=>b.hn,isNull:()=>ew.kZ,isNumber:()=>ew.Et,isObject:()=>ew.Gv,isPointInside:()=>b.Tj,isString:()=>ew.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>ex.Z,loadParticlesOptions:()=>ex.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,manualDefaultPosition:()=>y.td,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCoordinate:()=>y.TL,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minRetries:()=>y.N5,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumLength:()=>y.$O,minimumSize:()=>y.w2,mix:()=>z.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>ey.Sn,paintImage:()=>ey.Md,parseAlpha:()=>z.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,posOffset:()=>y.un,qTreeCapacity:()=>y.Kw,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>z.vE,rangeColorToHsl:()=>eb.R5,rangeColorToRgb:()=>eb.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>eb.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>z.AD,setLogger:()=>M.B,setRandom:()=>z.OE,setRangeValue:()=>z.DT,sextuple:()=>y.zg,sizeFactor:()=>y.Rh,squareExp:()=>y.dm,stringToAlpha:()=>eb.zI,stringToRgb:()=>eb.eg,subdivideCount:()=>y.Pg,threeQuarter:()=>y.Rq,touchDelay:()=>y.pH,touchEndLengthOffset:()=>y.KZ,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>eM,updateAnimation:()=>b.UC,updateColor:()=>eb.Jv,updateColorValue:()=>eb.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=u(7157),b=u(2439);class x{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=u(6911),M=u(567),z=u(493);let S="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class R{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,movers:new Map,pathGenerators:new Map,shapes:new Map,updaters:new Map};movers=new Map;pathGenerators=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.21"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(w.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addMover(e,t){this.initializers.movers.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPathGenerator(e,t){this.initializers.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.movers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getMovers(e,t=!1){return(0,b.HQ)(e,this.movers,this.initializers.movers,t)}getPathGenerators(e,t=!1){return(0,b.Ot)(e,this.pathGenerators,this.initializers.pathGenerators,t)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await u.e(515).then(u.bind(u,5515)),s=e.id??e.element?.id??`tsparticles${Math.floor((0,z.G0)()*y.$v).toString()}`,{index:o,url:r}=e,l=r?await O({fallback:e.options,url:r,index:o}):e.options,d=(0,b.TA)(l,o),{items:c}=this,h=c.findIndex(e=>e.id.description===s),p=new n(this,s,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),c.splice(h,t,p)}else c.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=S,t.style.height||=S,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(s))||((a=i.createElement("div")).id=s,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var P=u(2714),k=u(1636),T=u(1808),F=u(3702);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var _=u(9890),E=u(5615),I=u(1610),A=u(3849),D=u(7917),L=u(1903),V=u(5717);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var C=u(3457),$=u(8910);(s=l||(l={})).easeInBack="ease-in-back",s.easeInBounce="ease-in-bounce",s.easeInCirc="ease-in-circ",s.easeInCubic="ease-in-cubic",s.easeInElastic="ease-in-elastic",s.easeInExpo="ease-in-expo",s.easeInGaussian="ease-in-gaussian",s.easeInLinear="ease-in-linear",s.easeInQuad="ease-in-quad",s.easeInQuart="ease-in-quart",s.easeInQuint="ease-in-quint",s.easeInSigmoid="ease-in-sigmoid",s.easeInSine="ease-in-sine",s.easeInSmoothstep="ease-in-smoothstep",s.easeOutBack="ease-out-back",s.easeOutBounce="ease-out-bounce",s.easeOutCirc="ease-out-circ",s.easeOutCubic="ease-out-cubic",s.easeOutElastic="ease-out-elastic",s.easeOutExpo="ease-out-expo",s.easeOutGaussian="ease-out-gaussian",s.easeOutLinear="ease-out-linear",s.easeOutQuad="ease-out-quad",s.easeOutQuart="ease-out-quart",s.easeOutQuint="ease-out-quint",s.easeOutSigmoid="ease-out-sigmoid",s.easeOutSine="ease-out-sine",s.easeOutSmoothstep="ease-out-smoothstep",s.easeInOutBack="ease-in-out-back",s.easeInOutBounce="ease-in-out-bounce",s.easeInOutCirc="ease-in-out-circ",s.easeInOutCubic="ease-in-out-cubic",s.easeInOutElastic="ease-in-out-elastic",s.easeInOutExpo="ease-in-out-expo",s.easeInOutGaussian="ease-in-out-gaussian",s.easeInOutLinear="ease-in-out-linear",s.easeInOutQuad="ease-in-out-quad",s.easeInOutQuart="ease-in-out-quart",s.easeInOutQuint="ease-in-out-quint",s.easeInOutSigmoid="ease-in-out-sigmoid",s.easeInOutSine="ease-in-out-sine",s.easeInOutSmoothstep="ease-in-out-smoothstep";var Z=u(1609),B=u(2249),G=u(7896),q=u(5767),H=u(8859),N=u(1845),j=u(1311),K=u(5872),W=u(7981),X=u(5484),Q=u(1799),U=u(3068),J=u(3480),Y=u(2816),ee=u(2657),et=u(6086),ei=u(608),ea=u(2256),en=u(668),es=u(8136),eo=u(3072),er=u(2096),el=u(7537),ed=u(9829),ec=u(7089),eu=u(763),eh=u(8861),ep=u(2825),ef=u(5555),ev=u(9651),eg=u(8590),em=u(424),ey=u(1963),eb=u(6720),ex=u(9875),ew=u(3727);let eM=new R;return globalThis.tsParticles=eM,m})());
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a,n,s,o,r,l,d={7157(e,t,i){i.d(t,{$G:()=>L,$O:()=>B,$_:()=>_,$v:()=>J,$x:()=>S,BF:()=>eR,BW:()=>h,DN:()=>Q,D_:()=>eb,Dv:()=>ex,Eo:()=>ea,FS:()=>H,Fl:()=>eP,GW:()=>C,Ie:()=>D,JC:()=>K,K3:()=>ep,KZ:()=>N,Kw:()=>M,L1:()=>E,LD:()=>ev,M1:()=>eo,MX:()=>r,N5:()=>en,NF:()=>n,Nu:()=>ez,Nx:()=>U,PZ:()=>Y,Pf:()=>e_,Pg:()=>R,R1:()=>f,RF:()=>b,RV:()=>G,Rh:()=>el,Rq:()=>V,TL:()=>j,U0:()=>A,Ug:()=>c,WH:()=>ei,X$:()=>y,X_:()=>es,Xu:()=>l,Zp:()=>O,a5:()=>o,aE:()=>eO,aZ:()=>g,bo:()=>d,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>a,eu:()=>F,gd:()=>p,hB:()=>P,hK:()=>eT,hv:()=>q,i8:()=>X,iU:()=>ew,jn:()=>ek,lA:()=>ef,mR:()=>u,nK:()=>s,nq:()=>ec,oi:()=>k,ou:()=>ed,pH:()=>eg,rq:()=>x,tA:()=>ey,tR:()=>eF,td:()=>em,un:()=>er,vF:()=>W,vS:()=>T,vd:()=>eM,w2:()=>$,wM:()=>eu,xH:()=>ee,xd:()=>z,yx:()=>I,z$:()=>v,z9:()=>eh,zg:()=>eS,zs:()=>Z});let a="generated",n="resize",s="visibilitychange",o=100,r=.5,l=1e3,d={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},u="random",h="mid",p=2,f=2*Math.PI,v=60,g=1,m="true",y="false",b="canvas",x=0,w=2,M=4,z=1,S=1,O=1,R=4,P=1,k=255,T=360,F=100,_=100,E=0,I=0,A=60,D=0,L=.25,V=.75,C=0,Z=1,$=0,B=0,G=1,q=1,H=1,N=1,j=0,K=1,W=0,X=120,Q=0,U=0,J=1e4,Y=0,ee=1,et=0,ei=1,ea=1,en=0,es=0,eo=0,er=-.25,el=1.5,ed=0,ec=1,eu=0,eh=0,ep=1,ef=1,ev=1,eg=500,em=50,ey=0,eb=1,ex=0,ew=1,eM=0,ez=3,eS=6,eO=1,eR=1,eP=0,ek=0,eT=0,eF=0,e_=1},2714(e,t,i){i.d(t,{b:()=>a});class a{particle;position;constructor(e,t){this.position=e,this.particle=t}}},1636(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,s=i(493),o=i(7157);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,s.Yf)(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof l||e.type===n.circle)return s+e.radius>Math.sqrt(a.x**o.dm+a.y**o.dm);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,o.dm)+Math.pow(a.y-i,o.dm)<=s**o.dm||a.x<=s+t&&a.y<=s+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,s=e instanceof d?e.size:{width:0,height:0},o=s.width,r=s.height;return n.x<a.x+t&&n.x+o>a.x&&n.y<a.y+i&&n.y+r>a.y}}},1808(e,t,i){i.d(t,{M:()=>s,p:()=>n});var a=i(7157);class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,e.z)}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,Object.hasOwn(e,"z")?e.z:a.bo.z)}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return n.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:a.bo.z}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}_updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},1609(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},3702(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},9890(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},5615(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},1610(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},3849(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},7917(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},1903(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},5717(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},6911(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},3457(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8910(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},2249(e,t,i){i.d(t,{A:()=>o});var a=i(3727),n=i(1311),s=i(7981);class o extends s.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},7896(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(5615),n=i(8910),s=i(3727),o=i(493);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},5767(e,t,i){i.d(t,{V:()=>s});var a=i(7981),n=i(3727);class s{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},8859(e,t,i){i.d(t,{e:()=>o});var a=i(7896),n=i(3727),s=i(493);class o extends a.p{offset;constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},1845(e,t,i){i.d(t,{m:()=>n});var a=i(3727);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},1311(e,t,i){i.d(t,{i:()=>s});var a=i(8859),n=i(3727);class s{h=new a.e;l=new a.e;s=new a.e;load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},5872(e,t,i){i.d(t,{J:()=>c});var a=i(2439),n=i(3727),s=i(5767),o=i(1845),r=i(8590),l=i(9875),d=i(493);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new o.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(0,a.wJ)(e.preset,e=>{this._importPreset(e)}),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let s=e.fullScreen;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPreset=e=>{this.load(this._engine.getPreset(e))}}},7981(e,t,i){i.d(t,{O:()=>n});var a=i(3727);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},5484(e,t,i){i.d(t,{w:()=>s});var a=i(1799),n=i(3727);class s{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},1799(e,t,i){i.d(t,{F:()=>n});var a=i(424);class n extends a.PV{constructor(){super(),this.value=1}}},2657(e,t,i){i.d(t,{y:()=>p});var a=i(3702),n=i(3727),s=i(6086),o=i(2816),r=i(608),l=i(2256),d=i(8136),c=i(668),u=i(3072),h=i(493);class p{angle;attract;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new s.h,this.attract=new o.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new l.y,this.path=new d.v,this.outModes=new c.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},6086(e,t,i){i.d(t,{h:()=>s});var a=i(3727),n=i(493);class s{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},2816(e,t,i){i.d(t,{R:()=>s});var a=i(3727),n=i(493);class s{distance;enable;rotate;constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,a.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,n.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},608(e,t,i){i.d(t,{Z:()=>s});var a=i(7917),n=i(3727);class s{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},2256(e,t,i){i.d(t,{y:()=>s});var a=i(3727),n=i(493);class s{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},668(e,t,i){i.d(t,{j:()=>s});var a=i(3849),n=i(3727);class s{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},8136(e,t,i){i.d(t,{v:()=>o});var a=i(424),n=i(2439),s=i(3727);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,s.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},3072(e,t,i){i.d(t,{t:()=>o});var a=i(2439),n=i(3727),s=i(493);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},9829(e,t,i){i.d(t,{M:()=>n});var a=i(3727);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},2096(e,t,i){i.d(t,{N:()=>o});var a=i(9829),n=i(7537),s=i(3727);class o{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7537(e,t,i){i.d(t,{A:()=>s});var a=i(1610),n=i(3727);class s{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},7089(e,t,i){i.d(t,{Y:()=>o});var a=i(763),n=i(424),s=i(3727);class o extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},763(e,t,i){i.d(t,{I:()=>o});var a=i(5717),n=i(7896),s=i(3727);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},3068(e,t,i){i.d(t,{U:()=>v});var a=i(2439),n=i(2249),s=i(3727);class o{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(2657),l=i(7089),d=i(5484),c=i(2096),u=i(8861),h=i(2825),p=i(3480),f=i(9651);class v{bounce;color;effect;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.color=new n.A,this.color.value="#fff",this.effect=new o,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(n.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.stroke;if(t&&(this.stroke=(0,a.wJ)(t,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},8861(e,t,i){i.d(t,{y:()=>s});var a=i(2439),n=i(3727);class s{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},2825(e,t,i){i.d(t,{o:()=>o});var a=i(424),n=i(5555),s=i(3727);class o extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},5555(e,t,i){i.d(t,{q:()=>o});var a=i(5717),n=i(7896),s=i(3727);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},3480(e,t,i){i.d(t,{t:()=>o});var a=i(2249),n=i(3727),s=i(493);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},9651(e,t,i){i.d(t,{P:()=>s});var a=i(424),n=i(3727);class s extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},8590(e,t,i){i.d(t,{z:()=>n});var a=i(3727);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},424(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>o});var a=i(7896),n=i(3727),s=i(493);class o{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,s.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},1963(e,t,i){i.d(t,{IU:()=>r,KG:()=>u,Md:()=>o,Sn:()=>s,VG:()=>p,Wb:()=>f,gF:()=>h,k:()=>d,p0:()=>l,yx:()=>v,z5:()=>c});var a=i(7157),n=i(1903);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=1)}function r(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function l(e){let{container:t,context:i,particle:n,delta:s,colorStyles:o,radius:r,opacity:l,transform:f}=e,v=n.getPosition(),g=n.getTransformData(f),m=a.Pf,y={x:v.x,y:v.y};i.setTransform(g.a,g.b,g.c,g.d,v.x,v.y),o.fill&&(i.fillStyle=o.fill);let b=n.strokeWidth??a.Dv;i.lineWidth=b,o.stroke&&(i.strokeStyle=o.stroke);let x={context:i,particle:n,radius:r,drawRadius:r*m,opacity:l,delta:s,pixelRatio:t.retina.pixelRatio,fill:n.shapeFill,stroke:b>a.Dv||!n.shapeFill,transformData:g,position:{x:v.x,y:v.y},drawPosition:y,drawScale:m};for(let e of t.plugins)e.drawParticleTransform?.(x);c(t,x),p(t,x),u(t,x),h(t,x),d(t,x),i.resetTransform()}function d(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect),n=a?.drawAfter;n&&n(t)}function c(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect);a?.drawBefore&&a.drawBefore(t)}function u(e,t){let{context:i,particle:a,stroke:n}=t;if(!a.shape)return;let s=e.particles.shapeDrawers.get(a.shape);s&&(i.beginPath(),s.draw(t),a.shapeClose&&i.closePath(),n&&i.stroke(),a.shapeFill&&i.fill())}function h(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.afterDraw&&a.afterDraw(t)}function p(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.beforeDraw&&a.beforeDraw(t)}function f(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}function v(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===n.H.darken?-a.iU:a.iU)*i}}},6720(e,t,i){i.d(t,{BN:()=>u,EY:()=>S,Jv:()=>_,K6:()=>v,Ko:()=>F,LC:()=>z,OH:()=>x,O_:()=>P,PG:()=>R,R5:()=>f,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>p,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var a=i(493),n=i(7157),s=i(3727),o=i(1609),r=i(2439);let l=new Map;function d(e,t){let i=l.get(e);return i||(i=t(),l.size>=1e3&&[...l.keys()].slice(0,1e3*n.MX).forEach(e=>l.delete(e)),l.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function u(e,t,i,a=!0){if(!t)return;let n=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(n.value))return h(e,n.value,i,a);if((0,s.cy)(n.value)){let t=(0,r.Vh)(n.value,i,a);if(!t)return;return u(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function h(e,t,i,a=!0){if(!t)return;let o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===n.mR?x():c(e,o.value);if((0,s.cy)(o.value)){let t=(0,r.Vh)(o.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}function p(e,t,i,a=!0){let n=h(e,t,i,a);return n?v(n):void 0}function f(e,t,i,a=!0){let n=u(e,t,i,a);return n?v(n):void 0}function v(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,s=Math.max(t,i,a),o=Math.min(t,i,a),r={h:n.L1,l:(s+o)*n.MX,s:n.yx};return s!==o&&(r.s=r.l<n.MX?(s-o)/(s+o):(s-o)/(n.gd-s-o),t===s?r.h=(i-a)/(s-o):i===s?r.h=n.gd+(a-t)/(s-o):r.h=n.gd*n.gd+(t-i)/(s-o)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),s=t/n.vS,o=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+o):r+o-r*o,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,s+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,s))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,s-u)))}}function b(e){let t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){let t=e??n.Fl,i=n.oi+n.D_,s=()=>Math.floor((0,a.e4)(t,i));return{b:s(),g:s(),r:s()}}function w(e,t,i){let a=i??n.hv;return d(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s;return t?M(e,i):(a=e,s=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(s??n.hv).toString()})`)})}function M(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function z(e,t,i){let a=i??n.hv;return d(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s,o,r;return t?(a=e,s=i,M(y(a),s)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??n.hv).toString()})`)})}function S(e,t,i,n){let s=e,o=t;return Object.hasOwn(s,"r")||(s=y(e)),Object.hasOwn(o,"r")||(o=y(t)),{b:(0,a.jh)(s.b,o.b,i,n),g:(0,a.jh)(s.g,o.g,i,n),r:(0,a.jh)(s.r,o.r,i,n)}}function O(e,t,i){if(i===n.mR)return x();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return S(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return y(e)}}}function R(e,t,i,a){let o=(0,s.Kg)(t)?t:t.value;return o===n.mR?a?u(e,{value:o}):i?n.mR:n.BW:o===n.BW?n.BW:u(e,{value:o})}function P(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function k(e,t,i){let a={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=o.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function F(e,t,i,n){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,r=(e.velocity??0)*n.factor+3.6*s,l=e.decay??1,d=(0,a.W9)(t),c=(0,a.Sg)(t);i&&e.status!==o.H.increasing?(e.value-=r,e.value<0&&(e.loops??=0,e.loops++,e.status=o.H.increasing)):(e.value+=r,e.value>d&&(e.loops??=0,e.loops++,i?e.status=o.H.decreasing:e.value-=d)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,a.qE)(e.value,c,d)}function _(e,t){if(!e)return;let{h:i,s:a,l:s}=e,o={h:{min:n.L1,max:n.vS},s:{min:n.yx,max:n.eu},l:{min:n.vd,max:n.$_}};F(i,o.h,!1,t),F(a,o.s,!0,t),F(s,o.l,!0,t)}},567(e,t,i){i.d(t,{B:()=>n,t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function s(){return a}},493(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>I,Mh:()=>T,Nx:()=>_,OE:()=>c,OW:()=>P,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>k,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>S,px:()=>v,qE:()=>g,qM:()=>E,vE:()=>y,vr:()=>M});var a=i(3702),n=i(7157),s=i(1808),o=i(3727);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=t=>e(t),d.cancel=e=>{t(e)}}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,o.Et)(e)?e:y(e)}function x(e){return(0,o.Et)(e)?e:e.min}function w(e){return(0,o.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.sqrt(i**2+a**2)}}function z(e,t){return M(e,t).distance}function S(e){return e*r}function O(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=s.M.origin;return t.length=1,t.angle=e,t}function P(e,t,i,a){return s.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function k(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function T(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function F(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return T({size:e.size,position:t})}function _(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function E(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return _({size:e.size,position:t})}function I(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},9875(e,t,i){i.d(t,{Z:()=>n,y:()=>s});var a=i(3068);function n(e,...t){for(let i of t)e.load(i)}function s(e,t,...i){let o=new a.U(e,t);return n(o,...i),o}},3727(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function s(e){return"number"==typeof e}function o(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>o,cy:()=>l,kZ:()=>d})},2439(e,t,i){let a;i.d(t,{AE:()=>O,BR:()=>y,E9:()=>I,HQ:()=>Z,Kp:()=>C,O2:()=>S,Ot:()=>$,T5:()=>g,TA:()=>T,Tg:()=>R,Tj:()=>z,UC:()=>D,Vh:()=>M,Xs:()=>_,YC:()=>A,hJ:()=>V,hn:()=>x,lV:()=>m,n0:()=>w,pE:()=>P,q8:()=>v,tG:()=>b,td:()=>L,w3:()=>F,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i)if(null!=a){if(!(0,r.Gv)(a)){t=a;continue}for(let i in Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,r.Gv)(t)||Array.isArray(t))&&(t={}),a){if("__proto__"===i)continue;let n=a[i],s=t;s[i]=(0,r.Gv)(n)&&Array.isArray(n)?n.map(t=>e(s[i],t)):e(s[i],n)}}return t}});var n,s=i(493),o=i(7157),r=i(3727),l=i(5615),d=i(1609),c=i(5717),u=i(9890),h=i(7917),p=i(8910),f=i(1808);function v(){return"u">typeof matchMedia}function g(){return globalThis.document}function m(e){if(v())return matchMedia(e)}function y(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function b(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,r.cy)(t)&&t.includes(e)}function w(e){return Math.floor((0,s.G0)()*e.length)}function M(e,t,i=!0){return e[void 0!==t&&i?t%e.length:w(e)]}function z(e,t,i,a,n){return S(O(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==u.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===u.v.left)&&(n=e.right>i.x),n&&(!a||a===u.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===u.v.top)&&(n=e.bottom>i.y),n}function O(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.M.create((0,s.VG)(e.options.bounce.horizontal.value),(0,s.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:a}=e.velocity.sub(t.velocity),[n,o]=[e.position,t.position],{dx:r,dy:l}=(0,s.vr)(o,n);if(i*r+a*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,s.OW)(h,p,c,u),v=(0,s.OW)(p,h,c,u),g=f.rotate(-d),m=v.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function k(e,t){return(0,r.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function T(e,t,i){return(0,r.cy)(e)?M(e,t,i):e}function F(e,t){return(0,r.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function _(e,t){let i=e.value,a=e.animation,n={delayTime:(0,s.VG)(a.delay)*o.Xu,enable:a.enable,value:(0,s.VG)(e.value)*t,max:(0,s.W9)(i)*t,min:(0,s.Sg)(i)*t,loops:0,maxLoops:(0,s.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.VG)(a.decay),a.mode){case l.g.increase:n.status=d.H.increasing;break;case l.g.decrease:n.status=d.H.decreasing;break;case l.g.random:n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing}let e=a.mode===l.g.auto;switch(a.startValue){case p.S.min:n.value=n.min,e&&(n.status=d.H.increasing);break;case p.S.max:n.value=n.max,e&&(n.status=d.H.decreasing);break;case p.S.random:default:n.value=(0,s.vE)(n),e&&(n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing)}}return n.initialValue=n.value,n}function E(e,t){if(e.mode!==h.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function I(e,t){return E(e,t)}function A(e,t){return E(e,t)}function D(e,t,i,a,n){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*n.factor,r=t.min,l=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case d.H.increasing:t.value>=l?(i?t.status=d.H.decreasing:t.value-=l,t.loops??=0,t.loops++):t.value+=o;break;case d.H.decreasing:t.value<=r?(i?t.status=d.H.increasing:t.value+=l,t.loops??=0,t.loops++):t.value-=o}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(a){case c.V.max:h>=l&&e.destroy();break;case c.V.min:h<=r&&e.destroy()}t.value=(0,s.qE)(t.value,r,l)}}function L(e){let t=g().createElement("div").style;for(let i in e){let a=e[i];if(!Object.hasOwn(e,i)||(0,r.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let V=(n=function(e){let t=g().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,(...e)=>{let t=JSON.stringify(e);if(a.has(t))return a.get(t);let i=n(...e);return a.set(t,i),i});function C(e,t,i,a,n){if(a){let a={passive:!0};(0,r.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function Z(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return d[e](i,i.exports,u),i.exports}u.m=d,u.d=(e,t)=>{for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce((t,i)=>(u.f[i](e,t),t),[])),u.u=e=>""+e+".min.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},u.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,s,o=document.getElementsByTagName("script"),r=0;r<o.length;r++){var l=o[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(s=!0,(n=document.createElement("script")).charset="utf-8",u.nc&&n.setAttribute("nonce",u.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(c);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),s&&document.head.appendChild(n)},u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(p=u.g.location+"");var h,p,f=u.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=v[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");u.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},u.f.j=(t,i)=>{var a=u.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var s=u.p+u.u(t),o=Error();u.l(s,i=>{if(u.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+t+` failed.
|
|
2
|
+
(`+n+": "+s+")",o.name="ChunkLoadError",o.type=n,o.request=s,a[1](o)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[s,o,r]=i,l=0;if(s.some(t=>0!==e[t])){for(a in o)u.o(o,a)&&(u.m[a]=o[a]);r&&r(u)}for(t&&t(i);l<s.length;l++)n=s[l],u.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var m={};u.r(m),u.d(m,{AlterType:()=>L.H,AnimatableColor:()=>B.A,AnimationMode:()=>E.g,AnimationOptions:()=>G.p,AnimationStatus:()=>$.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>q.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>H.e,DestroyType:()=>V.V,EasingType:()=>l,EventType:()=>w.B,FullScreen:()=>N.m,GradientType:()=>r,HslAnimation:()=>j.i,LimitMode:()=>I.d,Move:()=>ee.y,MoveAngle:()=>et.h,MoveAttract:()=>Y.R,MoveCenter:()=>ei.Z,MoveDirection:()=>F.F,MoveGravity:()=>ea.y,MovePath:()=>es.v,Opacity:()=>ec.Y,OpacityAnimation:()=>eu.I,Options:()=>K.J,OptionsColor:()=>W.O,OutMode:()=>A.Y,OutModeDirection:()=>_.v,OutModes:()=>en.j,ParticleOutType:()=>C.x,ParticlesBounce:()=>X.w,ParticlesBounceFactor:()=>Q.F,ParticlesDensity:()=>ed.M,ParticlesNumber:()=>er.N,ParticlesNumberLimit:()=>el.A,ParticlesOptions:()=>U.U,PixelMode:()=>D.q,Point:()=>P.b,RangedAnimationOptions:()=>G.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>k.M_,ResizeEvent:()=>eg.z,RotateDirection:()=>o,Shape:()=>eh.y,Size:()=>ep.o,SizeAnimation:()=>ef.q,Spin:()=>eo.t,StartValueType:()=>Z.S,Stroke:()=>J.t,ValueWithRandom:()=>em.PV,Vector:()=>T.M,Vector3d:()=>T.p,ZIndex:()=>ev.P,alterHsl:()=>ey.yx,animate:()=>z.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>z.Nx,calcExactPositionOrRandomFromSizeRanged:()=>z.qM,calcPositionFromSize:()=>z.eh,calcPositionOrRandomFromSize:()=>z.Mh,calcPositionOrRandomFromSizeRanged:()=>z.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>z.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>z.qE,clear:()=>ey.IU,clickRadius:()=>y.FS,cloneStyle:()=>b.td,collisionVelocity:()=>z.OW,colorMix:()=>eb.EY,colorToHsl:()=>eb.mK,colorToRgb:()=>eb.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRadius:()=>y.M1,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,defaultZoom:()=>y.Pf,degToRad:()=>z.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>ey.k,drawBeforeEffect:()=>ey.z5,drawParticle:()=>ey.p0,drawParticlePlugin:()=>ey.Wb,drawShape:()=>ey.KG,drawShapeAfterDraw:()=>ey.gF,drawShapeBeforeDraw:()=>ey.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>z.Yf,getDistances:()=>z.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>eb.pz,getHslFromAnimation:()=>eb.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>eb._h,getLinkRandomColor:()=>eb.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>z.$m,getParticleDirectionAngle:()=>z.JY,getPosition:()=>b.E9,getRandom:()=>z.G0,getRandomInRange:()=>z.e4,getRandomRgbColor:()=>eb.OH,getRangeMax:()=>z.W9,getRangeMin:()=>z.Sg,getRangeValue:()=>z.VG,getSize:()=>b.YC,getStyleFromHsl:()=>eb.LC,getStyleFromRgb:()=>eb.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>eb.YL,hslaToRgba:()=>eb.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ew.cy,isBoolean:()=>ew.Lm,isFunction:()=>ew.Tn,isInArray:()=>b.hn,isNull:()=>ew.kZ,isNumber:()=>ew.Et,isObject:()=>ew.Gv,isPointInside:()=>b.Tj,isString:()=>ew.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>ex.Z,loadParticlesOptions:()=>ex.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,manualDefaultPosition:()=>y.td,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCoordinate:()=>y.TL,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minRetries:()=>y.N5,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumLength:()=>y.$O,minimumSize:()=>y.w2,mix:()=>z.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>ey.Sn,paintImage:()=>ey.Md,parseAlpha:()=>z.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,posOffset:()=>y.un,qTreeCapacity:()=>y.Kw,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>z.vE,rangeColorToHsl:()=>eb.R5,rangeColorToRgb:()=>eb.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>eb.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>z.AD,setLogger:()=>M.B,setRandom:()=>z.OE,setRangeValue:()=>z.DT,sextuple:()=>y.zg,sizeFactor:()=>y.Rh,squareExp:()=>y.dm,stringToAlpha:()=>eb.zI,stringToRgb:()=>eb.eg,subdivideCount:()=>y.Pg,threeQuarter:()=>y.Rq,touchDelay:()=>y.pH,touchEndLengthOffset:()=>y.KZ,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>eM,updateAnimation:()=>b.UC,updateColor:()=>eb.Jv,updateColorValue:()=>eb.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=u(7157),b=u(2439);class x{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=u(6911),M=u(567),z=u(493);let S="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class R{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,movers:new Map,pathGenerators:new Map,shapes:new Map,updaters:new Map};movers=new Map;pathGenerators=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.23"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(w.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addMover(e,t){this.initializers.movers.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPathGenerator(e,t){this.initializers.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.movers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getMovers(e,t=!1){return(0,b.HQ)(e,this.movers,this.initializers.movers,t)}getPathGenerators(e,t=!1){return(0,b.Ot)(e,this.pathGenerators,this.initializers.pathGenerators,t)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await u.e(515).then(u.bind(u,5515)),s=e.id??e.element?.id??`tsparticles${Math.floor((0,z.G0)()*y.$v).toString()}`,{index:o,url:r}=e,l=r?await O({fallback:e.options,url:r,index:o}):e.options,d=(0,b.TA)(l,o),{items:c}=this,h=c.findIndex(e=>e.id.description===s),p=new n(this,s,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),c.splice(h,t,p)}else c.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=S,t.style.height||=S,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(s))||((a=i.createElement("div")).id=s,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var P=u(2714),k=u(1636),T=u(1808),F=u(3702);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var _=u(9890),E=u(5615),I=u(1610),A=u(3849),D=u(7917),L=u(1903),V=u(5717);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var C=u(3457),Z=u(8910);(s=l||(l={})).easeInBack="ease-in-back",s.easeInBounce="ease-in-bounce",s.easeInCirc="ease-in-circ",s.easeInCubic="ease-in-cubic",s.easeInElastic="ease-in-elastic",s.easeInExpo="ease-in-expo",s.easeInGaussian="ease-in-gaussian",s.easeInLinear="ease-in-linear",s.easeInQuad="ease-in-quad",s.easeInQuart="ease-in-quart",s.easeInQuint="ease-in-quint",s.easeInSigmoid="ease-in-sigmoid",s.easeInSine="ease-in-sine",s.easeInSmoothstep="ease-in-smoothstep",s.easeOutBack="ease-out-back",s.easeOutBounce="ease-out-bounce",s.easeOutCirc="ease-out-circ",s.easeOutCubic="ease-out-cubic",s.easeOutElastic="ease-out-elastic",s.easeOutExpo="ease-out-expo",s.easeOutGaussian="ease-out-gaussian",s.easeOutLinear="ease-out-linear",s.easeOutQuad="ease-out-quad",s.easeOutQuart="ease-out-quart",s.easeOutQuint="ease-out-quint",s.easeOutSigmoid="ease-out-sigmoid",s.easeOutSine="ease-out-sine",s.easeOutSmoothstep="ease-out-smoothstep",s.easeInOutBack="ease-in-out-back",s.easeInOutBounce="ease-in-out-bounce",s.easeInOutCirc="ease-in-out-circ",s.easeInOutCubic="ease-in-out-cubic",s.easeInOutElastic="ease-in-out-elastic",s.easeInOutExpo="ease-in-out-expo",s.easeInOutGaussian="ease-in-out-gaussian",s.easeInOutLinear="ease-in-out-linear",s.easeInOutQuad="ease-in-out-quad",s.easeInOutQuart="ease-in-out-quart",s.easeInOutQuint="ease-in-out-quint",s.easeInOutSigmoid="ease-in-out-sigmoid",s.easeInOutSine="ease-in-out-sine",s.easeInOutSmoothstep="ease-in-out-smoothstep";var $=u(1609),B=u(2249),G=u(7896),q=u(5767),H=u(8859),N=u(1845),j=u(1311),K=u(5872),W=u(7981),X=u(5484),Q=u(1799),U=u(3068),J=u(3480),Y=u(2816),ee=u(2657),et=u(6086),ei=u(608),ea=u(2256),en=u(668),es=u(8136),eo=u(3072),er=u(2096),el=u(7537),ed=u(9829),ec=u(7089),eu=u(763),eh=u(8861),ep=u(2825),ef=u(5555),ev=u(9651),eg=u(8590),em=u(424),ey=u(1963),eb=u(6720),ex=u(9875),ew=u(3727);let eM=new R;return globalThis.tsParticles=eM,m})());
|
package/types/Core/Canvas.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Container } from "./Container.js";
|
|
2
2
|
import type { Engine } from "./Engine.js";
|
|
3
|
+
import type { ICoordinates } from "./Interfaces/ICoordinates.js";
|
|
3
4
|
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
4
5
|
import type { IDimension } from "./Interfaces/IDimension.js";
|
|
5
6
|
import type { Particle } from "./Particle.js";
|
|
@@ -7,6 +8,7 @@ export declare class Canvas {
|
|
|
7
8
|
private readonly container;
|
|
8
9
|
element?: HTMLCanvasElement;
|
|
9
10
|
readonly size: IDimension;
|
|
11
|
+
zoom: number;
|
|
10
12
|
private _canvasClearPlugins;
|
|
11
13
|
private _canvasPaintPlugins;
|
|
12
14
|
private _canvasSettings?;
|
|
@@ -31,6 +33,7 @@ export declare class Canvas {
|
|
|
31
33
|
private readonly _reusablePluginColors;
|
|
32
34
|
private readonly _reusableTransform;
|
|
33
35
|
private readonly _standardSize;
|
|
36
|
+
private _zoomCenter?;
|
|
34
37
|
constructor(container: Container, engine: Engine);
|
|
35
38
|
get settings(): CanvasRenderingContext2DSettings | undefined;
|
|
36
39
|
private get _fullScreen();
|
|
@@ -41,6 +44,7 @@ export declare class Canvas {
|
|
|
41
44
|
drawParticle(particle: Particle, delta: IDelta): void;
|
|
42
45
|
drawParticlePlugins(particle: Particle, delta: IDelta): void;
|
|
43
46
|
drawParticles(delta: IDelta): void;
|
|
47
|
+
getZoomCenter(): ICoordinates;
|
|
44
48
|
init(): void;
|
|
45
49
|
initBackground(): void;
|
|
46
50
|
initPlugins(): void;
|
|
@@ -51,6 +55,7 @@ export declare class Canvas {
|
|
|
51
55
|
paintImage(image: HTMLImageElement, opacity: number): void;
|
|
52
56
|
resize(): boolean;
|
|
53
57
|
setPointerEvents(type: string): void;
|
|
58
|
+
setZoom(zoomLevel: number, center?: ICoordinates): void;
|
|
54
59
|
stop(): void;
|
|
55
60
|
windowResize(): Promise<void>;
|
|
56
61
|
private readonly _applyPostDrawUpdaters;
|
|
@@ -2,6 +2,7 @@ import type { ExportResult } from "../../Types/ExportResult.js";
|
|
|
2
2
|
import type { ICoordinates } from "./ICoordinates.js";
|
|
3
3
|
import type { IDelta } from "./IDelta.js";
|
|
4
4
|
import type { IOptionsColor } from "../../Options/Interfaces/IOptionsColor.js";
|
|
5
|
+
import type { IShapeDrawData } from "./IShapeDrawData.js";
|
|
5
6
|
import type { OutModeDirection } from "../../Enums/Directions/OutModeDirection.js";
|
|
6
7
|
import type { Particle } from "../Particle.js";
|
|
7
8
|
export interface IContainerPlugin {
|
|
@@ -15,6 +16,7 @@ export interface IContainerPlugin {
|
|
|
15
16
|
drawParticle?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
16
17
|
drawParticleCleanup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
17
18
|
drawParticleSetup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
|
|
19
|
+
drawParticleTransform?: (data: IShapeDrawData) => void;
|
|
18
20
|
drawSettingsCleanup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
19
21
|
drawSettingsSetup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
|
|
20
22
|
export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
import type { ICoordinates } from "./ICoordinates.js";
|
|
1
2
|
import type { IDelta } from "./IDelta.js";
|
|
2
3
|
import type { Particle } from "../Particle.js";
|
|
3
4
|
export interface IShapeDrawData<TParticle extends Particle = Particle> {
|
|
4
5
|
context: CanvasRenderingContext2D;
|
|
5
6
|
delta: IDelta;
|
|
7
|
+
drawPosition: ICoordinates;
|
|
8
|
+
drawRadius: number;
|
|
9
|
+
drawScale: number;
|
|
6
10
|
fill: boolean;
|
|
7
11
|
opacity: number;
|
|
8
12
|
particle: TParticle;
|
|
9
13
|
pixelRatio: number;
|
|
14
|
+
position: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
10
18
|
radius: number;
|
|
11
19
|
stroke: boolean;
|
|
12
20
|
transformData: {
|
|
@@ -4,4 +4,4 @@ export declare const generatedAttribute = "generated", resizeEvent = "resize", v
|
|
|
4
4
|
b: number;
|
|
5
5
|
c: number;
|
|
6
6
|
d: number;
|
|
7
|
-
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0, minZ = 0, defaultRadius = 0, posOffset: number, sizeFactor = 1.5, minLimit = 0, countOffset = 1, minCount = 0, minIndex = 0, lengthOffset = 1, defaultDensityFactor = 1, deleteCount = 1, touchDelay = 500, manualDefaultPosition = 50, defaultAngle = 0, identity = 1, minStrokeWidth = 0, lFactor = 1, lMin = 0, triple = 3, sextuple = 6, sNormalizedOffset = 1, phaseNumerator = 1, defaultRgbMin = 0, defaultVelocity = 0, defaultLoops = 0, defaultTime = 0;
|
|
7
|
+
}, randomColorValue = "random", midColorValue = "mid", double = 2, doublePI: number, defaultFps = 60, defaultAlpha = 1, generatedTrue = "true", generatedFalse = "false", canvasTag = "canvas", defaultRetryCount = 0, squareExp = 2, qTreeCapacity = 4, defaultRemoveQuantity = 1, defaultRatio = 1, defaultReduceFactor = 1, subdivideCount = 4, inverseFactorNumerator = 1, rgbMax = 255, hMax = 360, sMax = 100, lMax = 100, hMin = 0, sMin = 0, hPhase = 60, empty = 0, quarter = 0.25, threeQuarter: number, minVelocity = 0, defaultTransformValue = 1, minimumSize = 0, minimumLength = 0, zIndexFactorOffset = 1, defaultOpacity = 1, clickRadius = 1, touchEndLengthOffset = 1, minCoordinate = 0, removeDeleteCount = 1, removeMinIndex = 0, defaultFpsLimit = 120, minFpsLimit = 0, canvasFirstIndex = 0, loadRandomFactor = 10000, loadMinIndex = 0, one = 1, none = 0, decayOffset = 1, tryCountIncrement = 1, minRetries = 0, minZ = 0, defaultRadius = 0, posOffset: number, sizeFactor = 1.5, minLimit = 0, countOffset = 1, minCount = 0, minIndex = 0, lengthOffset = 1, defaultDensityFactor = 1, deleteCount = 1, touchDelay = 500, manualDefaultPosition = 50, defaultAngle = 0, identity = 1, minStrokeWidth = 0, lFactor = 1, lMin = 0, triple = 3, sextuple = 6, sNormalizedOffset = 1, phaseNumerator = 1, defaultRgbMin = 0, defaultVelocity = 0, defaultLoops = 0, defaultTime = 0, defaultZoom = 1;
|
package/umd/Core/Canvas.js
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
container;
|
|
55
55
|
element;
|
|
56
56
|
size;
|
|
57
|
+
zoom = Constants_js_1.defaultZoom;
|
|
57
58
|
_canvasClearPlugins;
|
|
58
59
|
_canvasPaintPlugins;
|
|
59
60
|
_canvasSettings;
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
_reusablePluginColors = [undefined, undefined];
|
|
79
80
|
_reusableTransform = {};
|
|
80
81
|
_standardSize;
|
|
82
|
+
_zoomCenter;
|
|
81
83
|
constructor(container, engine) {
|
|
82
84
|
this.container = container;
|
|
83
85
|
this._engine = engine;
|
|
@@ -232,6 +234,16 @@
|
|
|
232
234
|
}
|
|
233
235
|
});
|
|
234
236
|
}
|
|
237
|
+
getZoomCenter() {
|
|
238
|
+
const pxRatio = this.container.retina.pixelRatio, { width, height } = this.size;
|
|
239
|
+
if (this._zoomCenter) {
|
|
240
|
+
return this._zoomCenter;
|
|
241
|
+
}
|
|
242
|
+
return {
|
|
243
|
+
x: (width * Constants_js_1.half) / pxRatio,
|
|
244
|
+
y: (height * Constants_js_1.half) / pxRatio,
|
|
245
|
+
};
|
|
246
|
+
}
|
|
235
247
|
init() {
|
|
236
248
|
this._safeMutationObserver(obs => {
|
|
237
249
|
obs.disconnect();
|
|
@@ -431,6 +443,10 @@
|
|
|
431
443
|
this._pointerEvents = type;
|
|
432
444
|
this._repairStyle();
|
|
433
445
|
}
|
|
446
|
+
setZoom(zoomLevel, center) {
|
|
447
|
+
this.zoom = zoomLevel;
|
|
448
|
+
this._zoomCenter = center;
|
|
449
|
+
}
|
|
434
450
|
stop() {
|
|
435
451
|
this._safeMutationObserver(obs => {
|
|
436
452
|
obs.disconnect();
|
package/umd/Core/Engine.js
CHANGED
|
@@ -133,7 +133,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
133
133
|
return this._domArray;
|
|
134
134
|
}
|
|
135
135
|
get version() {
|
|
136
|
-
return "4.0.0-alpha.
|
|
136
|
+
return "4.0.0-alpha.23";
|
|
137
137
|
}
|
|
138
138
|
addColorManager(name, manager) {
|
|
139
139
|
this.colorManagers.set(name, manager);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.defaultTime = exports.defaultLoops = exports.defaultVelocity = exports.defaultRgbMin = exports.phaseNumerator = exports.sNormalizedOffset = exports.sextuple = exports.triple = exports.lMin = exports.lFactor = exports.minStrokeWidth = exports.identity = exports.defaultAngle = exports.manualDefaultPosition = exports.touchDelay = exports.deleteCount = exports.defaultDensityFactor = exports.lengthOffset = exports.minIndex = exports.minCount = exports.countOffset = exports.minLimit = exports.sizeFactor = exports.posOffset = exports.defaultRadius = exports.minZ = exports.minRetries = exports.tryCountIncrement = exports.decayOffset = exports.none = exports.one = exports.loadMinIndex = exports.loadRandomFactor = exports.canvasFirstIndex = exports.minFpsLimit = exports.defaultFpsLimit = exports.removeMinIndex = exports.removeDeleteCount = exports.minCoordinate = exports.touchEndLengthOffset = exports.clickRadius = exports.defaultOpacity = exports.zIndexFactorOffset = exports.minimumLength = exports.minimumSize = exports.defaultTransformValue = exports.minVelocity = exports.threeQuarter = exports.quarter = exports.empty = exports.hPhase = exports.sMin = exports.hMin = exports.lMax = exports.sMax = exports.hMax = exports.rgbMax = exports.inverseFactorNumerator = exports.subdivideCount = exports.defaultReduceFactor = exports.defaultRatio = exports.defaultRemoveQuantity = exports.qTreeCapacity = exports.squareExp = exports.defaultRetryCount = exports.canvasTag = exports.generatedFalse = exports.generatedTrue = exports.defaultAlpha = exports.defaultFps = exports.doublePI = exports.double = exports.midColorValue = exports.randomColorValue = exports.defaultTransform = exports.originPoint = exports.millisecondsToSeconds = exports.half = exports.percentDenominator = exports.visibilityChangeEvent = exports.resizeEvent = exports.generatedAttribute = void 0;
|
|
12
|
+
exports.defaultZoom = exports.defaultTime = exports.defaultLoops = exports.defaultVelocity = exports.defaultRgbMin = exports.phaseNumerator = exports.sNormalizedOffset = exports.sextuple = exports.triple = exports.lMin = exports.lFactor = exports.minStrokeWidth = exports.identity = exports.defaultAngle = exports.manualDefaultPosition = exports.touchDelay = exports.deleteCount = exports.defaultDensityFactor = exports.lengthOffset = exports.minIndex = exports.minCount = exports.countOffset = exports.minLimit = exports.sizeFactor = exports.posOffset = exports.defaultRadius = exports.minZ = exports.minRetries = exports.tryCountIncrement = exports.decayOffset = exports.none = exports.one = exports.loadMinIndex = exports.loadRandomFactor = exports.canvasFirstIndex = exports.minFpsLimit = exports.defaultFpsLimit = exports.removeMinIndex = exports.removeDeleteCount = exports.minCoordinate = exports.touchEndLengthOffset = exports.clickRadius = exports.defaultOpacity = exports.zIndexFactorOffset = exports.minimumLength = exports.minimumSize = exports.defaultTransformValue = exports.minVelocity = exports.threeQuarter = exports.quarter = exports.empty = exports.hPhase = exports.sMin = exports.hMin = exports.lMax = exports.sMax = exports.hMax = exports.rgbMax = exports.inverseFactorNumerator = exports.subdivideCount = exports.defaultReduceFactor = exports.defaultRatio = exports.defaultRemoveQuantity = exports.qTreeCapacity = exports.squareExp = exports.defaultRetryCount = exports.canvasTag = exports.generatedFalse = exports.generatedTrue = exports.defaultAlpha = exports.defaultFps = exports.doublePI = exports.double = exports.midColorValue = exports.randomColorValue = exports.defaultTransform = exports.originPoint = exports.millisecondsToSeconds = exports.half = exports.percentDenominator = exports.visibilityChangeEvent = exports.resizeEvent = exports.generatedAttribute = void 0;
|
|
13
13
|
exports.generatedAttribute = "generated", exports.resizeEvent = "resize", exports.visibilityChangeEvent = "visibilitychange", exports.percentDenominator = 100, exports.half = 0.5, exports.millisecondsToSeconds = 1000, exports.originPoint = {
|
|
14
14
|
x: 0,
|
|
15
15
|
y: 0,
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
b: 0,
|
|
20
20
|
c: 0,
|
|
21
21
|
d: 1,
|
|
22
|
-
}, exports.randomColorValue = "random", exports.midColorValue = "mid", exports.double = 2, exports.doublePI = Math.PI * exports.double, exports.defaultFps = 60, exports.defaultAlpha = 1, exports.generatedTrue = "true", exports.generatedFalse = "false", exports.canvasTag = "canvas", exports.defaultRetryCount = 0, exports.squareExp = 2, exports.qTreeCapacity = 4, exports.defaultRemoveQuantity = 1, exports.defaultRatio = 1, exports.defaultReduceFactor = 1, exports.subdivideCount = 4, exports.inverseFactorNumerator = 1.0, exports.rgbMax = 255, exports.hMax = 360, exports.sMax = 100, exports.lMax = 100, exports.hMin = 0, exports.sMin = 0, exports.hPhase = 60, exports.empty = 0, exports.quarter = 0.25, exports.threeQuarter = exports.half + exports.quarter, exports.minVelocity = 0, exports.defaultTransformValue = 1, exports.minimumSize = 0, exports.minimumLength = 0, exports.zIndexFactorOffset = 1, exports.defaultOpacity = 1, exports.clickRadius = 1, exports.touchEndLengthOffset = 1, exports.minCoordinate = 0, exports.removeDeleteCount = 1, exports.removeMinIndex = 0, exports.defaultFpsLimit = 120, exports.minFpsLimit = 0, exports.canvasFirstIndex = 0, exports.loadRandomFactor = 10000, exports.loadMinIndex = 0, exports.one = 1, exports.none = 0, exports.decayOffset = 1, exports.tryCountIncrement = 1, exports.minRetries = 0, exports.minZ = 0, exports.defaultRadius = 0, exports.posOffset = -exports.quarter, exports.sizeFactor = 1.5, exports.minLimit = 0, exports.countOffset = 1, exports.minCount = 0, exports.minIndex = 0, exports.lengthOffset = 1, exports.defaultDensityFactor = 1, exports.deleteCount = 1, exports.touchDelay = 500, exports.manualDefaultPosition = 50, exports.defaultAngle = 0, exports.identity = 1, exports.minStrokeWidth = 0, exports.lFactor = 1, exports.lMin = 0, exports.triple = 3, exports.sextuple = 6, exports.sNormalizedOffset = 1, exports.phaseNumerator = 1, exports.defaultRgbMin = 0, exports.defaultVelocity = 0, exports.defaultLoops = 0, exports.defaultTime = 0;
|
|
22
|
+
}, exports.randomColorValue = "random", exports.midColorValue = "mid", exports.double = 2, exports.doublePI = Math.PI * exports.double, exports.defaultFps = 60, exports.defaultAlpha = 1, exports.generatedTrue = "true", exports.generatedFalse = "false", exports.canvasTag = "canvas", exports.defaultRetryCount = 0, exports.squareExp = 2, exports.qTreeCapacity = 4, exports.defaultRemoveQuantity = 1, exports.defaultRatio = 1, exports.defaultReduceFactor = 1, exports.subdivideCount = 4, exports.inverseFactorNumerator = 1.0, exports.rgbMax = 255, exports.hMax = 360, exports.sMax = 100, exports.lMax = 100, exports.hMin = 0, exports.sMin = 0, exports.hPhase = 60, exports.empty = 0, exports.quarter = 0.25, exports.threeQuarter = exports.half + exports.quarter, exports.minVelocity = 0, exports.defaultTransformValue = 1, exports.minimumSize = 0, exports.minimumLength = 0, exports.zIndexFactorOffset = 1, exports.defaultOpacity = 1, exports.clickRadius = 1, exports.touchEndLengthOffset = 1, exports.minCoordinate = 0, exports.removeDeleteCount = 1, exports.removeMinIndex = 0, exports.defaultFpsLimit = 120, exports.minFpsLimit = 0, exports.canvasFirstIndex = 0, exports.loadRandomFactor = 10000, exports.loadMinIndex = 0, exports.one = 1, exports.none = 0, exports.decayOffset = 1, exports.tryCountIncrement = 1, exports.minRetries = 0, exports.minZ = 0, exports.defaultRadius = 0, exports.posOffset = -exports.quarter, exports.sizeFactor = 1.5, exports.minLimit = 0, exports.countOffset = 1, exports.minCount = 0, exports.minIndex = 0, exports.lengthOffset = 1, exports.defaultDensityFactor = 1, exports.deleteCount = 1, exports.touchDelay = 500, exports.manualDefaultPosition = 50, exports.defaultAngle = 0, exports.identity = 1, exports.minStrokeWidth = 0, exports.lFactor = 1, exports.lMin = 0, exports.triple = 3, exports.sextuple = 6, exports.sNormalizedOffset = 1, exports.phaseNumerator = 1, exports.defaultRgbMin = 0, exports.defaultVelocity = 0, exports.defaultLoops = 0, exports.defaultTime = 0, exports.defaultZoom = 1;
|
|
23
23
|
});
|
package/umd/Utils/CanvasUtils.js
CHANGED
|
@@ -38,7 +38,10 @@
|
|
|
38
38
|
context.clearRect(Constants_js_1.originPoint.x, Constants_js_1.originPoint.y, dimension.width, dimension.height);
|
|
39
39
|
}
|
|
40
40
|
function drawParticle(data) {
|
|
41
|
-
const { container, context, particle, delta, colorStyles, radius, opacity, transform } = data, pos = particle.getPosition(), transformData = particle.getTransformData(transform)
|
|
41
|
+
const { container, context, particle, delta, colorStyles, radius, opacity, transform } = data, pos = particle.getPosition(), transformData = particle.getTransformData(transform), drawScale = Constants_js_1.defaultZoom, drawPosition = {
|
|
42
|
+
x: pos.x,
|
|
43
|
+
y: pos.y,
|
|
44
|
+
};
|
|
42
45
|
context.setTransform(transformData.a, transformData.b, transformData.c, transformData.d, pos.x, pos.y);
|
|
43
46
|
if (colorStyles.fill) {
|
|
44
47
|
context.fillStyle = colorStyles.fill;
|
|
@@ -52,13 +55,23 @@
|
|
|
52
55
|
context,
|
|
53
56
|
particle,
|
|
54
57
|
radius,
|
|
58
|
+
drawRadius: radius * drawScale,
|
|
55
59
|
opacity,
|
|
56
60
|
delta,
|
|
57
61
|
pixelRatio: container.retina.pixelRatio,
|
|
58
62
|
fill: particle.shapeFill,
|
|
59
63
|
stroke: strokeWidth > Constants_js_1.minStrokeWidth || !particle.shapeFill,
|
|
60
64
|
transformData,
|
|
65
|
+
position: {
|
|
66
|
+
x: pos.x,
|
|
67
|
+
y: pos.y,
|
|
68
|
+
},
|
|
69
|
+
drawPosition,
|
|
70
|
+
drawScale,
|
|
61
71
|
};
|
|
72
|
+
for (const plugin of container.plugins) {
|
|
73
|
+
plugin.drawParticleTransform?.(drawData);
|
|
74
|
+
}
|
|
62
75
|
drawBeforeEffect(container, drawData);
|
|
63
76
|
drawShapeBeforeDraw(container, drawData);
|
|
64
77
|
drawShape(container, drawData);
|