@tsparticles/slim 3.1.0 → 3.2.0
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/1147.min.js +2 -0
- package/1147.min.js.LICENSE.txt +1 -0
- package/1196.min.js +2 -0
- package/1196.min.js.LICENSE.txt +1 -0
- package/1264.min.js +2 -0
- package/1264.min.js.LICENSE.txt +1 -0
- package/1308.min.js +2 -0
- package/1308.min.js.LICENSE.txt +1 -0
- package/1364.min.js +2 -0
- package/1364.min.js.LICENSE.txt +1 -0
- package/1472.min.js +2 -0
- package/1472.min.js.LICENSE.txt +1 -0
- package/1513.min.js +2 -0
- package/1513.min.js.LICENSE.txt +1 -0
- package/1808.min.js +2 -0
- package/1808.min.js.LICENSE.txt +1 -0
- package/1810.min.js +2 -0
- package/1810.min.js.LICENSE.txt +1 -0
- package/1831.min.js +2 -0
- package/1831.min.js.LICENSE.txt +1 -0
- package/196.min.js +2 -0
- package/196.min.js.LICENSE.txt +1 -0
- package/1982.min.js +2 -0
- package/1982.min.js.LICENSE.txt +1 -0
- package/2121.min.js +2 -0
- package/2121.min.js.LICENSE.txt +1 -0
- package/2124.min.js +2 -0
- package/2124.min.js.LICENSE.txt +1 -0
- package/2173.min.js +2 -0
- package/2173.min.js.LICENSE.txt +1 -0
- package/2200.min.js +2 -0
- package/2200.min.js.LICENSE.txt +1 -0
- package/2486.min.js +2 -0
- package/2486.min.js.LICENSE.txt +1 -0
- package/256.min.js +2 -0
- package/256.min.js.LICENSE.txt +1 -0
- package/2580.min.js +2 -0
- package/2580.min.js.LICENSE.txt +1 -0
- package/2720.min.js +2 -0
- package/2720.min.js.LICENSE.txt +1 -0
- package/2765.min.js +2 -0
- package/2765.min.js.LICENSE.txt +1 -0
- package/2870.min.js +2 -0
- package/2870.min.js.LICENSE.txt +1 -0
- package/2890.min.js +2 -0
- package/2890.min.js.LICENSE.txt +1 -0
- package/290.min.js +2 -0
- package/290.min.js.LICENSE.txt +1 -0
- package/2946.min.js +2 -0
- package/2946.min.js.LICENSE.txt +1 -0
- package/3141.min.js +2 -0
- package/3141.min.js.LICENSE.txt +1 -0
- package/3255.min.js +2 -0
- package/3255.min.js.LICENSE.txt +1 -0
- package/3457.min.js +2 -0
- package/3457.min.js.LICENSE.txt +1 -0
- package/3486.min.js +2 -0
- package/3486.min.js.LICENSE.txt +1 -0
- package/3597.min.js +2 -0
- package/3597.min.js.LICENSE.txt +1 -0
- package/3648.min.js +2 -0
- package/3648.min.js.LICENSE.txt +1 -0
- package/3733.min.js +2 -0
- package/3733.min.js.LICENSE.txt +1 -0
- package/3869.min.js +2 -0
- package/3869.min.js.LICENSE.txt +1 -0
- package/3904.min.js +2 -0
- package/3904.min.js.LICENSE.txt +1 -0
- package/409.min.js +2 -0
- package/409.min.js.LICENSE.txt +1 -0
- package/4314.min.js +2 -0
- package/4314.min.js.LICENSE.txt +1 -0
- package/4328.min.js +2 -0
- package/4328.min.js.LICENSE.txt +1 -0
- package/4687.min.js +2 -0
- package/4687.min.js.LICENSE.txt +1 -0
- package/4732.min.js +2 -0
- package/4732.min.js.LICENSE.txt +1 -0
- package/4737.min.js +2 -0
- package/4737.min.js.LICENSE.txt +1 -0
- package/4866.min.js +2 -0
- package/4866.min.js.LICENSE.txt +1 -0
- package/4922.min.js +2 -0
- package/4922.min.js.LICENSE.txt +1 -0
- package/4973.min.js +2 -0
- package/4973.min.js.LICENSE.txt +1 -0
- package/4994.min.js +2 -0
- package/4994.min.js.LICENSE.txt +1 -0
- package/5120.min.js +2 -0
- package/5120.min.js.LICENSE.txt +1 -0
- package/5243.min.js +2 -0
- package/5243.min.js.LICENSE.txt +1 -0
- package/5308.min.js +2 -0
- package/5308.min.js.LICENSE.txt +1 -0
- package/5329.min.js +2 -0
- package/5329.min.js.LICENSE.txt +1 -0
- package/533.min.js +2 -0
- package/533.min.js.LICENSE.txt +1 -0
- package/5437.min.js +2 -0
- package/5437.min.js.LICENSE.txt +1 -0
- package/5444.min.js +2 -0
- package/5444.min.js.LICENSE.txt +1 -0
- package/5523.min.js +2 -0
- package/5523.min.js.LICENSE.txt +1 -0
- package/5647.min.js +2 -0
- package/5647.min.js.LICENSE.txt +1 -0
- package/5715.min.js +2 -0
- package/5715.min.js.LICENSE.txt +1 -0
- package/5819.min.js +2 -0
- package/5819.min.js.LICENSE.txt +1 -0
- package/6072.min.js +2 -0
- package/6072.min.js.LICENSE.txt +1 -0
- package/6132.min.js +2 -0
- package/6132.min.js.LICENSE.txt +1 -0
- package/6634.min.js +2 -0
- package/6634.min.js.LICENSE.txt +1 -0
- package/6772.min.js +2 -0
- package/6772.min.js.LICENSE.txt +1 -0
- package/69.min.js +2 -0
- package/69.min.js.LICENSE.txt +1 -0
- package/7031.min.js +2 -0
- package/7031.min.js.LICENSE.txt +1 -0
- package/7049.min.js +2 -0
- package/7049.min.js.LICENSE.txt +1 -0
- package/7077.min.js +2 -0
- package/7077.min.js.LICENSE.txt +1 -0
- package/7108.min.js +2 -0
- package/7108.min.js.LICENSE.txt +1 -0
- package/7331.min.js +2 -0
- package/7331.min.js.LICENSE.txt +1 -0
- package/7423.min.js +2 -0
- package/7423.min.js.LICENSE.txt +1 -0
- package/7517.min.js +2 -0
- package/7517.min.js.LICENSE.txt +1 -0
- package/7725.min.js +2 -0
- package/7725.min.js.LICENSE.txt +1 -0
- package/7757.min.js +2 -0
- package/7757.min.js.LICENSE.txt +1 -0
- package/7769.min.js +2 -0
- package/7769.min.js.LICENSE.txt +1 -0
- package/7835.min.js +2 -0
- package/7835.min.js.LICENSE.txt +1 -0
- package/7859.min.js +2 -0
- package/7859.min.js.LICENSE.txt +1 -0
- package/7886.min.js +2 -0
- package/7886.min.js.LICENSE.txt +1 -0
- package/7890.min.js +2 -0
- package/7890.min.js.LICENSE.txt +1 -0
- package/8158.min.js +2 -0
- package/8158.min.js.LICENSE.txt +1 -0
- package/8883.min.js +2 -0
- package/8883.min.js.LICENSE.txt +1 -0
- package/889.min.js +2 -0
- package/889.min.js.LICENSE.txt +1 -0
- package/9062.min.js +2 -0
- package/9062.min.js.LICENSE.txt +1 -0
- package/9126.min.js +2 -0
- package/9126.min.js.LICENSE.txt +1 -0
- package/9133.min.js +2 -0
- package/9133.min.js.LICENSE.txt +1 -0
- package/9376.min.js +2 -0
- package/9376.min.js.LICENSE.txt +1 -0
- package/9431.min.js +2 -0
- package/9431.min.js.LICENSE.txt +1 -0
- package/9530.min.js +2 -0
- package/9530.min.js.LICENSE.txt +1 -0
- package/9532.min.js +2 -0
- package/9532.min.js.LICENSE.txt +1 -0
- package/9921.min.js +2 -0
- package/9921.min.js.LICENSE.txt +1 -0
- package/basic_dist_browser_index_js.js +30 -0
- package/browser/index.js +1 -25
- package/cjs/index.js +49 -50
- package/engine_dist_browser_Core_Container_js.js +90 -0
- package/engine_dist_browser_Core_Particle_js.js +30 -0
- package/esm/index.js +1 -25
- package/interactions_external_attract_dist_browser_Attractor_js.js +30 -0
- package/interactions_external_attract_dist_browser_Utils_js.js +30 -0
- package/interactions_external_attract_dist_browser_index_js.js +50 -0
- package/interactions_external_bounce_dist_browser_Bouncer_js.js +30 -0
- package/interactions_external_bounce_dist_browser_Utils_js.js +30 -0
- package/interactions_external_bounce_dist_browser_index_js.js +50 -0
- package/interactions_external_bubble_dist_browser_Bubbler_js.js +40 -0
- package/interactions_external_bubble_dist_browser_index_js.js +90 -0
- package/interactions_external_connect_dist_browser_Connector_js.js +40 -0
- package/interactions_external_connect_dist_browser_index_js.js +70 -0
- package/interactions_external_grab_dist_browser_Grabber_js.js +40 -0
- package/interactions_external_grab_dist_browser_index_js.js +70 -0
- package/interactions_external_pause_dist_browser_Pauser_js.js +30 -0
- package/interactions_external_pause_dist_browser_index_js.js +30 -0
- package/interactions_external_push_dist_browser_Pusher_js.js +30 -0
- package/interactions_external_push_dist_browser_index_js.js +50 -0
- package/interactions_external_remove_dist_browser_Remover_js.js +30 -0
- package/interactions_external_remove_dist_browser_index_js.js +50 -0
- package/interactions_external_repulse_dist_browser_Repulser_js.js +30 -0
- package/interactions_external_repulse_dist_browser_index_js.js +90 -0
- package/interactions_external_slow_dist_browser_Slower_js.js +30 -0
- package/interactions_external_slow_dist_browser_index_js.js +50 -0
- package/interactions_particles_attract_dist_browser_Attractor_js.js +30 -0
- package/interactions_particles_attract_dist_browser_index_js.js +30 -0
- package/interactions_particles_collisions_dist_browser_Absorb_js.js +30 -0
- package/interactions_particles_collisions_dist_browser_Bounce_js.js +30 -0
- package/interactions_particles_collisions_dist_browser_Collider_js.js +40 -0
- package/interactions_particles_collisions_dist_browser_Destroy_js.js +40 -0
- package/interactions_particles_collisions_dist_browser_index_js.js +30 -0
- package/interactions_particles_links_dist_browser_CircleWarp_js.js +30 -0
- package/interactions_particles_links_dist_browser_LinkInstance_js.js +40 -0
- package/interactions_particles_links_dist_browser_Linker_js.js +30 -0
- package/interactions_particles_links_dist_browser_index_js.js +110 -0
- package/move_base_dist_browser_BaseMover_js.js +30 -0
- package/move_base_dist_browser_Utils_js.js +30 -0
- package/move_base_dist_browser_index_js.js +30 -0
- package/move_parallax_dist_browser_ParallaxMover_js.js +30 -0
- package/move_parallax_dist_browser_index_js.js +30 -0
- package/package.json +27 -27
- package/plugins_easings_quad_dist_browser_index_js.js +30 -0
- package/report.html +3 -3
- package/shapes_circle_dist_browser_CircleDrawer_js.js +30 -0
- package/shapes_circle_dist_browser_Utils_js.js +30 -0
- package/shapes_circle_dist_browser_index_js.js +30 -0
- package/shapes_emoji_dist_browser_EmojiDrawer_js.js +30 -0
- package/shapes_emoji_dist_browser_Utils_js.js +30 -0
- package/shapes_emoji_dist_browser_index_js.js +40 -0
- package/shapes_image_dist_browser_GifUtils_Utils_js.js +50 -0
- package/shapes_image_dist_browser_ImageDrawer_js.js +30 -0
- package/shapes_image_dist_browser_ImagePreloader_js.js +40 -0
- package/shapes_image_dist_browser_index_js.js +40 -0
- package/shapes_line_dist_browser_LineDrawer_js.js +30 -0
- package/shapes_line_dist_browser_Utils_js.js +30 -0
- package/shapes_line_dist_browser_index_js.js +30 -0
- package/shapes_polygon_dist_browser_PolygonDrawer_js.js +40 -0
- package/shapes_polygon_dist_browser_TriangleDrawer_js.js +40 -0
- package/shapes_polygon_dist_browser_Utils_js.js +30 -0
- package/shapes_polygon_dist_browser_index_js.js +30 -0
- package/shapes_square_dist_browser_SquareDrawer_js.js +30 -0
- package/shapes_square_dist_browser_Utils_js.js +30 -0
- package/shapes_square_dist_browser_index_js.js +30 -0
- package/shapes_star_dist_browser_StarDrawer_js.js +30 -0
- package/shapes_star_dist_browser_Utils_js.js +30 -0
- package/shapes_star_dist_browser_index_js.js +30 -0
- package/tsparticles.slim.bundle.js +2118 -10537
- package/tsparticles.slim.bundle.min.js +1 -1
- package/tsparticles.slim.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.slim.js +180 -174
- package/tsparticles.slim.min.js +1 -1
- package/tsparticles.slim.min.js.LICENSE.txt +1 -1
- package/umd/index.js +51 -51
- package/updaters_color_dist_browser_ColorUpdater_js.js +30 -0
- package/updaters_color_dist_browser_index_js.js +30 -0
- package/updaters_life_dist_browser_LifeUpdater_js.js +60 -0
- package/updaters_life_dist_browser_Utils_js.js +30 -0
- package/updaters_life_dist_browser_index_js.js +30 -0
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +30 -0
- package/updaters_opacity_dist_browser_index_js.js +30 -0
- package/updaters_outModes_dist_browser_BounceOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_DestroyOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_NoneOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOutMode_js.js +30 -0
- package/updaters_outModes_dist_browser_Utils_js.js +30 -0
- package/updaters_outModes_dist_browser_index_js.js +30 -0
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +50 -0
- package/updaters_rotate_dist_browser_index_js.js +30 -0
- package/updaters_size_dist_browser_SizeUpdater_js.js +30 -0
- package/updaters_size_dist_browser_index_js.js +30 -0
- package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +30 -0
- package/updaters_strokeColor_dist_browser_index_js.js +30 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.slim.bundle.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(this,(()=>(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AnimatableColor:()=>$e,AnimationOptions:()=>He,AnimationValueWithRandom:()=>Xe,Background:()=>Me,BackgroundMask:()=>Ce,BackgroundMaskCover:()=>ze,Circle:()=>Di,ClickEvent:()=>Se,Collisions:()=>Je,CollisionsAbsorb:()=>je,CollisionsOverlap:()=>Ge,ColorAnimation:()=>Ve,DivEvent:()=>Oe,Events:()=>Ee,ExternalInteractorBase:()=>Gi,FullScreen:()=>Pe,HoverEvent:()=>Re,HslAnimation:()=>Ue,HslColorManager:()=>$i,Interactivity:()=>Le,ManualParticle:()=>Ae,Modes:()=>Ie,Move:()=>li,MoveAngle:()=>ti,MoveAttract:()=>ei,MoveCenter:()=>ii,MoveGravity:()=>si,MovePath:()=>oi,MoveTrail:()=>ai,Opacity:()=>di,OpacityAnimation:()=>hi,Options:()=>Mi,OptionsColor:()=>ke,OutModes:()=>ri,Parallax:()=>Te,ParticlesBounce:()=>Qe,ParticlesBounceFactor:()=>Ze,ParticlesDensity:()=>ui,ParticlesInteractorBase:()=>Ni,ParticlesNumber:()=>fi,ParticlesNumberLimit:()=>pi,ParticlesOptions:()=>xi,Point:()=>Oi,Range:()=>Ti,RangedAnimationOptions:()=>We,RangedAnimationValueWithRandom:()=>Ye,Rectangle:()=>Ri,ResizeEvent:()=>De,Responsive:()=>Be,RgbColorManager:()=>ji,Shadow:()=>vi,Shape:()=>gi,Size:()=>mi,SizeAnimation:()=>yi,Spin:()=>ci,Stroke:()=>bi,Theme:()=>qe,ThemeDefault:()=>Fe,ValueWithRandom:()=>Ne,Vector:()=>z,Vector3d:()=>x,ZIndex:()=>wi,addColorManager:()=>qt,addEasing:()=>O,alterHsl:()=>me,areBoundsInside:()=>ut,arrayRandomIndex:()=>lt,calcExactPositionOrRandomFromSize:()=>Y,calcExactPositionOrRandomFromSizeRanged:()=>Z,calcPositionFromSize:()=>G,calcPositionOrRandomFromSize:()=>N,calcPositionOrRandomFromSizeRanged:()=>X,calculateBounds:()=>pt,circleBounce:()=>wt,circleBounceDataFromParticle:()=>bt,clamp:()=>E,clear:()=>de,collisionVelocity:()=>j,colorMix:()=>Kt,colorToHsl:()=>Ut,colorToRgb:()=>Vt,deepExtend:()=>ft,degToRad:()=>V,divMode:()=>mt,divModeExecute:()=>gt,drawEffect:()=>pe,drawLine:()=>ce,drawParticle:()=>ue,drawParticlePlugin:()=>ye,drawPlugin:()=>ge,drawShape:()=>fe,drawShapeAfterDraw:()=>ve,errorPrefix:()=>f,executeOnSingleOrMultiple:()=>_t,findItemFromSingleOrMultiple:()=>Mt,generatedAttribute:()=>i,getDistance:()=>W,getDistances:()=>H,getEasing:()=>T,getHslAnimationFromHsl:()=>se,getHslFromAnimation:()=>ie,getLinkColor:()=>te,getLinkRandomColor:()=>ee,getLogger:()=>tt,getParticleBaseVelocity:()=>$,getParticleDirectionAngle:()=>U,getPosition:()=>Pt,getRandom:()=>D,getRandomRgbColor:()=>Zt,getRangeMax:()=>F,getRangeMin:()=>B,getRangeValue:()=>A,getSize:()=>St,getStyleFromHsl:()=>Jt,getStyleFromRgb:()=>Qt,halfRandom:()=>g,hasMatchMedia:()=>st,hslToRgb:()=>Xt,hslaToRgba:()=>Yt,initParticleNumericAnimationValue:()=>zt,isArray:()=>It,isBoolean:()=>Ot,isDivModeEnabled:()=>vt,isFunction:()=>Dt,isInArray:()=>rt,isNumber:()=>Rt,isObject:()=>Et,isPointInside:()=>dt,isSsr:()=>it,isString:()=>Tt,itemFromArray:()=>ht,itemFromSingleOrMultiple:()=>kt,loadFont:()=>ct,loadOptions:()=>_i,loadParticlesOptions:()=>ki,loadSlim:()=>rn,millisecondsToSeconds:()=>y,mix:()=>I,mouseDownEvent:()=>s,mouseLeaveEvent:()=>n,mouseMoveEvent:()=>r,mouseOutEvent:()=>a,mouseUpEvent:()=>o,paintBase:()=>le,paintImage:()=>he,parseAlpha:()=>Q,percentDenominator:()=>v,randomInRange:()=>L,rangeColorToHsl:()=>$t,rangeColorToRgb:()=>Wt,rectBounce:()=>xt,resizeEvent:()=>u,rgbToHsl:()=>jt,safeIntersectionObserver:()=>nt,safeMatchMedia:()=>ot,safeMutationObserver:()=>at,setLogger:()=>K,setRandom:()=>R,setRangeValue:()=>q,singleDivModeExecute:()=>yt,stringToAlpha:()=>Gt,stringToRgb:()=>Nt,touchCancelEvent:()=>d,touchEndEvent:()=>l,touchMoveEvent:()=>h,touchStartEvent:()=>c,tsParticles:()=>Xi,updateAnimation:()=>Lt,updateColor:()=>ae,updateColorValue:()=>ne,visibilityChangeEvent:()=>p});const i="generated",s="pointerdown",o="pointerup",n="pointerleave",a="pointerout",r="pointermove",c="touchstart",l="touchend",h="touchmove",d="touchcancel",u="resize",p="visibilitychange",f="tsParticles - Error",v=100,g=.5,y=1e3,m=0,b=0,w=0;class x{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!Rt(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:w}else{if(void 0===t||void 0===e)throw new Error(`${f} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??w}}static get origin(){return x.create(m,b,w)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return x.create(t.x,t.y,t.z)}static create(t,e,i){return new x(t,e,i)}add(t){return x.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return x.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return x.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return x.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return x.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),w)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:w}sub(t){return x.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}const _=0,k=0,M=0;class z extends x{constructor(t,e){super(t,e,M)}static get origin(){return z.create(_,k)}static clone(t){return z.create(t.x,t.y)}static create(t,e){return new z(t,e)}}let C=Math.random;const P=new Map,S=2*Math.PI;function O(t,e){P.get(t)||P.set(t,e)}function T(t){return P.get(t)??(t=>t)}function R(t=Math.random){C=t}function D(){return E(C(),0,1-Number.EPSILON)}function E(t,e,i){return Math.min(Math.max(t,e),i)}function I(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function L(t){const e=F(t);let i=B(t);return e===i&&(i=0),D()*(e-i)+i}function A(t){return Rt(t)?t:L(t)}function B(t){return Rt(t)?t:t.min}function F(t){return Rt(t)?t:t.max}function q(t,e){if(t===e||void 0===e&&Rt(t))return t;const i=B(t),s=F(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:q(i,s)}function H(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function W(t,e){return H(t,e).distance}function V(t){return t*Math.PI/180}function U(t,e,i){if(Rt(t))return V(t);const s=.25;switch(t){case"top":return.5*-Math.PI;case"top-right":return-Math.PI*s;case"right":return 0;case"bottom-right":return Math.PI*s;case"bottom":return.5*Math.PI;case"bottom-left":return.75*Math.PI;case"left":return Math.PI;case"top-left":return.75*-Math.PI;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return D()*S}}function $(t){const e=z.origin;return e.length=1,e.angle=t,e}function j(t,e,i,s){return z.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function G(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/v,y:t.position.y*t.size.height/v}:void 0}function N(t){return{x:(t.position?.x??D()*v)*t.size.width/v,y:(t.position?.y??D()*v)*t.size.height/v}}function X(t){const e={x:void 0!==t.position?.x?A(t.position.x):void 0,y:void 0!==t.position?.y?A(t.position.y):void 0};return N({size:t.size,position:e})}function Y(t){return{x:t.position?.x??D()*t.size.width,y:t.position?.y??D()*t.size.height}}function Z(t){const e={x:void 0!==t.position?.x?A(t.position.x):void 0,y:void 0!==t.position?.y?A(t.position.y):void 0};return Y({size:t.size,position:e})}function Q(t){return t?t.endsWith("%")?parseFloat(t)/v:parseFloat(t):1}const J={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function K(t){J.debug=t.debug||J.debug,J.error=t.error||J.error,J.info=t.info||J.info,J.log=t.log||J.log,J.verbose=t.verbose||J.verbose,J.warning=t.warning||J.warning}function tt(){return J}function et(t){const e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:o,rectOtherSide:n,velocity:a,factor:r}=t;return s.min<n.min||s.min>n.max||s.max<n.min||s.max>n.max||(i.max>=o.min&&i.max<=.5*(o.max+o.min)&&a>0||i.min<=o.max&&i.min>.5*(o.max+o.min)&&a<0)&&(e.velocity=a*-r,e.bounced=!0),e}function it(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function st(){return!it()&&"undefined"!=typeof matchMedia}function ot(t){if(st())return matchMedia(t)}function nt(t){if(!it()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function at(t){if(!it()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function rt(t,e){return t===e||It(e)&&e.indexOf(t)>-1}async function ct(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function lt(t){return Math.floor(D()*t.length)}function ht(t,e,i=!0){return t[void 0!==e&&i?e%t.length:lt(t)]}function dt(t,e,i,s,o){return ut(pt(t,s??0),e,i,o)}function ut(t,e,i,s){let o=!0;return s&&"bottom"!==s||(o=t.top<e.height+i.x),!o||s&&"left"!==s||(o=t.right>i.x),!o||s&&"right"!==s||(o=t.left<e.width+i.y),!o||s&&"top"!==s||(o=t.bottom>i.y),o}function pt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function ft(t,...e){for(const i of e){if(null==i)continue;if(!Et(i)){t=i;continue}const e=Array.isArray(i);!e||!Et(t)&&t&&Array.isArray(t)?e||!Et(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],o=t;o[e]=Et(s)&&Array.isArray(s)?s.map((t=>ft(o[e],t))):ft(o[e],s)}}return t}function vt(t,e){return!!Mt(e,(e=>e.enable&&rt(t,e.mode)))}function gt(t,e,i){_t(e,(e=>{const s=e.mode;e.enable&&rt(t,s)&&yt(e,i)}))}function yt(t,e){_t(t.selectors,(i=>{e(i,t)}))}function mt(t,e){if(e&&t)return Mt(t,(t=>function(t,e){const i=_t(e,(e=>t.matches(e)));return It(i)?i.some((t=>t)):i}(e,t.selectors)))}function bt(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:z.create(A(t.options.bounce.horizontal.value),A(t.options.bounce.vertical.value))}}function wt(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[o,n]=[t.position,e.position],{dx:a,dy:r}=H(n,o);if(i*a+s*r<0)return;const c=-Math.atan2(r,a),l=t.mass,h=e.mass,d=t.velocity.rotate(c),u=e.velocity.rotate(c),p=j(d,u,l,h),f=j(u,d,l,h),v=p.rotate(-c),g=f.rotate(-c);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function xt(t,e){const i=pt(t.getPosition(),t.getRadius()),s=t.options.bounce,o=et({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:A(s.horizontal.value)});o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const n=et({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:A(s.vertical.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.y=n.velocity),void 0!==n.position&&(t.position.y=n.position))}function _t(t,e){return It(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function kt(t,e,i){return It(t)?ht(t,e,i):t}function Mt(t,e){if(It(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function zt(t,e){const i=t.value,s=t.animation,o={delayTime:A(s.delay)*y,enable:s.enable,value:A(t.value)*e,max:F(i)*e,min:B(i)*e,loops:0,maxLoops:A(s.count),time:0};if(s.enable){switch(o.decay=1-A(s.decay),s.mode){case"increase":o.status="increasing";break;case"decrease":o.status="decreasing";break;case"random":o.status=D()>=g?"increasing":"decreasing"}const t="auto"===s.mode;switch(s.startValue){case"min":o.value=o.min,t&&(o.status="increasing");break;case"max":o.value=o.max,t&&(o.status="decreasing");break;default:o.value=L(o),t&&(o.status=D()>=g?"increasing":"decreasing")}}return o.initialValue=o.value,o}function Ct(t,e){if(!("percent"===t.mode)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/v*e.width,y:t.y/v*e.height}:{width:t.width/v*e.width,height:t.height/v*e.height}}function Pt(t,e){return Ct(t,e)}function St(t,e){return Ct(t,e)}function Ot(t){return"boolean"==typeof t}function Tt(t){return"string"==typeof t}function Rt(t){return"number"==typeof t}function Dt(t){return"function"==typeof t}function Et(t){return"object"==typeof t&&null!==t}function It(t){return Array.isArray(t)}function Lt(t,e,i,s,o){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const n=(e.velocity??0)*o.factor,a=e.min,r=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=o.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=r?(i?e.status="decreasing":e.value-=r,e.loops||(e.loops=0),e.loops++):e.value+=n;break;case"decreasing":e.value<=a?(i?e.status="increasing":e.value+=r,e.loops||(e.loops=0),e.loops++):e.value-=n}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,s,o){switch(e){case"max":i>=o&&t.destroy();break;case"min":i<=s&&t.destroy()}}(t,s,e.value,a,r),t.destroyed||(e.value=E(e.value,a,r))}}const At="random",Bt="mid",Ft=new Map;function qt(t){Ft.set(t.key,t)}function Ht(t){for(const[,e]of Ft)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function Wt(t,e,i=!0){if(!t)return;const s=Tt(t)?{value:t}:t;if(Tt(s.value))return Vt(s.value,e,i);if(It(s.value))return Wt({value:ht(s.value,e,i)});for(const[,t]of Ft){const e=t.handleRangeColor(s);if(e)return e}}function Vt(t,e,i=!0){if(!t)return;const s=Tt(t)?{value:t}:t;if(Tt(s.value))return s.value===At?Zt():Nt(s.value);if(It(s.value))return Vt({value:ht(s.value,e,i)});for(const[,t]of Ft){const e=t.handleColor(s);if(e)return e}}function Ut(t,e,i=!0){const s=Vt(t,e,i);return s?jt(s):void 0}function $t(t,e,i=!0){const s=Wt(t,e,i);return s?jt(s):void 0}function jt(t){const e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:.5*(o+n),s:0};return o!==n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function Gt(t){return Ht(t)?.a}function Nt(t){return Ht(t)}function Xt(t){const e=360,i=(t.h%e+e)%e,s=Math.max(0,Math.min(100,t.s)),o=i/e,n=s/100,a=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===s){const t=Math.round(a*r);return{r:t,g:t,b:t}}const c=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},l=a<.5?a*(1+n):a+n-a*n,h=2*a-l,d=1/3,u=Math.min(r,r*c(h,l,o+d)),p=Math.min(r,r*c(h,l,o)),f=Math.min(r,r*c(h,l,o-d));return{r:Math.round(u),g:Math.round(p),b:Math.round(f)}}function Yt(t){const e=Xt(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Zt(t){const e=t??0;return{b:Math.floor(L(q(e,256))),g:Math.floor(L(q(e,256))),r:Math.floor(L(q(e,256)))}}function Qt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function Jt(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function Kt(t,e,i,s){let o=t,n=e;return void 0===o.r&&(o=Xt(t)),void 0===n.r&&(n=Xt(e)),{b:I(o.b,n.b,i,s),g:I(o.g,n.g,i,s),r:I(o.r,n.r,i,s)}}function te(t,e,i){if(i===At)return Zt();if(i!==Bt)return i;{const i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return Kt(i,s,t.getRadius(),e.getRadius());{const t=i??s;if(t)return Xt(t)}}}function ee(t,e,i){const s=Tt(t)?t:t.value;return s===At?i?Wt({value:s}):e?At:Bt:s===Bt?Bt:Wt({value:s})}function ie(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function se(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(oe(s.h,e.h,i),oe(s.s,e.s,i),oe(s.l,e.l,i)),s}function oe(t,e,i){t.enable=e.enable;t.enable?(t.velocity=A(e.speed)/v*i,t.decay=1-A(e.decay),t.status="increasing",t.loops=0,t.maxLoops=A(e.count),t.time=0,t.delayTime=A(e.delay)*y,e.sync||(t.velocity*=D(),t.value*=D()),t.initialValue=t.value,t.offset=q(e.offset)):t.velocity=0}function ne(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const o=t.offset?L(t.offset):0,n=(t.velocity??0)*s.factor+3.6*o,a=t.decay??1,r=F(e),c=B(e);if(i&&"increasing"!==t.status){t.value-=n;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status="increasing")}else t.value+=n,t.value>r&&(t.loops||(t.loops=0),t.loops++,i?t.status="decreasing":t.value-=r);t.velocity&&1!==a&&(t.velocity*=a),t.value=E(t.value,c,r)}function ae(t,e){if(!t)return;const{h:i,s,l:o}=t,n={min:0,max:100},a={min:0,max:100};i&&ne(i,{min:0,max:360},!1,e),s&&ne(s,n,!0,e),o&&ne(o,a,!0,e)}const re={x:0,y:0};function ce(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function le(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(re.x,re.y,e.width,e.height)}function he(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,re.x,re.y,e.width,e.height),t.globalAlpha=1)}function de(t,e){t.clearRect(re.x,re.y,e.width,e.height)}function ue(t){const{container:e,context:i,particle:s,delta:o,colorStyles:n,backgroundMask:a,composite:r,radius:c,opacity:l,shadow:h,transform:d}=t,u=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f=Math.sin(p),v=Math.cos(p),g={a:v*(d.a??1),b:f*(d.b??1),c:-f*(d.c??1),d:v*(d.d??1)};i.setTransform(g.a,g.b,g.c,g.d,u.x,u.y),a&&(i.globalCompositeOperation=r);const y=s.shadowColor;h.enable&&y&&(i.shadowBlur=h.blur,i.shadowColor=Qt(y),i.shadowOffsetX=h.offset.x,i.shadowOffsetY=h.offset.y),n.fill&&(i.fillStyle=n.fill);const m=s.strokeWidth??0;i.lineWidth=m,n.stroke&&(i.strokeStyle=n.stroke);const b={container:e,context:i,particle:s,radius:c,opacity:l,delta:o,transformData:g,strokeWidth:m};fe(b),ve(b),pe(b),i.globalCompositeOperation="source-over",i.resetTransform()}function pe(t){const{container:e,context:i,particle:s,radius:o,opacity:n,delta:a,transformData:r}=t;if(!s.effect)return;const c=e.effectDrawers.get(s.effect);c&&c.draw({context:i,particle:s,radius:o,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function fe(t){const{container:e,context:i,particle:s,radius:o,opacity:n,delta:a,strokeWidth:r,transformData:c}=t;if(!s.shape)return;const l=e.shapeDrawers.get(s.shape);l&&(i.beginPath(),l.draw({context:i,particle:s,radius:o,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...c}}),s.shapeClose&&i.closePath(),r>0&&i.stroke(),s.shapeFill&&i.fill())}function ve(t){const{container:e,context:i,particle:s,radius:o,opacity:n,delta:a,transformData:r}=t;if(!s.shape)return;const c=e.shapeDrawers.get(s.shape);c?.afterDraw&&c.afterDraw({context:i,particle:s,radius:o,opacity:n,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function ge(t,e,i){e.draw&&e.draw(t,i)}function ye(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}function me(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}function be(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class we{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(const e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,o,n)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:n,stroke:r}=a.getColorStyles(e,t,i,s);n&&(o.fill=n),r&&(o.stroke=r)}if(a.getTransformValues){const t=a.getTransformValues(e);for(const e in t)be(n,t,e)}a.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(const s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=$t(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=$t(s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=()=>{const t=this.container.actualOptions.backgroundMask.cover,e=Wt(t.color);if(e){const i={...e,a:t.opacity};this._coverColorStyle=Qt(i,i.a)}},this._initStyle=()=>{const t=this.element,e=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=ft({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const i in e.style){if(!i||!e.style)continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;const i=1/t.length;if(e.color){const t=Wt(e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise(((t,s)=>{if(!e.image)return;const o=document.createElement("img");o.addEventListener("load",(()=>{this._trailFill={image:o,opacity:i},t()})),o.addEventListener("error",(t=>{s(t.error)})),o.src=e.image}))},this._paintBase=t=>{this.draw((e=>le(e,this.size,t)))},this._paintImage=(t,e)=>{this.draw((i=>he(i,this.size,t,e)))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver((t=>t.disconnect())),this._initStyle(),this.initBackground(),this._safeMutationObserver((e=>e.observe(t,{attributes:!0}))))},this._resetOriginalStyle=()=>{const t=this.element,e=this._originalStyle;if(!t||!e)return;const i=t.style;i.position=e.position,i.zIndex=e.zIndex,i.top=e.top,i.left=e.left,i.width=e.width,i.height=e.height},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;const e="important",i=t.style;i.setProperty("position","fixed",e),i.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),e),i.setProperty("top","0",e),i.setProperty("left","0",e),i.setProperty("width","100%",e),i.setProperty("height","100%",e)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(Qt(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw((t=>{de(t,this.size)}))}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),o=t.getStrokeColor()??s;let[n,a]=this._getPluginParticleColors(t);n||(n=s),a||(a=o),(n||a)&&this.draw((s=>{const o=this.container,r=o.actualOptions,c=t.options.zIndex,l=1-t.zIndexFactor,h=l**c.opacityRate,d=t.bubble.opacity??t.opacity?.value??1,u=d*h,p=(t.strokeOpacity??d)*h,f={},v={fill:n?Jt(n,u):void 0};v.stroke=a?Jt(a,p):v.fill,this._applyPreDrawUpdaters(s,t,i,u,v,f),ue({container:o,context:s,particle:t,delta:e,colorStyles:v,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*l**c.sizeRate,opacity:u,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)}))}drawParticlePlugin(t,e,i){this.draw((s=>ye(s,t,e,i)))}drawPlugin(t,e){this.draw((i=>ge(i,t,e)))}async init(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=at((t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(t){tt().error(t)}this.initBackground(),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions.background,e=this.element;if(!e)return;const i=e.style;if(i){if(t.color){const e=Wt(t.color);i.backgroundColor=e?Qt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,t]of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&i in t.dataset?"true"===t.dataset[i]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=ft({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(de(e,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()}))}resize(){if(!this.element)return!1;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s=this.element.offsetWidth*e,o=this.element.offsetHeight*e;if(o===i.height&&s===i.width&&o===this.element.height&&s===this.element.width)return!1;const n={...i};return this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&t.particles.setResizeFactor({width:i.width/n.width,height:i.height/n.height}),!0}stop(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=void 0,this.draw((t=>de(t,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function xe(t,e,i,s,o){if(s){let s={passive:!0};Ot(o)?s.capture=o:void 0!==o&&(s=o),t.addEventListener(e,i,s)}else{const s=o;t.removeEventListener(e,i,s)}}class _e{constructor(t){this.container=t,this._doMouseTouchClick=t=>{const e=this.container,i=e.actualOptions;if(this._canPush){const t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=(new Date).getTime();_t(i.interactivity.events.onClick.mode,(t=>this.container.handleClickMode(t)))}if("touchend"===t.type){setTimeout((()=>this._mouseTouchFinish()),500)}},this._handleThemeChange=t=>{const e=t,i=this.container,s=i.options,o=s.defaultThemes,n=e.matches?o.dark:o.light,a=s.themes.find((t=>t.name===n));a&&a.default.auto&&i.loadTheme(n)},this._handleVisibilityChange=()=>{const t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await(t?.windowResize())};this._resizeTimeout=setTimeout((()=>{t()}),this.container.actualOptions.interactivity.events.resize.delay*y)},this._manageInteractivityListeners=(t,e)=>{const i=this._handlers,n=this.container,a=n.actualOptions,u=n.interactivity.element;if(!u)return;const p=u,f=n.canvas.element;f&&(f.style.pointerEvents=p===f?"initial":"none"),(a.interactivity.events.onHover.enable||a.interactivity.events.onClick.enable)&&(xe(u,r,i.mouseMove,e),xe(u,c,i.touchStart,e),xe(u,h,i.touchMove,e),a.interactivity.events.onClick.enable?(xe(u,l,i.touchEndClick,e),xe(u,o,i.mouseUp,e),xe(u,s,i.mouseDown,e)):xe(u,l,i.touchEnd,e),xe(u,t,i.mouseLeave,e),xe(u,d,i.touchCancel,e))},this._manageListeners=t=>{const e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,o=i.canvas.element;let r=n;"window"===s?(i.interactivity.element=window,r=a):i.interactivity.element="parent"===s&&o?o.parentElement??o.parentNode:o,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(r,t),document&&xe(document,p,e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const e=this._handlers,i=ot("(prefers-color-scheme: dark)");i&&(void 0===i.addEventListener?void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange)):xe(i,"change",e.themeChange,t))},this._manageResize=t=>{const e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void xe(window,u,e.resize,t);const s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===s))&&this._handleWindowResize()})),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{const e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let o=!1;const n=s.position;if(n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(t.clickPositionValid&&(o=t.clickPositionValid(n),o))break;o||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=n,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{const e=this.container,i=e.actualOptions,s=e.interactivity,o=e.canvas.element;if(!s?.element)return;let n;if(s.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const e=t;if(s.element===window){if(o){const t=o.getBoundingClientRect();n={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===i.interactivity.detectsOn){const t=e.target,i=e.currentTarget;if(t&&i&&o){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),r=o.getBoundingClientRect();n={x:e.offsetX+2*s.left-(a.left+r.left),y:e.offsetY+2*s.top-(a.top+r.top)}}else n={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY}}else e.target===o&&(n={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY})}else if(this._canPush="touchmove"!==t.type,o){const e=t,i=1,s=e.touches[e.touches.length-i],a=o.getBoundingClientRect(),r=0;n={x:s.clientX-(a.left??r),y:s.clientY-(a.top??r)}}const a=e.retina.pixelRatio;n&&(n.x*=a,n.y*=a),s.mouse.position=n,s.status=r},this._touchEnd=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}class ke{constructor(){this.value=""}static create(t,e){const i=new ke;return i.load(t),void 0!==e&&(Tt(e)||It(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}class Me{constructor(){this.color=new ke,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=ke.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class ze{constructor(){this.color=new ke,this.color.value="#fff",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=ke.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ce{constructor(){this.composite="destination-out",this.cover=new ze,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=Tt(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Pe{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Se{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class Oe{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}class Te{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class Re{constructor(){this.enable=!1,this.mode=[],this.parallax=new Te}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class De{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class Ee{constructor(){this.onClick=new Se,this.onDiv=new Oe,this.onHover=new Re,this.resize=new De}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=_t(e,(t=>{const e=new Oe;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class Ie{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class Le{constructor(t,e){this.detectsOn="window",this.events=new Ee,this.modes=new Ie(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class Ae{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=ft({},t.options)))}}class Be{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=ft({},t.options)))}}class Fe{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class qe{constructor(){this.name="",this.default=new Fe}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=ft({},t.options)))}}class He{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=q(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=q(t.speed)),void 0!==t.decay&&(this.decay=q(t.decay)),void 0!==t.delay&&(this.delay=q(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class We extends He{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class Ve extends He{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=q(t.offset))}}class Ue{constructor(){this.h=new Ve,this.s=new Ve,this.l=new Ve}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class $e extends ke{constructor(){super(),this.animation=new Ue}static create(t,e){const i=new $e;return i.load(t),void 0!==e&&(Tt(e)||It(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class je{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}class Ge{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Ne{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=q(t.value))}}class Xe extends Ne{constructor(){super(),this.animation=new He}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ye extends Xe{constructor(){super(),this.animation=new We}load(t){super.load(t)}}class Ze extends Ne{constructor(){super(),this.value=1}}class Qe{constructor(){this.horizontal=new Ze,this.vertical=new Ze}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class Je{constructor(){this.absorb=new je,this.bounce=new Qe,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new Ge}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=q(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Ke{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=ft(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class ti{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=q(t.offset)),void 0!==t.value&&(this.value=q(t.value)))}}class ei{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=q(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class ii{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class si{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=q(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=q(t.maxSpeed)))}}class oi{constructor(){this.clamp=!0,this.delay=new Ne,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=ft(this.options,t.options)))}}class ni{load(t){t&&(void 0!==t.color&&(this.color=ke.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class ai{constructor(){this.enable=!1,this.length=10,this.fill=new ni}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}class ri{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class ci{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=q(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=ft({},t.position)))}}class li{constructor(){this.angle=new ti,this.attract=new ei,this.center=new ii,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new si,this.path=new oi,this.outModes=new ri,this.random=!1,this.size=!1,this.speed=2,this.spin=new ci,this.straight=!1,this.trail=new ai,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load(Rt(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=q(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=Rt(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=q(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(Et(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=q(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class hi extends We{constructor(){super(),this.destroy="none",this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class di extends Ye{constructor(){super(),this.animation=new hi,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class ui{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}class pi{constructor(){this.mode="delete",this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class fi{constructor(){this.density=new ui,this.limit=new pi,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}class vi{constructor(){this.blur=0,this.color=new ke,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=ke.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class gi{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=ft(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class yi extends We{constructor(){super(),this.destroy="none",this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class mi extends Ye{constructor(){super(),this.animation=new yi,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class bi{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=$e.create(this.color,t.color)),void 0!==t.width&&(this.width=q(t.width)),void 0!==t.opacity&&(this.opacity=q(t.opacity)))}}class wi extends Ne{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class xi{constructor(t,e){this._engine=t,this._container=e,this.bounce=new Qe,this.collisions=new Je,this.color=new $e,this.color.value="#fff",this.effect=new Ke,this.groups={},this.move=new li,this.number=new fi,this.opacity=new di,this.reduceDuplicates=!1,this.shadow=new vi,this.shape=new gi,this.size=new mi,this.stroke=new bi,this.zIndex=new wi}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=ft(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load($e.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=ft({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=_t(e,(t=>{const e=new bi;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function _i(t,...e){for(const i of e)t.load(i)}function ki(t,e,...i){const s=new xi(t,e);return _i(s,...i),s}class Mi{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new Me,this.backgroundMask=new Ce,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new Pe,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Le(t,e),this.manualParticles=[],this.particles=ki(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&_t(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=q(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=q(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;Ot(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Ae;return e.load(t),e}))),this.particles.load(t.particles),this.style=ft(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const e of o)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new Be;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new qe;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=ot("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}class zi{constructor(t,e){this.container=e,this._engine=t,this._interactors=t.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(t){for(const e of this._externalInteractors)e.isEnabled()&&await e.interact(t)}handleClickMode(t){for(const e of this._externalInteractors)e.handleClickMode?.(t)}init(){this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case"external":this._externalInteractors.push(t);break;case"particles":this._particleInteractors.push(t)}t.init()}}async particlesInteract(t,e){for(const i of this._externalInteractors)i.clear(t,e);for(const i of this._particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}reset(t){for(const e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(const e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}const Ci=.5;function Pi(t){if(!rt(t.outMode,t.checkModes))return;const e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}class Si{constructor(t,e,i,s,o,n){this.container=i,this._calcPosition=(t,e,i,s=0)=>{for(const[,s]of t.plugins){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return x.create(t.x,t.y,i)}const o=Y({size:t.canvas.size,position:e}),n=x.create(o.x,o.y,i),a=this.getRadius(),r=this.options.move.outModes,c=e=>{Pi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:n.x,maxCoord:t.canvas.size.width,setCb:t=>n.x+=t,radius:a})},l=e=>{Pi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:n.y,maxCoord:t.canvas.size.height,setCb:t=>n.y+=t,radius:a})};if(c(r.left??r.default),c(r.right??r.default),l(r.top??r.default),l(r.bottom??r.default),this._checkOverlap(n,s)){const e=1;return this._calcPosition(t,void 0,i,s+e)}return n},this._calculateVelocity=()=>{const t=$(this.direction).copy(),e=this.options.move;if("inside"===e.direction||"outside"===e.direction)return t;const i=V(A(e.angle.value)),s=V(A(e.angle.offset)),o={left:s-i*Ci,right:s+i*Ci};return e.straight||(t.angle+=L(q(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=D()),t},this._checkOverlap=(t,e=0)=>{const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const o=i.overlap;if(o.enable)return!1;const n=o.retries;if(n>=0&&e>n)throw new Error(`${f} particle is overlapping and can't be placed`);return!!this.container.particles.find((e=>W(t,e.position)<s+e.getRadius()))},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?Math.PI*Ci:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?me(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const e=this.container,i=A(this.options.zIndex.value);this.position=this._calcPosition(e,t,E(i,0,e.zLayers)),this.initialPosition=this.position.copy();const s=e.canvas.size;switch(this.moveCenter={...Pt(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=U(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside"}this.offset=z.origin},this._engine=t,this.init(e,s,o,n)}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);s?.particleDestroy?.(this);for(const[,i]of e.plugins)i.particleDestroyed?.(this,t);for(const i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(t){const e=this.container,i=e.canvas;for(const[,s]of e.plugins)i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??ie(this.color))}getMass(){return this.getRadius()**2*Math.PI*Ci}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??ie(this.strokeColor))}init(t,e,i,s){const o=this.container,n=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,r=o.actualOptions,c=ki(this._engine,o,r.particles),l=c.effect.type,h=c.shape.type,{reduceDuplicates:d}=c;this.effect=kt(l,this.id,d),this.shape=kt(h,this.id,d);const u=c.effect,p=c.shape;if(i){if(i.effect?.type){const t=kt(i.effect.type,this.id,d);t&&(this.effect=t,u.load(i.effect))}if(i.shape?.type){const t=kt(i.shape.type,this.id,d);t&&(this.shape=t,p.load(i.shape))}}this.effectData=function(t,e,i,s){const o=e.options[t];if(o)return ft({close:e.close,fill:e.fill},kt(o,i,s))}(this.effect,u,this.id,d),this.shapeData=function(t,e,i,s){const o=e.options[t];if(o)return ft({close:e.close,fill:e.fill},kt(o,i,s))}(this.shape,p,this.id,d),c.load(i);const f=this.effectData;f&&c.load(f.particles);const v=this.shapeData;v&&c.load(v.particles);const g=new Le(n,o);g.load(o.actualOptions.interactivity),g.load(c.interactivity),this.interactivity=g,this.effectFill=f?.fill??c.effect.fill,this.effectClose=f?.close??c.effect.close,this.shapeFill=v?.fill??c.shape.fill,this.shapeClose=v?.close??c.shape.close,this.options=c;const m=this.options.move.path;this.pathDelay=A(m.delay.value)*y,m.generator&&(this.pathGenerator=this._engine.getPathGenerator(m.generator),this.pathGenerator&&o.addPath(m.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=zt(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();this.moveDecay=1-A(this.options.move.decay);const b=o.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let w=o.effectDrawers.get(this.effect);w||(w=this._engine.getEffectDrawer(this.effect),w&&o.effectDrawers.set(this.effect,w)),w?.loadEffect&&w.loadEffect(this);let x=o.shapeDrawers.get(this.shape);x||(x=this._engine.getShapeDrawer(this.shape),x&&o.shapeDrawers.set(this.shape,x)),x?.loadShape&&x.loadShape(this);const _=x?.getSidesCount;_&&(this.sides=_(this)),this.spawning=!1,this.shadowColor=Wt(this.options.shadow.color);for(const t of b.updaters)t.init(this);for(const t of b.movers)t.init?.(this);w?.particleInit?.(o,this),x?.particleInit?.(o,this);for(const[,t]of o.plugins)t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class Oi{constructor(t,e){this.position=t,this.particle=e}}class Ti{constructor(t,e){this.position={x:t,y:e}}}class Ri extends Ti{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){t instanceof Di&&t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,o=t.position,n=t instanceof Ri?t.size:{width:0,height:0},a=n.width,r=n.height;return o.x<s.x+e&&o.x+a>s.x&&o.y<s.y+i&&o.y+r>s.y}}class Di extends Ti{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return W(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),o=Math.abs(i.y-e.y),n=this.radius;if(t instanceof Di){return n+t.radius>Math.sqrt(s**2+o**2)}if(t instanceof Ri){const{width:e,height:i}=t.size;return Math.pow(s-e,2)+Math.pow(o-i,2)<=n**2||s<=n+e&&o<=n+i||s<=e||o<=i}return!1}}const Ei=.5;class Ii{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{const{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:o}=this;for(let n=0;n<4;n++){const a=n%2;this._subs.push(new Ii(new Ri(t+i*Ei*a,e+s*Ei*(Math.round(n*Ei)-a),i*Ei,s*Ei),o))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some((e=>e.insert(t)))))}query(t,e,i){const s=i??[];if(!t.intersects(this.rectangle))return[];for(const i of this._points)!t.contains(i.position)&&W(t.position,i.position)>i.particle.getRadius()&&(!e||e(i.particle))||s.push(i.particle);if(this._divided)for(const i of this._subs)i.query(t,e,s);return s}queryCircle(t,e,i){return this.query(new Di(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new Ri(t.x,t.y,e.width,e.height),i)}}const Li=t=>{const{height:e,width:i}=t;return new Ri(-.25*i,-.25*e,1.5*i,1.5*e)};class Ai{constructor(t,e){this._addToPool=(...t)=>{for(const e of t)this._pool.push(e)},this._applyDensity=(t,e,i)=>{const s=t.number;if(!t.number.density?.enable)return void(void 0===i?this._limit=s.limit.value:s.limit&&this._groupLimits.set(i,s.limit.value));const o=this._initDensityFactor(s.density),n=s.value,a=s.limit.value>0?s.limit.value:n,r=Math.min(n,a)*o+e,c=Math.min(this.count,this.filter((t=>t.group===i)).length);void 0===i?this._limit=s.limit.value*o:this._groupLimits.set(i,s.limit.value*o),c<r?this.push(Math.abs(r-c),void 0,t,i):c>r&&this.removeQuantity(c-r,i)},this._initDensityFactor=t=>{const e=this._container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)},this._pushParticle=(t,e,i,s)=>{try{let o=this._pool.pop();o?o.init(this._nextId,t,e,i):o=new Si(this._engine,this._nextId,this._container,t,e,i);let n=!0;if(s&&(n=s(o)),!n)return;return this._array.push(o),this._zArray.push(o),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:o}}),o}catch(t){tt().warning(`${f} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{const s=this._array[t];if(!s||s.group!==e)return!1;const o=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(o,1),s.destroy(i),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new zi(t,e);const i=e.canvas.size;this.quadTree=new Ii(Li(i),4),this.movers=this._engine.getMovers(e,!0),this.updaters=this._engine.getUpdaters(e,!0)}get count(){return this._array.length}addManualParticles(){const t=this._container,e=t.actualOptions;for(const i of e.manualParticles)this.addParticle(i.position?Pt(i.position,t.canvas.size):void 0,i.options)}addParticle(t,e,i,s){const o=this._container.actualOptions.particles.number.limit,n=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(n>0)if("delete"===o.mode){const t=a+1-n;t>0&&this.removeQuantity(t)}else if("wait"===o.mode&&a>=n)return;return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(t){const e=this._container,i=e.canvas;i.clear(),await this.update(t);for(const[,s]of e.plugins)i.drawPlugin(s,t);for(const e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}init(){const t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1;let i=!1;this.updaters=this._engine.getUpdaters(t,!0),this._interactionManager.init();for(const[,e]of t.plugins)if(void 0!==e.particlesInitialization&&(i=e.particlesInitialization()),i)break;this._interactionManager.init();for(const[,e]of t.pathGenerators)e.init(t);if(this.addManualParticles(),!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];for(let i=this.count,o=0;o<s.number?.value&&i<t.number.value;i++,o++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let o=0;o<t;o++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let o=0;for(let n=t;o<e&&n<this.count;n++)this._removeParticle(n--,i,s)&&o++}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this._container.actualOptions,e=t.particles.groups;for(const t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}async update(t){const e=this._container,i=new Set;this.quadTree=new Ii(Li(e.canvas.size),4);for(const[,t]of e.pathGenerators)t.update();for(const[,i]of e.plugins)await(i.update?.(t));const s=this._resizeFactor;for(const e of this._array){s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e);for(const[,i]of this._container.plugins){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(const i of this.movers)i.isEnabled(e)&&i.move(e,t);e.destroyed?i.add(e):this.quadTree.insert(new Oi(e.getPosition(),e))}if(i.size){const t=t=>!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of i)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:t}});this._addToPool(...i)}await this._interactionManager.externalInteract(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);e.destroyed||e.spawning||await this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id));const e=1;this._lastZIndex=t[t.length-e].position.z,this._needsSort=!1}}}class Bi{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||it()?1:window.devicePixelRatio,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas;if(s.element){const t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}const o=e.particles,n=o.move;this.maxSpeed=A(n.gravity.maxSpeed)*i,this.sizeAnimationSpeed=A(o.size.animation.speed)*i}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,o=s.distance,n=t.retina;n.moveDrift=A(s.drift)*i,n.moveSpeed=A(s.speed)*i,n.sizeAnimationSpeed=A(e.size.animation.speed)*i;const a=n.maxDistance;a.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,a.vertical=void 0!==o.vertical?o.vertical*i:void 0,n.maxSpeed=A(s.gravity.maxSpeed)*i}}function Fi(t){return t&&!t.destroyed}function qi(t,e,...i){const s=new Mi(t,e);return _i(s,...i),s}class Hi{constructor(t,e,i){this._intersectionManager=t=>{if(Fi(this)&&this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=async t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+y/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;const e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/y}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>y)return void this.draw(!1);if(await this.particles.draw(e),!this.alive())return void this.destroy();this.getAnimationStatus()&&this.draw(!1)}catch(t){tt().error(`${f} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Bi(this),this.canvas=new we(this),this.particles=new Ai(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=qi(this._engine,this),this.actualOptions=qi(this._engine,this),this._eventListeners=new _e(this),this._intersectionObserver=nt((t=>this._intersectionManager(t))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!Fi(this))return;const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(!Fi(this))return;const o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o},a=this.particles.quadTree.queryCircle(n,s*o);t(e,a)};let s=!1,o=!1;e.addEventListener("click",(t=>{if(!Fi(this))return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,1)})),e.addEventListener("touchstart",(()=>{Fi(this)&&(s=!0,o=!1)})),e.addEventListener("touchmove",(()=>{Fi(this)&&(o=!0)})),e.addEventListener("touchend",(t=>{if(Fi(this)){if(s&&!o){const e=t,s=1;let o=e.touches[e.touches.length-s];if(!o&&(o=e.changedTouches[e.changedTouches.length-s],!o))return;const n=this.canvas.element,a=n?n.getBoundingClientRect():void 0,r=0,c={x:o.clientX-(a?a.left:r),y:o.clientY-(a?a.top:r)};i(t,c,Math.max(o.radiusX,o.radiusY))}s=!1,o=!1}})),e.addEventListener("touchcancel",(()=>{Fi(this)&&(s=!1,o=!1)}))}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!Fi(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!Fi(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(const t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);this._engine.clearPlugins(this),this.destroyed=!0;const t=this._engine.dom(),e=t.findIndex((t=>t===this));if(e>=0){const i=1;t.splice(e,i)}this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(t){if(!Fi(this))return;let e=t;const i=async t=>{e&&(this._lastFrameTime=void 0,e=!1),await this._nextFrame(t)};this._drawAnimationFrame=requestAnimationFrame((t=>{i(t)}))}async export(t,e={}){for(const[,i]of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}tt().error(`${f} - Export plugin with type ${t} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&Fi(this)}handleClickMode(t){if(Fi(this)){this.particles.handleClickMode(t);for(const[,e]of this.plugins)e.handleClickMode?.(t)}}async init(){if(!Fi(this))return;const t=this._engine.getSupportedEffects();for(const e of t){const t=this._engine.getEffectDrawer(e);t&&this.effectDrawers.set(e,t)}const e=this._engine.getSupportedShapes();for(const t of e){const e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}this._options=qi(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=qi(this._engine,this,this._options);const i=this._engine.getAvailablePlugins(this);for(const[t,e]of i)this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=A(this.actualOptions.duration)*y,this._delay=A(this.actualOptions.delay)*y,this._lifeTime=0;this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this._smooth=this.actualOptions.smooth;for(const[,t]of this.effectDrawers)await(t.init?.(this));for(const[,t]of this.shapeDrawers)await(t.init?.(this));for(const[,t]of this.plugins)await(t.init?.());this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)t.particlesSetup?.();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(t){Fi(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(Fi(this)&&(void 0!==this._drawAnimationFrame&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(t){if(!Fi(this))return;const e=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(e??!1)}else this._firstStart=!1}async refresh(){if(Fi(this))return this.stop(),this.start()}async reset(){if(Fi(this))return this._initialSourceOptions=void 0,this._options=qi(this._engine,this),this.actualOptions=qi(this._engine,this,this._options),this.refresh()}async start(){Fi(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((t=>{const e=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)await(t.start?.());this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),t()};this._delayTimeout=setTimeout((()=>{e()}),this._delay)})))}stop(){if(Fi(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class Wi{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,o=i.indexOf(e);if(o<0)return;1===s?this._listeners.delete(t):i.splice(o,1)}}function Vi(t,e,i,s=!1){let o=e.get(t);return o&&!s||(o=[...i.values()].map((e=>e(t))),e.set(t,o)),o}class Ui{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Wi,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"3.1.0"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:e,config:t}})}async addEffect(t,e,i=!0){_t(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(s)}async addShape(t,e,i=!0){_t(t,(t=>{this.getShapeDrawer(t)||this.shapeDrawers.set(t,e)})),await this.refresh(i)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}getInteractors(t,e=!1){return Vi(t,this.interactors,this._initializers.interactors,e)}getMovers(t,e=!1){return Vi(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}getUpdaters(t,e=!1){return Vi(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*D())}`,{index:s,url:o}=t,n=o?await async function(t){const e=kt(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?i.json():(tt().error(`${f} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:o,index:s}):t.options;let a=t.element??document.getElementById(e);a||(a=document.createElement("div"),a.id=e,document.body.append(a));const r=kt(n,s),c=this.dom(),l=c.findIndex((t=>t.id.description===e));if(l>=0){const t=this.domItem(l);if(t&&!t.destroyed){t.destroy();const e=1;c.splice(l,e)}}let h;if("canvas"===a.tagName.toLowerCase())h=a,h.dataset[i]="false";else{const t=a.getElementsByTagName("canvas");if(t.length){h=t[0],h.dataset[i]="false"}else h=document.createElement("canvas"),h.dataset[i]="true",a.appendChild(h)}h.style.width||(h.style.width="100%"),h.style.height||(h.style.height="100%");const d=new Hi(this,e,r);if(l>=0){const t=0;c.splice(l,t,d)}else c.push(d);return d.canvas.loadCanvas(h),await d.start(),d}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);if(s)for(const t of s)t.loadOptions?.(e,...i)}async refresh(t=!0){t&&await Promise.allSettled(this.dom().map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error(`${f} can only set click handlers after calling tsParticles.load()`);for(const i of e)i.addClickHandler(t)}}class $i{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return Xt(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return Xt({h:A(e.h),l:A(e.l),s:A(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?Yt({a:e.length>4?Q(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class ji{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:A(e.r),g:A(e.g),b:A(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?Q(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}class Gi{constructor(t){this.type="external",this.container=t}}class Ni{constructor(t){this.type="particles",this.container=t}}const Xi=function(){const t=new ji,e=new $i;qt(t),qt(e);const i=new Ui;return i.init(),i}();it()||(window.tsParticles=Xi);const Yi=1;function Zi(t,e,i,s,o,n){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const o=t.pathGenerator?.generate(t,e);o&&t.velocity.addTo(o);s.clamp&&(t.velocity.x=E(t.velocity.x,-Yi,Yi),t.velocity.y=E(t.velocity.y,-Yi,Yi));t.lastPathTime-=t.pathDelay}(t,n);const a=t.gravity,r=a?.enable&&a.inverse?-Yi:Yi;o&&i&&(t.velocity.x+=o*n.factor/(60*i)),a?.enable&&i&&(t.velocity.y+=r*(a.acceleration*n.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c);const l=t.velocity.mult(i);a?.enable&&s>0&&(!a.inverse&&l.y>=0&&l.y>=s||a.inverse&&l.y<=0&&l.y<=-s)&&(l.y=r*s,i&&(t.velocity.y=l.y/i));const h=t.options.zIndex,d=(Yi-t.zIndexFactor)**h.velocityRate;l.multTo(d);const{position:u}=t;u.addTo(l),e.vibrate&&(u.x+=Math.sin(u.x*Math.cos(u.y)),u.y+=Math.cos(u.y*Math.sin(u.x)))}class Qi{constructor(){this._initSpin=t=>{const e=t.container,i=t.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},o={x:.01*s.x*e.canvas.size.width,y:.01*s.y*e.canvas.size.height},n=W(t.getPosition(),o),a=A(i.acceleration);t.retina.spinAcceleration=a*e.retina.pixelRatio;t.spin={center:o,direction:t.velocity.x>=0?"clockwise":"counter-clockwise",angle:t.velocity.angle,radius:n,acceleration:t.retina.spinAcceleration}}}init(t){const e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:A(e.acceleration),inverse:e.inverse},this._initSpin(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){const i=t.options,s=i.move;if(!s.enable)return;const o=t.container,n=o.retina.pixelRatio;t.retina.moveSpeed??=A(s.speed)*n,t.retina.moveDrift??=A(t.options.move.drift)*n;const a=function(t){return t.slow.inRange?t.slow.factor:Yi}(t),r=t.retina.moveSpeed*o.retina.reduceFactor,c=t.retina.moveDrift,l=F(i.size.value)*n,h=r*(s.size?t.getRadius()/l:1)*a*(e.factor||1)/2,d=t.retina.maxSpeed??o.retina.maxSpeed;s.spin.enable?function(t,e){const i=t.container;if(!t.spin)return;const s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const o=Math.max(i.canvas.size.width,i.canvas.size.height),n=.5*o;t.spin.radius>n?(t.spin.radius=n,t.spin.acceleration*=-Yi):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-Yi),t.spin.angle+=.01*e*(Yi-t.spin.radius/o)}(t,h):Zi(t,s,h,d,c,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=H(e,t.position),o=Math.abs(i),n=Math.abs(s),{maxDistance:a}=t.retina,r=a.horizontal,c=a.vertical;if(!r&&!c)return;if((r&&o>=r||c&&n>=c)&&!t.misplaced)t.misplaced=!!r&&o>r||!!c&&n>c,r&&(t.velocity.x=.5*t.velocity.y-t.velocity.x),c&&(t.velocity.y=.5*t.velocity.x-t.velocity.y);else if((!r||o<r)&&(!c||n<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;r&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-D()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-D())}}(t)}}const Ji=2*Math.PI,Ki=0,ts=0;class es{draw(t){const{context:e,particle:i,radius:s}=t;i.circleRange||(i.circleRange={min:0,max:Ji});const o=i.circleRange;e.arc(Ki,ts,s,o.min,o.max,!1)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=Et(s)?{min:V(s.min),max:V(s.max)}:{min:0,max:V(s)}}}class is{constructor(t){this.container=t}init(t){const e=$t(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=se(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:e,s:i,l:s}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&(void 0!==o?.h.value&&e.enable||void 0!==o?.s.value&&i.enable||void 0!==o?.l.value&&s.enable)}update(t,e){ae(t.color,e)}}class ss{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity=zt(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=A(i.speed)/v*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=D()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&Lt(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}class os{constructor(t){this.container=t,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;let n=!1;for(const[,s]of o.plugins)if(void 0!==s.particleBounce&&(n=s.particleBounce(t,i,e)),n)break;if(n)return;const a=t.getPosition(),r=t.offset,c=t.getRadius(),l=pt(a,c),h=o.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode||"left"!==t.direction&&"right"!==t.direction)return;t.bounds.right<0&&"left"===t.direction?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&"right"===t.direction&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=A(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&"right"===t.direction?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&"left"===t.direction&&(t.particle.position.x=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:l,canvasSize:h,offset:r,size:c}),function(t){if("bounce"!==t.outMode&&"bounce-vertical"!==t.outMode&&"bounceVertical"!==t.outMode&&"split"!==t.outMode||"bottom"!==t.direction&&"top"!==t.direction)return;t.bounds.bottom<0&&"top"===t.direction?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&"bottom"===t.direction&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=A(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&"bottom"===t.direction?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&"top"===t.direction&&(t.particle.position.y=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:l,canvasSize:h,offset:r,size:c})}}class ns{constructor(t){this.container=t,this.modes=["destroy"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case"normal":case"outside":if(dt(t.position,o.canvas.size,z.origin,t.getRadius(),e))return;break;case"inside":{const{dx:e,dy:i}=H(t.position,t.moveCenter),{x:s,y:o}=t.velocity;if(s<0&&e>t.moveCenter.radius||o<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||o>=0&&i<-t.moveCenter.radius)return;break}}o.particles.remove(t,void 0,!0)}}class as{constructor(t){this.container=t,this.modes=["none"]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&("left"===e||"right"===e))??(t.options.move.distance.vertical&&("top"===e||"bottom"===e)))return;const o=t.options.move.gravity,n=this.container,a=n.canvas.size,r=t.getRadius();if(o.enable){const i=t.position;(!o.inverse&&i.y>a.height+r&&"bottom"===e||o.inverse&&i.y<-r&&"top"===e)&&n.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=a.height+r||t.velocity.y<0&&t.position.y>=-r||t.velocity.x>0&&t.position.x<=a.width+r||t.velocity.x<0&&t.position.x>=-r)return;dt(t.position,n.canvas.size,z.origin,r,e)||n.particles.remove(t)}}}class rs{constructor(t){this.container=t,this.modes=["out"]}update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case"inside":{const{x:e,y:i}=t.velocity,s=z.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(z.create(t.moveCenter));const{dx:n,dy:a}=H(t.position,s);if(e<=0&&n>=0||i<=0&&a>=0||e>=0&&n<=0||i>=0&&a<=0)return;t.position.x=Math.floor(L({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(L({min:0,max:o.canvas.size.height}));const{dx:r,dy:c}=H(t.position,t.moveCenter);t.direction=Math.atan2(-c,-r),t.velocity.angle=t.direction;break}default:if(dt(t.position,o.canvas.size,z.origin,t.getRadius(),e))return;switch(t.outType){case"outside":{t.position.x=Math.floor(L({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(L({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=H(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case"normal":{const i=t.options.move.warp,s=o.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=pt(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,i||(t.position.y=D()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,i||(t.position.y=D()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(i||(t.position.x=D()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(i||(t.position.x=D()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y);break}}}}}class cs{constructor(t){this._updateOutMode=(t,e,i,s)=>{for(const o of this.updaters)o.update(t,s,e,i)},this.container=t,this.updaters=[new os(t),new ns(t),new rs(t),new as(t)]}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,"bottom"),this._updateOutMode(t,e,i.left??i.default,"left"),this._updateOutMode(t,e,i.right??i.default,"right"),this._updateOutMode(t,e,i.top??i.default,"top")}}class ls{init(t){const e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/v*e.retina.reduceFactor,i.sync||(t.size.velocity*=D()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&Lt(t,t.size,!0,t.options.size.animation.destroy,e)}}async function hs(t,e=!0){await async function(t,e=!0){await t.addMover("base",(()=>new Qi),e)}(t,!1),await async function(t,e=!0){await t.addShape("circle",new es,e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("color",(t=>new is(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("opacity",(t=>new ss(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("outModes",(t=>new cs(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("size",(()=>new ls),e)}(t,!1),await t.refresh(e)}const ds=["emoji"],us='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class ps{constructor(){this._emojiShapeDict=new Map}destroy(){for(const[t,e]of this._emojiShapeDict)e instanceof ImageBitmap&&(e?.close(),this._emojiShapeDict.delete(t))}draw(t){const{context:e,particle:i,radius:s,opacity:o}=t,n=i.emojiData,a=2*s,r=e.globalAlpha;n&&(e.globalAlpha=o,e.drawImage(n,-s,-s,a,a),e.globalAlpha=r)}async init(t){const e=t.actualOptions;if(ds.find((t=>rt(t,e.particles.shape.type)))){const t=[ct(us)],i=ds.map((t=>e.particles.shape.options[t])).find((t=>!!t));i&&_t(i,(e=>{e.font&&t.push(ct(e.font))})),await Promise.all(t)}}particleDestroy(t){delete t.emojiData}particleInit(t,e){const i=e.shapeData;if(!i?.value)return;const s=kt(i.value,e.randomIndexData),o=i.font??us;if(!s)return;const n=`${s}_${o}`,a=this._emojiShapeDict.get(n);if(a)return void(e.emojiData=a);const r=2*F(e.size.value);let c;const l=F(e.size.value);if("undefined"!=typeof OffscreenCanvas){const t=new OffscreenCanvas(r,r),e=t.getContext("2d");if(!e)return;e.font=`400 ${2*l}px ${o}`,e.textBaseline="middle",e.textAlign="center",e.fillText(s,l,l),c=t.transferToImageBitmap()}else{const t=document.createElement("canvas");t.width=r,t.height=r;const e=t.getContext("2d");if(!e)return;e.font=`400 ${2*l}px ${o}`,e.textBaseline="middle",e.textAlign="center",e.fillText(s,l,l),c=t}this._emojiShapeDict.set(n,c),e.emojiData=c}}class fs{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}const vs="attract";class gs extends Gi{constructor(t,e){super(e),this._clickAttract=()=>{const t=this.container;t.attract||(t.attract={particles:[]});const{attract:e}=t;if(e.finish||(e.count||(e.count=0),e.count++,e.count===t.particles.count&&(e.finish=!0)),e.clicking){const e=t.interactivity.mouse.clickPosition,i=t.retina.attractModeDistance;if(!i||i<0||!e)return;this._processAttract(e,i,new Di(e.x,e.y,i))}else!1===e.clicking&&(e.particles=[])},this._hoverAttract=()=>{const t=this.container,e=t.interactivity.mouse.position,i=t.retina.attractModeDistance;!i||i<0||!e||this._processAttract(e,i,new Di(e.x,e.y,i))},this._processAttract=(t,e,i)=>{const s=this.container,o=s.actualOptions.interactivity.modes.attract;if(!o)return;const n=s.particles.quadTree.query(i,(t=>this.isEnabled(t)));for(const i of n){const{dx:s,dy:n,distance:a}=H(i.position,t),r=o.speed*o.factor,c=E(T(o.easing)(1-a/e)*r,1,o.maxSpeed),l=z.create(a?s/a*c:r,a?n/a*c:r);i.position.subFrom(l)}},this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions.interactivity.modes.attract;if(i&&t===vs){e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout((()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)}),i.duration*y)}}}clear(){}init(){const t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===r,s=e.interactivity.events,o=s.onHover.enable,n=s.onHover.mode,a=s.onClick.enable,c=s.onClick.mode;i&&o&&rt(vs,n)?this._hoverAttract():a&&rt(vs,c)&&this._clickAttract(),await Promise.resolve()}isEnabled(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events;if(!(s.position&&o.onHover.enable||s.clickPosition&&o.onClick.enable))return!1;const n=o.onHover.mode,a=o.onClick.mode;return rt(vs,n)||rt(vs,a)}loadModeOptions(t,...e){t.attract||(t.attract=new fs);for(const i of e)t.attract.load(i?.attract)}reset(){}}class ys{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}const ms="bounce",bs=.5,ws=Math.PI*bs;class xs extends Gi{constructor(t){super(t),this._processBounce=(t,e,i)=>{const s=this.container.particles.quadTree.query(i,(t=>this.isEnabled(t)));for(const o of s)i instanceof Di?wt(bt(o),{position:t,radius:e,mass:e**2*ws,velocity:z.origin,factor:z.origin}):i instanceof Ri&&xt(o,pt(t,e))},this._processMouseBounce=()=>{const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,s=t.retina.bounceModeDistance;!s||s<0||!i||this._processBounce(i,s,new Di(i.x,i.y,s+e))},this._singleSelectorBounce=(t,e)=>{const i=this.container,s=document.querySelectorAll(t);s.length&&s.forEach((t=>{const s=t,o=i.retina.pixelRatio,n={x:(s.offsetLeft+s.offsetWidth*bs)*o,y:(s.offsetTop+s.offsetHeight*bs)*o},a=s.offsetWidth*bs*o,r=10*o,c="circle"===e.type?new Di(n.x,n.y,a+r):new Ri(s.offsetLeft*o-r,s.offsetTop*o-r,s.offsetWidth*o+2*r,s.offsetHeight*o+2*r);this._processBounce(n,a,c)}))}}clear(){}init(){const t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===r,s=e.onHover.enable,o=e.onHover.mode,n=e.onDiv;i&&s&&rt(ms,o)?this._processMouseBounce():gt(ms,n,((t,e)=>this._singleSelectorBounce(t,e))),await Promise.resolve()}isEnabled(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events,n=o.onDiv;return!!s.position&&o.onHover.enable&&rt(ms,o.onHover.mode)||vt(ms,n)}loadModeOptions(t,...e){t.bounce||(t.bounce=new ys);for(const i of e)t.bounce.load(i?.bounce)}reset(){}}class _s{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(t){if(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color){const e=It(this.color)?void 0:this.color;this.color=_t(t.color,(t=>ke.create(e,t)))}void 0!==t.size&&(this.size=t.size)}}}class ks extends _s{constructor(){super(),this.selectors=[]}load(t){super.load(t),t&&void 0!==t.selectors&&(this.selectors=t.selectors)}}class Ms extends _s{load(t){super.load(t),t&&(this.divs=_t(t.divs,(t=>{const e=new ks;return e.load(t),e})))}}function zs(t,e,i,s){if(e>=i){return E(t+(e-i)*s,t,e)}if(e<i){return E(t-(i-e)*s,e,t)}}const Cs="bubble";class Ps extends Gi{constructor(t){super(t),this._clickBubble=()=>{const t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});const o=t.retina.bubbleModeDistance;if(!o||o<0)return;const n=t.particles.quadTree.queryCircle(i,o,(t=>this.isEnabled(t))),{bubble:a}=t;for(const e of n){if(!a.clicking)continue;e.bubble.inRange=!a.durationEnd;const n=W(e.getPosition(),i),r=((new Date).getTime()-(t.interactivity.mouse.clickTime??0))/y;r>s.duration&&(a.durationEnd=!0),r>2*s.duration&&(a.clicking=!1,a.durationEnd=!1);const c={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:F(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:"size"};this._process(e,n,r,c);const l={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:F(e.options.opacity.value),value:e.opacity?.value??1},type:"opacity"};this._process(e,n,r,l),!a.durationEnd&&n<=o?this._hoverBubbleColor(e,n):delete e.bubble.color}},this._hoverBubble=()=>{const t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(!i||i<0||!e)return;const s=t.particles.quadTree.queryCircle(e,i,(t=>this.isEnabled(t)));for(const o of s){o.bubble.inRange=!0;const s=W(o.getPosition(),e),a=1-s/i;s<=i?a>=0&&t.interactivity.status===r&&(this._hoverBubbleSize(o,a),this._hoverBubbleOpacity(o,a),this._hoverBubbleColor(o,a)):this.reset(o),t.interactivity.status===n&&this.reset(o)}},this._hoverBubbleColor=(t,e,i)=>{const s=this.container.actualOptions,o=i??s.interactivity.modes.bubble;if(o){if(!t.bubble.finalColor){const e=o.color;if(!e)return;const i=kt(e);t.bubble.finalColor=$t(i)}if(t.bubble.finalColor)if(o.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?jt(Kt(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}},this._hoverBubbleOpacity=(t,e,i)=>{const s=this.container.actualOptions,o=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!o)return;const n=t.options.opacity.value,a=zs(t.opacity?.value??1,o,F(n),e);void 0!==a&&(t.bubble.opacity=a)},this._hoverBubbleSize=(t,e,i)=>{const s=this.container,o=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===o)return;const n=F(t.options.size.value)*s.retina.pixelRatio,a=zs(t.size.value,o,n,e);void 0!==a&&(t.bubble.radius=a)},this._process=(t,e,i,s)=>{const o=this.container,n=s.bubbleObj.optValue,a=o.actualOptions.interactivity.modes.bubble;if(!a||void 0===n)return;const r=a.duration,c=o.retina.bubbleModeDistance,l=s.particlesObj.optValue,h=s.bubbleObj.value,d=s.particlesObj.value??0,u=s.type;if(c&&!(c<0)&&n!==l)if(o.bubble||(o.bubble={}),o.bubble.durationEnd)h&&("size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity);else if(e<=c){if((h??d)!==n){const e=d-i*(d-n)/r;"size"===u&&(t.bubble.radius=e),"opacity"===u&&(t.bubble.opacity=e)}}else"size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity},this._singleSelectorHover=(t,e,i)=>{const s=this.container,o=document.querySelectorAll(e),n=s.actualOptions.interactivity.modes.bubble;n&&o.length&&o.forEach((e=>{const o=e,a=s.retina.pixelRatio,r={x:(o.offsetLeft+.5*o.offsetWidth)*a,y:(o.offsetTop+.5*o.offsetHeight)*a},c=.5*o.offsetWidth*a,l="circle"===i.type?new Di(r.x,r.y,c):new Ri(o.offsetLeft*a,o.offsetTop*a,o.offsetWidth*a,o.offsetHeight*a),h=s.particles.quadTree.query(l,(t=>this.isEnabled(t)));for(const e of h){if(!l.contains(e.getPosition()))continue;e.bubble.inRange=!0;const i=mt(n.divs,o);e.bubble.div&&e.bubble.div===o||(this.clear(e,t,!0),e.bubble.div=o),this._hoverBubbleSize(e,1,i),this._hoverBubbleOpacity(e,1,i),this._hoverBubbleColor(e,1,i)}}))},t.bubble||(t.bubble={}),this.handleClickMode=e=>{e===Cs&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){t.bubble.inRange&&!i||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}async interact(t){const e=this.container.actualOptions.interactivity.events,i=e.onHover,s=e.onClick,o=i.enable,n=i.mode,a=s.enable,r=s.mode,c=e.onDiv;o&&rt(Cs,n)?this._hoverBubble():a&&rt(Cs,r)?this._clickBubble():gt(Cs,c,((e,i)=>this._singleSelectorHover(t,e,i))),await Promise.resolve()}isEnabled(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events,{onClick:n,onDiv:a,onHover:r}=o,c=vt(Cs,a);return!!(c||r.enable&&s.position||n.enable&&s.clickPosition)&&(rt(Cs,r.mode)||rt(Cs,n.mode)||c)}loadModeOptions(t,...e){t.bubble||(t.bubble=new Ms);for(const i of e)t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}class Ss{constructor(){this.opacity=.5}load(t){t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class Os{constructor(){this.distance=80,this.links=new Ss,this.radius=60}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links),void 0!==t.radius&&(this.radius=t.radius))}}const Ts=0,Rs=1;function Ds(t,e,i,s){const o=t.actualOptions.interactivity.modes.connect;if(o)return function(t,e,i,s){const o=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),c=i.getPosition(),l=Kt(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,c.x,c.y);return h.addColorStop(Ts,Jt(n,s)),h.addColorStop(E(o,Ts,Rs),Qt(l,s)),h.addColorStop(Rs,Jt(a,s)),h}(e,i,s,o.links.opacity)}function Es(t,e,i){t.canvas.draw((s=>{const o=Ds(t,s,e,i);if(!o)return;const n=e.getPosition(),a=i.getPosition();!function(t,e,i,s,o){ce(t,s,o),t.lineWidth=e,t.strokeStyle=i,t.stroke()}(s,e.retina.linksWidth??0,o,n,a)}))}class Is extends Gi{constructor(t){super(t)}clear(){}init(){const t=this.container,e=t.actualOptions.interactivity.modes.connect;e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}async interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){const e=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:s}=t.retina;if(!i||i<0||!s||s<0||!e)return;const o=Math.abs(s),n=t.particles.quadTree.queryCircle(e,o,(t=>this.isEnabled(t)));n.forEach(((e,s)=>{const o=e.getPosition();for(const a of n.slice(s+1)){const s=a.getPosition(),n=Math.abs(i),r=Math.abs(o.x-s.x),c=Math.abs(o.y-s.y);r<n&&c<n&&Es(t,e,a)}}))}await Promise.resolve()}isEnabled(t){const e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return!(!s.onHover.enable||!i.position)&&rt("connect",s.onHover.mode)}loadModeOptions(t,...e){t.connect||(t.connect=new Os);for(const i of e)t.connect.load(i?.connect)}reset(){}}class Ls{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=ke.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class As{constructor(){this.distance=100,this.links=new Ls}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links))}}function Bs(t,e,i,s,o){t.canvas.draw((t=>{const n=e.getPosition();!function(t,e,i,s,o,n){ce(t,i,s),t.strokeStyle=Qt(o,n),t.lineWidth=e,t.stroke()}(t,e.retina.linksWidth??0,n,o,i,s)}))}class Fs extends Gi{constructor(t){super(t)}clear(){}init(){const t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}async interact(){const t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==r)return;const i=t.interactivity.mouse.position;if(!i)return;const s=t.retina.grabModeDistance;if(!s||s<0)return;const o=t.particles.quadTree.queryCircle(i,s,(t=>this.isEnabled(t)));for(const n of o){const o=W(n.getPosition(),i);if(o>s)continue;const a=e.modes.grab.links,r=a.opacity,c=r-o*r/s;if(c<=0)continue;const l=a.color??n.options.links?.color;if(!t.particles.grabLineColor&&l){const i=e.modes.grab.links;t.particles.grabLineColor=ee(l,i.blink,i.consent)}const h=te(n,void 0,t.particles.grabLineColor);h&&Bs(t,n,h,c,i)}await Promise.resolve()}isEnabled(t){const e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&rt("grab",s.onHover.mode)}loadModeOptions(t,...e){t.grab||(t.grab=new As);for(const i of e)t.grab.load(i?.grab)}reset(){}}class qs extends Gi{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;const e=this.container;e.getAnimationStatus()?e.pause():e.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}class Hs{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(!t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const e=t.quantity;void 0!==e&&(this.quantity=q(e))}}class Ws extends Gi{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;const e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;const s=A(i.quantity);if(s<=0)return;const o=ht([void 0,...i.groups]),n=void 0!==o?e.actualOptions.particles.groups[o]:void 0;e.particles.push(s,e.interactivity.mouse,n,o)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){t.push||(t.push=new Hs);for(const i of e)t.push.load(i?.push)}reset(){}}class Vs{constructor(){this.quantity=2}load(t){if(!t)return;const e=t.quantity;void 0!==e&&(this.quantity=q(e))}}class Us extends Gi{constructor(t){super(t),this.handleClickMode=t=>{const e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;const s=A(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){t.remove||(t.remove=new Vs);for(const i of e)t.remove.load(i?.remove)}reset(){}}class $s{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class js extends $s{constructor(){super(),this.selectors=[]}load(t){super.load(t),t&&void 0!==t.selectors&&(this.selectors=t.selectors)}}class Gs extends $s{load(t){super.load(t),t&&(this.divs=_t(t.divs,(t=>{const e=new js;return e.load(t),e})))}}const Ns="repulse";class Xs extends Gi{constructor(t,e){super(e),this._clickRepulse=()=>{const t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;const i=t.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count===t.particles.count&&(i.finish=!0)),i.clicking){const s=t.retina.repulseModeDistance;if(!s||s<0)return;const o=Math.pow(s/6,3),n=t.interactivity.mouse.clickPosition;if(void 0===n)return;const a=new Di(n.x,n.y,o),r=t.particles.quadTree.query(a,(t=>this.isEnabled(t)));for(const t of r){const{dx:s,dy:a,distance:r}=H(n,t.position),c=r**2,l=-o*e.speed/c;if(c<=o){i.particles.push(t);const e=z.create(s,a);e.length=l,t.velocity.setTo(e)}}}else if(!1===i.clicking){for(const t of i.particles)t.velocity.setTo(t.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{const t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;!i||i<0||!e||this._processRepulse(e,i,new Di(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{const o=this.container,n=o.particles.quadTree.query(i,(t=>this.isEnabled(t))),a=o.actualOptions.interactivity.modes.repulse;if(!a)return;const{easing:r,speed:c,factor:l,maxSpeed:h}=a,d=T(r),u=(s?.speed??c)*l;for(const i of n){const{dx:s,dy:o,distance:n}=H(i.position,t),a=E(d(1-n/e)*u,0,h),r=z.create(n?s/n*a:u,n?o/n*a:u);i.position.addTo(r)}},this._singleSelectorRepulse=(t,e)=>{const i=this.container,s=i.actualOptions.interactivity.modes.repulse;if(!s)return;const o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,n=i.retina.pixelRatio,a={x:(o.offsetLeft+.5*o.offsetWidth)*n,y:(o.offsetTop+.5*o.offsetHeight)*n},r=.5*o.offsetWidth*n,c="circle"===e.type?new Di(a.x,a.y,r):new Ri(o.offsetLeft*n,o.offsetTop*n,o.offsetWidth*n,o.offsetHeight*n),l=mt(s.divs,o);this._processRepulse(a,r,c,l)}))},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{const i=this.container.actualOptions.interactivity.modes.repulse;if(!i||t!==Ns)return;e.repulse||(e.repulse={particles:[]});const s=e.repulse;s.clicking=!0,s.count=0;for(const t of e.repulse.particles)this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout((()=>{e.destroyed||(s.clicking=!1)}),i.duration*y)}}clear(){}init(){const t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===r,s=e.interactivity.events,o=s.onHover,n=o.enable,a=o.mode,c=s.onClick,l=c.enable,h=c.mode,d=s.onDiv;i&&n&&rt(Ns,a)?this._hoverRepulse():l&&rt(Ns,h)?this._clickRepulse():gt(Ns,d,((t,e)=>this._singleSelectorRepulse(t,e))),await Promise.resolve()}isEnabled(t){const e=this.container,i=e.actualOptions,s=e.interactivity.mouse,o=(t?.interactivity??i.interactivity).events,n=o.onDiv,a=o.onHover,r=o.onClick,c=vt(Ns,n);if(!(c||a.enable&&s.position||r.enable&&s.clickPosition))return!1;const l=a.mode,h=r.mode;return rt(Ns,l)||rt(Ns,h)||c}loadModeOptions(t,...e){t.repulse||(t.repulse=new Gs);for(const i of e)t.repulse.load(i?.repulse)}reset(){}}class Ys{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class Zs extends Gi{constructor(t){super(t)}clear(t,e,i){t.slow.inRange&&!i||(t.slow.factor=1)}init(){const t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}async interact(){}isEnabled(t){const e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&rt("slow",s.onHover.mode)}loadModeOptions(t,...e){t.slow||(t.slow=new Ys);for(const i of e)t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;const e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,o=e.retina.slowModeRadius,n=i.interactivity.modes.slow;if(!n||!o||o<0||!s)return;const a=W(s,t.getPosition()),r=a/o,c=n.factor,{slow:l}=t;a>o||(l.inRange=!0,l.factor=r/c)}}const Qs=[0,4,2,1],Js=[8,8,4,2];class Ks{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce(((t,e)=>t+String.fromCharCode(e)),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=0,e=0;for(let i=0;0!==t;i+=t+1,t=this.data[this.pos+i])e+=t;const i=new Uint8Array(e);for(let e=0;0!==t;t=this.data[this.pos++])for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(const t=1,e=0;this.data[this.pos]!==e;this.pos+=this.data[this.pos]+t);this.pos++}}function to(t,e){const i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function eo(t,e,i,s,o,n){switch(t.nextByte()){case 59:return!0;case 44:await async function(t,e,i,s,o,n){const a=e.frames[s(!0)];a.left=t.nextTwoBytes(),a.top=t.nextTwoBytes(),a.width=t.nextTwoBytes(),a.height=t.nextTwoBytes();const r=t.nextByte(),c=128==(128&r),l=64==(64&r);a.sortFlag=32==(32&r),a.reserved=(24&r)>>>3;const h=1<<1+(7&r);c&&(a.localColorTable=to(t,h));const d=t=>{const{r:s,g:n,b:r}=(c?a.localColorTable:e.globalColorTable)[t];return t!==o(null)?{r:s,g:n,b:r,a:255}:{r:s,g:n,b:r,a:i?~~((s+n+r)/3):0}},u=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==u)throw new EvalError("GIF frame size is to large");const p=t.nextByte(),f=t.readSubBlocksBin(),v=1<<p,g=(t,e)=>{const i=t>>>3,s=7&t;return(f[i]+(f[i+1]<<8)+(f[i+2]<<16)&(1<<e)-1<<s)>>>s};if(l){for(let i=0,o=p+1,r=0,c=[[0]],l=0;l<4;l++){if(Qs[l]<a.height){let t=0,e=0,s=!1;for(;!s;){const n=i;if(i=g(r,o),r+=o+1,i===v){o=p+1,c.length=v+2;for(let t=0;t<c.length;t++)c[t]=t<v?[t]:[]}else{i>=c.length?c.push(c[n].concat(c[n][0])):n!==v&&c.push(c[n].concat(c[i][0]));for(const s of c[i]){const{r:i,g:o,b:n,a:r}=d(s);u.data.set([i,o,n,r],Qs[l]*a.width+Js[l]*e+t%(4*a.width)),t+=4}c.length===1<<o&&o<12&&o++}t===4*a.width*(e+1)&&(e++,Qs[l]+Js[l]*e>=a.height&&(s=!0))}}n?.(t.pos/(t.data.length-1),s(!1)+1,u,{x:a.left,y:a.top},{width:e.width,height:e.height})}a.image=u,a.bitmap=await createImageBitmap(u)}else{let i=0,o=p+1,r=0,c=-4,l=!1;const h=[[0]];for(;!l;){const t=i;if(i=g(r,o),r+=o,i===v){o=p+1,h.length=v+2;for(let t=0;t<h.length;t++)h[t]=t<v?[t]:[]}else{if(i===v+1){l=!0;break}i>=h.length?h.push(h[t].concat(h[t][0])):t!==v&&h.push(h[t].concat(h[i][0]));for(const t of h[i]){const{r:e,g:i,b:s,a:o}=d(t);u.data.set([e,i,s,o],c+=4)}h.length>=1<<o&&o<12&&o++}}a.image=u,a.bitmap=await createImageBitmap(u),n?.((t.pos+1)/t.data.length,s(!1)+1,a.image,{x:a.left,y:a.top},{width:e.width,height:e.height})}}(t,e,i,s,o,n);break;case 33:!function(t,e,i,s){switch(t.nextByte()){case 249:{const o=e.frames[i(!1)];t.pos++;const n=t.nextByte();o.GCreserved=(224&n)>>>5,o.disposalMethod=(28&n)>>>2,o.userInputDelayFlag=2==(2&n);const a=1==(1&n);o.delayTime=10*t.nextTwoBytes();const r=t.nextByte();a&&s(r),t.pos++;break}case 255:{t.pos++;const i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case 254:e.comments.push([i(!1),t.readSubBlocks()]);break;case 1:if(0===e.globalColorTable.length)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}}(t,e,s,o);break;default:throw new EvalError("undefined block found")}return!1}const io=0,so=0,oo=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function no(t){return new Promise((e=>{t.loading=!0;const i=new Image;t.element=i,i.addEventListener("load",(()=>{t.loading=!1,e()})),i.addEventListener("error",(()=>{t.element=void 0,t.error=!0,t.loading=!1,tt().error(`${f} loading image: ${t.source}`),e()})),i.src=t.source}))}async function ao(t){if("gif"===t.type){t.loading=!0;try{t.gifData=await async function(t,e,i){i||(i=!1);const s=await fetch(t);if(!s.ok&&404===s.status)throw new EvalError("file not found");const o=await s.arrayBuffer(),n={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},a=new Ks(new Uint8ClampedArray(o));if("GIF89a"!==a.getString(6))throw new Error("not a supported GIF file");n.width=a.nextTwoBytes(),n.height=a.nextTwoBytes();const r=a.nextByte(),c=128==(128&r);n.colorRes=(112&r)>>>4,n.sortFlag=8==(8&r);const l=1<<1+(7&r),h=a.nextByte();n.pixelAspectRatio=a.nextByte(),0!==n.pixelAspectRatio&&(n.pixelAspectRatio=(n.pixelAspectRatio+15)/64),c&&(n.globalColorTable=to(a,l));const d=(()=>{try{return new ImageData(n.width,n.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==d)throw new Error("GIF frame size is to large");const{r:u,g:p,b:f}=n.globalColorTable[h];d.data.set(c?[u,p,f,255]:[0,0,0,0]);for(let t=4;t<d.data.length;t*=2)d.data.copyWithin(t,0,t);n.backgroundImage=d;let v=-1,g=!0,y=-1;const m=t=>(t&&(g=!0),v),b=t=>(null!=t&&(y=t),y);try{do{g&&(n.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),v++,y=-1,g=!1)}while(!await eo(a,n,i,m,b,e));n.frames.length--;for(const t of n.frames){if(t.userInputDelayFlag&&0===t.delayTime){n.totalTime=1/0;break}n.totalTime+=t.delayTime}return n}catch(t){if(t instanceof EvalError)throw new Error(`error while parsing frame ${v} "${t.message}"`);throw t}}(t.source),t.gifLoopCount=function(t){for(const e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??so,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}else await no(t)}async function ro(t){if("svg"!==t.type)return void await no(t);t.loading=!0;const e=await fetch(t.source);e.ok?t.svgData=await e.text():(tt().error(`${f} Image not found`),t.error=!0),t.loading=!1}function co(t,e,i,s){const o=function(t,e,i){const{svgData:s}=t;if(!s)return"";const o=Jt(e,i);if(s.includes("fill"))return s.replace(oo,(()=>o));const n=s.indexOf(">");return`${s.substring(io,n)} fill="${o}"${s.substring(n)}`}(t,i,s.opacity?.value??1),n={color:i,gif:e.gif,data:{...t,svgData:o},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise((e=>{const i=new Blob([o],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,a=s.createObjectURL(i),r=new Image;r.addEventListener("load",(()=>{n.loaded=!0,n.element=r,e(n),s.revokeObjectURL(a)}));r.addEventListener("error",(()=>{(async()=>{s.revokeObjectURL(a);const i={...t,error:!1,loading:!0};await no(i),n.loaded=!0,n.element=i.element,e(n)})()})),r.src=a}))}const lo=0,ho=0;class uo{constructor(t){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw new Error(`${f} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:e,radius:i,particle:s,opacity:o,delta:n}=t,a=s.image,r=a?.element;if(a){if(e.globalAlpha=o,a.gif&&a.gifData){const t=new OffscreenCanvas(a.gifData.width,a.gifData.height),o=t.getContext("2d");if(!o)throw new Error("could not create offscreen canvas context");o.imageSmoothingQuality="low",o.imageSmoothingEnabled=!1,o.clearRect(lo,ho,t.width,t.height),void 0===s.gifLoopCount&&(s.gifLoopCount=a.gifLoopCount??0);let r=s.gifFrame??0;const c={x:.5*-a.gifData.width,y:.5*-a.gifData.height},l=a.gifData.frames[r];if(void 0===s.gifTime&&(s.gifTime=0),!l.bitmap)return;switch(e.scale(i/a.gifData.width,i/a.gifData.height),l.disposalMethod){case 4:case 5:case 6:case 7:case 0:o.drawImage(l.bitmap,l.left,l.top),e.drawImage(t,c.x,c.y),o.clearRect(lo,ho,t.width,t.height);break;case 1:o.drawImage(l.bitmap,l.left,l.top),e.drawImage(t,c.x,c.y);break;case 2:o.drawImage(l.bitmap,l.left,l.top),e.drawImage(t,c.x,c.y),o.clearRect(lo,ho,t.width,t.height),a.gifData.globalColorTable.length?o.putImageData(a.gifData.backgroundImage,c.x,c.y):o.putImageData(a.gifData.frames[0].image,c.x+l.left,c.y+l.top);break;case 3:{const i=o.getImageData(lo,ho,t.width,t.height);o.drawImage(l.bitmap,l.left,l.top),e.drawImage(t,c.x,c.y),o.clearRect(lo,ho,t.width,t.height),o.putImageData(i,lo,ho)}}if(s.gifTime+=n.value,s.gifTime>l.delayTime){if(s.gifTime-=l.delayTime,++r>=a.gifData.frames.length){if(--s.gifLoopCount<=0)return;r=0,o.clearRect(lo,ho,t.width,t.height)}s.gifFrame=r}e.scale(a.gifData.width/i,a.gifData.height/i)}else if(r){const t=a.ratio,s={x:-i,y:-i},o=2*i;e.drawImage(r,s.x,s.y,o,o/t)}e.globalAlpha=1}}getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(const t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);const e=t.shapeData;if(!e)return;this._engine.images.find((t=>t.name===e.name||t.source===e.src))||this.loadImageShape(e).then((()=>{this.loadShape(t)}))}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,s=e.shapeData;if(!s)return;const o=e.getFillColor(),n=i.find((t=>t.name===s.name||t.source===s.src));if(!n)return;const a=s.replaceColor??n.replaceColor;n.loading?setTimeout((()=>{this.particleInit(t,e)})):(async()=>{let t;t=n.svgData&&o?await co(n,s,o,e):{color:o,data:n,element:n.element,gif:n.gif,gifData:n.gifData,gifLoopCount:n.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:n.ratio??1,replaceColor:a,source:s.src},t.ratio||(t.ratio=1);const i={image:t,fill:s.fill??e.shapeFill,close:s.close??e.shapeClose};e.image=i.image,e.shapeFill=i.fill,e.shapeClose=i.close})()}}class po{constructor(){this.src="",this.gif=!1}load(t){t&&(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0!==t.width&&(this.width=t.width))}}class fo{constructor(t){this.id="imagePreloader",this._engine=t}getPlugin(){return{}}loadOptions(t,e){if(!e?.preload)return;t.preload||(t.preload=[]);const i=t.preload;for(const t of e.preload){const e=i.find((e=>e.name===t.name||e.src===t.src));if(e)e.load(t);else{const e=new po;e.load(t),i.push(e)}}}needsPlugin(){return!0}}const vo=3;async function go(t,e=!0){!function(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${f} no image source provided`);if(t.images||(t.images=[]),!t.images.find((t=>t.name===e.name||t.source===e.src)))try{const i={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-vo),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};let s;t.images.push(i),s=e.gif?ao:e.replaceColor?ro:no,await s(i)}catch{throw new Error(`${f} ${e.name??e.src} not found`)}})}(t);const i=new fo(t);await t.addPlugin(i,e),await t.addShape(["image","images"],new uo(t),e)}class yo extends Ne{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class mo extends Ne{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class bo{constructor(){this.count=0,this.delay=new yo,this.duration=new mo}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class wo{constructor(t){this.container=t}init(t){const e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?A(i.delay.value)*(i.delay.sync?1:D())/e.retina.reduceFactor*y:0,delayTime:0,duration:e.retina.reduceFactor?A(i.duration.value)*(i.duration.sync?1:D())/e.retina.reduceFactor*y:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){t.life||(t.life=new bo);for(const i of e)t.life.load(i?.life)}update(t,e){if(!this.isEnabled(t)||!t.life)return;const i=t.life;let s=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;s=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(s?i.time=0:i.time+=e.value,i.time<i.duration)return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const o=this.container.canvas.size,n=q(0,o.width),a=q(0,o.width);t.position.x=L(n),t.position.y=L(a),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const r=t.options.life;r&&(i.delay=A(r.delay.value)*y,i.duration=A(r.duration.value)*y)}}class xo{draw(t){const{context:e,particle:i,radius:s}=t,o=i.shapeData;e.moveTo(-s,0),e.lineTo(s,0),e.lineCap=o?.cap??"butt"}getSidesCount(){return 1}}class _o{init(){}isEnabled(t){return!it()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if(it()||!i.enable)return;const s=i.force,o=e.interactivity.mouse.position;if(!o)return;const n=e.canvas.size,a=.5*n.width,r=.5*n.height,c=i.smooth,l=t.getRadius()/s,h=(o.x-a)*l,d=(o.y-r)*l,{offset:u}=t;u.x+=(h-u.x)/c,u.y+=(d-u.y)/c}}class ko extends Ni{constructor(t){super(t)}clear(){}init(){}async interact(t){const e=this.container;void 0===t.attractDistance&&(t.attractDistance=A(t.options.move.attract.distance)*e.retina.pixelRatio);const i=t.attractDistance,s=t.getPosition(),o=e.particles.quadTree.queryCircle(s,i);for(const e of o){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=H(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),c=n/(1e3*a.y),l=e.size.value/t.size.value,h=1/l;t.velocity.x-=r*l,t.velocity.y-=c*l,e.velocity.x+=r*h,e.velocity.y+=c*h}await Promise.resolve()}isEnabled(t){return t.options.move.attract.enable}reset(){}}const Mo=.5,zo=10,Co=0;function Po(t,e,i,s,o,n){const a=E(t.options.collisions.absorb.speed*o.factor/zo,Co,s);t.size.value+=a*Mo,i.size.value-=a,s<=n&&(i.size.value=0,i.destroy())}const So=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=A(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function Oo(t,e){wt(bt(t),bt(e)),So(t),So(e)}function To(t,e,i,s){switch(t.options.collisions.mode){case"absorb":!function(t,e,i,s){const o=t.getRadius(),n=e.getRadius();void 0===o&&void 0!==n?t.destroy():void 0!==o&&void 0===n?e.destroy():void 0!==o&&void 0!==n&&(o>=n?Po(t,0,e,n,i,s):Po(e,0,t,o,i,s))}(t,e,i,s);break;case"bounce":Oo(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||Oo(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}(t,e)}}class Ro extends Ni{constructor(t){super(t)}clear(){}init(){}async interact(t,e){if(t.destroyed||t.spawning)return;const i=this.container,s=t.getPosition(),o=t.getRadius(),n=i.particles.quadTree.queryCircle(s,2*o);for(const a of n){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const n=a.getPosition(),r=a.getRadius();if(Math.abs(Math.round(s.z)-Math.round(n.z))>o+r)continue;W(s,n)>o+r||To(t,a,e,i.retina.pixelRatio)}await Promise.resolve()}isEnabled(t){return t.options.collisions.enable}reset(){}}class Do extends Di{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){const{width:e,height:i}=this.canvasSize,{x:s,y:o}=t;return super.contains(t)||super.contains({x:s-e,y:o})||super.contains({x:s-e,y:o-i})||super.contains({x:s,y:o-i})}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,s={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Di(s.x,s.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Ri(s.x,s.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class Eo{constructor(){this.blur=5,this.color=new ke,this.color.value="#000",this.enable=!1}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=ke.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Io{constructor(){this.enable=!1,this.frequency=1}load(t){t&&(void 0!==t.color&&(this.color=ke.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Lo{constructor(){this.blink=!1,this.color=new ke,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Eo,this.triangles=new Io,this.width=1,this.warp=!1}load(t){t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=ke.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}const Ao=0,Bo=0;function Fo(t,e,i,s,o){const{dx:n,dy:a,distance:r}=H(t,e);if(!o||r<=i)return r;const c={x:Math.abs(n),y:Math.abs(a)},l=Math.min(c.x,s.width-c.x),h=Math.min(c.y,s.height-c.y);return Math.sqrt(l**2+h**2)}class qo extends Ni{constructor(t){super(t),this._setColor=t=>{if(!t.options.links)return;const e=this.linkContainer,i=t.options.links;let s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;s=ee(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(t){if(!t.options.links)return;t.links=[];const e=t.getPosition(),i=this.container,s=i.canvas.size;if(e.x<Ao||e.y<Bo||e.x>s.width||e.y>s.height)return;const o=t.options.links,n=o.opacity,a=t.retina.linksDistance??0,r=o.warp,c=r?new Do(e.x,e.y,a,s):new Di(e.x,e.y,a),l=i.particles.quadTree.query(c);for(const i of l){const c=i.options.links;if(t===i||!c?.enable||o.id!==c.id||i.spawning||i.destroyed||!i.links||t.links.some((t=>t.destination===i))||i.links.some((e=>e.destination===t)))continue;const l=i.getPosition();if(l.x<Ao||l.y<Bo||l.x>s.width||l.y>s.height)continue;const h=Fo(e,l,a,s,r&&c.warp);if(h>a)continue;const d=(1-h/a)*n;this._setColor(t),t.links.push({destination:i,opacity:d})}await Promise.resolve()}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){t.links||(t.links=new Lo);for(const i of e)t.links.load(i?.links)}reset(){}}function Ho(t,e){const i=((s=t.map((t=>t.id))).sort(((t,e)=>t-e)),s.join("_"));var s;let o=e.get(i);return void 0===o&&(o=D(),e.set(i,o)),o}class Wo{constructor(t){this.container=t,this._drawLinkLine=(t,e)=>{const i=t.options.links;if(!i?.enable)return;const s=this.container,o=s.actualOptions,n=e.destination,a=t.getPosition(),r=n.getPosition();let c=e.opacity;s.canvas.draw((e=>{let l;const h=t.options.twinkle?.lines;if(h?.enable){const t=h.frequency,e=Wt(h.color);D()<t&&e&&(l=e,c=A(h.opacity))}if(!l){const e=void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor;l=te(t,n,e)}if(!l)return;const d=t.retina.linksWidth??0,u=t.retina.linksDistance??0,{backgroundMask:p}=o;!function(t){let e=!1;const{begin:i,end:s,maxDistance:o,context:n,canvasSize:a,width:r,backgroundMask:c,colorLine:l,opacity:h,links:d}=t;if(W(i,s)<=o)ce(n,i,s),e=!0;else if(d.warp){let t,r;const c=H(i,{x:s.x-a.width,y:s.y});if(c.distance<=o){const e=i.y-c.dy/c.dx*i.x;t={x:0,y:e},r={x:a.width,y:e}}else{const e=H(i,{x:s.x,y:s.y-a.height});if(e.distance<=o){const s=-(i.y-e.dy/e.dx*i.x)/(e.dy/e.dx);t={x:s,y:0},r={x:s,y:a.height}}else{const e=H(i,{x:s.x-a.width,y:s.y-a.height});if(e.distance<=o){const s=i.y-e.dy/e.dx*i.x;t={x:-s/(e.dy/e.dx),y:s},r={x:t.x+a.width,y:t.y+a.height}}}}t&&r&&(ce(n,i,t),ce(n,s,r),e=!0)}if(!e)return;n.lineWidth=r,c.enable&&(n.globalCompositeOperation=c.composite),n.strokeStyle=Qt(l,h);const{shadow:u}=d;if(u.enable){const t=Wt(u.color);t&&(n.shadowBlur=u.blur,n.shadowColor=Qt(t))}n.stroke()}({context:e,width:d,begin:a,end:r,maxDistance:u,canvasSize:s.canvas.size,links:i,backgroundMask:p,colorLine:l,opacity:c})}))},this._drawLinkTriangle=(t,e,i)=>{const s=t.options.links;if(!s?.enable)return;const o=s.triangles;if(!o.enable)return;const n=this.container,a=n.actualOptions,r=e.destination,c=i.destination,l=o.opacity??.5*(e.opacity+i.opacity);l<=0||n.canvas.draw((e=>{const i=t.getPosition(),h=r.getPosition(),d=c.getPosition(),u=t.retina.linksDistance??0;if(W(i,h)>u||W(d,h)>u||W(d,i)>u)return;let p=Wt(o.color);if(!p){const e=void 0!==s.id?n.particles.linksColors.get(s.id):n.particles.linksColor;p=te(t,r,e)}p&&function(t){const{context:e,pos1:i,pos2:s,pos3:o,backgroundMask:n,colorTriangle:a,opacityTriangle:r}=t;!function(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}(e,i,s,o),n.enable&&(e.globalCompositeOperation=n.composite),e.fillStyle=Qt(a,r),e.fill()}({context:e,pos1:i,pos2:h,pos3:d,backgroundMask:a.backgroundMask,colorTriangle:p,opacityTriangle:l})}))},this._drawTriangles=(t,e,i,s)=>{const o=i.destination;if(!t.links?.triangles.enable||!o.options.links?.triangles.enable)return;const n=o.links?.filter((t=>{const e=this._getLinkFrequency(o,t.destination);return o.options.links&&e<=o.options.links.frequency&&s.findIndex((e=>e.destination===t.destination))>=0}));if(n?.length)for(const s of n){const n=s.destination;this._getTriangleFrequency(e,o,n)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>Ho([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>Ho([t,e,i],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,e){const{links:i,options:s}=e;if(!i?.length)return;const o=i.filter((t=>s.links&&this._getLinkFrequency(e,t.destination)<=s.links.frequency));for(const t of o)this._drawTriangles(s,e,t,o),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const e=this.container.retina.pixelRatio,{retina:i}=t,{distance:s,width:o}=t.options.links;i.linksDistance=s*e,i.linksWidth=o*e}particleDestroyed(t){t.links=[]}}class Vo{constructor(){this.id="links"}getPlugin(t){return new Wo(t)}loadOptions(){}needsPlugin(){return!0}}async function Uo(t,e=!0){await async function(t,e=!0){await t.addInteractor("particlesLinks",(t=>new qo(t)),e)}(t,e),await async function(t,e=!0){const i=new Vo;await t.addPlugin(i,e)}(t,e)}const $o=0,jo=0;class Go{draw(t){const{context:e,particle:i,radius:s}=t,o=this.getCenter(i,s),n=this.getSidesData(i,s),a=n.count.numerator*n.count.denominator,r=n.count.numerator/n.count.denominator,c=180*(r-2)/r,l=Math.PI-V(c);if(e){e.beginPath(),e.translate(o.x,o.y),e.moveTo($o,jo);for(let t=0;t<a;t++)e.lineTo(n.length,jo),e.translate(n.length,jo),e.rotate(l)}}getSidesCount(t){const e=t.shapeData;return Math.round(A(e?.sides??5))}}class No extends Go{getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){const i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class Xo extends Go{getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function Yo(t,e=!0){await async function(t,e=!0){await t.addShape("polygon",new No,e)}(t,e),await async function(t,e=!0){await t.addShape("triangle",new Xo,e)}(t,e)}class Zo{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=q(t.speed)),void 0!==t.decay&&(this.decay=q(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class Qo extends Ne{constructor(){super(),this.animation=new Zo,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}const Jo=2*Math.PI;class Ko{constructor(t){this.container=t}init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:V(A(e.value)),min:0,max:Jo},t.pathRotation=e.path;let i=e.direction;if("random"===i){i=Math.floor(2*D())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}const s=e.animation;s.enable&&(t.rotate.decay=1-A(s.decay),t.rotate.velocity=A(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=D())),t.rotation=t.rotate.value}isEnabled(t){const e=t.options.rotate;return!!e&&(!t.destroyed&&!t.spawning&&e.animation.enable&&!e.path)}loadOptions(t,...e){t.rotate||(t.rotate=new Qo);for(const i of e)t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&t.rotate&&(Lt(t,t.rotate,!1,"none",e),t.rotation=t.rotate.value)}}const tn=Math.sqrt(2);class en{draw(t){const{context:e,radius:i}=t,s=i/tn,o=2*s;e.rect(-s,-s,o,o)}getSidesCount(){return 4}}const sn=0,on=0;class nn{draw(t){const{context:e,particle:i,radius:s}=t,o=i.sides,n=i.starInset??2;e.moveTo(sn,on-s);for(let t=0;t<o;t++)e.rotate(Math.PI/o),e.lineTo(sn,on-s*n),e.rotate(Math.PI/o),e.lineTo(sn,on-s)}getSidesCount(t){const e=t.shapeData;return Math.round(A(e?.sides??5))}particleInit(t,e){const i=e.shapeData;e.starInset=A(i?.inset??2)}}class an{constructor(t){this.container=t}init(t){const e=this.container,i=t.options,s=kt(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=A(s.width)*e.retina.pixelRatio,t.strokeOpacity=A(s.opacity??1),t.strokeAnimation=s.color?.animation;const o=$t(s.color)??t.getFillColor();o&&(t.strokeColor=se(o,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){const e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable)}update(t,e){this.isEnabled(t)&&ae(t.strokeColor,e)}}async function rn(t,e=!0){await async function(t,e=!0){await t.addMover("parallax",(()=>new _o),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalAttract",(e=>new gs(t,e)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalBounce",(t=>new xs(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalBubble",(t=>new Ps(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalConnect",(t=>new Is(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalGrab",(t=>new Fs(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalPause",(t=>new qs(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalPush",(t=>new Ws(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalRemove",(t=>new Us(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalRepulse",(e=>new Xs(t,e)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("externalSlow",(t=>new Zs(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("particlesAttract",(t=>new ko(t)),e)}(t,!1),await async function(t,e=!0){await t.addInteractor("particlesCollisions",(t=>new Ro(t)),e)}(t,!1),await Uo(t,!1),await async function(){O("ease-in-quad",(t=>t**2)),O("ease-out-quad",(t=>1-(1-t)**2)),O("ease-in-out-quad",(t=>t<.5?2*t**2:1-(-2*t+2)**2/2)),await Promise.resolve()}(),await async function(t,e=!0){await t.addShape(ds,new ps,e)}(t,!1),await go(t,!1),await async function(t,e=!0){await t.addShape("line",new xo,e)}(t,!1),await Yo(t,!1),await async function(t,e=!0){await t.addShape(["edge","square"],new en,e)}(t,!1),await async function(t,e=!0){await t.addShape("star",new nn,e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("life",(t=>new wo(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("rotate",(t=>new Ko(t)),e)}(t,!1),await async function(t,e=!0){await t.addParticleUpdater("strokeColor",(t=>new an(t)),e)}(t,!1),await hs(t,e)}return rn(Xi),e})()));
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(this,(()=>(()=>{var t,e,i={4006:(t,e,i)=>{i.d(e,{C:()=>n});var o=i(1412),s=i(3495),a=i(2358);class n extends o.e{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return(0,a.Sp)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,o=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y),r=this.radius;if(t instanceof n){return r+t.radius>Math.sqrt(o**2+a**2)}if(t instanceof s.A){const{width:e,height:i}=t.size;return Math.pow(o-e,2)+Math.pow(a-i,2)<=r**2||o<=r+e&&a<=r+i||o<=e||a<=i}return!1}}},6830:(t,e,i)=>{i.d(e,{$o:()=>d,G1:()=>r,QL:()=>p,Re:()=>c,VH:()=>u,Wt:()=>l,X5:()=>y,YU:()=>o,ZL:()=>s,aM:()=>n,gK:()=>f,rR:()=>v,tZ:()=>m,vq:()=>g,zX:()=>h,zw:()=>a});const o="generated",s="pointerdown",a="pointerup",n="pointerleave",r="pointerout",l="pointermove",c="touchstart",d="touchend",h="touchmove",u="touchcancel",v="resize",p="visibilitychange",f="tsParticles - Error",m=100,g=.5,y=1e3},4158:(t,e,i)=>{i.d(e,{E:()=>o});class o{constructor(t,e){this.position=t,this.particle=e}}},1412:(t,e,i)=>{i.d(e,{e:()=>o});class o{constructor(t,e){this.position={x:t,y:e}}}},3495:(t,e,i)=>{i.d(e,{A:()=>a});var o=i(4006),s=i(1412);class a extends s.e{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){t instanceof o.C&&t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,n=t.position,r=t instanceof a?t.size:{width:0,height:0},l=r.width,c=r.height;return n.x<s.x+e&&n.x+l>s.x&&n.y<s.y+i&&n.y+c>s.y}}},8301:(t,e,i)=>{i.d(e,{O:()=>r});var o=i(7628);const s=0,a=0,n=0;class r extends o.U{constructor(t,e){super(t,e,n)}static get origin(){return r.create(s,a)}static clone(t){return r.create(t.x,t.y)}static create(t,e){return new r(t,e)}}},7628:(t,e,i)=>{i.d(e,{U:()=>l});var o=i(6830),s=i(1271);const a=0,n=0,r=0;class l{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,s.hj)(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}else{if(void 0===t||void 0===e)throw new Error(`${o.gK} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??r}}static get origin(){return l.create(a,n,r)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return l.create(t.x,t.y,t.z)}static create(t,e,i){return new l(t,e,i)}add(t){return l.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return l.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return l.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return l.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return l.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:r}sub(t){return l.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}},1470:(t,e,i)=>{i.d(e,{R:()=>n});var o=i(1271),s=i(5992),a=i(3312);class n extends a.O{constructor(){super(),this.animation=new s.h}static create(t,e){const i=new n;return i.load(t),void 0!==e&&((0,o.HD)(e)||(0,o.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},8152:(t,e,i)=>{i.d(e,{B:()=>a,P:()=>s});var o=i(2358);class s{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,o.Cs)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.Cs)(t.decay)),void 0!==t.delay&&(this.delay=(0,o.Cs)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class a extends s{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},1429:(t,e,i)=>{i.d(e,{A:()=>s});var o=i(3312);class s{constructor(){this.color=new o.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}},9311:(t,e,i)=>{i.d(e,{g:()=>a});var o=i(76),s=i(1271);class a{constructor(){this.composite="destination-out",this.cover=new o.F,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=(0,s.HD)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}},76:(t,e,i)=>{i.d(e,{F:()=>s});var o=i(3312);class s{constructor(){this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}},2793:(t,e,i)=>{i.d(e,{y:()=>a});var o=i(8152),s=i(2358);class a extends o.P{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),t&&void 0!==t.offset&&(this.offset=(0,s.Cs)(t.offset))}}},8569:(t,e,i)=>{i.d(e,{I:()=>o});class o{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}},5992:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(2793);class s{constructor(){this.h=new o.y,this.s=new o.y,this.l=new o.y}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},5053:(t,e,i)=>{i.d(e,{R:()=>o});class o{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}},2935:(t,e,i)=>{i.d(e,{M:()=>o});class o{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(t){t&&(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},1778:(t,e,i)=>{i.d(e,{z:()=>l});var o=i(5053),s=i(2935),a=i(5701),n=i(6755),r=i(1271);class l{constructor(){this.onClick=new o.R,this.onDiv=new s.M,this.onHover=new a.z,this.resize=new n.C}load(t){if(!t)return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,r.KH)(e,(t=>{const e=new s.M;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}},5701:(t,e,i)=>{i.d(e,{z:()=>s});var o=i(6571);class s{constructor(){this.enable=!1,this.mode=[],this.parallax=new o.V}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}},6571:(t,e,i)=>{i.d(e,{V:()=>o});class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}},6755:(t,e,i)=>{i.d(e,{C:()=>o});class o{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},8461:(t,e,i)=>{i.d(e,{o:()=>a});var o=i(1778),s=i(5542);class a{constructor(t,e){this.detectsOn="window",this.events=new o.z,this.modes=new s.n(t,e)}load(t){if(!t)return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},5542:(t,e,i)=>{i.d(e,{n:()=>o});class o{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t)return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}},5632:(t,e,i)=>{i.d(e,{h:()=>s});var o=i(1271);class s{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,o.ZB)({},t.options)))}}},7327:(t,e,i)=>{i.d(e,{E:()=>v});var o=i(1271),s=i(1429),a=i(9311),n=i(8569),r=i(8461),l=i(5632),c=i(3442),d=i(9556),h=i(8853),u=i(2358);class v{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&"any"===t.default.mode)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new s.A,this.backgroundMask=new a.g,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new n.I,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new r.o(t,e),this.manualParticles=[],this.particles=(0,h.x)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(!t)return;void 0!==t.preset&&(0,o.KH)(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,u.Cs)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,u.Cs)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;(0,o.jn)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new l.h;return e.load(t),e}))),this.particles.load(t.particles),this.style=(0,o.ZB)(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const e of a)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new c.E;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new d.Q;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(o?.options),o?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=(0,o.HY)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}},3312:(t,e,i)=>{i.d(e,{O:()=>s});var o=i(1271);class s{constructor(){this.value=""}static create(t,e){const i=new s;return i.load(t),void 0!==e&&((0,o.HD)(e)||(0,o.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){void 0!==t?.value&&(this.value=t.value)}}},1357:(t,e,i)=>{i.d(e,{b:()=>s});var o=i(9141);class s{constructor(){this.horizontal=new o.u,this.vertical=new o.u}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},9141:(t,e,i)=>{i.d(e,{u:()=>s});var o=i(9569);class s extends o.SW{constructor(){super(),this.value=1}}},2631:(t,e,i)=>{i.d(e,{y:()=>r});var o=i(5447),s=i(3964),a=i(1357),n=i(2358);class r{constructor(){this.absorb=new o.h,this.bounce=new a.b,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new s.t}load(t){t&&(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=(0,n.Cs)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}},5447:(t,e,i)=>{i.d(e,{h:()=>o});class o{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}},3964:(t,e,i)=>{i.d(e,{t:()=>o});class o{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}},8097:(t,e,i)=>{i.d(e,{A:()=>v});var o=i(1271),s=i(7056),a=i(4169),n=i(7897),r=i(3843),l=i(457),c=i(8481),d=i(3534),h=i(7805),u=i(2358);class v{constructor(){this.angle=new s.k,this.attract=new a.k,this.center=new n.a,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new r.S,this.path=new l.C,this.outModes=new d.u,this.random=!1,this.size=!1,this.speed=2,this.spin=new h.y,this.straight=!1,this.trail=new c.S,this.vibrate=!1,this.warp=!1}load(t){if(!t)return;this.angle.load((0,o.hj)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.Cs)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,o.hj)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.Cs)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,o.Kn)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.Cs)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},7056:(t,e,i)=>{i.d(e,{k:()=>s});var o=i(2358);class s{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,o.Cs)(t.offset)),void 0!==t.value&&(this.value=(0,o.Cs)(t.value)))}}},4169:(t,e,i)=>{i.d(e,{k:()=>s});var o=i(2358);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,o.Cs)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},7897:(t,e,i)=>{i.d(e,{a:()=>o});class o{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){t&&(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}},3843:(t,e,i)=>{i.d(e,{S:()=>s});var o=i(2358);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,o.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,o.Cs)(t.maxSpeed)))}}},8481:(t,e,i)=>{i.d(e,{S:()=>a});var o=i(3312);class s{load(t){t&&(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class a{constructor(){this.enable=!1,this.length=10,this.fill=new s}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}},3534:(t,e,i)=>{i.d(e,{u:()=>o});class o{constructor(){this.default="out"}load(t){t&&(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}},457:(t,e,i)=>{i.d(e,{C:()=>a});var o=i(9569),s=i(1271);class a{constructor(){this.clamp=!0,this.delay=new o.SW,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.ZB)(this.options,t.options)))}}},7805:(t,e,i)=>{i.d(e,{y:()=>a});var o=i(1271),s=i(2358);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,s.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,o.ZB)({},t.position)))}}},5574:(t,e,i)=>{i.d(e,{l:()=>o});class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},9262:(t,e,i)=>{i.d(e,{H:()=>a});var o=i(5574),s=i(8760);class a{constructor(){this.density=new o.l,this.limit=new s.W,this.value=0}load(t){t&&(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},8760:(t,e,i)=>{i.d(e,{W:()=>o});class o{constructor(){this.mode="delete",this.value=0}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},5555:(t,e,i)=>{i.d(e,{D:()=>a});var o=i(1174),s=i(9569);class a extends s.md{constructor(){super(),this.animation=new o.O,this.value=1}load(t){if(!t)return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},1174:(t,e,i)=>{i.d(e,{O:()=>s});var o=i(8152);class s extends o.B{constructor(){super(),this.destroy="none",this.speed=2}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},9115:(t,e,i)=>{i.d(e,{B:()=>m});var o=i(1271),s=i(1470),a=i(2631);class n{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.ZB)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(8097),l=i(5555),c=i(1357),d=i(9262),h=i(2467),u=i(578),v=i(1293),p=i(4962),f=i(6151);class m{constructor(t,e){this._engine=t,this._container=e,this.bounce=new c.b,this.collisions=new a.y,this.color=new s.R,this.color.value="#fff",this.effect=new n,this.groups={},this.move=new r.A,this.number=new d.H,this.opacity=new l.D,this.reduceDuplicates=!1,this.shadow=new h.j,this.shape=new u.b,this.size=new v.$,this.stroke=new p.m,this.zIndex=new f.K}load(t){if(!t)return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,o.ZB)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(s.R.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,o.ZB)({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=(0,o.KH)(e,(t=>{const e=new p.m;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}},2467:(t,e,i)=>{i.d(e,{j:()=>s});var o=i(3312);class s{constructor(){this.blur=0,this.color=new o.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=o.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}},578:(t,e,i)=>{i.d(e,{b:()=>s});var o=i(1271);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(!t)return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,o.ZB)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},1293:(t,e,i)=>{i.d(e,{$:()=>a});var o=i(9569),s=i(4376);class a extends o.md{constructor(){super(),this.animation=new s.a,this.value=3}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},4376:(t,e,i)=>{i.d(e,{a:()=>s});var o=i(8152);class s extends o.B{constructor(){super(),this.destroy="none",this.speed=5}load(t){super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}},4962:(t,e,i)=>{i.d(e,{m:()=>a});var o=i(1470),s=i(2358);class a{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=o.R.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,s.Cs)(t.width)),void 0!==t.opacity&&(this.opacity=(0,s.Cs)(t.opacity)))}}},6151:(t,e,i)=>{i.d(e,{K:()=>s});var o=i(9569);class s extends o.SW{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}},3442:(t,e,i)=>{i.d(e,{E:()=>s});var o=i(1271);class s{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,o.ZB)({},t.options)))}}},9556:(t,e,i)=>{i.d(e,{Q:()=>a});var o=i(5295),s=i(1271);class a{constructor(){this.name="",this.default=new o.C}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,s.ZB)({},t.options)))}}},5295:(t,e,i)=>{i.d(e,{C:()=>o});class o{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},9569:(t,e,i)=>{i.d(e,{I9:()=>n,SW:()=>a,md:()=>r});var o=i(8152),s=i(2358);class a{constructor(){this.value=0}load(t){t&&void 0!==t.value&&(this.value=(0,s.Cs)(t.value))}}class n extends a{constructor(){super(),this.animation=new o.P}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class r extends n{constructor(){super(),this.animation=new o.B}load(t){super.load(t)}}},4150:(t,e,i)=>{i.d(e,{$F:()=>p,C3:()=>r,Ch:()=>h,Dd:()=>u,PL:()=>f,TQ:()=>n,ZH:()=>l,Zw:()=>v,lV:()=>d,pS:()=>a,zv:()=>c});var o=i(5063);const s={x:0,y:0};function a(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function n(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(s.x,s.y,e.width,e.height)}function r(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,s.x,s.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(s.x,s.y,e.width,e.height)}async function c(t){const{container:e,context:i,particle:s,delta:a,colorStyles:n,backgroundMask:r,composite:l,radius:c,opacity:v,shadow:p,transform:f}=t,m=s.getPosition(),g=s.rotation+(s.pathRotation?s.velocity.angle:0),y=Math.sin(g),b=Math.cos(g),w={a:b*(f.a??1),b:y*(f.b??1),c:-y*(f.c??1),d:b*(f.d??1)};i.setTransform(w.a,w.b,w.c,w.d,m.x,m.y),r&&(i.globalCompositeOperation=l);const x=s.shadowColor;p.enable&&x&&(i.shadowBlur=p.blur,i.shadowColor=(0,o.iz)(x),i.shadowOffsetX=p.offset.x,i.shadowOffsetY=p.offset.y),n.fill&&(i.fillStyle=n.fill);const C=s.strokeWidth??0;i.lineWidth=C,n.stroke&&(i.strokeStyle=n.stroke);const M={container:e,context:i,particle:s,radius:c,opacity:v,delta:a,transformData:w,strokeWidth:C};await h(M),await u(M),await d(M),i.globalCompositeOperation="source-over",i.resetTransform()}async function d(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,transformData:r}=t;if(!o.effect)return;const l=e.effectDrawers.get(o.effect);l&&await l.draw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}async function h(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,strokeWidth:r,transformData:l}=t;if(!o.shape)return;const c=e.shapeDrawers.get(o.shape);c&&(i.beginPath(),await c.draw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&i.closePath(),r>0&&i.stroke(),o.shapeFill&&i.fill())}async function u(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:n,transformData:r}=t;if(!o.shape)return;const l=e.shapeDrawers.get(o.shape);l?.afterDraw&&await l.afterDraw({context:i,particle:o,radius:s,opacity:a,delta:n,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}async function v(t,e,i){e.draw&&await e.draw(t,i)}async function p(t,e,i,o){e.drawParticle&&await e.drawParticle(t,i,o)}function f(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},5063:(t,e,i)=>{i.d(e,{BE:()=>S,DS:()=>g,Dt:()=>z,J9:()=>w,PB:()=>E,VI:()=>c,Y6:()=>b,ZC:()=>O,_g:()=>v,bS:()=>R,gE:()=>m,gW:()=>P,iz:()=>x,lC:()=>f,lN:()=>p,oc:()=>M,sS:()=>u,tX:()=>h,ve:()=>y,vz:()=>C});var o=i(2358),s=i(1271),a=i(6830);const n="random",r="mid",l=new Map;function c(t){l.set(t.key,t)}function d(t){for(const[,e]of l)if(t.startsWith(e.stringPrefix))return e.parseString(t);const e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}function h(t,e,i=!0){if(!t)return;const o=(0,s.HD)(t)?{value:t}:t;if((0,s.HD)(o.value))return u(o.value,e,i);if((0,s.kJ)(o.value))return h({value:(0,s.c8)(o.value,e,i)});for(const[,t]of l){const e=t.handleRangeColor(o);if(e)return e}}function u(t,e,i=!0){if(!t)return;const o=(0,s.HD)(t)?{value:t}:t;if((0,s.HD)(o.value))return o.value===n?w():g(o.value);if((0,s.kJ)(o.value))return u({value:(0,s.c8)(o.value,e,i)});for(const[,t]of l){const e=t.handleColor(o);if(e)return e}}function v(t,e,i=!0){const o=u(t,e,i);return o?f(o):void 0}function p(t,e,i=!0){const o=h(t,e,i);return o?f(o):void 0}function f(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),a=Math.min(e,i,o),n={h:0,l:.5*(s+a),s:0};return s!==a&&(n.s=n.l<.5?(s-a)/(s+a):(s-a)/(2-s-a),n.h=e===s?(i-o)/(s-a):n.h=i===s?2+(o-e)/(s-a):4+(e-i)/(s-a)),n.l*=100,n.s*=100,n.h*=60,n.h<0&&(n.h+=360),n.h>=360&&(n.h-=360),n}function m(t){return d(t)?.a}function g(t){return d(t)}function y(t){const e=360,i=(t.h%e+e)%e,o=Math.max(0,Math.min(100,t.s)),s=i/e,a=o/100,n=Math.max(0,Math.min(100,t.l))/100,r=255;if(0===o){const t=Math.round(n*r);return{r:t,g:t,b:t}}const l=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},c=n<.5?n*(1+a):n+a-n*a,d=2*n-c,h=1/3,u=Math.min(r,r*l(d,c,s+h)),v=Math.min(r,r*l(d,c,s)),p=Math.min(r,r*l(d,c,s-h));return{r:Math.round(u),g:Math.round(v),b:Math.round(p)}}function b(t){const e=y(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function w(t){const e=t??0;return{b:Math.floor((0,o.vd)((0,o.Cs)(e,256))),g:Math.floor((0,o.vd)((0,o.Cs)(e,256))),r:Math.floor((0,o.vd)((0,o.Cs)(e,256)))}}function x(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function C(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function M(t,e,i,s){let a=t,n=e;return void 0===a.r&&(a=y(t)),void 0===n.r&&(n=y(e)),{b:(0,o.CD)(a.b,n.b,i,s),g:(0,o.CD)(a.g,n.g,i,s),r:(0,o.CD)(a.r,n.r,i,s)}}function S(t,e,i){if(i===n)return w();if(i!==r)return i;{const i=t.getFillColor()??t.getStrokeColor(),o=e?.getFillColor()??e?.getStrokeColor();if(i&&o&&e)return M(i,o,t.getRadius(),e.getRadius());{const t=i??o;if(t)return y(t)}}}function z(t,e,i){const o=(0,s.HD)(t)?t:t.value;return o===n?i?h({value:o}):e?n:r:o===r?r:h({value:o})}function P(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function R(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(k(o.h,e.h,i),k(o.s,e.s,i),k(o.l,e.l,i)),o}function k(t,e,i){t.enable=e.enable;t.enable?(t.velocity=(0,o.Gu)(e.speed)/a.tZ*i,t.decay=1-(0,o.Gu)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,o.Gu)(e.count),t.time=0,t.delayTime=(0,o.Gu)(e.delay)*a.X5,e.sync||(t.velocity*=(0,o.sZ)(),t.value*=(0,o.sZ)()),t.initialValue=t.value,t.offset=(0,o.Cs)(e.offset)):t.velocity=0}function O(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const a=t.offset?(0,o.vd)(t.offset):0,n=(t.velocity??0)*s.factor+3.6*a,r=t.decay??1,l=(0,o.KI)(e),c=(0,o.Uv)(e);if(i&&"increasing"!==t.status){t.value-=n;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status="increasing")}else t.value+=n,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status="decreasing":t.value-=l);t.velocity&&1!==r&&(t.velocity*=r),t.value=(0,o.uZ)(t.value,c,l)}function E(t,e){if(!t)return;const{h:i,s:o,l:s}=t,a={min:0,max:100},n={min:0,max:100};i&&O(i,{min:0,max:360},!1,e),o&&O(o,a,!0,e),s&&O(s,n,!0,e)}},2358:(t,e,i)=>{i.d(e,{BV:()=>D,CD:()=>p,Cs:()=>b,Gk:()=>M,Gu:()=>m,Gz:()=>k,Id:()=>C,KD:()=>E,KI:()=>y,Ry:()=>P,Sp:()=>x,Uv:()=>g,_X:()=>d,bx:()=>c,hA:()=>z,lQ:()=>S,mC:()=>O,oW:()=>w,p:()=>R,sR:()=>h,sZ:()=>u,uZ:()=>v,vd:()=>f});var o=i(8301),s=i(1271),a=i(6830);let n=Math.random;const r=new Map,l=2*Math.PI;function c(t,e){r.get(t)||r.set(t,e)}function d(t){return r.get(t)??(t=>t)}function h(t=Math.random){n=t}function u(){return v(n(),0,1-Number.EPSILON)}function v(t,e,i){return Math.min(Math.max(t,e),i)}function p(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function f(t){const e=y(t);let i=g(t);return e===i&&(i=0),u()*(e-i)+i}function m(t){return(0,s.hj)(t)?t:f(t)}function g(t){return(0,s.hj)(t)?t:t.min}function y(t){return(0,s.hj)(t)?t:t.max}function b(t,e){if(t===e||void 0===e&&(0,s.hj)(t))return t;const i=g(t),o=y(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:b(i,o)}function w(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i**2+o**2)}}function x(t,e){return w(t,e).distance}function C(t){return t*Math.PI/180}function M(t,e,i){if((0,s.hj)(t))return C(t);const o=.25;switch(t){case"top":return.5*-Math.PI;case"top-right":return-Math.PI*o;case"right":return 0;case"bottom-right":return Math.PI*o;case"bottom":return.5*Math.PI;case"bottom-left":return.75*Math.PI;case"left":return Math.PI;case"top-left":return.75*-Math.PI;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return u()*l}}function S(t){const e=o.O.origin;return e.length=1,e.angle=t,e}function z(t,e,i,s){return o.O.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function P(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/a.tZ,y:t.position.y*t.size.height/a.tZ}:void 0}function R(t){return{x:(t.position?.x??u()*a.tZ)*t.size.width/a.tZ,y:(t.position?.y??u()*a.tZ)*t.size.height/a.tZ}}function k(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return R({size:t.size,position:e})}function O(t){return{x:t.position?.x??u()*t.size.width,y:t.position?.y??u()*t.size.height}}function E(t){const e={x:void 0!==t.position?.x?m(t.position.x):void 0,y:void 0!==t.position?.y?m(t.position.y):void 0};return O({size:t.size,position:e})}function D(t){return t?t.endsWith("%")?parseFloat(t)/a.tZ:parseFloat(t):1}},8853:(t,e,i)=>{i.d(e,{h:()=>s,x:()=>a});var o=i(9115);function s(t,...e){for(const i of e)t.load(i)}function a(t,e,...i){const a=new o.B(t,e);return s(a,...i),a}},1271:(t,e,i)=>{i.d(e,{Ac:()=>b,Cr:()=>G,EK:()=>r,Gt:()=>z,HD:()=>L,HY:()=>u,KH:()=>E,Kn:()=>W,Kr:()=>d,M_:()=>x,NM:()=>v,Rs:()=>I,V0:()=>A,XD:()=>S,ZB:()=>C,ap:()=>Z,bt:()=>B,c8:()=>y,dB:()=>f,dU:()=>g,dp:()=>O,gy:()=>R,hj:()=>H,iC:()=>P,jl:()=>l,jn:()=>T,kJ:()=>K,kR:()=>k,lL:()=>h,mf:()=>V,mx:()=>m,wA:()=>D,wm:()=>M,xq:()=>w,yf:()=>p});var o=i(2358),s=i(6830),a=i(8301);const n={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function r(t){n.debug=t.debug||n.debug,n.error=t.error||n.error,n.info=t.info||n.info,n.log=t.log||n.log,n.verbose=t.verbose||n.verbose,n.warning=t.warning||n.warning}function l(){return n}function c(t){const e={bounced:!1},{pSide:i,pOtherSide:o,rectSide:s,rectOtherSide:a,velocity:n,factor:r}=t;return o.min<a.min||o.min>a.max||o.max<a.min||o.max>a.max||(i.max>=s.min&&i.max<=.5*(s.max+s.min)&&n>0||i.min<=s.max&&i.min>.5*(s.max+s.min)&&n<0)&&(e.velocity=n*-r,e.bounced=!0),e}function d(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function h(){return!d()&&"undefined"!=typeof matchMedia}function u(t){if(h())return matchMedia(t)}function v(t){if(!d()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function p(t){if(!d()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function f(t,e){return t===e||K(e)&&e.indexOf(t)>-1}async function m(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function g(t){return Math.floor((0,o.sZ)()*t.length)}function y(t,e,i=!0){return t[void 0!==e&&i?e%t.length:g(t)]}function b(t,e,i,o,s){return w(x(t,o??0),e,i,s)}function w(t,e,i,o){let s=!0;return o&&"bottom"!==o||(s=t.top<e.height+i.x),!s||o&&"left"!==o||(s=t.right>i.x),!s||o&&"right"!==o||(s=t.left<e.width+i.y),!s||o&&"top"!==o||(s=t.bottom>i.y),s}function x(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function C(t,...e){for(const i of e){if(null==i)continue;if(!W(i)){t=i;continue}const e=Array.isArray(i);!e||!W(t)&&t&&Array.isArray(t)?e||!W(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s=t;s[e]=W(o)&&Array.isArray(o)?o.map((t=>C(s[e],t))):C(s[e],o)}}return t}function M(t,e){return!!I(e,(e=>e.enable&&f(t,e.mode)))}function S(t,e,i){E(e,(e=>{const o=e.mode;e.enable&&f(t,o)&&z(e,i)}))}function z(t,e){E(t.selectors,(i=>{e(i,t)}))}function P(t,e){if(e&&t)return I(t,(t=>function(t,e){const i=E(e,(e=>t.matches(e)));return K(i)?i.some((t=>t)):i}(e,t.selectors)))}function R(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:a.O.create((0,o.Gu)(t.options.bounce.horizontal.value),(0,o.Gu)(t.options.bounce.vertical.value))}}function k(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[a,n]=[t.position,e.position],{dx:r,dy:l}=(0,o.oW)(n,a);if(i*r+s*l<0)return;const c=-Math.atan2(l,r),d=t.mass,h=e.mass,u=t.velocity.rotate(c),v=e.velocity.rotate(c),p=(0,o.hA)(u,v,d,h),f=(0,o.hA)(v,u,d,h),m=p.rotate(-c),g=f.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function O(t,e){const i=x(t.getPosition(),t.getRadius()),s=t.options.bounce,a=c({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:(0,o.Gu)(s.horizontal.value)});a.bounced&&(void 0!==a.velocity&&(t.velocity.x=a.velocity),void 0!==a.position&&(t.position.x=a.position));const n=c({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:(0,o.Gu)(s.vertical.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.y=n.velocity),void 0!==n.position&&(t.position.y=n.position))}function E(t,e){return K(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function D(t,e,i){return K(t)?y(t,e,i):t}function I(t,e){if(K(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function A(t,e){const i=t.value,a=t.animation,n={delayTime:(0,o.Gu)(a.delay)*s.X5,enable:a.enable,value:(0,o.Gu)(t.value)*e,max:(0,o.KI)(i)*e,min:(0,o.Uv)(i)*e,loops:0,maxLoops:(0,o.Gu)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,o.Gu)(a.decay),a.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=(0,o.sZ)()>=s.vq?"increasing":"decreasing"}const t="auto"===a.mode;switch(a.startValue){case"min":n.value=n.min,t&&(n.status="increasing");break;case"max":n.value=n.max,t&&(n.status="decreasing");break;default:n.value=(0,o.vd)(n),t&&(n.status=(0,o.sZ)()>=s.vq?"increasing":"decreasing")}}return n.initialValue=n.value,n}function _(t,e){if(!("percent"===t.mode)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s.tZ*e.width,y:t.y/s.tZ*e.height}:{width:t.width/s.tZ*e.width,height:t.height/s.tZ*e.height}}function B(t,e){return _(t,e)}function Z(t,e){return _(t,e)}function T(t){return"boolean"==typeof t}function L(t){return"string"==typeof t}function H(t){return"number"==typeof t}function V(t){return"function"==typeof t}function W(t){return"object"==typeof t&&null!==t}function K(t){return Array.isArray(t)}function G(t,e,i,s,a){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const n=(e.velocity??0)*a.factor,r=e.min,l=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=a.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=l?(i?e.status="decreasing":e.value-=l,e.loops||(e.loops=0),e.loops++):e.value+=n;break;case"decreasing":e.value<=r?(i?e.status="increasing":e.value+=l,e.loops||(e.loops=0),e.loops++):e.value-=n}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,o,s){switch(e){case"max":i>=s&&t.destroy();break;case"min":i<=o&&t.destroy()}}(t,s,e.value,r,l),t.destroyed||(e.value=(0,o.uZ)(e.value,r,l))}}},3624:(t,e,i)=>{i.d(e,{RC:()=>w.R,Pp:()=>x.P,I9:()=>pt.I9,Aq:()=>C.A,g5:()=>M.g,F0:()=>S.F,Cd:()=>u.C,Rd:()=>k.R,yW:()=>W.y,hK:()=>K.h,tm:()=>G.t,yQ:()=>z.y,Mo:()=>O.M,zW:()=>E.z,L8:()=>v,IT:()=>P.I,zP:()=>D.z,hz:()=>R.h,BY:()=>d,o7:()=>_.o,ht:()=>Z.h,nl:()=>B.n,A6:()=>X.A,kZ:()=>N.k,kS:()=>U.k,aP:()=>Q.a,Sb:()=>q.S,Cl:()=>J.C,SF:()=>et.S,Dd:()=>at.D,OQ:()=>nt.O,Ei:()=>T.E,Oz:()=>L.O,uy:()=>Y.u,VS:()=>I.V,bD:()=>H.b,uR:()=>V.u,ld:()=>st.l,$S:()=>p,Hb:()=>it.H,Wf:()=>ot.W,Bm:()=>j.B,E9:()=>f.E,e6:()=>m.e,Br:()=>x.B,md:()=>pt.md,Ae:()=>g.A,Cf:()=>A.C,Et:()=>ht.E,g1:()=>h,jX:()=>F.j,bn:()=>rt.b,$u:()=>lt.$,aA:()=>ct.a,yC:()=>tt.y,mP:()=>$.m,Q2:()=>ut.Q,Cm:()=>vt.C,SW:()=>pt.SW,OW:()=>y.O,UJ:()=>b.U,KN:()=>dt.K,VI:()=>c.VI,bx:()=>n.bx,PL:()=>ft.PL,xq:()=>s.xq,dU:()=>s.dU,mC:()=>n.mC,KD:()=>n.KD,Ry:()=>n.Ry,p:()=>n.p,Gz:()=>n.Gz,M_:()=>s.M_,kR:()=>s.kR,gy:()=>s.gy,uZ:()=>n.uZ,ZH:()=>ft.ZH,hA:()=>n.hA,oc:()=>c.oc,_g:()=>c._g,sS:()=>c.sS,ZB:()=>s.ZB,Id:()=>n.Id,iC:()=>s.iC,XD:()=>s.XD,lV:()=>ft.lV,pS:()=>ft.pS,zv:()=>ft.zv,$F:()=>ft.$F,Zw:()=>ft.Zw,Ch:()=>ft.Ch,m:()=>ft.Dd,gK:()=>o.gK,KH:()=>s.KH,Rs:()=>s.Rs,YU:()=>o.YU,Sp:()=>n.Sp,oW:()=>n.oW,_X:()=>n._X,bS:()=>c.bS,gW:()=>c.gW,BE:()=>c.BE,Dt:()=>c.Dt,jl:()=>s.jl,lQ:()=>n.lQ,Gk:()=>n.Gk,bt:()=>s.bt,sZ:()=>n.sZ,J9:()=>c.J9,KI:()=>n.KI,Uv:()=>n.Uv,Gu:()=>n.Gu,ap:()=>s.ap,vz:()=>c.vz,iz:()=>c.iz,vq:()=>o.vq,lL:()=>s.lL,ve:()=>c.ve,Y6:()=>c.Y6,V0:()=>s.V0,kJ:()=>s.kJ,jn:()=>s.jn,wm:()=>s.wm,mf:()=>s.mf,dB:()=>s.dB,hj:()=>s.hj,Kn:()=>s.Kn,Ac:()=>s.Ac,Kr:()=>s.Kr,HD:()=>s.HD,c8:()=>s.c8,wA:()=>s.wA,mx:()=>s.mx,hS:()=>mt.h,hT:()=>mt.x,X5:()=>o.X5,CD:()=>n.CD,ZL:()=>o.ZL,aM:()=>o.aM,Wt:()=>o.Wt,G1:()=>o.G1,zw:()=>o.zw,TQ:()=>ft.TQ,C3:()=>ft.C3,BV:()=>n.BV,tZ:()=>o.tZ,vd:()=>n.vd,lN:()=>c.lN,tX:()=>c.tX,dp:()=>s.dp,rR:()=>o.rR,lC:()=>c.lC,NM:()=>s.NM,HY:()=>s.HY,yf:()=>s.yf,EK:()=>s.EK,sR:()=>n.sR,Cs:()=>n.Cs,Gt:()=>s.Gt,gE:()=>c.gE,DS:()=>c.DS,VH:()=>o.VH,$o:()=>o.$o,zX:()=>o.zX,Re:()=>o.Re,S6:()=>gt,Cr:()=>s.Cr,PB:()=>c.PB,ZC:()=>c.ZC,QL:()=>o.QL});var o=i(6830),s=i(1271);class a{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const o=i.length,s=i.indexOf(e);if(s<0)return;1===o?this._listeners.delete(t):i.splice(s,1)}}var n=i(2358);async function r(t,e,i,o=!1){let s=e.get(t);return s&&!o||(s=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,s)),s}class l{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new a,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get version(){return"3.2.0"}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:e,config:t}})}async addEffect(t,e,i=!0){(0,s.KH)(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,o=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(o)}async addShape(t,e,i=!0){(0,s.KH)(t,(t=>{this.getShapeDrawer(t)||this.shapeDrawers.set(t,e)})),await this.refresh(i)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;{const i=1;e.splice(t,i)}}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return await r(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return await r(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return await r(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*(0,n.sZ)())}`,{index:a,url:r}=t,l=r?await async function(t){const e=(0,s.wA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,s.jl)().error(`${o.gK} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:r,index:a}):t.options;let c=t.element??document.getElementById(e);c||(c=document.createElement("div"),c.id=e,document.body.append(c));const d=(0,s.wA)(l,a),h=this.dom(),u=h.findIndex((t=>t.id.description===e));if(u>=0){const t=this.domItem(u);if(t&&!t.destroyed){t.destroy();const e=1;h.splice(u,e)}}let v;if("canvas"===c.tagName.toLowerCase())v=c,v.dataset[o.YU]="false";else{const t=c.getElementsByTagName("canvas");if(t.length){v=t[0],v.dataset[o.YU]="false"}else v=document.createElement("canvas"),v.dataset[o.YU]="true",c.appendChild(v)}v.style.width||(v.style.width="100%"),v.style.height||(v.style.height="100%");const{Container:p}=await i.e(2720).then(i.bind(i,2720)),f=new p(this,e,d);if(u>=0){const t=0;h.splice(u,t,f)}else h.push(f);return f.canvas.loadCanvas(v),await f.start(),f}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){const o=this.updaters.get(t);if(o)for(const t of o)t.loadOptions?.(e,...i)}async refresh(t=!0){t&&await Promise.all(this.dom().map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const e=this.dom();if(!e.length)throw new Error(`${o.gK} can only set click handlers after calling tsParticles.load()`);for(const i of e)i.addClickHandler(t)}}var c=i(5063);class d{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,c.ve)(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,c.ve)({h:(0,n.Gu)(e.h),l:(0,n.Gu)(e.l),s:(0,n.Gu)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,c.Y6)({a:e.length>4?(0,n.BV)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class h{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,n.Gu)(e.r),g:(0,n.Gu)(e.g),b:(0,n.Gu)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,n.BV)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}var u=i(4006);class v{constructor(t){this.type="external",this.container=t}}class p{constructor(t){this.type="particles",this.container=t}}var f=i(4158),m=i(1412),g=i(3495),y=i(8301),b=i(7628),w=i(1470),x=i(8152),C=i(1429),M=i(9311),S=i(76),z=i(2793),P=i(8569),R=i(5992),k=i(5053),O=i(2935),E=i(1778),D=i(5701),I=i(6571),A=i(6755),_=i(8461),B=i(5542),Z=i(5632),T=i(7327),L=i(3312),H=i(1357),V=i(9141),W=i(2631),K=i(5447),G=i(3964),j=i(9115),F=i(2467),$=i(4962),U=i(4169),X=i(8097),N=i(7056),Q=i(7897),q=i(3843),Y=i(3534),J=i(457),tt=i(7805),et=i(8481),it=i(9262),ot=i(8760),st=i(5574),at=i(5555),nt=i(1174),rt=i(578),lt=i(1293),ct=i(4376),dt=i(6151),ht=i(3442),ut=i(9556),vt=i(5295),pt=i(9569),ft=i(4150),mt=i(8853);const gt=function(){const t=new h,e=new d;(0,c.VI)(t),(0,c.VI)(e);const i=new l;return i.init(),i}();(0,s.Kr)()||(window.tsParticles=gt)}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var a=o[t]={exports:{}};return i[t](a,a.exports,s),a.exports}s.m=i,s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,i)=>(s.f[i](t,e),e)),[])),s.u=t=>t+".min.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/slim:",s.l=(i,o,a,n)=>{if(t[i])t[i].push(o);else{var r,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var h=c[d];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+a){r=h;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",e+a),r.src=i),t[i]=[o];var u=(e,o)=>{r.onerror=r.onload=null,clearTimeout(v);var s=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((t=>t(o))),e)return e(o)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),l&&document.head.appendChild(r)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var o=i.length-1;o>-1&&!t;)t=i[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={459:0};s.f.j=(e,i)=>{var o=s.o(t,e)?t[e]:void 0;if(0!==o)if(o)i.push(o[2]);else{var a=new Promise(((i,s)=>o=t[e]=[i,s]));i.push(o[2]=a);var n=s.p+s.u(e),r=new Error;s.l(n,(i=>{if(s.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var a=i&&("load"===i.type?"missing":i.type),n=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+a+": "+n+")",r.name="ChunkLoadError",r.type=a,r.request=n,o[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var o,a,n=i[0],r=i[1],l=i[2],c=0;if(n.some((e=>0!==t[e]))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);if(l)l(s)}for(e&&e(i);c<n.length;c++)a=n[c],s.o(t,a)&&t[a]&&t[a][0](),t[a]=0},i=this.webpackChunk_tsparticles_slim=this.webpackChunk_tsparticles_slim||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var a={};return(()=>{async function t(t,e=!0){const{loadParallaxMover:i}=await s.e(2870).then(s.bind(s,2870)),{loadExternalAttractInteraction:o}=await s.e(5715).then(s.bind(s,5715)),{loadExternalBounceInteraction:a}=await s.e(6072).then(s.bind(s,6072)),{loadExternalBubbleInteraction:n}=await s.e(2890).then(s.bind(s,2890)),{loadExternalConnectInteraction:r}=await s.e(1982).then(s.bind(s,1982)),{loadExternalGrabInteraction:l}=await s.e(5523).then(s.bind(s,5523)),{loadExternalPauseInteraction:c}=await s.e(889).then(s.bind(s,889)),{loadExternalPushInteraction:d}=await s.e(5243).then(s.bind(s,5243)),{loadExternalRemoveInteraction:h}=await s.e(3486).then(s.bind(s,3486)),{loadExternalRepulseInteraction:u}=await s.e(1196).then(s.bind(s,1196)),{loadExternalSlowInteraction:v}=await s.e(4314).then(s.bind(s,4314)),{loadParticlesAttractInteraction:p}=await s.e(7769).then(s.bind(s,7769)),{loadParticlesCollisionsInteraction:f}=await s.e(1808).then(s.bind(s,1808)),{loadParticlesLinksInteraction:m}=await s.e(7423).then(s.bind(s,7423)),{loadEasingQuadPlugin:g}=await s.e(533).then(s.bind(s,533)),{loadEmojiShape:y}=await s.e(5444).then(s.bind(s,5444)),{loadImageShape:b}=await s.e(1472).then(s.bind(s,1472)),{loadLineShape:w}=await s.e(1147).then(s.bind(s,1147)),{loadPolygonShape:x}=await s.e(7890).then(s.bind(s,7890)),{loadSquareShape:C}=await s.e(9530).then(s.bind(s,9530)),{loadStarShape:M}=await s.e(9532).then(s.bind(s,9532)),{loadLifeUpdater:S}=await s.e(9921).then(s.bind(s,9921)),{loadRotateUpdater:z}=await s.e(9376).then(s.bind(s,9376)),{loadStrokeColorUpdater:P}=await s.e(3255).then(s.bind(s,3255)),{loadBasic:R}=await s.e(5120).then(s.bind(s,5120));await i(t,!1),await o(t,!1),await a(t,!1),await n(t,!1),await r(t,!1),await l(t,!1),await c(t,!1),await d(t,!1),await h(t,!1),await u(t,!1),await v(t,!1),await p(t,!1),await f(t,!1),await m(t,!1),await g(),await y(t,!1),await b(t,!1),await w(t,!1),await x(t,!1),await C(t,!1),await M(t,!1),await S(t,!1),await z(t,!1),await P(t,!1),await R(t,e)}s.r(a),s.d(a,{AnimatableColor:()=>e.RC,AnimationOptions:()=>e.Pp,AnimationValueWithRandom:()=>e.I9,Background:()=>e.Aq,BackgroundMask:()=>e.g5,BackgroundMaskCover:()=>e.F0,Circle:()=>e.Cd,ClickEvent:()=>e.Rd,Collisions:()=>e.yW,CollisionsAbsorb:()=>e.hK,CollisionsOverlap:()=>e.tm,ColorAnimation:()=>e.yQ,DivEvent:()=>e.Mo,Events:()=>e.zW,ExternalInteractorBase:()=>e.L8,FullScreen:()=>e.IT,HoverEvent:()=>e.zP,HslAnimation:()=>e.hz,HslColorManager:()=>e.BY,Interactivity:()=>e.o7,ManualParticle:()=>e.ht,Modes:()=>e.nl,Move:()=>e.A6,MoveAngle:()=>e.kZ,MoveAttract:()=>e.kS,MoveCenter:()=>e.aP,MoveGravity:()=>e.Sb,MovePath:()=>e.Cl,MoveTrail:()=>e.SF,Opacity:()=>e.Dd,OpacityAnimation:()=>e.OQ,Options:()=>e.Ei,OptionsColor:()=>e.Oz,OutModes:()=>e.uy,Parallax:()=>e.VS,ParticlesBounce:()=>e.bD,ParticlesBounceFactor:()=>e.uR,ParticlesDensity:()=>e.ld,ParticlesInteractorBase:()=>e.$S,ParticlesNumber:()=>e.Hb,ParticlesNumberLimit:()=>e.Wf,ParticlesOptions:()=>e.Bm,Point:()=>e.E9,Range:()=>e.e6,RangedAnimationOptions:()=>e.Br,RangedAnimationValueWithRandom:()=>e.md,Rectangle:()=>e.Ae,ResizeEvent:()=>e.Cf,Responsive:()=>e.Et,RgbColorManager:()=>e.g1,Shadow:()=>e.jX,Shape:()=>e.bn,Size:()=>e.$u,SizeAnimation:()=>e.aA,Spin:()=>e.yC,Stroke:()=>e.mP,Theme:()=>e.Q2,ThemeDefault:()=>e.Cm,ValueWithRandom:()=>e.SW,Vector:()=>e.OW,Vector3d:()=>e.UJ,ZIndex:()=>e.KN,addColorManager:()=>e.VI,addEasing:()=>e.bx,alterHsl:()=>e.PL,areBoundsInside:()=>e.xq,arrayRandomIndex:()=>e.dU,calcExactPositionOrRandomFromSize:()=>e.mC,calcExactPositionOrRandomFromSizeRanged:()=>e.KD,calcPositionFromSize:()=>e.Ry,calcPositionOrRandomFromSize:()=>e.p,calcPositionOrRandomFromSizeRanged:()=>e.Gz,calculateBounds:()=>e.M_,circleBounce:()=>e.kR,circleBounceDataFromParticle:()=>e.gy,clamp:()=>e.uZ,clear:()=>e.ZH,collisionVelocity:()=>e.hA,colorMix:()=>e.oc,colorToHsl:()=>e._g,colorToRgb:()=>e.sS,deepExtend:()=>e.ZB,degToRad:()=>e.Id,divMode:()=>e.iC,divModeExecute:()=>e.XD,drawEffect:()=>e.lV,drawLine:()=>e.pS,drawParticle:()=>e.zv,drawParticlePlugin:()=>e.$F,drawPlugin:()=>e.Zw,drawShape:()=>e.Ch,drawShapeAfterDraw:()=>e.m,errorPrefix:()=>e.gK,executeOnSingleOrMultiple:()=>e.KH,findItemFromSingleOrMultiple:()=>e.Rs,generatedAttribute:()=>e.YU,getDistance:()=>e.Sp,getDistances:()=>e.oW,getEasing:()=>e._X,getHslAnimationFromHsl:()=>e.bS,getHslFromAnimation:()=>e.gW,getLinkColor:()=>e.BE,getLinkRandomColor:()=>e.Dt,getLogger:()=>e.jl,getParticleBaseVelocity:()=>e.lQ,getParticleDirectionAngle:()=>e.Gk,getPosition:()=>e.bt,getRandom:()=>e.sZ,getRandomRgbColor:()=>e.J9,getRangeMax:()=>e.KI,getRangeMin:()=>e.Uv,getRangeValue:()=>e.Gu,getSize:()=>e.ap,getStyleFromHsl:()=>e.vz,getStyleFromRgb:()=>e.iz,halfRandom:()=>e.vq,hasMatchMedia:()=>e.lL,hslToRgb:()=>e.ve,hslaToRgba:()=>e.Y6,initParticleNumericAnimationValue:()=>e.V0,isArray:()=>e.kJ,isBoolean:()=>e.jn,isDivModeEnabled:()=>e.wm,isFunction:()=>e.mf,isInArray:()=>e.dB,isNumber:()=>e.hj,isObject:()=>e.Kn,isPointInside:()=>e.Ac,isSsr:()=>e.Kr,isString:()=>e.HD,itemFromArray:()=>e.c8,itemFromSingleOrMultiple:()=>e.wA,loadFont:()=>e.mx,loadOptions:()=>e.hS,loadParticlesOptions:()=>e.hT,loadSlim:()=>t,millisecondsToSeconds:()=>e.X5,mix:()=>e.CD,mouseDownEvent:()=>e.ZL,mouseLeaveEvent:()=>e.aM,mouseMoveEvent:()=>e.Wt,mouseOutEvent:()=>e.G1,mouseUpEvent:()=>e.zw,paintBase:()=>e.TQ,paintImage:()=>e.C3,parseAlpha:()=>e.BV,percentDenominator:()=>e.tZ,randomInRange:()=>e.vd,rangeColorToHsl:()=>e.lN,rangeColorToRgb:()=>e.tX,rectBounce:()=>e.dp,resizeEvent:()=>e.rR,rgbToHsl:()=>e.lC,safeIntersectionObserver:()=>e.NM,safeMatchMedia:()=>e.HY,safeMutationObserver:()=>e.yf,setLogger:()=>e.EK,setRandom:()=>e.sR,setRangeValue:()=>e.Cs,singleDivModeExecute:()=>e.Gt,stringToAlpha:()=>e.gE,stringToRgb:()=>e.DS,touchCancelEvent:()=>e.VH,touchEndEvent:()=>e.$o,touchMoveEvent:()=>e.zX,touchStartEvent:()=>e.Re,tsParticles:()=>e.S6,updateAnimation:()=>e.Cr,updateColor:()=>e.PB,updateColorValue:()=>e.ZC,visibilityChangeEvent:()=>e.QL});var e=s(3624);t(e.S6)})(),a})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Slim v3.
|
|
1
|
+
/*! tsParticles Slim v3.2.0 by Matteo Bruni */
|