@novely/particles 0.5.0 → 0.6.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/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var $d=Object.defineProperty;var c=(i,e)=>()=>(i&&(e=i(i=0)),e);var v=(i,e)=>{for(var t in e)$d(i,t,{get:e[t],enumerable:!0})};var ke,er,tr,tt,ir,ne,or,Eo,nr,sr,rr,ar,G,se=c(()=>{"use strict";ke="generated",er="pointerdown",tr="pointerup",tt="pointerleave",ir="pointerout",ne="pointermove",or="touchstart",Eo="touchend",nr="touchmove",sr="touchcancel",rr="resize",ar="visibilitychange",G="tsParticles - Error"});function Et(i){return typeof i=="boolean"}function re(i){return typeof i=="string"}function he(i){return typeof i=="number"}function xe(i){return typeof i=="object"&&i!==null}function K(i){return Array.isArray(i)}var ae=c(()=>{"use strict"});var pe,cr,Nd,Ae,I,it=c(()=>{"use strict";se();ae();pe={x:0,y:0,z:0},cr=2,Nd=1,Ae=class i{constructor(e,t,o){if(this._updateFromAngle=(n,s)=>{this.x=Math.cos(n)*s,this.y=Math.sin(n)*s},!he(e)&&e){this.x=e.x,this.y=e.y;let n=e;this.z=n.z?n.z:pe.z}else if(e!==void 0&&t!==void 0)this.x=e,this.y=t,this.z=o??pe.z;else throw new Error(`${G} Vector3d not initialized correctly`)}static get origin(){return i.create(pe.x,pe.y,pe.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return i.create(e.x,e.y,e.z)}static create(e,t,o){return new i(e,t,o)}add(e){return i.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return i.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return i.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**cr+this.y**cr}mult(e){return i.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=0&&this.multTo(Nd/e)}rotate(e){return i.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),pe.z)}setTo(e){this.x=e.x,this.y=e.y;let t=e;this.z=t.z?t.z:pe.z}sub(e){return i.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}},I=class i extends Ae{constructor(e,t){super(e,t,pe.z)}static get origin(){return i.create(pe.x,pe.y)}static clone(e){return i.create(e.x,e.y)}static create(e,t){return new i(e,t)}}});function Tt(i,e){To.get(i)||To.set(i,e)}function Lt(i){return To.get(i)??(e=>e)}function R(){return W(Yd(),0,1-Number.EPSILON)}function W(i,e,t){return Math.min(Math.max(i,e),t)}function Ft(i,e,t,o){return Math.floor((i*t+e*o)/(t+o))}function $(i){let e=X(i),t=0,o=Be(i);return e===o&&(o=t),R()*(e-o)+o}function g(i){return he(i)?i:$(i)}function Be(i){return he(i)?i:i.min}function X(i){return he(i)?i:i.max}function M(i,e){if(i===e||e===void 0&&he(i))return i;let t=Be(i),o=X(i);return e!==void 0?{min:Math.min(t,e),max:Math.max(o,e)}:M(t,o)}function F(i,e){let t=i.x-e.x,o=i.y-e.y,n=2;return{dx:t,dy:o,distance:Math.sqrt(t**n+o**n)}}function A(i,e){return F(i,e).distance}function le(i){return i*Math.PI/180}function lr(i,e,t){if(he(i))return le(i);let o=0,n=.5,s=.25,r=n+s;switch(i){case"top":return-Math.PI*n;case"top-right":return-Math.PI*s;case"right":return o;case"bottom-right":return Math.PI*s;case"bottom":return Math.PI*n;case"bottom-left":return Math.PI*r;case"left":return Math.PI;case"top-left":return-Math.PI*r;case"inside":return Math.atan2(t.y-e.y,t.x-e.x);case"outside":return Math.atan2(e.y-t.y,e.x-t.x);default:return R()*Qd}}function fr(i){let e=I.origin;return e.length=1,e.angle=i,e}function Lo(i,e,t,o){return I.create(i.x*(t-o)/(t+o)+e.x*2*o/(t+o),i.y)}function ur(i){return{x:i.position?.x??R()*i.size.width,y:i.position?.y??R()*i.size.height}}function At(i){return i?i.endsWith("%")?parseFloat(i)/100:parseFloat(i):1}var Yd,To,Xd,Qd,B=c(()=>{"use strict";it();ae();se();Yd=Math.random,To=new Map,Xd=2,Qd=Math.PI*Xd});function fe(){return Zd}function dr(i){let e={bounced:!1},{pSide:t,pOtherSide:o,rectSide:n,rectOtherSide:s,velocity:r,factor:a}=i,l=.5,f=0;return o.min<s.min||o.min>s.max||o.max<s.min||o.max>s.max||(t.max>=n.min&&t.max<=(n.max+n.min)*l&&r>f||t.min<=n.max&&t.min>(n.max+n.min)*l&&r<f)&&(e.velocity=r*-a,e.bounced=!0),e}function Kd(i,e){let t=V(e,o=>i.matches(o));return K(t)?t.some(o=>o):t}function me(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Jd(){return!me()&&typeof matchMedia<"u"}function Bt(i){if(Jd())return matchMedia(i)}function pr(i){if(!(me()||typeof IntersectionObserver>"u"))return new IntersectionObserver(i)}function mr(i){if(!(me()||typeof MutationObserver>"u"))return new MutationObserver(i)}function z(i,e){return i===e||K(e)&&e.indexOf(i)>-1}async function Fo(i,e){try{await document.fonts.load(`${e??"400"} 36px '${i??"Verdana"}'`)}catch{}}function ep(i){return Math.floor(R()*i.length)}function qe(i,e,t=!0){return i[e!==void 0&&t?e%i.length:ep(i)]}function Ve(i,e,t,o,n){return tp(ye(i,o??0),e,t,n)}function tp(i,e,t,o){let n=!0;return(!o||o==="bottom")&&(n=i.top<e.height+t.x),n&&(!o||o==="left")&&(n=i.right>t.x),n&&(!o||o==="right")&&(n=i.left<e.width+t.y),n&&(!o||o==="top")&&(n=i.bottom>t.y),n}function ye(i,e){return{bottom:i.y+e,left:i.x-e,right:i.x+e,top:i.y-e}}function D(i,...e){for(let t of e){if(t==null)continue;if(!xe(t)){i=t;continue}let o=Array.isArray(t);o&&(xe(i)||!i||!Array.isArray(i))?i=[]:!o&&(xe(i)||!i||Array.isArray(i))&&(i={});for(let n in t){if(n==="__proto__")continue;let s=t,r=s[n],a=i;a[n]=xe(r)&&Array.isArray(r)?r.map(l=>D(a[n],l)):D(a[n],r)}}return i}function He(i,e){return!!gr(e,t=>t.enable&&z(i,t.mode))}function We(i,e,t){V(e,o=>{let n=o.mode;o.enable&&z(i,n)&&ip(o,t)})}function ip(i,e){let t=i.selectors;V(t,o=>{e(o,i)})}function qt(i,e){if(!(!e||!i))return gr(i,t=>Kd(e,t.selectors))}function ot(i){return{position:i.getPosition(),radius:i.getRadius(),mass:i.getMass(),velocity:i.velocity,factor:I.create(g(i.options.bounce.horizontal.value),g(i.options.bounce.vertical.value))}}function Vt(i,e){let{x:t,y:o}=i.velocity.sub(e.velocity),[n,s]=[i.position,e.position],{dx:r,dy:a}=F(s,n),l=0;if(t*r+o*a<l)return;let f=-Math.atan2(a,r),u=i.mass,h=e.mass,d=i.velocity.rotate(f),p=e.velocity.rotate(f),x=Lo(d,p,u,h),m=Lo(p,d,u,h),w=x.rotate(-f),y=m.rotate(-f);i.velocity.x=w.x*i.factor.x,i.velocity.y=w.y*i.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function xr(i,e){let t=i.getPosition(),o=i.getRadius(),n=ye(t,o),s=i.options.bounce,r=dr({pSide:{min:n.left,max:n.right},pOtherSide:{min:n.top,max:n.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:i.velocity.x,factor:g(s.horizontal.value)});r.bounced&&(r.velocity!==void 0&&(i.velocity.x=r.velocity),r.position!==void 0&&(i.position.x=r.position));let a=dr({pSide:{min:n.top,max:n.bottom},pOtherSide:{min:n.left,max:n.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:i.velocity.y,factor:g(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(i.velocity.y=a.velocity),a.position!==void 0&&(i.position.y=a.position))}function V(i,e){return K(i)?i.map((o,n)=>e(o,n)):e(i,0)}function Q(i,e,t){return K(i)?qe(i,e,t):i}function gr(i,e){return K(i)?i.find((o,n)=>e(o,n)):e(i,0)?i:void 0}function Ht(i,e){let t=i.value,o=i.animation,n={delayTime:g(o.delay)*1e3,enable:o.enable,value:g(i.value)*e,max:X(t)*e,min:Be(t)*e,loops:0,maxLoops:g(o.count),time:0},s=1;if(o.enable){switch(n.decay=s-g(o.decay),o.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=R()>=.5?"increasing":"decreasing";break}let r=o.mode==="auto";switch(o.startValue){case"min":n.value=n.min,r&&(n.status="increasing");break;case"max":n.value=n.max,r&&(n.status="decreasing");break;case"random":default:n.value=$(n),r&&(n.status=R()>=.5?"increasing":"decreasing");break}}return n.initialValue=n.value,n}function op(i,e){if(!(i.mode==="percent")){let{mode:n,...s}=i;return s}return"x"in i?{x:i.x/100*e.width,y:i.y/100*e.height}:{width:i.width/100*e.width,height:i.height/100*e.height}}function Wt(i,e){return op(i,e)}function np(i,e,t,o,n){switch(e){case"max":t>=n&&i.destroy();break;case"min":t<=o&&i.destroy();break}}function Ue(i,e,t,o,n){if(i.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let u=(e.velocity??0)*n.factor,h=e.min,d=e.max,p=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=d?(t?e.status="decreasing":e.value-=d,e.loops||(e.loops=0),e.loops++):e.value+=u;break;case"decreasing":e.value<=h?(t?e.status="increasing":e.value+=d,e.loops||(e.loops=0),e.loops++):e.value-=u}e.velocity&&p!==1&&(e.velocity*=p),np(i,o,e.value,h,d),i.destroyed||(e.value=W(e.value,h,d))}}var Zd,U=c(()=>{"use strict";B();se();ae();it();Zd={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn}});var Ut,yr=c(()=>{"use strict";Ut=class{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let o=this._listeners.get(e);o||(o=[],this._listeners.set(e,o)),o.push(t)}dispatchEvent(e,t){this._listeners.get(e)?.forEach(n=>n(t))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let o=this._listeners.get(e);if(!o)return;let n=o.length,s=o.indexOf(t);if(s<0)return;let a=1;n===a?this._listeners.delete(e):o.splice(s,a)}}});function qo(i){$t.set(i.key,i)}function sp(i){for(let[,l]of $t)if(i.startsWith(l.stringPrefix))return l.parseString(i);let e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=i.replace(e,(l,f,u,h,d)=>f+f+u+u+h+h+(d!==void 0?d+d:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,n=o.exec(t),s=16,r=1,a=255;return n?{a:n[4]!==void 0?parseInt(n[4],s)/a:r,b:parseInt(n[3],s),g:parseInt(n[2],s),r:parseInt(n[1],s)}:void 0}function J(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return vr(o.value,e,t);if(K(o.value))return J({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleRangeColor(o);if(s)return s}}function vr(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return o.value===Gt?wr():rp(o.value);if(K(o.value))return vr({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleColor(o);if(s)return s}}function ge(i,e,t=!0){let o=J(i,e,t);return o?Vo(o):void 0}function Vo(i){let u=i.r/255,h=i.g/255,d=i.b/255,p=Math.max(u,h,d),x=Math.min(u,h,d),m={h:0,l:(p+x)*.5,s:0};return p!==x&&(m.s=m.l<.5?(p-x)/(p+x):(p-x)/(2-p-x),m.h=u===p?(h-d)/(p-x):m.h=h===p?2+(d-u)/(p-x):2*2+(u-h)/(p-x)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function rp(i){return sp(i)}function Me(i){let r=(i.h%360+360)%360,a=Math.max(0,Math.min(100,i.s)),l=Math.max(0,Math.min(100,i.l)),f=r/360,u=a/100,h=l/100,d=255,p=3;if(a===0){let L=Math.round(h*d);return{r:L,g:L,b:L}}let x=.5,m=2,w=(L,Z,oe)=>{if(oe<0&&oe++,oe>1&&oe--,oe*6<1)return L+(Z-L)*6*oe;if(oe*m<1)return Z;if(oe*p<1*m){let Gd=m/p;return L+(Z-L)*(Gd-oe)*6}return L},y=1,k=h<x?h*(y+u):h+u-h*u,C=m*h-k,b=1,O=b/p,P=Math.min(d,d*w(C,k,f+O)),Y=Math.min(d,d*w(C,k,f)),T=Math.min(d,d*w(C,k,f-O));return{r:Math.round(P),g:Math.round(Y),b:Math.round(T)}}function br(i){let e=Me(i);return{a:i.a,b:e.b,g:e.g,r:e.r}}function wr(i){let t=i??0,o=256;return{b:Math.floor($(M(t,o))),g:Math.floor($(M(t,o))),r:Math.floor($(M(t,o)))}}function te(i,e){return`rgba(${i.r}, ${i.g}, ${i.b}, ${e??1})`}function ve(i,e){return`hsla(${i.h}, ${i.s}%, ${i.l}%, ${e??1})`}function nt(i,e,t,o){let n=i,s=e;return n.r===void 0&&(n=Me(i)),s.r===void 0&&(s=Me(e)),{b:Ft(n.b,s.b,t,o),g:Ft(n.g,s.g,t,o),r:Ft(n.r,s.r,t,o)}}function st(i,e,t){if(t===Gt)return wr();if(t===jt){let o=i.getFillColor()??i.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(o&&n&&e)return nt(o,n,i.getRadius(),e.getRadius());{let s=o??n;if(s)return Me(s)}}else return t}function Nt(i,e,t){let o=re(i)?i:i.value;return o===Gt?t?J({value:o}):e?Gt:jt:o===jt?jt:J({value:o})}function Ho(i){return i!==void 0?{h:i.h.value,s:i.s.value,l:i.l.value}:void 0}function Yt(i,e,t){let o={h:{enable:!1,value:i.h},s:{enable:!1,value:i.s},l:{enable:!1,value:i.l}};return e&&(Ao(o.h,e.h,t),Ao(o.s,e.s,t),Ao(o.l,e.l,t)),o}function Ao(i,e,t){i.enable=e.enable;let o=0,n=1,s=0,r=0;i.enable?(i.velocity=g(e.speed)/100*t,i.decay=n-g(e.decay),i.status="increasing",i.loops=s,i.maxLoops=g(e.count),i.time=r,i.delayTime=g(e.delay)*1e3,e.sync||(i.velocity*=R(),i.value*=R()),i.initialValue=i.value,i.offset=M(e.offset)):i.velocity=o}function Bo(i,e,t,o){if(!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0)||(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=o.value),(i.delayTime??0)>0&&i.time<(i.delayTime??0)))return;let u=i.offset?$(i.offset):0,h=(i.velocity??0)*o.factor+u*3.6,d=i.decay??1,p=X(e),x=Be(e);if(!t||i.status==="increasing")i.value+=h,i.value>p&&(i.loops||(i.loops=0),i.loops++,t?i.status="decreasing":i.value-=p);else{i.value-=h;let m=0;i.value<m&&(i.loops||(i.loops=0),i.loops++,i.status="increasing")}i.velocity&&d!==1&&(i.velocity*=d),i.value=W(i.value,x,p)}function Xt(i,e){if(!i)return;let{h:t,s:o,l:n}=i,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};t&&Bo(t,s.h,!1,e),o&&Bo(o,s.s,!0,e),n&&Bo(n,s.l,!0,e)}var Gt,jt,$t,Ce=c(()=>{"use strict";B();ae();se();U();Gt="random",jt="mid",$t=new Map});function be(i,e,t){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.closePath()}function _r(i,e,t){i.fillStyle=t??"rgba(0,0,0,0)",i.fillRect(je.x,je.y,e.width,e.height)}function kr(i,e,t,o){t&&(i.globalAlpha=o,i.drawImage(t,je.x,je.y,e.width,e.height),i.globalAlpha=1)}function Qt(i,e){i.clearRect(je.x,je.y,e.width,e.height)}function Mr(i){let{container:e,context:t,particle:o,delta:n,colorStyles:s,backgroundMask:r,composite:a,radius:l,opacity:f,shadow:u,transform:h}=i,d=o.getPosition(),p=0,x=o.rotation+(o.pathRotation?o.velocity.angle:p),m={sin:Math.sin(x),cos:Math.cos(x)},w=1,y={a:m.cos*(h.a??w),b:m.sin*(h.b??w),c:-m.sin*(h.c??w),d:m.cos*(h.d??w)};t.setTransform(y.a,y.b,y.c,y.d,d.x,d.y),r&&(t.globalCompositeOperation=a);let k=o.shadowColor;u.enable&&k&&(t.shadowBlur=u.blur,t.shadowColor=te(k),t.shadowOffsetX=u.offset.x,t.shadowOffsetY=u.offset.y),s.fill&&(t.fillStyle=s.fill);let C=0,b=o.strokeWidth??C;t.lineWidth=b,s.stroke&&(t.strokeStyle=s.stroke);let O={container:e,context:t,particle:o,radius:l,opacity:f,delta:n,transformData:y,strokeWidth:b};cp(O),lp(O),ap(O),t.globalCompositeOperation="source-over",t.resetTransform()}function ap(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.effect)return;let l=e.effectDrawers.get(o.effect);l&&l.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function cp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,strokeWidth:a,transformData:l}=i,f=0;if(!o.shape)return;let u=e.shapeDrawers.get(o.shape);u&&(t.beginPath(),u.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&t.closePath(),a>f&&t.stroke(),o.shapeFill&&t.fill())}function lp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.shape)return;let l=e.shapeDrawers.get(o.shape);l?.afterDraw&&l.afterDraw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Cr(i,e,t){e.draw&&e.draw(i,t)}function Rr(i,e,t,o){e.drawParticle&&e.drawParticle(i,t,o)}function Or(i,e,t){return{h:i.h,s:i.s,l:i.l+(e==="darken"?-1:1)*t}}var je,Zt=c(()=>{"use strict";Ce();je={x:0,y:0}});function fp(i,e,t){let o=e[t],n=1;o!==void 0&&(i[t]=(i[t]??n)*o)}function Pr(i,e,t=!1){if(!e)return;let o=i;if(!o)return;let n=o.style;if(n)for(let s in e){let r=e[s];r&&n.setProperty(s,r,t?"important":"")}}var Kt,zr=c(()=>{"use strict";Zt();U();Ce();se();Kt=class{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{for(let o of this._postDrawUpdaters)o.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,o,n,s,r,a)=>{for(let l of this._preDrawUpdaters){if(l.getColorStyles){let{fill:f,stroke:u}=l.getColorStyles(o,t,n,s);f&&(r.fill=f),u&&(r.stroke=u)}if(l.getTransformValues){let f=l.getTransformValues(o);for(let u in f)fp(a,f,u)}l.beforeDraw?.(o)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let o,n;for(let s of this._colorPlugins)if(!o&&s.particleFillColor&&(o=ge(s.particleFillColor(t))),!n&&s.particleStrokeColor&&(n=ge(s.particleStrokeColor(t))),o&&n)break;return[o,n]},this._initCover=async()=>{let t=this.container.actualOptions,o=t.backgroundMask.cover,n=o.color;if(n){let s=J(n);if(s){let r={...s,a:o.opacity};this._coverColorStyle=te(r,r.a)}}else await new Promise((s,r)=>{if(!o.image)return;let a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:o.opacity},s()}),a.addEventListener("error",l=>{r(l.error)}),a.src=o.image})},this._initStyle=()=>{let t=this.element,o=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=D({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(let n in o.style){if(!n||!o.style)continue;let s=o.style[n];s&&t.style.setProperty(n,s,"important")}}},this._initTrail=async()=>{let t=this.container.actualOptions,o=t.particles.move.trail,n=o.fill;if(!o.enable)return;let s=1,r=s/o.length;if(n.color){let a=J(n.color);if(!a)return;this._trailFill={color:{...a},opacity:r}}else await new Promise((a,l)=>{if(!n.image)return;let f=document.createElement("img");f.addEventListener("load",()=>{this._trailFill={image:f,opacity:r},a()}),f.addEventListener("error",u=>{l(u.error)}),f.src=n.image})},this._paintBase=t=>{this.draw(o=>_r(o,this.size,t))},this._paintImage=(t,o)=>{this.draw(n=>kr(n,this.size,t,o))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(o=>o.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(o=>o.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{let t=this.element,o=this._originalStyle;t&&o&&Pr(t,o)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let o=10;Pr(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(o),top:"0",left:"0",width:"100%",height:"100%"},!0)},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(){let e=this.container.actualOptions,t=e.particles.move.trail,o=this._trailFill,n=0;e.backgroundMask.enable?this.paint():t.enable&&t.length>n&&o?o.color?this._paintBase(te(o.color,o.opacity)):o.image&&this._paintImage(o.image,o.opacity):e.clear&&this.draw(s=>{Qt(s,this.size)})}destroy(){this.stop(),this._generated?this.element?.remove():this._resetOriginalStyle(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){let t=this._context;if(t)return e(t)}drawAsync(e){let t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;let o=e.getRadius();if(o<=0)return;let s=e.getFillColor(),r=e.getStrokeColor()??s,[a,l]=this._getPluginParticleColors(e);a||(a=s),l||(l=r),!(!a&&!l)&&this.draw(f=>{let u=this.container,h=u.actualOptions,d=e.options.zIndex,p=1,x=p-e.zIndexFactor,m=x**d.opacityRate,w=1,y=e.bubble.opacity??e.opacity?.value??w,k=e.strokeOpacity??y,C=y*m,b=k*m,O={},P={fill:a?ve(a,C):void 0};P.stroke=l?ve(l,b):P.fill,this._applyPreDrawUpdaters(f,e,o,C,P,O),Mr({container:u,context:f,particle:e,delta:t,colorStyles:P,backgroundMask:h.backgroundMask.enable,composite:h.backgroundMask.composite,radius:o*x**d.sizeRate,opacity:C,shadow:e.options.shadow,transform:O}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,o){this.draw(n=>Rr(n,e,t,o))}drawPlugin(e,t){this.draw(o=>Cr(o,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=mr(e=>{for(let t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){fe().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let e=this.container.actualOptions,t=e.background,o=this.element;if(!o)return;let n=o.style;if(n){if(t.color){let s=J(t.color);n.backgroundColor=s?te(s,t.opacity):""}else n.backgroundColor="";n.backgroundImage=t.image||"",n.backgroundPosition=t.position||"",n.backgroundRepeat=t.repeat||"",n.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(let[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(let e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&ke in e.dataset?e.dataset[ke]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=D({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.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(){let e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(Qt(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let e=this.container,t=e.retina.pixelRatio,o=e.canvas.size,n={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(n.height===o.height&&n.width===o.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let s={...o};return this.element.width=o.width=this.element.offsetWidth*t,this.element.height=o.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:o.width/s.width,height:o.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>Qt(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;let e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}});function ue(i,e,t,o,n){if(o){let s={passive:!0};Et(n)?s.capture=n:n!==void 0&&(s=n),i.addEventListener(e,t,s)}else{let s=n;i.removeEventListener(e,t,s)}}var Dr,Jt,Sr=c(()=>{"use strict";U();se();ae();Dr=2;Jt=class{constructor(e){this.container=e,this._doMouseTouchClick=t=>{let o=this.container,n=o.actualOptions;if(this._canPush){let s=o.interactivity.mouse,r=s.position;if(!r)return;s.clickPosition={...r},s.clickTime=new Date().getTime();let a=n.interactivity.events.onClick;V(a.mode,l=>this.container.handleClickMode(l))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let o=t,n=this.container,s=n.options,r=s.defaultThemes,a=o.matches?r.dark:r.light,l=s.themes.find(f=>f.name===a);l&&l.default.auto&&n.loadTheme(a)},this._handleVisibilityChange=()=>{let t=this.container,o=t.actualOptions;this._mouseTouchFinish(),o.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{await this.container.canvas?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(t,o)=>{let n=this._handlers,s=this.container,r=s.actualOptions,a=s.interactivity.element;if(!a)return;let l=a,f=s.canvas.element;f&&(f.style.pointerEvents=l===f?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(ue(a,ne,n.mouseMove,o),ue(a,or,n.touchStart,o),ue(a,nr,n.touchMove,o),r.interactivity.events.onClick.enable?(ue(a,Eo,n.touchEndClick,o),ue(a,tr,n.mouseUp,o),ue(a,er,n.mouseDown,o)):ue(a,Eo,n.touchEnd,o),ue(a,t,n.mouseLeave,o),ue(a,sr,n.touchCancel,o))},this._manageListeners=t=>{let o=this._handlers,n=this.container,s=n.actualOptions,r=s.interactivity.detectsOn,a=n.canvas.element,l=tt;r==="window"?(n.interactivity.element=window,l=ir):r==="parent"&&a?n.interactivity.element=a.parentElement??a.parentNode:n.interactivity.element=a,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(l,t),document&&ue(document,ar,o.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let o=this._handlers,n=Bt("(prefers-color-scheme: dark)");if(n){if(n.addEventListener!==void 0){ue(n,"change",o.themeChange,t);return}n.addListener!==void 0&&(t?n.addListener(o.oldThemeChange):n.removeListener(o.oldThemeChange))}},this._manageResize=t=>{let o=this._handlers,n=this.container;if(!n.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){ue(window,rr,o.resize,t);return}let r=n.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(a=>{a.find(f=>f.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:o}=t;o.clicking=!0,o.downPosition=o.position},this._mouseTouchClick=t=>{let o=this.container,n=o.actualOptions,{mouse:s}=o.interactivity;s.inside=!0;let r=!1,a=s.position;if(!(!a||!n.interactivity.events.onClick.enable)){for(let[,l]of o.plugins)if(l.clickPositionValid&&(r=l.clickPositionValid(a),r))break;r||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let o=t.mouse;delete o.position,delete o.clickPosition,delete o.downPosition,t.status=tt,o.inside=!1,o.clicking=!1},this._mouseTouchMove=t=>{let o=this.container,n=o.actualOptions,s=o.interactivity,r=o.canvas.element;if(!s?.element)return;s.mouse.inside=!0;let a;if(t.type.startsWith("pointer")){this._canPush=!0;let f=t;if(s.element===window){if(r){let u=r.getBoundingClientRect();a={x:f.clientX-u.left,y:f.clientY-u.top}}}else if(n.interactivity.detectsOn==="parent"){let u=f.target,h=f.currentTarget;if(u&&h&&r){let d=u.getBoundingClientRect(),p=h.getBoundingClientRect(),x=r.getBoundingClientRect();a={x:f.offsetX+Dr*d.left-(p.left+x.left),y:f.offsetY+Dr*d.top-(p.top+x.top)}}else a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY}}else f.target===r&&(a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY})}else if(this._canPush=t.type!=="touchmove",r){let f=t,u=1,h=f.touches[f.touches.length-u],d=r.getBoundingClientRect(),p=0;a={x:h.clientX-(d.left??p),y:h.clientY-(d.top??p)}}let l=o.retina.pixelRatio;a&&(a.x*=l,a.y*=l),s.mouse.position=a,s.status=ne},this._touchEnd=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.set(s.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)}}});var S,Re=c(()=>{"use strict";ae();S=class i{constructor(){this.value=""}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){e?.value!==void 0&&(this.value=e.value)}}});var ei,Wo=c(()=>{"use strict";Re();ei=class{constructor(){this.color=new S,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ti,Uo=c(()=>{"use strict";Re();ti=class{constructor(){this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ii,jo=c(()=>{"use strict";Uo();ae();ii=class{constructor(){this.composite="destination-out",this.cover=new ti,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){let t=e.cover,o=re(e.cover)?{color:e.cover}:e.cover;this.cover.load(t.color!==void 0||t.image!==void 0?t:{color:o})}e.enable!==void 0&&(this.enable=e.enable)}}}});var oi,Go=c(()=>{"use strict";oi=class{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}});var ni,si=c(()=>{"use strict";ni=class{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}});var rt,ri=c(()=>{"use strict";rt=class{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(e){e&&(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}});var ai,$o=c(()=>{"use strict";ai=class{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}});var ci,No=c(()=>{"use strict";$o();ci=class{constructor(){this.enable=!1,this.mode=[],this.parallax=new ai}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}});var li,Yo=c(()=>{"use strict";li=class{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}});var fi,Xo=c(()=>{"use strict";si();ri();No();Yo();U();fi=class{constructor(){this.onClick=new ni,this.onDiv=new rt,this.onHover=new ci,this.resize=new li}load(e){if(!e)return;this.onClick.load(e.onClick);let t=e.onDiv;t!==void 0&&(this.onDiv=V(t,o=>{let n=new rt;return n.load(o),n})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}});var ui,Qo=c(()=>{"use strict";ui=class{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;let t=this._engine.interactors.get(this._container);if(t)for(let o of t)o.loadModeOptions&&o.loadModeOptions(this,e)}}});var Ge,hi=c(()=>{"use strict";Xo();Qo();Ge=class{constructor(e,t){this.detectsOn="window",this.events=new fi,this.modes=new ui(e,t)}load(e){if(!e)return;let t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}});var Ir,di,Zo=c(()=>{"use strict";U();Ir=50,di=class{load(e){e&&(e.position&&(this.position={x:e.position.x??Ir,y:e.position.y??Ir,mode:e.position.mode??"percent"}),e.options&&(this.options=D({},e.options)))}}});var pi,Ko=c(()=>{"use strict";U();pi=class{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=D({},e.options)))}}});var mi,Jo=c(()=>{"use strict";mi=class{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var xi,en=c(()=>{"use strict";Jo();U();xi=class{constructor(){this.name="",this.default=new mi}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=D({},e.options)))}}});var Oe,we,$e=c(()=>{"use strict";B();Oe=class{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=M(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.delay!==void 0&&(this.delay=M(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}},we=class extends Oe{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}});var Ne,tn=c(()=>{"use strict";$e();B();Ne=class extends Oe{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),e&&e.offset!==void 0&&(this.offset=M(e.offset))}}});var gi,on=c(()=>{"use strict";tn();gi=class{constructor(){this.h=new Ne,this.s=new Ne,this.l=new Ne}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}});var Pe,yi=c(()=>{"use strict";ae();on();Re();Pe=class i extends S{constructor(){super(),this.animation=new gi}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&(t.enable!==void 0?this.animation.h.load(t):this.animation.load(e.animation))}}});var vi,nn=c(()=>{"use strict";vi=class{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}});var bi,sn=c(()=>{"use strict";bi=class{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}});var ee,rn,Ye,ze=c(()=>{"use strict";$e();B();ee=class{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=M(e.value))}},rn=class extends ee{constructor(){super(),this.animation=new Oe}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}},Ye=class extends rn{constructor(){super(),this.animation=new we}load(e){super.load(e)}}});var at,an=c(()=>{"use strict";ze();at=class extends ee{constructor(){super(),this.value=1}}});var Xe,wi=c(()=>{"use strict";an();Xe=class{constructor(){this.horizontal=new at,this.vertical=new at}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}});var _i,cn=c(()=>{"use strict";nn();sn();wi();B();_i=class{constructor(){this.absorb=new vi,this.bounce=new Xe,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new bi}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}});var ki,Er=c(()=>{"use strict";U();ki=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Mi,ln=c(()=>{"use strict";B();Mi=class{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=M(e.offset)),e.value!==void 0&&(this.value=M(e.value)))}}});var Ci,fn=c(()=>{"use strict";B();Ci=class{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=M(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;t!==void 0&&(this.rotate.x=t);let o=e.rotate.y;o!==void 0&&(this.rotate.y=o)}}}});var Ri,un=c(()=>{"use strict";Ri=class{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}});var Oi,hn=c(()=>{"use strict";B();Oi=class{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)))}}});var Pi,dn=c(()=>{"use strict";ze();U();Pi=class{constructor(){this.clamp=!0,this.delay=new ee,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=D(this.options,e.options)))}}});var zi,Tr=c(()=>{"use strict";Re();zi=class{load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}});var Di,pn=c(()=>{"use strict";Tr();Di=class{constructor(){this.enable=!1,this.length=10,this.fill=new zi}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}});var Si,mn=c(()=>{"use strict";Si=class{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}});var Ii,xn=c(()=>{"use strict";U();B();Ii=class{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=D({},e.position)))}}});var Ei,gn=c(()=>{"use strict";ae();ln();fn();un();hn();dn();pn();mn();xn();B();Ei=class{constructor(){this.angle=new Mi,this.attract=new Ci,this.center=new Ri,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Oi,this.path=new Pi,this.outModes=new Si,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ii,this.straight=!1,this.trail=new Di,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(he(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=M(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=he(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=M(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;t!==void 0&&(xe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=M(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}});var Ti,yn=c(()=>{"use strict";$e();Ti=class extends we{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Li,vn=c(()=>{"use strict";yn();ze();Li=class extends Ye{constructor(){super(),this.animation=new Ti,this.value=1}load(e){if(!e)return;super.load(e);let t=e.animation;t!==void 0&&this.animation.load(t)}}});var Fi,bn=c(()=>{"use strict";Fi=class{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);let t=e.width;t!==void 0&&(this.width=t);let o=e.height;o!==void 0&&(this.height=o)}}});var Ai,wn=c(()=>{"use strict";Ai=class{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var Bi,_n=c(()=>{"use strict";bn();wn();Bi=class{constructor(){this.density=new Fi,this.limit=new Ai,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}});var qi,kn=c(()=>{"use strict";Re();qi=class{constructor(){this.blur=0,this.color=new S,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}});var Vi,Mn=c(()=>{"use strict";U();Vi=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Hi,Cn=c(()=>{"use strict";$e();Hi=class extends we{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Wi,Rn=c(()=>{"use strict";ze();Cn();Wi=class extends Ye{constructor(){super(),this.animation=new Hi,this.value=3}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}}});var ct,On=c(()=>{"use strict";yi();B();ct=class{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Pe.create(this.color,e.color)),e.width!==void 0&&(this.width=M(e.width)),e.opacity!==void 0&&(this.opacity=M(e.opacity)))}}});var Ui,Pn=c(()=>{"use strict";ze();Ui=class extends ee{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}});var ji,zn=c(()=>{"use strict";U();yi();cn();Er();gn();vn();wi();_n();kn();Mn();Rn();On();Pn();ji=class{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Xe,this.collisions=new _i,this.color=new Pe,this.color.value="#fff",this.effect=new ki,this.groups={},this.move=new Ei,this.number=new Bi,this.opacity=new Li,this.reduceDuplicates=!1,this.shadow=new qi,this.shape=new Vi,this.size=new Wi,this.stroke=new ct,this.zIndex=new Ui}load(e){if(!e)return;if(e.groups!==void 0)for(let o of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,o))continue;let n=e.groups[o];n!==void 0&&(this.groups[o]=D(this.groups[o]??{},n))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(Pe.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=D({},e.interactivity));let t=e.stroke;if(t&&(this.stroke=V(t,o=>{let n=new ct;return n.load(o),n})),this._container){let o=this._engine.updaters.get(this._container);if(o)for(let s of o)s.loadOptions&&s.loadOptions(this,e);let n=this._engine.interactors.get(this._container);if(n)for(let s of n)s.loadParticlesOptions&&s.loadParticlesOptions(this,e)}}}});function Dn(i,...e){for(let t of e)i.load(t)}function Gi(i,e,...t){let o=new ji(i,e);return Dn(o,...t),o}var lt=c(()=>{"use strict";zn()});var $i,Sn=c(()=>{"use strict";U();Wo();jo();Go();hi();Zo();Ko();en();ae();lt();B();$i=class{constructor(e,t){this._findDefaultTheme=o=>this.themes.find(n=>n.default.value&&n.default.mode===o)??this.themes.find(n=>n.default.value&&n.default.mode==="any"),this._importPreset=o=>{this.load(this._engine.getPreset(o))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new ei,this.backgroundMask=new ii,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new oi,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Ge(e,t),this.manualParticles=[],this.particles=Gi(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if(!e)return;e.preset!==void 0&&V(e.preset,r=>this._importPreset(r)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=M(e.delay));let t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=M(e.duration));let o=e.fpsLimit;o!==void 0&&(this.fpsLimit=o),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;Et(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(r=>{let a=new di;return a.load(r),a})),this.particles.load(e.particles),this.style=D(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let r of s)r.loadOptions&&r.loadOptions(this,e);if(e.responsive!==void 0)for(let r of e.responsive){let a=new pi;a.load(r),this.responsive.push(a)}if(this.responsive.sort((r,a)=>r.maxWidth-a.maxWidth),e.themes!==void 0)for(let r of e.themes){let a=this.themes.find(l=>l.name===r.name);if(a)a.load(r);else{let l=new xi;l.load(r),this.themes.push(l)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(e,t,o){this.load(o);let n=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*t>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){let t=this.themes.find(o=>o.name===e);t&&this.load(t.options)}else{let t=Bt("(prefers-color-scheme: dark)"),o=t&&t.matches,n=this._findDefaultTheme(o?"dark":"light");n&&this.load(n.options)}}}});var Ni,Lr=c(()=>{"use strict";Ni=class{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(let t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(let t of this._externalInteractors)t.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(let e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(let o of this._externalInteractors)o.clear(e,t);for(let o of this._particleInteractors)o.isEnabled(e)&&o.interact(e,t)}reset(e){for(let t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(let t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}});function hp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function dp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function Ar(i){if(!z(i.outMode,i.checkModes))return;let e=i.radius*In;i.coord>i.maxCoord-e?i.setCb(-i.radius):i.coord<e&&i.setCb(i.radius)}var Fr,In,Yi,up,Xi,Br=c(()=>{"use strict";it();B();U();se();Ce();hi();Zt();lt();Fr=0,In=2,Yi=.5,up=2;Xi=class{constructor(e,t){this.container=t,this._calcPosition=(o,n,s,r=Fr)=>{for(let[,x]of o.plugins){let m=x.particlePosition!==void 0?x.particlePosition(n,this):void 0;if(m)return Ae.create(m.x,m.y,s)}let a=o.canvas.size,l=ur({size:a,position:n}),f=Ae.create(l.x,l.y,s),u=this.getRadius(),h=this.options.move.outModes,d=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.x,maxCoord:o.canvas.size.width,setCb:m=>f.x+=m,radius:u})},p=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.y,maxCoord:o.canvas.size.height,setCb:m=>f.y+=m,radius:u})};return d(h.left??h.default),d(h.right??h.default),p(h.top??h.default),p(h.bottom??h.default),this._checkOverlap(f,r)?this._calcPosition(o,void 0,s,r+1):f},this._calculateVelocity=()=>{let o=fr(this.direction),n=o.copy(),s=this.options.move;if(s.direction==="inside"||s.direction==="outside")return n;let r=le(g(s.angle.value)),a=le(g(s.angle.offset)),l={left:a-r*Yi,right:a+r*Yi};return s.straight||(n.angle+=$(M(l.left,l.right))),s.random&&typeof s.speed=="number"&&(n.length*=R()),n},this._checkOverlap=(o,n=Fr)=>{let s=this.options.collisions,r=this.getRadius();if(!s.enable)return!1;let a=s.overlap;if(a.enable)return!1;let l=a.retries;if(l>=0&&n>l)throw new Error(`${G} particle is overlapping and can't be placed`);return!!this.container.particles.find(u=>A(o,u.position)<r+u.getRadius())},this._getRollColor=o=>{if(!o||!this.roll||!this.backColor&&!this.roll.alter)return o;let n=1,s=0,r=this.roll.horizontal&&this.roll.vertical?In*n:n,a=this.roll.horizontal?Math.PI*Yi:s;return Math.floor(((this.roll.angle??s)+a)/(Math.PI/r))%In?this.backColor?this.backColor:this.roll.alter?Or(o,this.roll.alter.type,this.roll.alter.value):o:o},this._initPosition=o=>{let n=this.container,s=g(this.options.zIndex.value),r=0;this.position=this._calcPosition(n,o,W(s,r,n.zLayers)),this.initialPosition=this.position.copy();let a=n.canvas.size,l=0;switch(this.moveCenter={...Wt(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??"percent"},this.direction=lr(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=I.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let t=this.container,o=this.pathGenerator;t.shapeDrawers.get(this.shape)?.particleDestroy?.(this);for(let[,s]of t.plugins)s.particleDestroyed?.(this,e);for(let s of t.particles.updaters)s.particleDestroyed?.(this,e);o?.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){let t=this.container,o=t.canvas;for(let[,n]of t.plugins)o.drawParticlePlugin(n,this,e);o.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Ho(this.color))}getMass(){return this.getRadius()**up*Math.PI*Yi}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??Ho(this.strokeColor))}init(e,t,o,n){let s=this.container,r=this._engine;this.id=e,this.group=n,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;let a=s.retina.pixelRatio,l=s.actualOptions,f=Gi(this._engine,s,l.particles),u=f.effect.type,h=f.shape.type,{reduceDuplicates:d}=f;this.effect=Q(u,this.id,d),this.shape=Q(h,this.id,d);let p=f.effect,x=f.shape;if(o){if(o.effect?.type){let T=o.effect.type,L=Q(T,this.id,d);L&&(this.effect=L,p.load(o.effect))}if(o.shape?.type){let T=o.shape.type,L=Q(T,this.id,d);L&&(this.shape=L,x.load(o.shape))}}this.effectData=hp(this.effect,p,this.id,d),this.shapeData=dp(this.shape,x,this.id,d),f.load(o);let m=this.effectData;m&&f.load(m.particles);let w=this.shapeData;w&&f.load(w.particles);let y=new Ge(r,s);y.load(s.actualOptions.interactivity),y.load(f.interactivity),this.interactivity=y,this.effectFill=m?.fill??f.effect.fill,this.effectClose=m?.close??f.effect.close,this.shapeFill=w?.fill??f.shape.fill,this.shapeClose=w?.close??f.shape.close,this.options=f;let k=this.options.move.path;this.pathDelay=g(k.delay.value)*1e3,k.generator&&(this.pathGenerator=this._engine.getPathGenerator(k.generator),this.pathGenerator&&s.addPath(k.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=Ht(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();let C=1;this.moveDecay=C-g(this.options.move.decay);let b=s.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let O=s.effectDrawers.get(this.effect);O||(O=this._engine.getEffectDrawer(this.effect),O&&s.effectDrawers.set(this.effect,O)),O?.loadEffect&&O.loadEffect(this);let P=s.shapeDrawers.get(this.shape);P||(P=this._engine.getShapeDrawer(this.shape),P&&s.shapeDrawers.set(this.shape,P)),P?.loadShape&&P.loadShape(this);let Y=P?.getSidesCount;Y&&(this.sides=Y(this)),this.spawning=!1,this.shadowColor=J(this.options.shadow.color);for(let T of b.updaters)T.init(this);for(let T of b.movers)T.init?.(this);O?.particleInit?.(s,this),P?.particleInit?.(s,this);for(let[,T]of s.plugins)T.particleCreated?.(this)}isInsideCanvas(){let e=this.getRadius(),t=this.container.canvas.size,o=this.position;return o.x>=-e&&o.y>=-e&&o.y<=t.height+e&&o.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let e of this.container.particles.updaters)e.reset?.(this)}}});var Qi,En=c(()=>{"use strict";Qi=class{constructor(e,t){this.position=e,this.particle=t}}});var ft,Zi,q,N,Ki=c(()=>{"use strict";B();ft=2,Zi=class{constructor(e,t,o){this.position={x:e,y:t},this.type=o}},q=class i extends Zi{constructor(e,t,o){super(e,t,"circle"),this.radius=o}contains(e){return A(e,this.position)<=this.radius}intersects(e){let t=this.position,o=e.position,n={x:Math.abs(o.x-t.x),y:Math.abs(o.y-t.y)},s=this.radius;if(e instanceof i||e.type==="circle"){let r=e,a=s+r.radius,l=Math.sqrt(n.x**ft+n.y**ft);return a>l}else if(e instanceof N||e.type==="rectangle"){let r=e,{width:a,height:l}=r.size;return Math.pow(n.x-a,ft)+Math.pow(n.y-l,ft)<=s**ft||n.x<=s+a&&n.y<=s+l||n.x<=a||n.y<=l}return!1}},N=class i extends Zi{constructor(e,t,o,n){super(e,t,"rectangle"),this.size={height:n,width:o}}contains(e){let t=this.size.width,o=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+o}intersects(e){if(e instanceof q)return e.intersects(this);let t=this.size.width,o=this.size.height,n=this.position,s=e.position,r=e instanceof i?e.size:{width:0,height:0},a=r.width,l=r.height;return s.x<n.x+t&&s.x+a>n.x&&s.y<n.y+o&&s.y+l>n.y}}});var ut,pp,mp,ht,qr=c(()=>{"use strict";Ki();B();ut=.5,pp=2,mp=4,ht=class i{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{let{x:o,y:n}=this.rectangle.position,{width:s,height:r}=this.rectangle.size,{capacity:a}=this;for(let l=0;l<mp;l++){let f=l%pp;this._subs.push(new i(new N(o+s*ut*f,n+r*ut*(Math.round(l*ut)-f),s*ut,r*ut),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(t=>t.insert(e))):!1}query(e,t){let o=[];if(!e.intersects(this.rectangle))return[];for(let n of this._points)!e.contains(n.position)&&A(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||o.push(n.particle);if(this._divided)for(let n of this._subs)o.push(...n.query(e,t));return o}queryCircle(e,t,o){return this.query(new q(e.x,e.y,t),o)}queryRectangle(e,t,o){return this.query(new N(e.x,e.y,t.width,t.height),o)}}});var Vr,xp,gp,Hr,Ji,Wr=c(()=>{"use strict";U();Lr();Br();En();qr();Ki();se();Vr=4,xp=2,gp=1,Hr=i=>{let{height:e,width:t}=i,o=-.25,n=1.5;return new N(o*t,o*e,n*t,n*e)},Ji=class{constructor(e,t){this._addToPool=(...n)=>{for(let s of n)this._pool.push(s)},this._applyDensity=(n,s,r)=>{let a=n.number;if(!n.number.density?.enable){r===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(r,a.limit.value);return}let l=this._initDensityFactor(a.density),f=a.value,u=0,h=a.limit.value>u?a.limit.value:f,d=Math.min(f,h)*l+s,p=Math.min(this.count,this.filter(x=>x.group===r).length);r===void 0?this._limit=a.limit.value*l:this._groupLimits.set(r,a.limit.value*l),p<d?this.push(Math.abs(d-p),void 0,n,r):p>d&&this.removeQuantity(p-d,r)},this._initDensityFactor=n=>{let s=this._container,r=1;if(!s.canvas.element||!n.enable)return r;let a=s.canvas.element,l=s.retina.pixelRatio;return a.width*a.height/(n.height*n.width*l**xp)},this._pushParticle=(n,s,r,a)=>{try{let l=this._pool.pop();l||(l=new Xi(this._engine,this._container)),l.init(this._nextId,n,s,r);let f=!0;return a&&(f=a(l)),f?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:l}}),l):void 0}catch(l){fe().warning(`${G} adding particle: ${l}`)}},this._removeParticle=(n,s,r)=>{let a=this._array[n];if(!a||a.group!==s)return!1;let l=this._zArray.indexOf(a),f=1;return this._array.splice(n,f),this._zArray.splice(l,f),a.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=e,this._container=t,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 Ni(e,t),this._pluginsInitialized=!1;let o=t.canvas.size;this.quadTree=new ht(Hr(o),Vr),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let e=this._container,t=e.actualOptions;for(let o of t.manualParticles)this.addParticle(o.position?Wt(o.position,e.canvas.size):void 0,o.options)}addParticle(e,t,o,n){let s=this._container.actualOptions.particles.number.limit,r=o===void 0?this._limit:this._groupLimits.get(o)??this._limit,a=this.count;if(r>0){if(s.mode==="delete"){let h=a+1-r;h>0&&this.removeQuantity(h)}else if(s.mode==="wait"&&a>=r)return}return this._pushParticle(e,t,o,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){let t=this._container,o=t.canvas;o.clear(),this.update(e);for(let[,n]of t.plugins)o.drawPlugin(n,e);for(let n of this._zArray)n.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){let e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let o=!1;for(let[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(o=n.particlesInitialization()),o)break;if(this.addManualParticles(),!o){let n=t.particles,s=n.groups;for(let r in s){let a=s[r];for(let l=this.count,f=0;f<a.number?.value&&l<n.number.value;l++,f++)this.addParticle(void 0,a,r)}for(let r=this.count;r<n.number.value;r++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(let[,t]of e.pathGenerators)t.init(e)}push(e,t,o,n){for(let s=0;s<e;s++)this.addParticle(t?.position,o,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,o){this.removeAt(this._array.indexOf(e),void 0,t,o)}removeAt(e,t=gp,o,n){if(e<0||e>this.count)return;let r=0;for(let a=e;r<t&&a<this.count;a++)this._removeParticle(a--,o,n)&&r++}removeQuantity(e,t){this.removeAt(0,e,t)}setDensity(){let e=this._container.actualOptions,t=e.particles.groups,o=0;for(let n in t)this._applyDensity(t[n],o,n);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){let t=this._container,o=new Set;this.quadTree=new ht(Hr(t.canvas.size),Vr);for(let[,s]of t.pathGenerators)s.update();for(let[,s]of t.plugins)s.update?.(e);let n=this._resizeFactor;for(let s of this._array){n&&!s.ignoresResizeRatio&&(s.position.x*=n.width,s.position.y*=n.height,s.initialPosition.x*=n.width,s.initialPosition.y*=n.height),s.ignoresResizeRatio=!1,this._interactionManager.reset(s);for(let[,r]of this._container.plugins){if(s.destroyed)break;r.particleUpdate?.(s,e)}for(let r of this.movers)r.isEnabled(s)&&r.move(s,e);if(s.destroyed){o.add(s);continue}this.quadTree.insert(new Qi(s.getPosition(),s))}if(o.size){let s=r=>!o.has(r);this._array=this.filter(s),this._zArray=this._zArray.filter(s);for(let r of o)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:r}});this._addToPool(...o)}this._interactionManager.externalInteract(e);for(let s of this._array){for(let r of this.updaters)r.update(s,e);!s.destroyed&&!s.spawning&&this._interactionManager.particlesInteract(s,e)}if(delete this._resizeFactor,this._needsSort){let s=this._zArray;s.sort((a,l)=>l.position.z-a.position.z||a.id-l.id);let r=1;this._lastZIndex=s[s.length-r].position.z,this._needsSort=!1}}}});var Ur,jr,eo,Gr=c(()=>{"use strict";B();U();Ur=1,jr=1,eo=class{constructor(e){this.container=e,this.pixelRatio=Ur,this.reduceFactor=jr}init(){let e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||me()?Ur:window.devicePixelRatio,this.reduceFactor=jr;let o=this.pixelRatio,n=e.canvas;if(n.element){let a=n.element;n.size.width=a.offsetWidth*o,n.size.height=a.offsetHeight*o}let s=t.particles,r=s.move;this.maxSpeed=g(r.gravity.maxSpeed)*o,this.sizeAnimationSpeed=g(s.size.animation.speed)*o}initParticle(e){let t=e.options,o=this.pixelRatio,n=t.move,s=n.distance,r=e.retina;r.moveDrift=g(n.drift)*o,r.moveSpeed=g(n.speed)*o,r.sizeAnimationSpeed=g(t.size.animation.speed)*o;let a=r.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*o:void 0,a.vertical=s.vertical!==void 0?s.vertical*o:void 0,r.maxSpeed=g(n.gravity.maxSpeed)*o}}});var $r={};v($r,{Container:()=>Ln});function j(i){return i&&!i.destroyed}function yp(i,e=Tn,t=!1){return{value:i,factor:t?Tn/e:Tn*i/1e3}}function Qe(i,e,...t){let o=new $i(i,e);return Dn(o,...t),o}var Tn,Ln,Nr=c(()=>{"use strict";se();U();zr();Sr();Sn();Wr();Gr();B();lt();Tn=60;Ln=class{constructor(e,t,o){this._intersectionManager=n=>{if(!(!j(this)||!this.actualOptions.pauseOnOutsideViewport))for(let s of n)s.target===this.interactivity.element&&(s.isIntersecting?this.play():this.pause())},this._nextFrame=n=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&n<this._lastFrameTime+1e3/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=n;let s=yp(n-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(s.value),this._lastFrameTime=n,s.value>1e3){this.draw(!1);return}if(this.particles.draw(s),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(s){fe().error(`${G} in animation loop`,s)}},this._engine=e,this.id=Symbol(t),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=o,this._initialSourceOptions=o,this.retina=new eo(this),this.canvas=new Kt(this),this.particles=new Ji(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=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this),this._eventListeners=new Jt(this),this._intersectionObserver=pr(n=>this._intersectionManager(n)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&j(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!j(this))return;let t=this.interactivity.element;if(!t)return;let o=(h,d,p)=>{if(!j(this))return;let x=this.retina.pixelRatio,m={x:d.x*x,y:d.y*x},w=this.particles.quadTree.queryCircle(m,p*x);e(h,w)},n=h=>{if(!j(this))return;let d=h,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};o(h,p,1)},s=()=>{j(this)&&(f=!0,u=!1)},r=()=>{j(this)&&(u=!0)},a=h=>{if(j(this)){if(f&&!u){let d=h,p=1,x=d.touches[d.touches.length-p];if(!x&&(x=d.changedTouches[d.changedTouches.length-p],!x))return;let m=this.canvas.element,w=m?m.getBoundingClientRect():void 0,y=0,k={x:x.clientX-(w?w.left:y),y:x.clientY-(w?w.top:y)};o(h,k,Math.max(x.radiusX,x.radiusY))}f=!1,u=!1}},l=()=>{j(this)&&(f=!1,u=!1)},f=!1,u=!1;t.addEventListener("click",n),t.addEventListener("touchstart",s),t.addEventListener("touchmove",r),t.addEventListener("touchend",a),t.addEventListener("touchcancel",l)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,o=!1){return!j(this)||!o&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!j(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(let[,n]of this.effectDrawers)n.destroy?.(this);for(let[,n]of this.shapeDrawers)n.destroy?.(this);for(let n of this.effectDrawers.keys())this.effectDrawers.delete(n);for(let n of this.shapeDrawers.keys())this.shapeDrawers.delete(n);this._engine.clearPlugins(this),this.destroyed=!0;let e=this._engine.dom(),t=e.findIndex(n=>n===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!j(this))return;let t=e,o=n=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(n)};this._drawAnimationFrame=requestAnimationFrame(n=>o(n))}async export(e,t={}){for(let[,o]of this.plugins){if(!o.export)continue;let n=await o.export(e,t);if(n.supported)return n.blob}fe().error(`${G} - Export plugin with type ${e} not found`)}handleClickMode(e){if(j(this)){this.particles.handleClickMode(e);for(let[,t]of this.plugins)t.handleClickMode?.(e)}}async init(){if(!j(this))return;let e=this._engine.getSupportedEffects();for(let r of e){let a=this._engine.getEffectDrawer(r);a&&this.effectDrawers.set(r,a)}let t=this._engine.getSupportedShapes();for(let r of t){let a=this._engine.getShapeDrawer(r);a&&this.shapeDrawers.set(r,a)}await this.particles.initPlugins(),this._options=Qe(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Qe(this._engine,this,this._options);let o=await this._engine.getAvailablePlugins(this);for(let[r,a]of o)this.plugins.set(r,a);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=g(this.actualOptions.duration)*1e3,this._delay=g(this.actualOptions.delay)*1e3,this._lifeTime=0;let n=120,s=0;this.fpsLimit=this.actualOptions.fpsLimit>s?this.actualOptions.fpsLimit:n,this._smooth=this.actualOptions.smooth;for(let[,r]of this.effectDrawers)await r.init?.(this);for(let[,r]of this.shapeDrawers)await r.init?.(this);for(let[,r]of this.plugins)await r.init?.();this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(let[,r]of this.plugins)r.particlesSetup?.();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){j(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(j(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let[,e]of this.plugins)e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!j(this))return;let t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(let[,o]of this.plugins)o.play&&o.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(j(this))return this.stop(),this.start()}async reset(){if(j(this))return this._initialSourceOptions=void 0,this._options=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this,this._options),this.refresh()}async start(){!j(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{let t=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(let[,o]of this.plugins)await o.start?.();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){if(!(!j(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(let[,e]of this.plugins)e.stop?.();for(let e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}});async function Fn(i,e,t,o=!1){let n=e.get(i);return(!n||o)&&(n=await Promise.all([...t.values()].map(s=>s(i))),e.set(i,n)),n}async function vp(i){let e=Q(i.url,i.index);if(!e)return i.fallback;let t=await fetch(e);return t.ok?await t.json():(fe().error(`${G} ${t.status} while retrieving config file`),i.fallback)}var to,Yr=c(()=>{"use strict";se();U();yr();B();to=class{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Ut,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(){let e={};for(let[t,o]of this._configs)e[t]=o;return e}get version(){return"3.3.0"}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:t,config:e}})}async addEffect(e,t,o=!0){V(e,n=>{this.getEffectDrawer(n)||this.effectDrawers.set(n,t)}),await this.refresh(o)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,o=!0){this._initializers.interactors.set(e,t),await this.refresh(o)}async addMover(e,t,o=!0){this._initializers.movers.set(e,t),await this.refresh(o)}async addParticleUpdater(e,t,o=!0){this._initializers.updaters.set(e,t),await this.refresh(o)}async addPathGenerator(e,t,o=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(o)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,o=!1,n=!0){(o||!this.getPreset(e))&&this.presets.set(e,t),await this.refresh(n)}async addShape(e,t,o=!0){V(e,n=>{this.getShapeDrawer(n)||this.shapeDrawers.set(n,t)}),await this.refresh(o)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this._domArray}domItem(e){let t=this.dom(),o=t[e];if(!o||o.destroyed){t.splice(e,1);return}return o}async getAvailablePlugins(e){let t=new Map;for(let o of this.plugins)o.needsPlugin(e.actualOptions)&&t.set(o.id,await o.getPlugin(e));return t}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return await Fn(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return await Fn(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return await Fn(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}async load(e){let o=e.id??e.element?.id??`tsparticles${Math.floor(R()*1e4)}`,{index:n,url:s}=e,r=s?await vp({fallback:e.options,url:s,index:n}):e.options,a=e.element??document.getElementById(o);a||(a=document.createElement("div"),a.id=o,document.body.append(a));let l=Q(r,n),f=this.dom(),u=f.findIndex(m=>m.id.description===o),h=0;if(u>=h){let m=this.domItem(u);if(m&&!m.destroyed){m.destroy();let w=1;f.splice(u,w)}}let d;if(a.tagName.toLowerCase()==="canvas")d=a,d.dataset[ke]="false";else{let m=a.getElementsByTagName("canvas");m.length?(d=m[0],d.dataset[ke]="false"):(d=document.createElement("canvas"),d.dataset[ke]="true",a.appendChild(d))}d.style.width||(d.style.width="100%"),d.style.height||(d.style.height="100%");let{Container:p}=await Promise.resolve().then(()=>(Nr(),$r)),x=new p(this,o,l);return u>=h?f.splice(u,0,x):f.push(x),x.canvas.loadCanvas(d),await x.start(),x}loadOptions(e,t){for(let o of this.plugins)o.loadOptions(e,t)}loadParticlesOptions(e,t,...o){let n=this.updaters.get(e);if(n)for(let s of n)s.loadOptions?.(t,...o)}async refresh(e=!0){e&&await Promise.all(this.dom().map(t=>t.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){let t=this.dom();if(!t.length)throw new Error(`${G} can only set click handlers after calling tsParticles.load()`);for(let o of t)o.addClickHandler(e)}}});var io,An=c(()=>{"use strict";B();Ce();io=class{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.s!==void 0&&o.l!==void 0)return Me(o)}handleRangeColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.l!==void 0)return Me({h:g(o.h),l:g(o.l),s:g(o.s)})}parseString(e){if(!e.startsWith("hsl"))return;let t=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=4,s=1,r=10;return o?br({a:o.length>n?At(o[5]):s,h:parseInt(o[1],r),l:parseInt(o[3],r),s:parseInt(o[2],r)}):void 0}}});var oo,Bn=c(()=>{"use strict";B();oo=class{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return o}handleRangeColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return{r:g(o.r),g:g(o.g),b:g(o.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;let t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=10,s=4,r=1;return o?{a:o.length>s?At(o[5]):r,b:parseInt(o[3],n),g:parseInt(o[2],n),r:parseInt(o[1],n)}:void 0}}});function Xr(){let i=new oo,e=new io;qo(i),qo(e);let t=new to;return t.init(),t}var Qr=c(()=>{"use strict";Yr();An();Bn();Ce()});var H,Zr=c(()=>{"use strict";H=class{constructor(e){this.type="external",this.container=e}}});var _e,Kr=c(()=>{"use strict";_e=class{constructor(e){this.type="particles",this.container=e}}});var Jr=c(()=>{"use strict"});var ea=c(()=>{"use strict"});var ta=c(()=>{"use strict"});var ia=c(()=>{"use strict"});var oa=c(()=>{"use strict"});var na=c(()=>{"use strict"});var sa=c(()=>{"use strict"});var ra=c(()=>{"use strict"});var aa=c(()=>{"use strict"});var ca=c(()=>{"use strict"});var la=c(()=>{"use strict"});var fa=c(()=>{"use strict"});var ua=c(()=>{"use strict"});var ha=c(()=>{"use strict"});var da=c(()=>{"use strict"});var pa=c(()=>{"use strict"});var ma=c(()=>{"use strict"});var xa=c(()=>{"use strict"});var ga=c(()=>{"use strict"});var ya=c(()=>{"use strict"});var va=c(()=>{"use strict"});var ba=c(()=>{"use strict";se();Zr();Kr();En();Ki();it();Jr();ea();ta();ia();oa();na();sa();ra();aa();ca();la();fa();ua();ha();da();pa();ma();xa();ga();ya();va();yi();$e();Wo();jo();Uo();tn();Go();on();si();ri();si();ri();Xo();No();$o();Yo();hi();Qo();Zo();Sn();Re();wi();an();cn();nn();sn();zn();kn();On();fn();gn();ln();un();hn();mn();dn();xn();pn();_n();wn();bn();vn();yn();Mn();Rn();Cn();Pn();Ko();en();Jo();ze();Zt();Ce();An();B();lt();Bn();U();ae()});var wa=c(()=>{"use strict"});var _a=c(()=>{"use strict"});var ka=c(()=>{"use strict"});var Ma=c(()=>{"use strict"});var Ca=c(()=>{"use strict"});var Ra=c(()=>{"use strict"});var Oa=c(()=>{"use strict"});var Pa=c(()=>{"use strict"});var za=c(()=>{"use strict"});var Da=c(()=>{"use strict"});var Sa=c(()=>{"use strict"});var Ia=c(()=>{"use strict"});var Ea=c(()=>{"use strict"});var Ta=c(()=>{"use strict"});var La=c(()=>{"use strict"});var Fa=c(()=>{"use strict"});var Aa=c(()=>{"use strict"});var Ba=c(()=>{"use strict"});var qa=c(()=>{"use strict"});var Va=c(()=>{"use strict"});var Ha=c(()=>{"use strict"});var Wa=c(()=>{"use strict"});var Ua=c(()=>{"use strict"});var ja=c(()=>{"use strict"});var Ga=c(()=>{"use strict"});var $a=c(()=>{"use strict"});var Na=c(()=>{"use strict"});var Ya=c(()=>{"use strict"});var Xa=c(()=>{"use strict"});var Qa=c(()=>{"use strict"});var Za=c(()=>{"use strict"});var Ka=c(()=>{"use strict"});var Ja=c(()=>{"use strict"});var ec=c(()=>{"use strict"});var tc=c(()=>{"use strict"});var ic=c(()=>{"use strict"});var oc=c(()=>{"use strict"});var nc=c(()=>{"use strict"});var sc=c(()=>{"use strict"});var rc=c(()=>{"use strict"});var ac=c(()=>{"use strict"});var cc=c(()=>{"use strict"});var lc=c(()=>{"use strict"});var fc=c(()=>{"use strict"});var uc=c(()=>{"use strict"});var hc=c(()=>{"use strict"});var dc=c(()=>{"use strict"});var pc=c(()=>{"use strict"});var mc=c(()=>{"use strict"});var xc=c(()=>{"use strict"});var gc=c(()=>{"use strict"});var yc=c(()=>{"use strict"});var vc=c(()=>{"use strict"});var bc=c(()=>{"use strict"});var wc=c(()=>{"use strict"});var _c=c(()=>{"use strict"});var kc=c(()=>{"use strict"});var Mc=c(()=>{"use strict"});var Cc=c(()=>{"use strict"});var Rc=c(()=>{"use strict"});var Oc=c(()=>{"use strict"});var Pc=c(()=>{"use strict"});var zc=c(()=>{"use strict"});var Dc=c(()=>{"use strict"});var Sc=c(()=>{"use strict"});var Ic=c(()=>{"use strict"});var Ec=c(()=>{"use strict"});var Tc=c(()=>{"use strict"});var Lc=c(()=>{"use strict"});var Fc=c(()=>{"use strict"});var Ac=c(()=>{"use strict"});var Bc=c(()=>{"use strict"});var qc=c(()=>{"use strict"});var Vc=c(()=>{"use strict"});var Hc=c(()=>{"use strict"});var Wc=c(()=>{"use strict"});var Uc=c(()=>{"use strict"});var jc=c(()=>{"use strict"});var Gc=c(()=>{"use strict"});var $c=c(()=>{"use strict"});var Nc=c(()=>{"use strict"});var Yc=c(()=>{"use strict"});var Xc=c(()=>{"use strict"});var Qc=c(()=>{"use strict"});var Zc=c(()=>{"use strict"});var Kc=c(()=>{"use strict"});var Jc=c(()=>{"use strict"});var el=c(()=>{"use strict"});var tl=c(()=>{"use strict"});var il=c(()=>{"use strict"});var ol=c(()=>{"use strict"});var nl=c(()=>{"use strict"});var sl=c(()=>{"use strict"});var rl=c(()=>{"use strict"});var al=c(()=>{"use strict"});var cl=c(()=>{"use strict"});var ll=c(()=>{"use strict"});var fl=c(()=>{"use strict"});var ul=c(()=>{"use strict"});var hl=c(()=>{"use strict";wa();_a();ka();Ma();Ca();Ra();Oa();Pa();za();Da();Sa();Ia();Ea();Ta();La();Fa();Aa();Ba();qa();Va();Ha();Wa();Ua();ja();Ga();$a();Na();Ya();Xa();Qa();Za();Ka();Ja();ec();tc();ic();oc();nc();sc();rc();ac();cc();lc();fc();uc();hc();dc();pc();mc();xc();gc();yc();vc();bc();wc();_c();kc();Mc();Cc();Rc();Oc();Pc();zc();Dc();Sc();Ic();Ec();Tc();Lc();Fc();Ac();Bc();qc();Vc();Hc();Wc();Uc();jc();Gc();$c();Nc();Yc();Xc();Qc();Zc();Kc();Jc();el();tl();il();ol();nl();sl();rl();al();cl();ll();fl();ul()});var no,_=c(()=>{"use strict";Qr();U();ba();hl();no=Xr();me()||(window.tsParticles=no)});var pl={};v(pl,{ParallaxMover:()=>qn});var dl,qn,ml=c(()=>{"use strict";_();dl=.5,qn=class{init(){}isEnabled(e){return!me()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){let t=e.container,o=t.actualOptions,n=o.interactivity.events.onHover.parallax;if(me()||!n.enable)return;let s=n.force,r=t.interactivity.mouse.position;if(!r)return;let a=t.canvas.size,l={x:a.width*dl,y:a.height*dl},f=n.smooth,u=e.getRadius()/s,h={x:(r.x-l.x)*u,y:(r.y-l.y)*u},{offset:d}=e;d.x+=(h.x-d.x)/f,d.y+=(h.y-d.y)/f}}});var xl={};v(xl,{loadParallaxMover:()=>bp});async function bp(i,e=!0){await i.addMover("parallax",async()=>{let{ParallaxMover:t}=await Promise.resolve().then(()=>(ml(),pl));return new t},e)}var gl=c(()=>{"use strict"});var dt,Vn=c(()=>{"use strict";dt=class{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}});var yl=c(()=>{"use strict"});function bl(i,e,t,o,n){let s=i.actualOptions.interactivity.modes.attract;if(!s)return;let r=i.particles.quadTree.query(o,n);for(let a of r){let{dx:l,dy:f,distance:u}=F(a.position,e),h=s.speed*s.factor,d=W(Lt(s.easing)(_p-u/t)*h,wp,s.maxSpeed),p=I.create(u?l/u*d:h,u?f/u*d:h);a.position.subFrom(p)}}function wl(i,e){i.attract||(i.attract={particles:[]});let{attract:t}=i;if(t.finish||(t.count||(t.count=0),t.count++,t.count===i.particles.count&&(t.finish=!0)),t.clicking){let o=i.interactivity.mouse.clickPosition,n=i.retina.attractModeDistance;if(!n||n<vl||!o)return;bl(i,o,n,new q(o.x,o.y,n),s=>e(s))}else t.clicking===!1&&(t.particles=[])}function _l(i,e){let t=i.interactivity.mouse.position,o=i.retina.attractModeDistance;!o||o<vl||!t||bl(i,t,o,new q(t.x,t.y,o),n=>e(n))}var wp,_p,vl,kl=c(()=>{"use strict";_();wp=1,_p=1,vl=0});var Ml={};v(Ml,{Attractor:()=>Hn});var pt,Hn,Cl=c(()=>{"use strict";_();kl();Vn();pt="attract",Hn=class extends H{constructor(e,t){super(t),this._engine=e,t.attract||(t.attract={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.attract;if(!(!s||o!==pt)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(let r of t.attract.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.attract;t&&(e.retina.attractModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,{enable:s,mode:r}=n.onHover,{enable:a,mode:l}=n.onClick;o&&s&&z(pt,r)?_l(this.container,f=>this.isEnabled(f)):a&&z(pt,l)&&wl(this.container,f=>this.isEnabled(f))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let r=s.onHover.mode,a=s.onClick.mode;return z(pt,r)||z(pt,a)}loadModeOptions(e,...t){e.attract||(e.attract=new dt);for(let o of t)e.attract.load(o?.attract)}reset(){}}});var Rl={};v(Rl,{Attract:()=>dt,loadExternalAttractInteraction:()=>kp});async function kp(i,e=!0){await i.addInteractor("externalAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Cl(),Ml));return new o(i,t)},e)}var Ol=c(()=>{"use strict";Vn();yl()});var mt,Wn=c(()=>{"use strict";mt=class{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}});var Pl=c(()=>{"use strict"});function Sl(i,e,t,o,n){let s=i.particles.quadTree.query(o,n);for(let r of s)o instanceof q?Vt(ot(r),{position:e,radius:t,mass:t**Mp*Cp,velocity:I.origin,factor:I.origin}):o instanceof N&&xr(r,ye(e,t))}function Op(i,e,t,o){let n=document.querySelectorAll(e);n.length&&n.forEach(s=>{let r=s,a=i.retina.pixelRatio,l={x:(r.offsetLeft+r.offsetWidth*so)*a,y:(r.offsetTop+r.offsetHeight*so)*a},f=r.offsetWidth*so*a,u=Dl*a,h=t.type==="circle"?new q(l.x,l.y,f+u):new N(r.offsetLeft*a-u,r.offsetTop*a-u,r.offsetWidth*a+u*zl,r.offsetHeight*a+u*zl);o(l,f,h)})}function Il(i,e,t,o){We(t,e,(n,s)=>Op(i,n,s,(r,a,l)=>Sl(i,r,a,l,o)))}function El(i,e){let t=i.retina.pixelRatio,o=Dl*t,n=i.interactivity.mouse.position,s=i.retina.bounceModeDistance;!s||s<Rp||!n||Sl(i,n,s,new q(n.x,n.y,s+o),e)}var Mp,so,Cp,zl,Dl,Rp,Tl=c(()=>{"use strict";_();Mp=2,so=.5,Cp=Math.PI*so,zl=2,Dl=10,Rp=0});var Ll={};v(Ll,{Bouncer:()=>Un});var ro,Un,Fl=c(()=>{"use strict";_();Tl();Wn();ro="bounce",Un=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bounce;t&&(e.retina.bounceModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity.events,n=e.interactivity.status===ne,s=o.onHover.enable,r=o.onHover.mode,a=o.onDiv;n&&s&&z(ro,r)?El(this.container,l=>this.isEnabled(l)):Il(this.container,a,ro,l=>this.isEnabled(l))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv;return!!n.position&&s.onHover.enable&&z(ro,s.onHover.mode)||He(ro,r)}loadModeOptions(e,...t){e.bounce||(e.bounce=new mt);for(let o of t)e.bounce.load(o?.bounce)}reset(){}}});var Al={};v(Al,{Bounce:()=>mt,loadExternalBounceInteraction:()=>Pp});async function Pp(i,e=!0){await i.addInteractor("externalBounce",async t=>{let{Bouncer:o}=await Promise.resolve().then(()=>(Fl(),Ll));return new o(t)},e)}var Bl=c(()=>{"use strict";Wn();Pl()});var De,ao=c(()=>{"use strict";_();De=class{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){let t=K(this.color)?void 0:this.color;this.color=V(e.color,o=>S.create(t,o))}e.size!==void 0&&(this.size=e.size)}}}});var xt,jn=c(()=>{"use strict";ao();xt=class extends De{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var gt,Gn=c(()=>{"use strict";_();ao();jn();gt=class extends De{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new xt;return o.load(t),o}))}}});var ql=c(()=>{"use strict"});var Vl=c(()=>{"use strict"});var Hl=c(()=>{"use strict"});function $n(i,e,t,o){if(e>=t){let n=i+(e-t)*o;return W(n,i,e)}else if(e<t){let n=i-(t-e)*o;return W(n,e,i)}}var Wl=c(()=>{"use strict";_()});var Gl={};v(Gl,{Bubbler:()=>Qn});var Se,Nn,zp,Dp,Ul,jl,Sp,Ip,Yn,Xn,Qn,$l=c(()=>{"use strict";_();Gn();Wl();Se="bubble",Nn=0,zp=0,Dp=2,Ul=1,jl=1,Sp=0,Ip=0,Yn=.5,Xn=1,Qn=class extends H{constructor(e){super(e),this._clickBubble=()=>{let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.clickPosition,s=o.interactivity.modes.bubble;if(!s||!n)return;t.bubble||(t.bubble={});let r=t.retina.bubbleModeDistance;if(!r||r<Nn)return;let a=t.particles.quadTree.queryCircle(n,r,f=>this.isEnabled(f)),{bubble:l}=t;for(let f of a){if(!l.clicking)continue;f.bubble.inRange=!l.durationEnd;let u=f.getPosition(),h=A(u,n),d=(new Date().getTime()-(t.interactivity.mouse.clickTime??zp))/1e3;d>s.duration&&(l.durationEnd=!0),d>s.duration*Dp&&(l.clicking=!1,l.durationEnd=!1);let p={bubbleObj:{optValue:t.retina.bubbleModeSize,value:f.bubble.radius},particlesObj:{optValue:X(f.options.size.value)*t.retina.pixelRatio,value:f.size.value},type:"size"};this._process(f,h,d,p);let x={bubbleObj:{optValue:s.opacity,value:f.bubble.opacity},particlesObj:{optValue:X(f.options.opacity.value),value:f.opacity?.value??Ul},type:"opacity"};this._process(f,h,d,x),!l.durationEnd&&h<=r?this._hoverBubbleColor(f,h):delete f.bubble.color}},this._hoverBubble=()=>{let t=this.container,o=t.interactivity.mouse.position,n=t.retina.bubbleModeDistance;if(!n||n<Nn||!o)return;let s=t.particles.quadTree.queryCircle(o,n,r=>this.isEnabled(r));for(let r of s){r.bubble.inRange=!0;let a=r.getPosition(),l=A(a,o),f=jl-l/n;l<=n?f>=Ip&&t.interactivity.status===ne&&(this._hoverBubbleSize(r,f),this._hoverBubbleOpacity(r,f),this._hoverBubbleColor(r,f)):this.reset(r),t.interactivity.status===tt&&this.reset(r)}},this._hoverBubbleColor=(t,o,n)=>{let s=this.container.actualOptions,r=n??s.interactivity.modes.bubble;if(r){if(!t.bubble.finalColor){let a=r.color;if(!a)return;let l=Q(a);t.bubble.finalColor=ge(l)}if(t.bubble.finalColor)if(r.mix){t.bubble.color=void 0;let a=t.getFillColor();t.bubble.color=a?Vo(nt(a,t.bubble.finalColor,jl-o,o)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}},this._hoverBubbleOpacity=(t,o,n)=>{let s=this.container,r=s.actualOptions,a=n?.opacity??r.interactivity.modes.bubble?.opacity;if(!a)return;let l=t.options.opacity.value,f=t.opacity?.value??Ul,u=$n(f,a,X(l),o);u!==void 0&&(t.bubble.opacity=u)},this._hoverBubbleSize=(t,o,n)=>{let s=this.container,r=n?.size?n.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(r===void 0)return;let a=X(t.options.size.value)*s.retina.pixelRatio,l=t.size.value,f=$n(l,r,a,o);f!==void 0&&(t.bubble.radius=f)},this._process=(t,o,n,s)=>{let r=this.container,a=s.bubbleObj.optValue,l=r.actualOptions,f=l.interactivity.modes.bubble;if(!f||a===void 0)return;let u=f.duration,h=r.retina.bubbleModeDistance,d=s.particlesObj.optValue,p=s.bubbleObj.value,x=s.particlesObj.value??Sp,m=s.type;if(!(!h||h<Nn||a===d))if(r.bubble||(r.bubble={}),r.bubble.durationEnd)p&&(m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity);else if(o<=h){if((p??x)!==a){let y=x-n*(x-a)/u;m==="size"&&(t.bubble.radius=y),m==="opacity"&&(t.bubble.opacity=y)}}else m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity},this._singleSelectorHover=(t,o,n)=>{let s=this.container,r=document.querySelectorAll(o),a=s.actualOptions.interactivity.modes.bubble;!a||!r.length||r.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*Yn)*u,y:(f.offsetTop+f.offsetHeight*Yn)*u},d=f.offsetWidth*Yn*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=s.particles.quadTree.query(p,m=>this.isEnabled(m));for(let m of x){if(!p.contains(m.getPosition()))continue;m.bubble.inRange=!0;let w=a.divs,y=qt(w,f);(!m.bubble.div||m.bubble.div!==f)&&(this.clear(m,t,!0),m.bubble.div=f),this._hoverBubbleSize(m,Xn,y),this._hoverBubbleOpacity(m,Xn,y),this._hoverBubbleColor(m,Xn,y)}})},e.bubble||(e.bubble={}),this.handleClickMode=t=>{t===Se&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,t,o){e.bubble.inRange&&!o||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bubble;t&&(e.retina.bubbleModeDistance=t.distance*e.retina.pixelRatio,t.size!==void 0&&(e.retina.bubbleModeSize=t.size*e.retina.pixelRatio))}interact(e){let t=this.container.actualOptions,o=t.interactivity.events,n=o.onHover,s=o.onClick,r=n.enable,a=n.mode,l=s.enable,f=s.mode,u=o.onDiv;r&&z(Se,a)?this._hoverBubble():l&&z(Se,f)?this._clickBubble():We(Se,u,(h,d)=>this._singleSelectorHover(e,h,d))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,{onClick:r,onDiv:a,onHover:l}=s,f=He(Se,a);return f||l.enable&&n.position||r.enable&&n.clickPosition?z(Se,l.mode)||z(Se,r.mode)||f:!1}loadModeOptions(e,...t){e.bubble||(e.bubble=new gt);for(let o of t)e.bubble.load(o?.bubble)}reset(e){e.bubble.inRange=!1}}});var Nl={};v(Nl,{Bubble:()=>gt,BubbleBase:()=>De,BubbleDiv:()=>xt,loadExternalBubbleInteraction:()=>Ep});async function Ep(i,e=!0){await i.addInteractor("externalBubble",async t=>{let{Bubbler:o}=await Promise.resolve().then(()=>($l(),Gl));return new o(t)},e)}var Yl=c(()=>{"use strict";ao();jn();Gn();ql();Vl();Hl()});var yt,Zn=c(()=>{"use strict";yt=class{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}});var vt,Kn=c(()=>{"use strict";Zn();vt=class{constructor(){this.distance=80,this.links=new yt,this.radius=60}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links),e.radius!==void 0&&(this.radius=e.radius))}}});var Xl=c(()=>{"use strict"});var Ql=c(()=>{"use strict"});function Lp(i,e,t,o){let n=Math.floor(t.getRadius()/e.getRadius()),s=e.getFillColor(),r=t.getFillColor();if(!s||!r)return;let a=e.getPosition(),l=t.getPosition(),f=nt(s,r,e.getRadius(),t.getRadius()),u=i.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(Zl,ve(s,o)),u.addColorStop(W(n,Zl,Kl),te(f,o)),u.addColorStop(Kl,ve(r,o)),u}function Fp(i,e,t,o,n){be(i,o,n),i.lineWidth=e,i.strokeStyle=t,i.stroke()}function Ap(i,e,t,o){let n=i.actualOptions,s=n.interactivity.modes.connect;if(s)return Lp(e,t,o,s.links.opacity)}function Jl(i,e,t){i.canvas.draw(o=>{let n=Ap(i,o,e,t);if(!n)return;let s=e.getPosition(),r=t.getPosition();Fp(o,e.retina.linksWidth??Tp,n,s,r)})}var Zl,Kl,Tp,ef=c(()=>{"use strict";_();Zl=0,Kl=1,Tp=0});var of={};v(of,{Connector:()=>Jn});var Bp,tf,Jn,nf=c(()=>{"use strict";_();Kn();ef();Bp="connect",tf=0,Jn=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.connect;t&&(e.retina.connectModeDistance=t.distance*e.retina.pixelRatio,e.retina.connectModeRadius=t.radius*e.retina.pixelRatio)}interact(){let e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){let o=e.interactivity.mouse.position,{connectModeDistance:n,connectModeRadius:s}=e.retina;if(!n||n<tf||!s||s<tf||!o)return;let r=Math.abs(s),a=e.particles.quadTree.queryCircle(o,r,l=>this.isEnabled(l));a.forEach((l,f)=>{let u=l.getPosition(),h=1;for(let d of a.slice(f+h)){let p=d.getPosition(),x=Math.abs(n),m=Math.abs(u.x-p.x),w=Math.abs(u.y-p.y);m<x&&w<x&&Jl(e,l,d)}})}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&o.position?z(Bp,n.onHover.mode):!1}loadModeOptions(e,...t){e.connect||(e.connect=new vt);for(let o of t)e.connect.load(o?.connect)}reset(){}}});var sf={};v(sf,{Connect:()=>vt,ConnectLinks:()=>yt,loadExternalConnectInteraction:()=>qp});async function qp(i,e=!0){await i.addInteractor("externalConnect",async t=>{let{Connector:o}=await Promise.resolve().then(()=>(nf(),of));return new o(t)},e)}var rf=c(()=>{"use strict";Kn();Zn();Xl();Ql()});var bt,es=c(()=>{"use strict";_();bt=class{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var wt,ts=c(()=>{"use strict";es();wt=class{constructor(){this.distance=100,this.links=new bt}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links))}}});var af=c(()=>{"use strict"});var cf=c(()=>{"use strict"});function Hp(i,e,t,o,n,s){be(i,t,o),i.strokeStyle=te(n,s),i.lineWidth=e,i.stroke()}function lf(i,e,t,o,n){i.canvas.draw(s=>{let r=e.getPosition();Hp(s,e.retina.linksWidth??Vp,r,n,t,o)})}var Vp,ff=c(()=>{"use strict";_();Vp=0});var uf={};v(uf,{Grabber:()=>is});var Wp,Up,jp,is,hf=c(()=>{"use strict";_();ts();ff();Wp="grab",Up=0,jp=0,is=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.grab;t&&(e.retina.grabModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity;if(!o.modes.grab||!o.events.onHover.enable||e.interactivity.status!==ne)return;let n=e.interactivity.mouse.position;if(!n)return;let s=e.retina.grabModeDistance;if(!s||s<Up)return;let r=e.particles.quadTree.queryCircle(n,s,a=>this.isEnabled(a));for(let a of r){let l=a.getPosition(),f=A(l,n);if(f>s)continue;let u=o.modes.grab.links,h=u.opacity,d=h-f*h/s;if(d<=jp)continue;let p=u.color??a.options.links?.color;if(!e.particles.grabLineColor&&p){let m=o.modes.grab.links;e.particles.grabLineColor=Nt(p,m.blink,m.consent)}let x=st(a,void 0,e.particles.grabLineColor);x&&lf(e,a,x,d,n)}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(Wp,n.onHover.mode)}loadModeOptions(e,...t){e.grab||(e.grab=new wt);for(let o of t)e.grab.load(o?.grab)}reset(){}}});var df={};v(df,{Grab:()=>wt,GrabLinks:()=>bt,loadExternalGrabInteraction:()=>Gp});async function Gp(i,e=!0){await i.addInteractor("externalGrab",async t=>{let{Grabber:o}=await Promise.resolve().then(()=>(hf(),uf));return new o(t)},e)}var pf=c(()=>{"use strict";ts();es();af();cf()});var mf={};v(mf,{Pauser:()=>os});var $p,os,xf=c(()=>{"use strict";_();$p="pause",os=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==$p)return;let o=this.container;o.animationStatus?o.pause():o.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}});var gf={};v(gf,{loadExternalPauseInteraction:()=>Np});async function Np(i,e=!0){await i.addInteractor("externalPause",async t=>{let{Pauser:o}=await Promise.resolve().then(()=>(xf(),mf));return new o(t)},e)}var yf=c(()=>{"use strict"});var _t,ns=c(()=>{"use strict";_();_t=class{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(o=>o)),this.groups.length||(this.default=!0);let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var vf=c(()=>{"use strict"});var bf={};v(bf,{Pusher:()=>ss});var Yp,Xp,ss,wf=c(()=>{"use strict";_();ns();Yp="push",Xp=0,ss=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==Yp)return;let o=this.container,n=o.actualOptions,s=n.interactivity.modes.push;if(!s)return;let r=g(s.quantity);if(r<=Xp)return;let a=qe([void 0,...s.groups]),l=a!==void 0?o.actualOptions.particles.groups[a]:void 0;o.particles.push(r,o.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.push||(e.push=new _t);for(let o of t)e.push.load(o?.push)}reset(){}}});var _f={};v(_f,{Push:()=>_t,loadExternalPushInteraction:()=>Qp});async function Qp(i,e=!0){await i.addInteractor("externalPush",async t=>{let{Pusher:o}=await Promise.resolve().then(()=>(wf(),bf));return new o(t)},e)}var kf=c(()=>{"use strict";ns();vf()});var kt,rs=c(()=>{"use strict";_();kt=class{constructor(){this.quantity=2}load(e){if(!e)return;let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var Mf=c(()=>{"use strict"});var Cf={};v(Cf,{Remover:()=>as});var Zp,as,Rf=c(()=>{"use strict";_();rs();Zp="remove",as=class extends H{constructor(e){super(e),this.handleClickMode=t=>{let o=this.container,n=o.actualOptions;if(!n.interactivity.modes.remove||t!==Zp)return;let s=g(n.interactivity.modes.remove.quantity);o.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.remove||(e.remove=new kt);for(let o of t)e.remove.load(o?.remove)}reset(){}}});var Of={};v(Of,{Remove:()=>kt,loadExternalRemoveInteraction:()=>Kp});async function Kp(i,e=!0){await i.addInteractor("externalRemove",async t=>{let{Remover:o}=await Promise.resolve().then(()=>(Rf(),Cf));return new o(t)},e)}var Pf=c(()=>{"use strict";rs();Mf()});var Ie,co=c(()=>{"use strict";Ie=class{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}});var Mt,cs=c(()=>{"use strict";co();Mt=class extends Ie{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var Ct,ls=c(()=>{"use strict";_();co();cs();Ct=class extends Ie{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new Mt;return o.load(t),o}))}}});var zf=c(()=>{"use strict"});var Df=c(()=>{"use strict"});var Sf=c(()=>{"use strict"});var If={};v(If,{Repulser:()=>us});var Ee,Jp,em,tm,im,om,nm,sm,fs,us,Ef=c(()=>{"use strict";_();ls();Ee="repulse",Jp=0,em=6,tm=3,im=2,om=0,nm=0,sm=1,fs=.5,us=class extends H{constructor(e,t){super(t),this._clickRepulse=()=>{let o=this.container,n=o.actualOptions.interactivity.modes.repulse;if(!n)return;let s=o.repulse??{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===o.particles.count&&(s.finish=!0)),s.clicking){let r=o.retina.repulseModeDistance;if(!r||r<Jp)return;let a=Math.pow(r/em,tm),l=o.interactivity.mouse.clickPosition;if(l===void 0)return;let f=new q(l.x,l.y,a),u=o.particles.quadTree.query(f,h=>this.isEnabled(h));for(let h of u){let{dx:d,dy:p,distance:x}=F(l,h.position),m=x**im,w=n.speed,y=-a*w/m;if(m<=a){s.particles.push(h);let k=I.create(d,p);k.length=y,h.velocity.setTo(k)}}}else if(s.clicking===!1){for(let r of s.particles)r.velocity.setTo(r.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{let o=this.container,n=o.interactivity.mouse.position,s=o.retina.repulseModeDistance;!s||s<om||!n||this._processRepulse(n,s,new q(n.x,n.y,s))},this._processRepulse=(o,n,s,r)=>{let a=this.container,l=a.particles.quadTree.query(s,w=>this.isEnabled(w)),f=a.actualOptions.interactivity.modes.repulse;if(!f)return;let{easing:u,speed:h,factor:d,maxSpeed:p}=f,x=Lt(u),m=(r?.speed??h)*d;for(let w of l){let{dx:y,dy:k,distance:C}=F(w.position,o),b=W(x(sm-C/n)*m,nm,p),O=I.create(C?y/C*b:m,C?k/C*b:m);w.position.addTo(O)}},this._singleSelectorRepulse=(o,n)=>{let s=this.container,r=s.actualOptions.interactivity.modes.repulse;if(!r)return;let a=document.querySelectorAll(o);a.length&&a.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*fs)*u,y:(f.offsetTop+f.offsetHeight*fs)*u},d=f.offsetWidth*fs*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=r.divs,m=qt(x,f);this._processRepulse(h,d,p,m)})},this._engine=e,t.repulse||(t.repulse={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.repulse;if(!s||o!==Ee)return;t.repulse||(t.repulse={particles:[]});let r=t.repulse;r.clicking=!0,r.count=0;for(let a of t.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);r.particles=[],r.finish=!1,setTimeout(()=>{t.destroyed||(r.clicking=!1)},s.duration*1e3)}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.repulse;t&&(e.retina.repulseModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,s=n.onHover,r=s.enable,a=s.mode,l=n.onClick,f=l.enable,u=l.mode,h=n.onDiv;o&&r&&z(Ee,a)?this._hoverRepulse():f&&z(Ee,u)?this._clickRepulse():We(Ee,h,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv,a=s.onHover,l=s.onClick,f=He(Ee,r);if(!(f||a.enable&&n.position||l.enable&&n.clickPosition))return!1;let u=a.mode,h=l.mode;return z(Ee,u)||z(Ee,h)||f}loadModeOptions(e,...t){e.repulse||(e.repulse=new Ct);for(let o of t)e.repulse.load(o?.repulse)}reset(){}}});var Tf={};v(Tf,{Repulse:()=>Ct,RepulseBase:()=>Ie,RepulseDiv:()=>Mt,loadExternalRepulseInteraction:()=>rm});async function rm(i,e=!0){await i.addInteractor("externalRepulse",async t=>{let{Repulser:o}=await Promise.resolve().then(()=>(Ef(),If));return new o(i,t)},e)}var Lf=c(()=>{"use strict";co();cs();ls();zf();Df();Sf()});var Rt,hs=c(()=>{"use strict";Rt=class{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}});var Ff=c(()=>{"use strict"});var Af={};v(Af,{Slower:()=>ds});var am,cm,ds,Bf=c(()=>{"use strict";_();hs();am="slow",cm=0,ds=class extends H{constructor(e){super(e)}clear(e,t,o){e.slow.inRange&&!o||(e.slow.factor=1)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.slow;t&&(e.retina.slowModeRadius=t.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(am,n.onHover.mode)}loadModeOptions(e,...t){e.slow||(e.slow=new Rt);for(let o of t)e.slow.load(o?.slow)}reset(e){e.slow.inRange=!1;let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.position,s=t.retina.slowModeRadius,r=o.interactivity.modes.slow;if(!r||!s||s<cm||!n)return;let a=e.getPosition(),l=A(n,a),f=l/s,u=r.factor,{slow:h}=e;l>s||(h.inRange=!0,h.factor=f/u)}}});var qf={};v(qf,{Slow:()=>Rt,loadExternalSlowInteraction:()=>lm});async function lm(i,e=!0){await i.addInteractor("externalSlow",async t=>{let{Slower:o}=await Promise.resolve().then(()=>(Bf(),Af));return new o(t)},e)}var Vf=c(()=>{"use strict";hs();Ff()});var Wf={};v(Wf,{Attractor:()=>ps});var Hf,fm,ps,Uf=c(()=>{"use strict";_();Hf=1e3,fm=1,ps=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e){let t=this.container;e.attractDistance===void 0&&(e.attractDistance=g(e.options.move.attract.distance)*t.retina.pixelRatio);let o=e.attractDistance,n=e.getPosition(),s=t.particles.quadTree.queryCircle(n,o);for(let r of s){if(e===r||!r.options.move.attract.enable||r.destroyed||r.spawning)continue;let a=r.getPosition(),{dx:l,dy:f}=F(n,a),u=e.options.move.attract.rotate,h=l/(u.x*Hf),d=f/(u.y*Hf),p=r.size.value/e.size.value,x=fm/p;e.velocity.x-=h*p,e.velocity.y-=d*p,r.velocity.x+=h*x,r.velocity.y+=d*x}}isEnabled(e){return e.options.move.attract.enable}reset(){}}});var jf={};v(jf,{loadParticlesAttractInteraction:()=>um});async function um(i,e=!0){await i.addInteractor("particlesAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Uf(),Wf));return new o(t)},e)}var Gf=c(()=>{"use strict"});function $f(i,e,t,o,n,s){let r=W(i.options.collisions.absorb.speed*n.factor/dm,pm,o);i.size.value+=r*hm,t.size.value-=r,o<=s&&(t.size.value=0,t.destroy())}function Nf(i,e,t,o){let n=i.getRadius(),s=e.getRadius();n===void 0&&s!==void 0?i.destroy():n!==void 0&&s===void 0?e.destroy():n!==void 0&&s!==void 0&&(n>=s?$f(i,n,e,s,t,o):$f(e,s,i,n,t,o))}var hm,dm,pm,Yf=c(()=>{"use strict";_();hm=.5,dm=10,pm=0});function lo(i,e){Vt(ot(i),ot(e)),Xf(i),Xf(e)}var Xf,ms=c(()=>{"use strict";_();Xf=i=>{i.collisionMaxSpeed===void 0&&(i.collisionMaxSpeed=g(i.options.collisions.maxSpeed)),i.velocity.length>i.collisionMaxSpeed&&(i.velocity.length=i.collisionMaxSpeed)}});function Qf(i,e){!i.unbreakable&&!e.unbreakable&&lo(i,e),i.getRadius()===void 0&&e.getRadius()!==void 0?i.destroy():i.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():i.getRadius()!==void 0&&e.getRadius()!==void 0&&(i.getRadius()>=e.getRadius()?e:i).destroy()}var Zf=c(()=>{"use strict";ms()});function Kf(i,e,t,o){switch(i.options.collisions.mode){case"absorb":{Nf(i,e,t,o);break}case"bounce":{lo(i,e);break}case"destroy":{Qf(i,e);break}}}var Jf=c(()=>{"use strict";Yf();ms();Zf()});var eu={};v(eu,{Collider:()=>xs});var mm,xs,tu=c(()=>{"use strict";_();Jf();mm=2,xs=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e,t){if(e.destroyed||e.spawning)return;let o=this.container,n=e.getPosition(),s=e.getRadius(),r=o.particles.quadTree.queryCircle(n,s*mm);for(let a of r){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let l=a.getPosition(),f=a.getRadius();if(Math.abs(Math.round(n.z)-Math.round(l.z))>s+f)continue;let u=A(n,l),h=s+f;u>h||Kf(e,a,t,o.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}});var iu={};v(iu,{loadParticlesCollisionsInteraction:()=>xm});async function xm(i,e=!0){await i.addInteractor("particlesCollisions",async t=>{let{Collider:o}=await Promise.resolve().then(()=>(tu(),eu));return new o(t)},e)}var ou=c(()=>{"use strict"});var Ot,gs=c(()=>{"use strict";_();Ot=class{constructor(){this.blur=5,this.color=new S,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}});var Pt,ys=c(()=>{"use strict";_();Pt=class{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var zt,vs=c(()=>{"use strict";_();gs();ys();zt=class{constructor(){this.blink=!1,this.color=new S,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ot,this.triangles=new Pt,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=S.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}});var nu=c(()=>{"use strict"});var su=c(()=>{"use strict"});var ru=c(()=>{"use strict"});var bs,fo,au=c(()=>{"use strict";_();bs=2,fo=class extends q{constructor(e,t,o,n){super(e,t,o),this.canvasSize=n,this.canvasSize={...n}}contains(e){let{width:t,height:o}=this.canvasSize,{x:n,y:s}=e;return super.contains(e)||super.contains({x:n-t,y:s})||super.contains({x:n-t,y:s-o})||super.contains({x:n,y:s-o})}intersects(e){if(super.intersects(e))return!0;let t=e,o=e,n={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(o.radius!==void 0){let s=new q(n.x,n.y,o.radius*bs);return super.intersects(s)}else if(t.size!==void 0){let s=new N(n.x,n.y,t.size.width*bs,t.size.height*bs);return super.intersects(s)}return!1}}});var lu={};v(lu,{Linker:()=>ws});function vm(i,e,t,o,n){let{dx:s,dy:r,distance:a}=F(i,e);if(!n||a<=t)return a;let l={x:Math.abs(s),y:Math.abs(r)},f={x:Math.min(l.x,o.width-l.x),y:Math.min(l.y,o.height-l.y)};return Math.sqrt(f.x**cu+f.y**cu)}var cu,gm,uo,ym,ws,fu=c(()=>{"use strict";_();au();vs();cu=2,gm=1,uo={x:0,y:0},ym=0;ws=class extends _e{constructor(e){super(e),this._setColor=t=>{if(!t.options.links)return;let o=this.linkContainer,n=t.options.links,s=n.id===void 0?o.particles.linksColor:o.particles.linksColors.get(n.id);if(s)return;let r=n.color;s=Nt(r,n.blink,n.consent),n.id===void 0?o.particles.linksColor=s:o.particles.linksColors.set(n.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(e){if(!e.options.links)return;e.links=[];let t=e.getPosition(),o=this.container,n=o.canvas.size;if(t.x<uo.x||t.y<uo.y||t.x>n.width||t.y>n.height)return;let s=e.options.links,r=s.opacity,a=e.retina.linksDistance??ym,l=s.warp,f;l?f=new fo(t.x,t.y,a,n):f=new q(t.x,t.y,a);let u=o.particles.quadTree.query(f);for(let h of u){let d=h.options.links;if(e===h||!d?.enable||s.id!==d.id||h.spawning||h.destroyed||!h.links||e.links.some(w=>w.destination===h)||h.links.some(w=>w.destination===e))continue;let p=h.getPosition();if(p.x<uo.x||p.y<uo.y||p.x>n.width||p.y>n.height)continue;let x=vm(t,p,a,n,l&&d.warp);if(x>a)continue;let m=(gm-x/a)*r;this._setColor(e),e.links.push({destination:h,opacity:m})}}isEnabled(e){return!!e.options.links?.enable}loadParticlesOptions(e,...t){e.links||(e.links=new zt);for(let o of t)e.links.load(o?.links)}reset(){}}});var uu={};v(uu,{loadLinksInteraction:()=>bm});async function bm(i,e=!0){await i.addInteractor("particlesLinks",async t=>{let{Linker:o}=await Promise.resolve().then(()=>(fu(),lu));return new o(t)},e)}var hu=c(()=>{"use strict"});function wm(i,e,t,o){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.lineTo(o.x,o.y),i.closePath()}function du(i){let e=!1,{begin:t,end:o,maxDistance:n,context:s,canvasSize:r,width:a,backgroundMask:l,colorLine:f,opacity:u,links:h}=i;if(A(t,o)<=n)be(s,t,o),e=!0;else if(h.warp){let p,x,m={x:o.x-r.width,y:o.y},w=F(t,m);if(w.distance<=n){let y=t.y-w.dy/w.dx*t.x;p={x:0,y},x={x:r.width,y}}else{let y={x:o.x,y:o.y-r.height},k=F(t,y);if(k.distance<=n){let b=-(t.y-k.dy/k.dx*t.x)/(k.dy/k.dx);p={x:b,y:0},x={x:b,y:r.height}}else{let C={x:o.x-r.width,y:o.y-r.height},b=F(t,C);if(b.distance<=n){let O=t.y-b.dy/b.dx*t.x;p={x:-O/(b.dy/b.dx),y:O},x={x:p.x+r.width,y:p.y+r.height}}}}p&&x&&(be(s,t,p),be(s,o,x),e=!0)}if(!e)return;s.lineWidth=a,l.enable&&(s.globalCompositeOperation=l.composite),s.strokeStyle=te(f,u);let{shadow:d}=h;if(d.enable){let p=J(d.color);p&&(s.shadowBlur=d.blur,s.shadowColor=te(p))}s.stroke()}function pu(i){let{context:e,pos1:t,pos2:o,pos3:n,backgroundMask:s,colorTriangle:r,opacityTriangle:a}=i;wm(e,t,o,n),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=te(r,a),e.fill()}function _m(i){return i.sort((e,t)=>e-t),i.join("_")}function _s(i,e){let t=_m(i.map(n=>n.id)),o=e.get(t);return o===void 0&&(o=R(),e.set(t,o)),o}var mu=c(()=>{"use strict";_()});var yu={};v(yu,{LinkInstance:()=>Ms});var xu,ks,gu,km,Mm,Ms,vu=c(()=>{"use strict";_();mu();xu=0,ks=0,gu=0,km=.5,Mm=1,Ms=class{constructor(e){this.container=e,this._drawLinkLine=(t,o)=>{let n=t.options.links;if(!n?.enable)return;let s=this.container,r=s.actualOptions,a=o.destination,l=t.getPosition(),f=a.getPosition(),u=o.opacity;s.canvas.draw(h=>{let d,p=t.options.twinkle?.lines;if(p?.enable){let y=p.frequency,k=J(p.color);R()<y&&k&&(d=k,u=g(p.opacity))}if(!d){let y=n.id!==void 0?s.particles.linksColors.get(n.id):s.particles.linksColor;d=st(t,a,y)}if(!d)return;let x=t.retina.linksWidth??ks,m=t.retina.linksDistance??gu,{backgroundMask:w}=r;du({context:h,width:x,begin:l,end:f,maxDistance:m,canvasSize:s.canvas.size,links:n,backgroundMask:w,colorLine:d,opacity:u})})},this._drawLinkTriangle=(t,o,n)=>{let s=t.options.links;if(!s?.enable)return;let r=s.triangles;if(!r.enable)return;let a=this.container,l=a.actualOptions,f=o.destination,u=n.destination,h=r.opacity??(o.opacity+n.opacity)*km;h<=xu||a.canvas.draw(d=>{let p=t.getPosition(),x=f.getPosition(),m=u.getPosition(),w=t.retina.linksDistance??gu;if(A(p,x)>w||A(m,x)>w||A(m,p)>w)return;let y=J(r.color);if(!y){let k=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;y=st(t,f,k)}y&&pu({context:d,pos1:p,pos2:x,pos3:m,backgroundMask:l.backgroundMask,colorTriangle:y,opacityTriangle:h})})},this._drawTriangles=(t,o,n,s)=>{let r=n.destination;if(!(t.links?.triangles.enable&&r.options.links?.triangles.enable))return;let a=r.links?.filter(l=>{let f=this._getLinkFrequency(r,l.destination),u=0;return r.options.links&&f<=r.options.links.frequency&&s.findIndex(h=>h.destination===l.destination)>=u});if(a?.length)for(let l of a){let f=l.destination;this._getTriangleFrequency(o,r,f)>t.links.triangles.frequency||this._drawLinkTriangle(o,n,l)}},this._getLinkFrequency=(t,o)=>_s([t,o],this._freqs.links),this._getTriangleFrequency=(t,o,n)=>_s([t,o,n],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,t){let{links:o,options:n}=t;if(!o?.length)return;let s=o.filter(r=>n.links&&(n.links.frequency>=Mm||this._getLinkFrequency(t,r.destination)<=n.links.frequency));for(let r of s)this._drawTriangles(n,t,r,s),r.opacity>xu&&(t.retina.linksWidth??ks)>ks&&this._drawLinkLine(t,r)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;let t=this.container.retina.pixelRatio,{retina:o}=e,{distance:n,width:s}=e.options.links;o.linksDistance=n*t,o.linksWidth=s*t}particleDestroyed(e){e.links=[]}}});var bu={};v(bu,{LinksPlugin:()=>Cs});var Cs,wu=c(()=>{"use strict";Cs=class{constructor(){this.id="links"}async getPlugin(e){let{LinkInstance:t}=await Promise.resolve().then(()=>(vu(),yu));return new t(e)}loadOptions(){}needsPlugin(){return!0}}});var _u={};v(_u,{loadLinksPlugin:()=>Cm});async function Cm(i,e=!0){let{LinksPlugin:t}=await Promise.resolve().then(()=>(wu(),bu)),o=new t;await i.addPlugin(o,e)}var ku=c(()=>{"use strict"});var Mu={};v(Mu,{Links:()=>zt,LinksShadow:()=>Ot,LinksTriangle:()=>Pt,loadParticlesLinksInteraction:()=>Rm});async function Rm(i,e=!0){let{loadLinksInteraction:t}=await Promise.resolve().then(()=>(hu(),uu)),{loadLinksPlugin:o}=await Promise.resolve().then(()=>(ku(),_u));await t(i,e),await o(i,e)}var Cu=c(()=>{"use strict";vs();gs();ys();nu();su();ru()});var Ru={};v(Ru,{loadEasingQuadPlugin:()=>Om});async function Om(){Tt("ease-in-quad",i=>i**2),Tt("ease-out-quad",i=>1-(1-i)**2),Tt("ease-in-out-quad",i=>i<.5?2*i**2:1-(-2*i+2)**2/2),await Promise.resolve()}var Ou=c(()=>{"use strict";_()});var Dt,Rs=c(()=>{"use strict";Dt=["emoji"]});function Pu(i){let{context:e,particle:t,radius:o,opacity:n}=i,s=t.emojiData,r=2,a=o*r,l=e.globalAlpha;s&&(e.globalAlpha=n,e.drawImage(s,-o,-o,a,a),e.globalAlpha=l)}var zu=c(()=>{"use strict"});var Su={};v(Su,{EmojiDrawer:()=>Os});var Du,Os,Iu=c(()=>{"use strict";_();zu();Rs();Du='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Os=class{constructor(){this._emojiShapeDict=new Map}destroy(){for(let[e,t]of this._emojiShapeDict)t instanceof ImageBitmap&&(t?.close(),this._emojiShapeDict.delete(e))}draw(e){Pu(e)}async init(e){let t=e.actualOptions;if(!Dt.find(s=>z(s,t.particles.shape.type)))return;let o=[Fo(Du)],n=Dt.map(s=>t.particles.shape.options[s]).find(s=>!!s);n&&V(n,s=>{s.font&&o.push(Fo(s.font))}),await Promise.all(o)}particleDestroy(e){delete e.emojiData}particleInit(e,t){let n=t.shapeData;if(!n?.value)return;let s=Q(n.value,t.randomIndexData),r=n.font??Du;if(!s)return;let a=`${s}_${r}`,l=this._emojiShapeDict.get(a);if(l){t.emojiData=l;return}let f=X(t.size.value)*2,u,h=X(t.size.value);if(typeof OffscreenCanvas<"u"){let d=new OffscreenCanvas(f,f),p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d.transferToImageBitmap()}else{let d=document.createElement("canvas");d.width=f,d.height=f;let p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d}this._emojiShapeDict.set(a,u),t.emojiData=u}}});var Eu={};v(Eu,{loadEmojiShape:()=>Pm});async function Pm(i,e=!0){let{EmojiDrawer:t}=await Promise.resolve().then(()=>(Iu(),Su));await i.addShape(Dt,new t,e)}var Tu=c(()=>{"use strict";Rs()});var Lu={};v(Lu,{downloadSvgImage:()=>Ps,loadImage:()=>St,replaceImageColor:()=>zs});function Im(i,e,t){let{svgData:o}=i;if(!o)return"";let n=ve(e,t);if(o.includes("fill"))return o.replace(Sm,()=>n);let s=o.indexOf(">");return`${o.substring(zm,s)} fill="${n}"${o.substring(s)}`}async function St(i){return new Promise(e=>{i.loading=!0;let t=new Image;i.element=t,t.addEventListener("load",()=>{i.loading=!1,e()}),t.addEventListener("error",()=>{i.element=void 0,i.error=!0,i.loading=!1,fe().error(`${G} loading image: ${i.source}`),e()}),t.src=i.source})}async function Ps(i){if(i.type!=="svg"){await St(i);return}i.loading=!0;let e=await fetch(i.source);e.ok?i.svgData=await e.text():(fe().error(`${G} Image not found`),i.error=!0),i.loading=!1}function zs(i,e,t,o){let n=Im(i,t,o.opacity?.value??Dm),s={color:t,gif:e.gif,data:{...i,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(r=>{let a=new Blob([n],{type:"image/svg+xml"}),l=URL||window.URL||window.webkitURL||window,f=l.createObjectURL(a),u=new Image;u.addEventListener("load",()=>{s.loaded=!0,s.element=u,r(s),l.revokeObjectURL(f)});let h=async()=>{l.revokeObjectURL(f);let d={...i,error:!1,loading:!0};await St(d),s.loaded=!0,s.element=d.element,r(s)};u.addEventListener("error",()=>void h()),u.src=f})}var zm,Dm,Sm,ho=c(()=>{"use strict";_();zm=0,Dm=1,Sm=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi});var po,Ds,Fu=c(()=>{"use strict";po=[0,4,2,1],Ds=[8,8,4,2]});var mo,Au=c(()=>{"use strict";mo=class{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){let t=this.data.slice(this.pos,this.pos+e);return this.pos+=t.length,t.reduce((o,n)=>o+String.fromCharCode(n),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",t=0,o=0,n=0;do{t=this.data[this.pos++];for(let s=t;--s>=o;e+=String.fromCharCode(this.data[this.pos++]));}while(t!==n);return e}readSubBlocksBin(){let e=this.data[this.pos],t=0,o=0,n=1;for(let r=0;e!==o;r+=e+n,e=this.data[this.pos+r])t+=e;let s=new Uint8Array(t);e=this.data[this.pos++];for(let r=0;e!==o;e=this.data[this.pos++])for(let a=e;--a>=o;s[r++]=this.data[this.pos++]);return s}skipSubBlocks(){for(let e=1,t=0;this.data[this.pos]!==t;this.pos+=this.data[this.pos]+e);this.pos++}}});var Uu={};v(Uu,{decodeGIF:()=>Wu,drawGif:()=>Is,getGIFLoopAmount:()=>Hu,loadGifImage:()=>Bm});function Vu(i,e){let t=[];for(let o=0;o<e;o++)t.push({r:i.data[i.pos],g:i.data[i.pos+1],b:i.data[i.pos+2]}),i.pos+=3;return t}function Lm(i,e,t,o){switch(i.nextByte()){case 249:{let n=e.frames[t(!1)];i.pos++;let s=i.nextByte();n.GCreserved=(s&224)>>>5,n.disposalMethod=(s&28)>>>2,n.userInputDelayFlag=(s&2)===2;let r=(s&1)===1;n.delayTime=i.nextTwoBytes()*10;let a=i.nextByte();r&&o(a),i.pos++;break}case 255:{i.pos++;let n={identifier:i.getString(8),authenticationCode:i.getString(3),data:i.readSubBlocksBin()};e.applicationExtensions.push(n);break}case 254:{e.comments.push([t(!1),i.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");i.pos++,e.frames[t(!1)].plainTextData={left:i.nextTwoBytes(),top:i.nextTwoBytes(),width:i.nextTwoBytes(),height:i.nextTwoBytes(),charSize:{width:i.nextTwoBytes(),height:i.nextTwoBytes()},foregroundColor:i.nextByte(),backgroundColor:i.nextByte(),text:i.readSubBlocks()};break}default:i.skipSubBlocks();break}}async function Fm(i,e,t,o,n,s){let r=e.frames[o(!0)];r.left=i.nextTwoBytes(),r.top=i.nextTwoBytes(),r.width=i.nextTwoBytes(),r.height=i.nextTwoBytes();let a=i.nextByte(),l=(a&128)===128,f=(a&64)===64;r.sortFlag=(a&32)===32,r.reserved=(a&24)>>>3;let u=1<<(a&7)+1;l&&(r.localColorTable=Vu(i,u));let h=y=>{let{r:k,g:C,b}=(l?r.localColorTable:e.globalColorTable)[y];return y!==n(null)?{r:k,g:C,b,a:255}:{r:k,g:C,b,a:t?~~((k+C+b)/3):0}},d=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(y){if(y instanceof DOMException&&y.name==="IndexSizeError")return null;throw y}})();if(d==null)throw new EvalError("GIF frame size is to large");let p=i.nextByte(),x=i.readSubBlocksBin(),m=1<<p,w=(y,k)=>{let C=y>>>3,b=y&7;return(x[C]+(x[C+1]<<8)+(x[C+2]<<16)&(1<<k)-1<<b)>>>b};if(f){for(let y=0,k=p+1,C=0,b=[[0]],O=0;O<4;O++){if(po[O]<r.height){let P=0,Y=0,T=!1;for(;!T;){let L=y;if(y=w(C,k),C+=k+1,y===m){k=p+1,b.length=m+2;for(let Z=0;Z<b.length;Z++)b[Z]=Z<m?[Z]:[]}else{y>=b.length?b.push(b[L].concat(b[L][0])):L!==m&&b.push(b[L].concat(b[y][0]));for(let Z of b[y]){let{r:oe,g:It,b:Ks,a:Js}=h(Z);d.data.set([oe,It,Ks,Js],po[O]*r.width+Ds[O]*Y+P%(r.width*4)),P+=4}b.length===1<<k&&k<12&&k++}P===r.width*4*(Y+1)&&(Y++,po[O]+Ds[O]*Y>=r.height&&(T=!0))}}s?.(i.pos/(i.data.length-1),o(!1)+1,d,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=d,r.bitmap=await createImageBitmap(d)}else{let y=0,k=p+1,C=0,b=-4,O=!1,P=[[0]];for(;!O;){let Y=y;if(y=w(C,k),C+=k,y===m){k=p+1,P.length=m+2;for(let T=0;T<P.length;T++)P[T]=T<m?[T]:[]}else{if(y===m+1){O=!0;break}y>=P.length?P.push(P[Y].concat(P[Y][0])):Y!==m&&P.push(P[Y].concat(P[y][0]));for(let T of P[y]){let{r:L,g:Z,b:oe,a:It}=h(T);d.data.set([L,Z,oe,It],b+=4)}P.length>=1<<k&&k<12&&k++}}r.image=d,r.bitmap=await createImageBitmap(d),s?.((i.pos+1)/i.data.length,o(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function Am(i,e,t,o,n,s){switch(i.nextByte()){case 59:return!0;case 44:await Fm(i,e,t,o,n,s);break;case 33:Lm(i,e,o,n);break;default:throw new EvalError("undefined block found")}return!1}function Hu(i){for(let e of i.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}async function Wu(i,e,t){t||(t=!1);let o=await fetch(i);if(!o.ok&&o.status===404)throw new EvalError("file not found");let n=await o.arrayBuffer(),s={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new mo(new Uint8ClampedArray(n));if(r.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");s.width=r.nextTwoBytes(),s.height=r.nextTwoBytes();let a=r.nextByte(),l=(a&128)===128;s.colorRes=(a&112)>>>4,s.sortFlag=(a&8)===8;let f=1<<(a&7)+1,u=r.nextByte();s.pixelAspectRatio=r.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),l&&(s.globalColorTable=Vu(r,f));let h=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(b){if(b instanceof DOMException&&b.name==="IndexSizeError")return null;throw b}})();if(h==null)throw new Error("GIF frame size is to large");let{r:d,g:p,b:x}=s.globalColorTable[u];h.data.set(l?[d,p,x,255]:[0,0,0,0]);for(let b=4;b<h.data.length;b*=2)h.data.copyWithin(b,0,b);s.backgroundImage=h;let m=-1,w=!0,y=-1,k=b=>(b&&(w=!0),m),C=b=>(b!=null&&(y=b),y);try{do w&&(s.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}),m++,y=-1,w=!1);while(!await Am(r,s,t,k,C,e));s.frames.length--;for(let b of s.frames){if(b.userInputDelayFlag&&b.delayTime===0){s.totalTime=1/0;break}s.totalTime+=b.delayTime}return s}catch(b){throw b instanceof EvalError?new Error(`error while parsing frame ${m} "${b.message}"`):b}}function Is(i){let{context:e,radius:t,particle:o,delta:n}=i,s=o.image;if(!s?.gifData||!s.gif)return;let r=new OffscreenCanvas(s.gifData.width,s.gifData.height),a=r.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ie.x,ie.y,r.width,r.height),o.gifLoopCount===void 0&&(o.gifLoopCount=s.gifLoopCount??Ss);let l=o.gifFrame??Em,f={x:-s.gifData.width*Bu,y:-s.gifData.height*Bu},u=s.gifData.frames[l];if(o.gifTime===void 0&&(o.gifTime=Tm),!!u.bitmap){switch(e.scale(t/s.gifData.width,t/s.gifData.height),u.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height);break;case 1:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y);break;case 2:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),s.gifData.globalColorTable.length?a.putImageData(s.gifData.backgroundImage,f.x,f.y):a.putImageData(s.gifData.frames[qu].image,f.x+u.left,f.y+u.top);break;case 3:{let h=a.getImageData(ie.x,ie.y,r.width,r.height);a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),a.putImageData(h,ie.x,ie.y)}break}if(o.gifTime+=n.value,o.gifTime>u.delayTime){if(o.gifTime-=u.delayTime,++l>=s.gifData.frames.length){if(--o.gifLoopCount<=Ss)return;l=qu,a.clearRect(ie.x,ie.y,r.width,r.height)}o.gifFrame=l}e.scale(s.gifData.width/t,s.gifData.height/t)}}async function Bm(i){if(i.type!=="gif"){let{loadImage:e}=await Promise.resolve().then(()=>(ho(),Lu));await e(i);return}i.loading=!0;try{i.gifData=await Wu(i.source),i.gifLoopCount=Hu(i.gifData)??Ss,i.gifLoopCount||(i.gifLoopCount=1/0)}catch{i.error=!0}i.loading=!1}var ie,Em,Bu,Tm,qu,Ss,Es=c(()=>{"use strict";Fu();Au();ie={x:0,y:0},Em=0,Bu=.5,Tm=0,qu=0,Ss=0});var xo,ju=c(()=>{"use strict";xo=class{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}});var Gu={};v(Gu,{ImagePreloaderPlugin:()=>Ts});var Ts,$u=c(()=>{"use strict";ju();Ts=class{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,t){if(!t?.preload)return;e.preload||(e.preload=[]);let o=e.preload;for(let n of t.preload){let s=o.find(r=>r.name===n.name||r.src===n.src);if(s)s.load(n);else{let r=new xo;r.load(n),o.push(r)}}}needsPlugin(){return!0}}});var Nu={};v(Nu,{ImageDrawer:()=>Ls});var qm,Vm,Hm,Wm,Ls,Yu=c(()=>{"use strict";_();ho();Es();qm=2,Vm=1,Hm=12,Wm=1,Ls=class{constructor(e){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw new Error(`${G} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){let{context:t,radius:o,particle:n,opacity:s}=e,r=n.image,a=r?.element;if(r){if(t.globalAlpha=s,r.gif&&r.gifData)Is(e);else if(a){let l=r.ratio,f={x:-o,y:-o},u=o*qm;t.drawImage(a,f.x,f.y,u,u/l)}t.globalAlpha=Vm}}getSidesCount(){return Hm}async init(e){let t=e.actualOptions;if(!(!t.preload||!this._engine.loadImage))for(let o of t.preload)await this._engine.loadImage(o)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);let t=e.shapeData;if(!t)return;this._engine.images.find(n=>n.name===t.name||n.source===t.src)||this.loadImageShape(t).then(()=>{this.loadShape(e)})}particleInit(e,t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);let o=this._engine.images,n=t.shapeData;if(!n)return;let s=t.getFillColor(),r=o.find(l=>l.name===n.name||l.source===n.src);if(!r)return;let a=n.replaceColor??r.replaceColor;if(r.loading){setTimeout(()=>{this.particleInit(e,t)});return}(async()=>{let l;r.svgData&&s?l=await zs(r,n,s,t):l={color:s,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:r.ratio??Wm,replaceColor:a,source:n.src},l.ratio||(l.ratio=1);let f=n.fill??t.shapeFill,u=n.close??t.shapeClose,h={image:l,fill:f,close:u};t.image=h.image,t.shapeFill=h.fill,t.shapeClose=h.close})()}}});var Xu={};v(Xu,{loadImageShape:()=>Gm});function jm(i){i.loadImage||(i.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${G} no image source provided`);if(i.images||(i.images=[]),!i.images.find(t=>t.name===e.name||t.source===e.src))try{let t={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-Um),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};i.images.push(t);let o;if(e.gif){let{loadGifImage:n}=await Promise.resolve().then(()=>(Es(),Uu));o=n}else o=e.replaceColor?Ps:St;await o(t)}catch{throw new Error(`${G} ${e.name??e.src} not found`)}})}async function Gm(i,e=!0){jm(i);let{ImagePreloaderPlugin:t}=await Promise.resolve().then(()=>($u(),Gu)),{ImageDrawer:o}=await Promise.resolve().then(()=>(Yu(),Nu)),n=new t(i);await i.addPlugin(n,e),await i.addShape(["image","images"],new o(i),e)}var Um,Qu=c(()=>{"use strict";ho();_();Um=3});function Zu(i){let{context:e,particle:t,radius:o}=i,n=t.shapeData,s=0;e.moveTo(-o,s),e.lineTo(o,s),e.lineCap=n?.cap??"butt"}var Ku=c(()=>{"use strict"});var Ju={};v(Ju,{LineDrawer:()=>Fs});var $m,Fs,eh=c(()=>{"use strict";Ku();$m=1,Fs=class{draw(e){Zu(e)}getSidesCount(){return $m}}});var th={};v(th,{loadLineShape:()=>Nm});async function Nm(i,e=!0){let{LineDrawer:t}=await Promise.resolve().then(()=>(eh(),Ju));await i.addShape("line",new t,e)}var ih=c(()=>{"use strict"});function oh(i,e,t){let{context:o}=i,n=t.count.numerator*t.count.denominator,s=t.count.numerator/t.count.denominator,r=Ym*(s-Xm)/s,a=Math.PI-le(r);if(o){o.beginPath(),o.translate(e.x,e.y),o.moveTo(go.x,go.y);for(let l=0;l<n;l++)o.lineTo(t.length,go.y),o.translate(t.length,go.y),o.rotate(a)}}var Ym,go,Xm,nh=c(()=>{"use strict";_();Ym=180,go={x:0,y:0},Xm=2});var Qm,Ze,As=c(()=>{"use strict";_();nh();Qm=5,Ze=class{draw(e){let{particle:t,radius:o}=e,n=this.getCenter(t,o),s=this.getSidesData(t,o);oh(e,n,s)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??Qm))}}});var ah={};v(ah,{PolygonDrawer:()=>Bs});var sh,rh,Zm,Bs,ch=c(()=>{"use strict";As();sh=3.5,rh=2.66,Zm=3,Bs=class extends Ze{getCenter(e,t){return{x:-t/(e.sides/sh),y:-t/(rh/sh)}}getSidesData(e,t){let o=e.sides;return{count:{denominator:1,numerator:o},length:t*rh/(o/Zm)}}}});var lh={};v(lh,{TriangleDrawer:()=>qs});var Km,Jm,ex,qs,fh=c(()=>{"use strict";As();Km=1.66,Jm=3,ex=2,qs=class extends Ze{getCenter(e,t){return{x:-t,y:t/Km}}getSidesCount(){return Jm}getSidesData(e,t){let o=t*ex;return{count:{denominator:2,numerator:3},length:o}}}});var dh={};v(dh,{loadGenericPolygonShape:()=>uh,loadPolygonShape:()=>tx,loadTriangleShape:()=>hh});async function uh(i,e=!0){let{PolygonDrawer:t}=await Promise.resolve().then(()=>(ch(),ah));await i.addShape("polygon",new t,e)}async function hh(i,e=!0){let{TriangleDrawer:t}=await Promise.resolve().then(()=>(fh(),lh));await i.addShape("triangle",new t,e)}async function tx(i,e=!0){await uh(i,e),await hh(i,e)}var ph=c(()=>{"use strict"});function mh(i){let{context:e,radius:t}=i,o=t/ix,n=o*ox;e.rect(-o,-o,n,n)}var ix,ox,xh=c(()=>{"use strict";ix=Math.sqrt(2),ox=2});var gh={};v(gh,{SquareDrawer:()=>Vs});var nx,Vs,yh=c(()=>{"use strict";xh();nx=4,Vs=class{draw(e){mh(e)}getSidesCount(){return nx}}});var vh={};v(vh,{loadSquareShape:()=>sx});async function sx(i,e=!0){let{SquareDrawer:t}=await Promise.resolve().then(()=>(yh(),gh));await i.addShape(["edge","square"],new t,e)}var bh=c(()=>{"use strict"});function wh(i){let{context:e,particle:t,radius:o}=i,n=t.sides,s=t.starInset??2;e.moveTo(Ke.x,Ke.y-o);for(let r=0;r<n;r++)e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o*s),e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o)}var Ke,_h=c(()=>{"use strict";Ke={x:0,y:0}});var kh={};v(kh,{StarDrawer:()=>Hs});var rx,ax,Hs,Mh=c(()=>{"use strict";_();_h();rx=2,ax=5,Hs=class{draw(e){wh(e)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??ax))}particleInit(e,t){let o=t.shapeData;t.starInset=g(o?.inset??rx)}}});var Ch={};v(Ch,{loadStarShape:()=>cx});async function cx(i,e=!0){let{StarDrawer:t}=await Promise.resolve().then(()=>(Mh(),kh));await i.addShape("star",new t,e)}var Rh=c(()=>{"use strict"});var yo,Oh=c(()=>{"use strict";_();yo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var vo,Ph=c(()=>{"use strict";_();vo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var bo,zh=c(()=>{"use strict";Oh();Ph();bo=class{constructor(){this.count=0,this.delay=new yo,this.duration=new vo}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}});function Ih(i,e,t){if(!i.life)return;let o=i.life,n=!1;if(i.spawning)if(o.delayTime+=e.value,o.delayTime>=i.life.delay)n=!0,i.spawning=!1,o.delayTime=Je,o.time=Je;else return;if(o.duration===lx||i.spawning||(n?o.time=Je:o.time+=e.value,o.time<o.duration))return;if(o.time=Je,i.life.count>Dh&&i.life.count--,i.life.count===Dh){i.destroy();return}let s=M(Sh,t.width),r=M(Sh,t.width);i.position.x=$(s),i.position.y=$(r),i.spawning=!0,o.delayTime=Je,o.time=Je,i.reset();let a=i.options.life;a&&(o.delay=g(a.delay.value)*1e3,o.duration=g(a.duration.value)*1e3)}var Je,lx,Dh,Sh,Eh=c(()=>{"use strict";_();Je=0,lx=-1,Dh=0,Sh=0});var Fh={};v(Fh,{LifeUpdater:()=>Ws});var Te,Th,Lh,Ws,Ah=c(()=>{"use strict";_();zh();Eh();Te=0,Th=1,Lh=-1,Ws=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=o.life;n&&(e.life={delay:t.retina.reduceFactor?g(n.delay.value)*(n.delay.sync?Th:R())/t.retina.reduceFactor*1e3:Te,delayTime:Te,duration:t.retina.reduceFactor?g(n.duration.value)*(n.duration.sync?Th:R())/t.retina.reduceFactor*1e3:Te,time:Te,count:n.count},e.life.duration<=Te&&(e.life.duration=Lh),e.life.count<=Te&&(e.life.count=Lh),e.life&&(e.spawning=e.life.delay>Te))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new bo);for(let o of t)e.life.load(o?.life)}update(e,t){!this.isEnabled(e)||!e.life||Ih(e,t,this.container.canvas.size)}}});var Bh={};v(Bh,{loadLifeUpdater:()=>fx});async function fx(i,e=!0){await i.addParticleUpdater("life",async t=>{let{LifeUpdater:o}=await Promise.resolve().then(()=>(Ah(),Fh));return new o(t)},e)}var qh=c(()=>{"use strict"});var wo,Vh=c(()=>{"use strict";_();wo=class{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}});var _o,Hh=c(()=>{"use strict";_();Vh();_o=class extends ee{constructor(){super(),this.animation=new wo,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}});var Uh={};v(Uh,{RotateUpdater:()=>Us});var Wh,ux,hx,dx,Us,jh=c(()=>{"use strict";_();Hh();Wh=2,ux=Math.PI*Wh,hx=1,dx=360,Us=class{constructor(e){this.container=e}init(e){let t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:le(g(t.value)),min:0,max:ux},e.pathRotation=t.path;let o=t.direction;switch(o==="random"&&(o=Math.floor(R()*Wh)>0?"counter-clockwise":"clockwise"),o){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}let n=t.animation;n.enable&&(e.rotate.decay=hx-g(n.decay),e.rotate.velocity=g(n.speed)/dx*this.container.retina.reduceFactor,n.sync||(e.rotate.velocity*=R())),e.rotation=e.rotate.value}isEnabled(e){let t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new _o);for(let o of t)e.rotate.load(o?.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(Ue(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}});var Gh={};v(Gh,{loadRotateUpdater:()=>px});async function px(i,e=!0){await i.addParticleUpdater("rotate",async t=>{let{RotateUpdater:o}=await Promise.resolve().then(()=>(jh(),Uh));return new o(t)},e)}var $h=c(()=>{"use strict"});var Nh={};v(Nh,{StrokeColorUpdater:()=>js});var mx,js,Yh=c(()=>{"use strict";_();mx=1,js=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=Q(o.stroke,e.id,o.reduceDuplicates);e.strokeWidth=g(n.width)*t.retina.pixelRatio,e.strokeOpacity=g(n.opacity??mx),e.strokeAnimation=n.color?.animation;let s=ge(n.color)??e.getFillColor();s&&(e.strokeColor=Yt(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){let t=e.strokeAnimation,{strokeColor:o}=e;return!e.destroyed&&!e.spawning&&!!t&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable)}update(e,t){this.isEnabled(e)&&Xt(e.strokeColor,t)}}});var Xh={};v(Xh,{loadStrokeColorUpdater:()=>xx});async function xx(i,e=!0){await i.addParticleUpdater("strokeColor",async t=>{let{StrokeColorUpdater:o}=await Promise.resolve().then(()=>(Yh(),Nh));return new o(t)},e)}var Qh=c(()=>{"use strict"});function Jh(i){let e=i.initialPosition,{dx:t,dy:o}=F(e,i.position),n=Math.abs(t),s=Math.abs(o),{maxDistance:r}=i.retina,a=r.horizontal,l=r.vertical;if(!a&&!l)return;let f=(a&&n>=a)??!1,u=(l&&s>=l)??!1;if((f||u)&&!i.misplaced)i.misplaced=!!a&&n>a||!!l&&s>l,a&&(i.velocity.x=i.velocity.y*Gs-i.velocity.x),l&&(i.velocity.y=i.velocity.x*Gs-i.velocity.y);else if((!a||n<a)&&(!l||s<l)&&i.misplaced)i.misplaced=!1;else if(i.misplaced){let h=i.position,d=i.velocity;a&&(h.x<e.x&&d.x<Le||h.x>e.x&&d.x>Le)&&(d.x*=-R()),l&&(h.y<e.y&&d.y<Le||h.y>e.y&&d.y>Le)&&(d.y*=-R())}}function ed(i,e,t,o,n,s){yx(i,s);let r=i.gravity,a=r?.enable&&r.inverse?-de:de;n&&t&&(i.velocity.x+=n*s.factor/(Zh*t)),r?.enable&&t&&(i.velocity.y+=a*(r.acceleration*s.factor)/(Zh*t));let l=i.moveDecay;i.velocity.multTo(l);let f=i.velocity.mult(t);r?.enable&&o>Le&&(!r.inverse&&f.y>=Le&&f.y>=o||r.inverse&&f.y<=Le&&f.y<=-o)&&(f.y=a*o,t&&(i.velocity.y=f.y/t));let u=i.options.zIndex,h=(de-i.zIndexFactor)**u.velocityRate;f.multTo(h);let{position:d}=i;d.addTo(f),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function td(i,e){let t=i.container;if(!i.spin)return;let o={x:i.spin.direction==="clockwise"?Math.cos:Math.sin,y:i.spin.direction==="clockwise"?Math.sin:Math.cos};i.position.x=i.spin.center.x+i.spin.radius*o.x(i.spin.angle),i.position.y=i.spin.center.y+i.spin.radius*o.y(i.spin.angle),i.spin.radius+=i.spin.acceleration;let n=Math.max(t.canvas.size.width,t.canvas.size.height),s=n*Gs;i.spin.radius>s?(i.spin.radius=s,i.spin.acceleration*=-de):i.spin.radius<Kh&&(i.spin.radius=Kh,i.spin.acceleration*=-de),i.spin.angle+=e*gx*(de-i.spin.radius/n)}function yx(i,e){let t=i.options,o=t.move.path;if(!o.enable)return;if(i.lastPathTime<=i.pathDelay){i.lastPathTime+=e.value;return}let s=i.pathGenerator?.generate(i,e);s&&i.velocity.addTo(s),o.clamp&&(i.velocity.x=W(i.velocity.x,-de,de),i.velocity.y=W(i.velocity.y,-de,de)),i.lastPathTime-=i.pathDelay}function id(i){return i.slow.inRange?i.slow.factor:de}function od(i){let e=i.container,t=i.options,o=t.move.spin;if(!o.enable)return;let n=o.position??{x:50,y:50},s=.01,r={x:n.x*s*e.canvas.size.width,y:n.y*s*e.canvas.size.height},a=i.getPosition(),l=A(a,r),f=g(o.acceleration);i.retina.spinAcceleration=f*e.retina.pixelRatio;let u=0;i.spin={center:r,direction:i.velocity.x>=u?"clockwise":"counter-clockwise",angle:i.velocity.angle,radius:l,acceleration:i.retina.spinAcceleration}}var Gs,Le,de,Zh,Kh,gx,nd=c(()=>{"use strict";_();Gs=.5,Le=0,de=1,Zh=60,Kh=0,gx=.01});var sd={};v(sd,{BaseMover:()=>$s});var vx,bx,wx,$s,rd=c(()=>{"use strict";_();nd();vx=2,bx=1,wx=1,$s=class{init(e){let t=e.options,o=t.move.gravity;e.gravity={enable:o.enable,acceleration:g(o.acceleration),inverse:o.inverse},od(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){let o=e.options,n=o.move;if(!n.enable)return;let s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=g(n.speed)*r,e.retina.moveDrift??=g(e.options.move.drift)*r;let a=id(e),l=e.retina.moveSpeed*s.retina.reduceFactor,f=e.retina.moveDrift,u=X(o.size.value)*r,h=n.size?e.getRadius()/u:bx,d=t.factor||wx,p=l*h*a*d/vx,x=e.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?td(e,p):ed(e,n,p,x,f,t),Jh(e)}}});var ad={};v(ad,{loadBaseMover:()=>_x});async function _x(i,e=!0){await i.addMover("base",async()=>{let{BaseMover:t}=await Promise.resolve().then(()=>(rd(),sd));return new t},e)}var cd=c(()=>{"use strict"});function fd(i){let{context:e,particle:t,radius:o}=i;t.circleRange||(t.circleRange={min:Mx,max:kx});let n=t.circleRange;e.arc(ld.x,ld.y,o,n.min,n.max,!1)}var kx,Mx,ld,ud=c(()=>{"use strict";kx=Math.PI*2,Mx=0,ld={x:0,y:0}});var dd={};v(dd,{CircleDrawer:()=>Ns});var Cx,Rx,hd,Ns,pd=c(()=>{"use strict";_();ud();Cx=12,Rx=360,hd=0,Ns=class{draw(e){fd(e)}getSidesCount(){return Cx}particleInit(e,t){let o=t.shapeData,n=o?.angle??{max:Rx,min:hd};t.circleRange=xe(n)?{min:le(n.min),max:le(n.max)}:{min:hd,max:le(n)}}}});var md={};v(md,{loadCircleShape:()=>Ox});async function Ox(i,e=!0){let{CircleDrawer:t}=await Promise.resolve().then(()=>(pd(),dd));await i.addShape("circle",new t,e)}var xd=c(()=>{"use strict"});var gd={};v(gd,{ColorUpdater:()=>Ys});var Ys,yd=c(()=>{"use strict";_();Ys=class{constructor(e){this.container=e}init(e){let t=ge(e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=Yt(t,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){let{h:t,s:o,l:n}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&(s?.h.value!==void 0&&t.enable||s?.s.value!==void 0&&o.enable||s?.l.value!==void 0&&n.enable)}update(e,t){Xt(e.color,t)}}});var vd={};v(vd,{loadColorUpdater:()=>Px});async function Px(i,e=!0){await i.addParticleUpdater("color",async t=>{let{ColorUpdater:o}=await Promise.resolve().then(()=>(yd(),gd));return new o(t)},e)}var bd=c(()=>{"use strict"});var wd={};v(wd,{OpacityUpdater:()=>Xs});var Xs,_d=c(()=>{"use strict";_();Xs=class{constructor(e){this.container=e}init(e){let t=e.options.opacity,o=1;e.opacity=Ht(t,o);let n=t.animation;n.enable&&(e.opacity.velocity=g(n.speed)/100*this.container.retina.reduceFactor,n.sync||(e.opacity.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){!this.isEnabled(e)||!e.opacity||Ue(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}});var kd={};v(kd,{loadOpacityUpdater:()=>zx});async function zx(i,e=!0){await i.addParticleUpdater("opacity",async t=>{let{OpacityUpdater:o}=await Promise.resolve().then(()=>(_d(),wd));return new o(t)},e)}var Md=c(()=>{"use strict"});function Cd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.right<et&&i.direction==="left"?i.particle.position.x=i.size+i.offset.x:i.bounds.left>i.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);let e=i.particle.velocity.x,t=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&e>ko||i.direction==="left"&&i.bounds.left<=et&&e<ko){let n=g(i.particle.options.bounce.horizontal.value);i.particle.velocity.x*=-n,t=!0}if(!t)return;let o=i.offset.x+i.size;i.bounds.right>=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-o:i.bounds.left<=et&&i.direction==="left"&&(i.particle.position.x=o),i.outMode==="split"&&i.particle.destroy()}function Rd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottom<et&&i.direction==="top"?i.particle.position.y=i.size+i.offset.y:i.bounds.top>i.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);let e=i.particle.velocity.y,t=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&e>ko||i.direction==="top"&&i.bounds.top<=et&&e<ko){let n=g(i.particle.options.bounce.vertical.value);i.particle.velocity.y*=-n,t=!0}if(!t)return;let o=i.offset.y+i.size;i.bounds.bottom>=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-o:i.bounds.top<=et&&i.direction==="top"&&(i.particle.position.y=o),i.outMode==="split"&&i.particle.destroy()}var ko,et,Od=c(()=>{"use strict";_();ko=0,et=0});var Mo,Pd=c(()=>{"use strict";_();Od();Mo=class{constructor(e){this.container=e,this.modes=["bounce","split"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container,r=!1;for(let[,d]of s.plugins)if(d.particleBounce!==void 0&&(r=d.particleBounce(e,o,t)),r)break;if(r)return;let a=e.getPosition(),l=e.offset,f=e.getRadius(),u=ye(a,f),h=s.canvas.size;Cd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f}),Rd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f})}}});var Co,Ro,zd=c(()=>{"use strict";_();Co=0,Ro=class{constructor(e){this.container=e,this.modes=["destroy"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"normal":case"outside":if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;break;case"inside":{let{dx:r,dy:a}=F(e.position,e.moveCenter),{x:l,y:f}=e.velocity;if(l<Co&&r>e.moveCenter.radius||f<Co&&a>e.moveCenter.radius||l>=Co&&r<-e.moveCenter.radius||f>=Co&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}});var Oo,Po,Dd=c(()=>{"use strict";_();Oo=0,Po=class{constructor(e){this.container=e,this.modes=["none"]}update(e,t,o,n){if(!this.modes.includes(n)||((e.options.move.distance.horizontal&&(t==="left"||t==="right"))??(e.options.move.distance.vertical&&(t==="top"||t==="bottom"))))return;let s=e.options.move.gravity,r=this.container,a=r.canvas.size,l=e.getRadius();if(s.enable){let f=e.position;(!s.inverse&&f.y>a.height+l&&t==="bottom"||s.inverse&&f.y<-l&&t==="top")&&r.particles.remove(e)}else{if(e.velocity.y>Oo&&e.position.y<=a.height+l||e.velocity.y<Oo&&e.position.y>=-l||e.velocity.x>Oo&&e.position.x<=a.width+l||e.velocity.x<Oo&&e.position.x>=-l)return;Ve(e.position,r.canvas.size,I.origin,l,t)||r.particles.remove(e)}}}});var zo,Do,So,Sd=c(()=>{"use strict";_();zo=0,Do=0,So=class{constructor(e){this.container=e,this.modes=["out"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"inside":{let{x:r,y:a}=e.velocity,l=I.origin;l.length=e.moveCenter.radius,l.angle=e.velocity.angle+Math.PI,l.addTo(I.create(e.moveCenter));let{dx:f,dy:u}=F(e.position,l);if(r<=zo&&f>=Do||a<=zo&&u>=Do||r>=zo&&f<=Do||a>=zo&&u<=Do)return;e.position.x=Math.floor($({min:0,max:s.canvas.size.width})),e.position.y=Math.floor($({min:0,max:s.canvas.size.height}));let{dx:h,dy:d}=F(e.position,e.moveCenter);e.direction=Math.atan2(-d,-h),e.velocity.angle=e.direction;break}default:{if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;switch(e.outType){case"outside":{e.position.x=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;let{dx:r,dy:a}=F(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,r),e.velocity.angle=e.direction);break}case"normal":{let r=e.options.move.warp,a=s.canvas.size,l={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},f=e.getRadius(),u=ye(e.position,f);t==="right"&&u.left>a.width+e.offset.x?(e.position.x=l.left,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)):t==="left"&&u.right<-e.offset.x&&(e.position.x=l.right,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)),t==="bottom"&&u.top>a.height+e.offset.y?(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.top,e.initialPosition.y=e.position.y):t==="top"&&u.bottom<-e.offset.y&&(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.bottom,e.initialPosition.y=e.position.y);break}}break}}}}});var Id={};v(Id,{OutOfCanvasUpdater:()=>Qs});var Io,Qs,Ed=c(()=>{"use strict";Pd();zd();Dd();Sd();Io=(i,e)=>i.default===e||i.bottom===e||i.left===e||i.right===e||i.top===e,Qs=class{constructor(e){this._updateOutMode=(t,o,n,s)=>{for(let r of this.updaters)r.update(t,s,o,n)},this.container=e,this.updaters=[]}init(e){this.updaters=[];let t=e.options.move.outModes;Io(t,"bounce")?this.updaters.push(new Mo(this.container)):Io(t,"out")?this.updaters.push(new So(this.container)):Io(t,"destroy")?this.updaters.push(new Ro(this.container)):Io(t,"none")&&this.updaters.push(new Po(this.container))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){let o=e.options.move.outModes;this._updateOutMode(e,t,o.bottom??o.default,"bottom"),this._updateOutMode(e,t,o.left??o.default,"left"),this._updateOutMode(e,t,o.right??o.default,"right"),this._updateOutMode(e,t,o.top??o.default,"top")}}});var Td={};v(Td,{loadOutModesUpdater:()=>Dx});async function Dx(i,e=!0){await i.addParticleUpdater("outModes",async t=>{let{OutOfCanvasUpdater:o}=await Promise.resolve().then(()=>(Ed(),Id));return new o(t)},e)}var Ld=c(()=>{"use strict"});var Fd={};v(Fd,{SizeUpdater:()=>Zs});var Fe,Zs,Ad=c(()=>{"use strict";_();Fe=0,Zs=class{init(e){let t=e.container,o=e.options.size,n=o.animation;n.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/100*t.retina.reduceFactor,n.sync||(e.size.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??Fe)<=Fe||(e.size.maxLoops??Fe)>Fe&&(e.size.loops??Fe)<(e.size.maxLoops??Fe))}reset(e){e.size.loops=Fe}update(e,t){this.isEnabled(e)&&Ue(e,e.size,!0,e.options.size.animation.destroy,t)}}});var Bd={};v(Bd,{loadSizeUpdater:()=>Sx});async function Sx(i,e=!0){await i.addParticleUpdater("size",async()=>{let{SizeUpdater:t}=await Promise.resolve().then(()=>(Ad(),Fd));return new t},e)}var qd=c(()=>{"use strict"});var Vd={};v(Vd,{loadBasic:()=>Ix});async function Ix(i,e=!0){let{loadBaseMover:t}=await Promise.resolve().then(()=>(cd(),ad)),{loadCircleShape:o}=await Promise.resolve().then(()=>(xd(),md)),{loadColorUpdater:n}=await Promise.resolve().then(()=>(bd(),vd)),{loadOpacityUpdater:s}=await Promise.resolve().then(()=>(Md(),kd)),{loadOutModesUpdater:r}=await Promise.resolve().then(()=>(Ld(),Td)),{loadSizeUpdater:a}=await Promise.resolve().then(()=>(qd(),Bd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await i.refresh(e)}var Hd=c(()=>{"use strict"});_();async function Wd(i,e=!0){let{loadParallaxMover:t}=await Promise.resolve().then(()=>(gl(),xl)),{loadExternalAttractInteraction:o}=await Promise.resolve().then(()=>(Ol(),Rl)),{loadExternalBounceInteraction:n}=await Promise.resolve().then(()=>(Bl(),Al)),{loadExternalBubbleInteraction:s}=await Promise.resolve().then(()=>(Yl(),Nl)),{loadExternalConnectInteraction:r}=await Promise.resolve().then(()=>(rf(),sf)),{loadExternalGrabInteraction:a}=await Promise.resolve().then(()=>(pf(),df)),{loadExternalPauseInteraction:l}=await Promise.resolve().then(()=>(yf(),gf)),{loadExternalPushInteraction:f}=await Promise.resolve().then(()=>(kf(),_f)),{loadExternalRemoveInteraction:u}=await Promise.resolve().then(()=>(Pf(),Of)),{loadExternalRepulseInteraction:h}=await Promise.resolve().then(()=>(Lf(),Tf)),{loadExternalSlowInteraction:d}=await Promise.resolve().then(()=>(Vf(),qf)),{loadParticlesAttractInteraction:p}=await Promise.resolve().then(()=>(Gf(),jf)),{loadParticlesCollisionsInteraction:x}=await Promise.resolve().then(()=>(ou(),iu)),{loadParticlesLinksInteraction:m}=await Promise.resolve().then(()=>(Cu(),Mu)),{loadEasingQuadPlugin:w}=await Promise.resolve().then(()=>(Ou(),Ru)),{loadEmojiShape:y}=await Promise.resolve().then(()=>(Tu(),Eu)),{loadImageShape:k}=await Promise.resolve().then(()=>(Qu(),Xu)),{loadLineShape:C}=await Promise.resolve().then(()=>(ih(),th)),{loadPolygonShape:b}=await Promise.resolve().then(()=>(ph(),dh)),{loadSquareShape:O}=await Promise.resolve().then(()=>(bh(),vh)),{loadStarShape:P}=await Promise.resolve().then(()=>(Rh(),Ch)),{loadLifeUpdater:Y}=await Promise.resolve().then(()=>(qh(),Bh)),{loadRotateUpdater:T}=await Promise.resolve().then(()=>($h(),Gh)),{loadStrokeColorUpdater:L}=await Promise.resolve().then(()=>(Qh(),Xh)),{loadBasic:Z}=await Promise.resolve().then(()=>(Hd(),Vd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await l(i,!1),await f(i,!1),await u(i,!1),await h(i,!1),await d(i,!1),await p(i,!1),await x(i,!1),await m(i,!1),await w(),await y(i,!1),await k(i,!1),await C(i,!1),await b(i,!1),await O(i,!1),await P(i,!1),await Y(i,!1),await T(i,!1),await L(i,!1),await Z(i,e)}var Ud=!1,jd=Symbol(),Ex=i=>(i.autoPlay||=!0,i.fullScreen||={enable:!0},i),Tx=(()=>{let i=0;return()=>`np-${i++}`})(),Lx=i=>{let e=async({get:t,goingBack:o,preview:n})=>{if(n)return;Ud||(await Wd(no),Ud=!0);let{element:s,clear:r,data:a}=t(!0);r(()=>{let h=a().instance;h&&(h.destroy(),a({}))});let l=a().options===i;if(l&&a().instance||l&&o)return;let f=Tx();(async()=>{let h=await no.load({id:f,element:s,options:Ex(i)});h&&h.canvas.element&&h.canvas.element.style.setProperty("z-index","2"),a({instance:h,options:i})})()};return e.callOnlyLatest=e.skipClearOnGoingBack=!0,e.id=jd,e.key="particles",e},Fx=()=>{let i=({get:e,preview:t})=>{if(t)return;let o=e(!0),n=o.data().instance;n&&n.destroy(),o.remove()};return i.callOnlyLatest=!0,i.id=jd,i.key="particles",i};export{Fx as hideParticles,Lx as showParticles};
1
+ var $d=Object.defineProperty;var c=(i,e)=>()=>(i&&(e=i(i=0)),e);var v=(i,e)=>{for(var t in e)$d(i,t,{get:e[t],enumerable:!0})};var ke,er,tr,tt,ir,ne,or,Eo,nr,sr,rr,ar,G,se=c(()=>{"use strict";ke="generated",er="pointerdown",tr="pointerup",tt="pointerleave",ir="pointerout",ne="pointermove",or="touchstart",Eo="touchend",nr="touchmove",sr="touchcancel",rr="resize",ar="visibilitychange",G="tsParticles - Error"});function Et(i){return typeof i=="boolean"}function re(i){return typeof i=="string"}function he(i){return typeof i=="number"}function xe(i){return typeof i=="object"&&i!==null}function K(i){return Array.isArray(i)}var ae=c(()=>{"use strict"});var pe,cr,Nd,Ae,I,it=c(()=>{"use strict";se();ae();pe={x:0,y:0,z:0},cr=2,Nd=1,Ae=class i{constructor(e,t,o){if(this._updateFromAngle=(n,s)=>{this.x=Math.cos(n)*s,this.y=Math.sin(n)*s},!he(e)&&e){this.x=e.x,this.y=e.y;let n=e;this.z=n.z?n.z:pe.z}else if(e!==void 0&&t!==void 0)this.x=e,this.y=t,this.z=o??pe.z;else throw new Error(`${G} Vector3d not initialized correctly`)}static get origin(){return i.create(pe.x,pe.y,pe.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return i.create(e.x,e.y,e.z)}static create(e,t,o){return new i(e,t,o)}add(e){return i.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return i.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return i.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**cr+this.y**cr}mult(e){return i.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=0&&this.multTo(Nd/e)}rotate(e){return i.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),pe.z)}setTo(e){this.x=e.x,this.y=e.y;let t=e;this.z=t.z?t.z:pe.z}sub(e){return i.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}},I=class i extends Ae{constructor(e,t){super(e,t,pe.z)}static get origin(){return i.create(pe.x,pe.y)}static clone(e){return i.create(e.x,e.y)}static create(e,t){return new i(e,t)}}});function Tt(i,e){To.get(i)||To.set(i,e)}function Lt(i){return To.get(i)??(e=>e)}function R(){return W(Yd(),0,1-Number.EPSILON)}function W(i,e,t){return Math.min(Math.max(i,e),t)}function Ft(i,e,t,o){return Math.floor((i*t+e*o)/(t+o))}function $(i){let e=X(i),t=0,o=Be(i);return e===o&&(o=t),R()*(e-o)+o}function g(i){return he(i)?i:$(i)}function Be(i){return he(i)?i:i.min}function X(i){return he(i)?i:i.max}function M(i,e){if(i===e||e===void 0&&he(i))return i;let t=Be(i),o=X(i);return e!==void 0?{min:Math.min(t,e),max:Math.max(o,e)}:M(t,o)}function F(i,e){let t=i.x-e.x,o=i.y-e.y,n=2;return{dx:t,dy:o,distance:Math.sqrt(t**n+o**n)}}function A(i,e){return F(i,e).distance}function le(i){return i*Math.PI/180}function lr(i,e,t){if(he(i))return le(i);let o=0,n=.5,s=.25,r=n+s;switch(i){case"top":return-Math.PI*n;case"top-right":return-Math.PI*s;case"right":return o;case"bottom-right":return Math.PI*s;case"bottom":return Math.PI*n;case"bottom-left":return Math.PI*r;case"left":return Math.PI;case"top-left":return-Math.PI*r;case"inside":return Math.atan2(t.y-e.y,t.x-e.x);case"outside":return Math.atan2(e.y-t.y,e.x-t.x);default:return R()*Qd}}function fr(i){let e=I.origin;return e.length=1,e.angle=i,e}function Lo(i,e,t,o){return I.create(i.x*(t-o)/(t+o)+e.x*2*o/(t+o),i.y)}function ur(i){return{x:i.position?.x??R()*i.size.width,y:i.position?.y??R()*i.size.height}}function At(i){return i?i.endsWith("%")?parseFloat(i)/100:parseFloat(i):1}var Yd,To,Xd,Qd,B=c(()=>{"use strict";it();ae();se();Yd=Math.random,To=new Map,Xd=2,Qd=Math.PI*Xd});function fe(){return Zd}function dr(i){let e={bounced:!1},{pSide:t,pOtherSide:o,rectSide:n,rectOtherSide:s,velocity:r,factor:a}=i,l=.5,f=0;return o.min<s.min||o.min>s.max||o.max<s.min||o.max>s.max||(t.max>=n.min&&t.max<=(n.max+n.min)*l&&r>f||t.min<=n.max&&t.min>(n.max+n.min)*l&&r<f)&&(e.velocity=r*-a,e.bounced=!0),e}function Kd(i,e){let t=V(e,o=>i.matches(o));return K(t)?t.some(o=>o):t}function me(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Jd(){return!me()&&typeof matchMedia<"u"}function Bt(i){if(Jd())return matchMedia(i)}function pr(i){if(!(me()||typeof IntersectionObserver>"u"))return new IntersectionObserver(i)}function mr(i){if(!(me()||typeof MutationObserver>"u"))return new MutationObserver(i)}function z(i,e){return i===e||K(e)&&e.indexOf(i)>-1}async function Fo(i,e){try{await document.fonts.load(`${e??"400"} 36px '${i??"Verdana"}'`)}catch{}}function ep(i){return Math.floor(R()*i.length)}function qe(i,e,t=!0){return i[e!==void 0&&t?e%i.length:ep(i)]}function Ve(i,e,t,o,n){return tp(ye(i,o??0),e,t,n)}function tp(i,e,t,o){let n=!0;return(!o||o==="bottom")&&(n=i.top<e.height+t.x),n&&(!o||o==="left")&&(n=i.right>t.x),n&&(!o||o==="right")&&(n=i.left<e.width+t.y),n&&(!o||o==="top")&&(n=i.bottom>t.y),n}function ye(i,e){return{bottom:i.y+e,left:i.x-e,right:i.x+e,top:i.y-e}}function D(i,...e){for(let t of e){if(t==null)continue;if(!xe(t)){i=t;continue}let o=Array.isArray(t);o&&(xe(i)||!i||!Array.isArray(i))?i=[]:!o&&(xe(i)||!i||Array.isArray(i))&&(i={});for(let n in t){if(n==="__proto__")continue;let s=t,r=s[n],a=i;a[n]=xe(r)&&Array.isArray(r)?r.map(l=>D(a[n],l)):D(a[n],r)}}return i}function He(i,e){return!!gr(e,t=>t.enable&&z(i,t.mode))}function We(i,e,t){V(e,o=>{let n=o.mode;o.enable&&z(i,n)&&ip(o,t)})}function ip(i,e){let t=i.selectors;V(t,o=>{e(o,i)})}function qt(i,e){if(!(!e||!i))return gr(i,t=>Kd(e,t.selectors))}function ot(i){return{position:i.getPosition(),radius:i.getRadius(),mass:i.getMass(),velocity:i.velocity,factor:I.create(g(i.options.bounce.horizontal.value),g(i.options.bounce.vertical.value))}}function Vt(i,e){let{x:t,y:o}=i.velocity.sub(e.velocity),[n,s]=[i.position,e.position],{dx:r,dy:a}=F(s,n),l=0;if(t*r+o*a<l)return;let f=-Math.atan2(a,r),u=i.mass,h=e.mass,d=i.velocity.rotate(f),p=e.velocity.rotate(f),x=Lo(d,p,u,h),m=Lo(p,d,u,h),w=x.rotate(-f),y=m.rotate(-f);i.velocity.x=w.x*i.factor.x,i.velocity.y=w.y*i.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function xr(i,e){let t=i.getPosition(),o=i.getRadius(),n=ye(t,o),s=i.options.bounce,r=dr({pSide:{min:n.left,max:n.right},pOtherSide:{min:n.top,max:n.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:i.velocity.x,factor:g(s.horizontal.value)});r.bounced&&(r.velocity!==void 0&&(i.velocity.x=r.velocity),r.position!==void 0&&(i.position.x=r.position));let a=dr({pSide:{min:n.top,max:n.bottom},pOtherSide:{min:n.left,max:n.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:i.velocity.y,factor:g(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(i.velocity.y=a.velocity),a.position!==void 0&&(i.position.y=a.position))}function V(i,e){return K(i)?i.map((o,n)=>e(o,n)):e(i,0)}function Q(i,e,t){return K(i)?qe(i,e,t):i}function gr(i,e){return K(i)?i.find((o,n)=>e(o,n)):e(i,0)?i:void 0}function Ht(i,e){let t=i.value,o=i.animation,n={delayTime:g(o.delay)*1e3,enable:o.enable,value:g(i.value)*e,max:X(t)*e,min:Be(t)*e,loops:0,maxLoops:g(o.count),time:0},s=1;if(o.enable){switch(n.decay=s-g(o.decay),o.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=R()>=.5?"increasing":"decreasing";break}let r=o.mode==="auto";switch(o.startValue){case"min":n.value=n.min,r&&(n.status="increasing");break;case"max":n.value=n.max,r&&(n.status="decreasing");break;case"random":default:n.value=$(n),r&&(n.status=R()>=.5?"increasing":"decreasing");break}}return n.initialValue=n.value,n}function op(i,e){if(!(i.mode==="percent")){let{mode:n,...s}=i;return s}return"x"in i?{x:i.x/100*e.width,y:i.y/100*e.height}:{width:i.width/100*e.width,height:i.height/100*e.height}}function Wt(i,e){return op(i,e)}function np(i,e,t,o,n){switch(e){case"max":t>=n&&i.destroy();break;case"min":t<=o&&i.destroy();break}}function Ue(i,e,t,o,n){if(i.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let u=(e.velocity??0)*n.factor,h=e.min,d=e.max,p=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case"increasing":e.value>=d?(t?e.status="decreasing":e.value-=d,e.loops||(e.loops=0),e.loops++):e.value+=u;break;case"decreasing":e.value<=h?(t?e.status="increasing":e.value+=d,e.loops||(e.loops=0),e.loops++):e.value-=u}e.velocity&&p!==1&&(e.velocity*=p),np(i,o,e.value,h,d),i.destroyed||(e.value=W(e.value,h,d))}}var Zd,U=c(()=>{"use strict";B();se();ae();it();Zd={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn}});var Ut,yr=c(()=>{"use strict";Ut=class{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let o=this._listeners.get(e);o||(o=[],this._listeners.set(e,o)),o.push(t)}dispatchEvent(e,t){this._listeners.get(e)?.forEach(n=>n(t))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let o=this._listeners.get(e);if(!o)return;let n=o.length,s=o.indexOf(t);if(s<0)return;let a=1;n===a?this._listeners.delete(e):o.splice(s,a)}}});function qo(i){$t.set(i.key,i)}function sp(i){for(let[,l]of $t)if(i.startsWith(l.stringPrefix))return l.parseString(i);let e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=i.replace(e,(l,f,u,h,d)=>f+f+u+u+h+h+(d!==void 0?d+d:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,n=o.exec(t),s=16,r=1,a=255;return n?{a:n[4]!==void 0?parseInt(n[4],s)/a:r,b:parseInt(n[3],s),g:parseInt(n[2],s),r:parseInt(n[1],s)}:void 0}function J(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return vr(o.value,e,t);if(K(o.value))return J({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleRangeColor(o);if(s)return s}}function vr(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return o.value===Gt?wr():rp(o.value);if(K(o.value))return vr({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleColor(o);if(s)return s}}function ge(i,e,t=!0){let o=J(i,e,t);return o?Vo(o):void 0}function Vo(i){let u=i.r/255,h=i.g/255,d=i.b/255,p=Math.max(u,h,d),x=Math.min(u,h,d),m={h:0,l:(p+x)*.5,s:0};return p!==x&&(m.s=m.l<.5?(p-x)/(p+x):(p-x)/(2-p-x),m.h=u===p?(h-d)/(p-x):m.h=h===p?2+(d-u)/(p-x):2*2+(u-h)/(p-x)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function rp(i){return sp(i)}function Me(i){let r=(i.h%360+360)%360,a=Math.max(0,Math.min(100,i.s)),l=Math.max(0,Math.min(100,i.l)),f=r/360,u=a/100,h=l/100,d=255,p=3;if(a===0){let L=Math.round(h*d);return{r:L,g:L,b:L}}let x=.5,m=2,w=(L,Z,oe)=>{if(oe<0&&oe++,oe>1&&oe--,oe*6<1)return L+(Z-L)*6*oe;if(oe*m<1)return Z;if(oe*p<1*m){let Gd=m/p;return L+(Z-L)*(Gd-oe)*6}return L},y=1,k=h<x?h*(y+u):h+u-h*u,C=m*h-k,b=1,O=b/p,P=Math.min(d,d*w(C,k,f+O)),Y=Math.min(d,d*w(C,k,f)),T=Math.min(d,d*w(C,k,f-O));return{r:Math.round(P),g:Math.round(Y),b:Math.round(T)}}function br(i){let e=Me(i);return{a:i.a,b:e.b,g:e.g,r:e.r}}function wr(i){let t=i??0,o=256;return{b:Math.floor($(M(t,o))),g:Math.floor($(M(t,o))),r:Math.floor($(M(t,o)))}}function te(i,e){return`rgba(${i.r}, ${i.g}, ${i.b}, ${e??1})`}function ve(i,e){return`hsla(${i.h}, ${i.s}%, ${i.l}%, ${e??1})`}function nt(i,e,t,o){let n=i,s=e;return n.r===void 0&&(n=Me(i)),s.r===void 0&&(s=Me(e)),{b:Ft(n.b,s.b,t,o),g:Ft(n.g,s.g,t,o),r:Ft(n.r,s.r,t,o)}}function st(i,e,t){if(t===Gt)return wr();if(t===jt){let o=i.getFillColor()??i.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(o&&n&&e)return nt(o,n,i.getRadius(),e.getRadius());{let s=o??n;if(s)return Me(s)}}else return t}function Nt(i,e,t){let o=re(i)?i:i.value;return o===Gt?t?J({value:o}):e?Gt:jt:o===jt?jt:J({value:o})}function Ho(i){return i!==void 0?{h:i.h.value,s:i.s.value,l:i.l.value}:void 0}function Yt(i,e,t){let o={h:{enable:!1,value:i.h},s:{enable:!1,value:i.s},l:{enable:!1,value:i.l}};return e&&(Ao(o.h,e.h,t),Ao(o.s,e.s,t),Ao(o.l,e.l,t)),o}function Ao(i,e,t){i.enable=e.enable;let o=0,n=1,s=0,r=0;i.enable?(i.velocity=g(e.speed)/100*t,i.decay=n-g(e.decay),i.status="increasing",i.loops=s,i.maxLoops=g(e.count),i.time=r,i.delayTime=g(e.delay)*1e3,e.sync||(i.velocity*=R(),i.value*=R()),i.initialValue=i.value,i.offset=M(e.offset)):i.velocity=o}function Bo(i,e,t,o){if(!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0)||(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=o.value),(i.delayTime??0)>0&&i.time<(i.delayTime??0)))return;let u=i.offset?$(i.offset):0,h=(i.velocity??0)*o.factor+u*3.6,d=i.decay??1,p=X(e),x=Be(e);if(!t||i.status==="increasing")i.value+=h,i.value>p&&(i.loops||(i.loops=0),i.loops++,t?i.status="decreasing":i.value-=p);else{i.value-=h;let m=0;i.value<m&&(i.loops||(i.loops=0),i.loops++,i.status="increasing")}i.velocity&&d!==1&&(i.velocity*=d),i.value=W(i.value,x,p)}function Xt(i,e){if(!i)return;let{h:t,s:o,l:n}=i,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};t&&Bo(t,s.h,!1,e),o&&Bo(o,s.s,!0,e),n&&Bo(n,s.l,!0,e)}var Gt,jt,$t,Ce=c(()=>{"use strict";B();ae();se();U();Gt="random",jt="mid",$t=new Map});function be(i,e,t){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.closePath()}function _r(i,e,t){i.fillStyle=t??"rgba(0,0,0,0)",i.fillRect(je.x,je.y,e.width,e.height)}function kr(i,e,t,o){t&&(i.globalAlpha=o,i.drawImage(t,je.x,je.y,e.width,e.height),i.globalAlpha=1)}function Qt(i,e){i.clearRect(je.x,je.y,e.width,e.height)}function Mr(i){let{container:e,context:t,particle:o,delta:n,colorStyles:s,backgroundMask:r,composite:a,radius:l,opacity:f,shadow:u,transform:h}=i,d=o.getPosition(),p=0,x=o.rotation+(o.pathRotation?o.velocity.angle:p),m={sin:Math.sin(x),cos:Math.cos(x)},w=1,y={a:m.cos*(h.a??w),b:m.sin*(h.b??w),c:-m.sin*(h.c??w),d:m.cos*(h.d??w)};t.setTransform(y.a,y.b,y.c,y.d,d.x,d.y),r&&(t.globalCompositeOperation=a);let k=o.shadowColor;u.enable&&k&&(t.shadowBlur=u.blur,t.shadowColor=te(k),t.shadowOffsetX=u.offset.x,t.shadowOffsetY=u.offset.y),s.fill&&(t.fillStyle=s.fill);let C=0,b=o.strokeWidth??C;t.lineWidth=b,s.stroke&&(t.strokeStyle=s.stroke);let O={container:e,context:t,particle:o,radius:l,opacity:f,delta:n,transformData:y,strokeWidth:b};cp(O),lp(O),ap(O),t.globalCompositeOperation="source-over",t.resetTransform()}function ap(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.effect)return;let l=e.effectDrawers.get(o.effect);l&&l.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function cp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,strokeWidth:a,transformData:l}=i,f=0;if(!o.shape)return;let u=e.shapeDrawers.get(o.shape);u&&(t.beginPath(),u.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&t.closePath(),a>f&&t.stroke(),o.shapeFill&&t.fill())}function lp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.shape)return;let l=e.shapeDrawers.get(o.shape);l?.afterDraw&&l.afterDraw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Cr(i,e,t){e.draw&&e.draw(i,t)}function Rr(i,e,t,o){e.drawParticle&&e.drawParticle(i,t,o)}function Or(i,e,t){return{h:i.h,s:i.s,l:i.l+(e==="darken"?-1:1)*t}}var je,Zt=c(()=>{"use strict";Ce();je={x:0,y:0}});function fp(i,e,t){let o=e[t],n=1;o!==void 0&&(i[t]=(i[t]??n)*o)}function Pr(i,e,t=!1){if(!e)return;let o=i;if(!o)return;let n=o.style;if(n)for(let s in e){let r=e[s];r&&n.setProperty(s,r,t?"important":"")}}var Kt,zr=c(()=>{"use strict";Zt();U();Ce();se();Kt=class{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{for(let o of this._postDrawUpdaters)o.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,o,n,s,r,a)=>{for(let l of this._preDrawUpdaters){if(l.getColorStyles){let{fill:f,stroke:u}=l.getColorStyles(o,t,n,s);f&&(r.fill=f),u&&(r.stroke=u)}if(l.getTransformValues){let f=l.getTransformValues(o);for(let u in f)fp(a,f,u)}l.beforeDraw?.(o)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let o,n;for(let s of this._colorPlugins)if(!o&&s.particleFillColor&&(o=ge(s.particleFillColor(t))),!n&&s.particleStrokeColor&&(n=ge(s.particleStrokeColor(t))),o&&n)break;return[o,n]},this._initCover=async()=>{let t=this.container.actualOptions,o=t.backgroundMask.cover,n=o.color;if(n){let s=J(n);if(s){let r={...s,a:o.opacity};this._coverColorStyle=te(r,r.a)}}else await new Promise((s,r)=>{if(!o.image)return;let a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:o.opacity},s()}),a.addEventListener("error",l=>{r(l.error)}),a.src=o.image})},this._initStyle=()=>{let t=this.element,o=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=D({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(let n in o.style){if(!n||!o.style)continue;let s=o.style[n];s&&t.style.setProperty(n,s,"important")}}},this._initTrail=async()=>{let t=this.container.actualOptions,o=t.particles.move.trail,n=o.fill;if(!o.enable)return;let s=1,r=s/o.length;if(n.color){let a=J(n.color);if(!a)return;this._trailFill={color:{...a},opacity:r}}else await new Promise((a,l)=>{if(!n.image)return;let f=document.createElement("img");f.addEventListener("load",()=>{this._trailFill={image:f,opacity:r},a()}),f.addEventListener("error",u=>{l(u.error)}),f.src=n.image})},this._paintBase=t=>{this.draw(o=>_r(o,this.size,t))},this._paintImage=(t,o)=>{this.draw(n=>kr(n,this.size,t,o))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(o=>o.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(o=>o.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{let t=this.element,o=this._originalStyle;t&&o&&Pr(t,o)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let o=10;Pr(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(o),top:"0",left:"0",width:"100%",height:"100%"},!0)},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(){let e=this.container.actualOptions,t=e.particles.move.trail,o=this._trailFill,n=0;e.backgroundMask.enable?this.paint():t.enable&&t.length>n&&o?o.color?this._paintBase(te(o.color,o.opacity)):o.image&&this._paintImage(o.image,o.opacity):e.clear&&this.draw(s=>{Qt(s,this.size)})}destroy(){this.stop(),this._generated?this.element?.remove():this._resetOriginalStyle(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){let t=this._context;if(t)return e(t)}drawAsync(e){let t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;let o=e.getRadius();if(o<=0)return;let s=e.getFillColor(),r=e.getStrokeColor()??s,[a,l]=this._getPluginParticleColors(e);a||(a=s),l||(l=r),!(!a&&!l)&&this.draw(f=>{let u=this.container,h=u.actualOptions,d=e.options.zIndex,p=1,x=p-e.zIndexFactor,m=x**d.opacityRate,w=1,y=e.bubble.opacity??e.opacity?.value??w,k=e.strokeOpacity??y,C=y*m,b=k*m,O={},P={fill:a?ve(a,C):void 0};P.stroke=l?ve(l,b):P.fill,this._applyPreDrawUpdaters(f,e,o,C,P,O),Mr({container:u,context:f,particle:e,delta:t,colorStyles:P,backgroundMask:h.backgroundMask.enable,composite:h.backgroundMask.composite,radius:o*x**d.sizeRate,opacity:C,shadow:e.options.shadow,transform:O}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,o){this.draw(n=>Rr(n,e,t,o))}drawPlugin(e,t){this.draw(o=>Cr(o,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=mr(e=>{for(let t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){fe().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let e=this.container.actualOptions,t=e.background,o=this.element;if(!o)return;let n=o.style;if(n){if(t.color){let s=J(t.color);n.backgroundColor=s?te(s,t.opacity):""}else n.backgroundColor="";n.backgroundImage=t.image||"",n.backgroundPosition=t.position||"",n.backgroundRepeat=t.repeat||"",n.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(let[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(let e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&ke in e.dataset?e.dataset[ke]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=D({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.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(){let e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(Qt(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let e=this.container,t=e.retina.pixelRatio,o=e.canvas.size,n={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(n.height===o.height&&n.width===o.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let s={...o};return this.element.width=o.width=this.element.offsetWidth*t,this.element.height=o.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:o.width/s.width,height:o.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>Qt(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;let e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}});function ue(i,e,t,o,n){if(o){let s={passive:!0};Et(n)?s.capture=n:n!==void 0&&(s=n),i.addEventListener(e,t,s)}else{let s=n;i.removeEventListener(e,t,s)}}var Dr,Jt,Sr=c(()=>{"use strict";U();se();ae();Dr=2;Jt=class{constructor(e){this.container=e,this._doMouseTouchClick=t=>{let o=this.container,n=o.actualOptions;if(this._canPush){let s=o.interactivity.mouse,r=s.position;if(!r)return;s.clickPosition={...r},s.clickTime=new Date().getTime();let a=n.interactivity.events.onClick;V(a.mode,l=>this.container.handleClickMode(l))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let o=t,n=this.container,s=n.options,r=s.defaultThemes,a=o.matches?r.dark:r.light,l=s.themes.find(f=>f.name===a);l&&l.default.auto&&n.loadTheme(a)},this._handleVisibilityChange=()=>{let t=this.container,o=t.actualOptions;this._mouseTouchFinish(),o.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{await this.container.canvas?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(t,o)=>{let n=this._handlers,s=this.container,r=s.actualOptions,a=s.interactivity.element;if(!a)return;let l=a,f=s.canvas.element;f&&(f.style.pointerEvents=l===f?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(ue(a,ne,n.mouseMove,o),ue(a,or,n.touchStart,o),ue(a,nr,n.touchMove,o),r.interactivity.events.onClick.enable?(ue(a,Eo,n.touchEndClick,o),ue(a,tr,n.mouseUp,o),ue(a,er,n.mouseDown,o)):ue(a,Eo,n.touchEnd,o),ue(a,t,n.mouseLeave,o),ue(a,sr,n.touchCancel,o))},this._manageListeners=t=>{let o=this._handlers,n=this.container,s=n.actualOptions,r=s.interactivity.detectsOn,a=n.canvas.element,l=tt;r==="window"?(n.interactivity.element=window,l=ir):r==="parent"&&a?n.interactivity.element=a.parentElement??a.parentNode:n.interactivity.element=a,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(l,t),document&&ue(document,ar,o.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let o=this._handlers,n=Bt("(prefers-color-scheme: dark)");if(n){if(n.addEventListener!==void 0){ue(n,"change",o.themeChange,t);return}n.addListener!==void 0&&(t?n.addListener(o.oldThemeChange):n.removeListener(o.oldThemeChange))}},this._manageResize=t=>{let o=this._handlers,n=this.container;if(!n.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){ue(window,rr,o.resize,t);return}let r=n.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(a=>{a.find(f=>f.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:o}=t;o.clicking=!0,o.downPosition=o.position},this._mouseTouchClick=t=>{let o=this.container,n=o.actualOptions,{mouse:s}=o.interactivity;s.inside=!0;let r=!1,a=s.position;if(!(!a||!n.interactivity.events.onClick.enable)){for(let[,l]of o.plugins)if(l.clickPositionValid&&(r=l.clickPositionValid(a),r))break;r||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let o=t.mouse;delete o.position,delete o.clickPosition,delete o.downPosition,t.status=tt,o.inside=!1,o.clicking=!1},this._mouseTouchMove=t=>{let o=this.container,n=o.actualOptions,s=o.interactivity,r=o.canvas.element;if(!s?.element)return;s.mouse.inside=!0;let a;if(t.type.startsWith("pointer")){this._canPush=!0;let f=t;if(s.element===window){if(r){let u=r.getBoundingClientRect();a={x:f.clientX-u.left,y:f.clientY-u.top}}}else if(n.interactivity.detectsOn==="parent"){let u=f.target,h=f.currentTarget;if(u&&h&&r){let d=u.getBoundingClientRect(),p=h.getBoundingClientRect(),x=r.getBoundingClientRect();a={x:f.offsetX+Dr*d.left-(p.left+x.left),y:f.offsetY+Dr*d.top-(p.top+x.top)}}else a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY}}else f.target===r&&(a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY})}else if(this._canPush=t.type!=="touchmove",r){let f=t,u=1,h=f.touches[f.touches.length-u],d=r.getBoundingClientRect(),p=0;a={x:h.clientX-(d.left??p),y:h.clientY-(d.top??p)}}let l=o.retina.pixelRatio;a&&(a.x*=l,a.y*=l),s.mouse.position=a,s.status=ne},this._touchEnd=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.set(s.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)}}});var S,Re=c(()=>{"use strict";ae();S=class i{constructor(){this.value=""}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){e?.value!==void 0&&(this.value=e.value)}}});var ei,Wo=c(()=>{"use strict";Re();ei=class{constructor(){this.color=new S,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ti,Uo=c(()=>{"use strict";Re();ti=class{constructor(){this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ii,jo=c(()=>{"use strict";Uo();ae();ii=class{constructor(){this.composite="destination-out",this.cover=new ti,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){let t=e.cover,o=re(e.cover)?{color:e.cover}:e.cover;this.cover.load(t.color!==void 0||t.image!==void 0?t:{color:o})}e.enable!==void 0&&(this.enable=e.enable)}}}});var oi,Go=c(()=>{"use strict";oi=class{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}});var ni,si=c(()=>{"use strict";ni=class{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}});var rt,ri=c(()=>{"use strict";rt=class{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(e){e&&(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}});var ai,$o=c(()=>{"use strict";ai=class{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}});var ci,No=c(()=>{"use strict";$o();ci=class{constructor(){this.enable=!1,this.mode=[],this.parallax=new ai}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}});var li,Yo=c(()=>{"use strict";li=class{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}});var fi,Xo=c(()=>{"use strict";si();ri();No();Yo();U();fi=class{constructor(){this.onClick=new ni,this.onDiv=new rt,this.onHover=new ci,this.resize=new li}load(e){if(!e)return;this.onClick.load(e.onClick);let t=e.onDiv;t!==void 0&&(this.onDiv=V(t,o=>{let n=new rt;return n.load(o),n})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}});var ui,Qo=c(()=>{"use strict";ui=class{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;let t=this._engine.interactors.get(this._container);if(t)for(let o of t)o.loadModeOptions&&o.loadModeOptions(this,e)}}});var Ge,hi=c(()=>{"use strict";Xo();Qo();Ge=class{constructor(e,t){this.detectsOn="window",this.events=new fi,this.modes=new ui(e,t)}load(e){if(!e)return;let t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}});var Ir,di,Zo=c(()=>{"use strict";U();Ir=50,di=class{load(e){e&&(e.position&&(this.position={x:e.position.x??Ir,y:e.position.y??Ir,mode:e.position.mode??"percent"}),e.options&&(this.options=D({},e.options)))}}});var pi,Ko=c(()=>{"use strict";U();pi=class{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=D({},e.options)))}}});var mi,Jo=c(()=>{"use strict";mi=class{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var xi,en=c(()=>{"use strict";Jo();U();xi=class{constructor(){this.name="",this.default=new mi}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=D({},e.options)))}}});var Oe,we,$e=c(()=>{"use strict";B();Oe=class{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=M(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.delay!==void 0&&(this.delay=M(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}},we=class extends Oe{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}});var Ne,tn=c(()=>{"use strict";$e();B();Ne=class extends Oe{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),e&&e.offset!==void 0&&(this.offset=M(e.offset))}}});var gi,on=c(()=>{"use strict";tn();gi=class{constructor(){this.h=new Ne,this.s=new Ne,this.l=new Ne}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}});var Pe,yi=c(()=>{"use strict";ae();on();Re();Pe=class i extends S{constructor(){super(),this.animation=new gi}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&(t.enable!==void 0?this.animation.h.load(t):this.animation.load(e.animation))}}});var vi,nn=c(()=>{"use strict";vi=class{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}});var bi,sn=c(()=>{"use strict";bi=class{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}});var ee,rn,Ye,ze=c(()=>{"use strict";$e();B();ee=class{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=M(e.value))}},rn=class extends ee{constructor(){super(),this.animation=new Oe}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}},Ye=class extends rn{constructor(){super(),this.animation=new we}load(e){super.load(e)}}});var at,an=c(()=>{"use strict";ze();at=class extends ee{constructor(){super(),this.value=1}}});var Xe,wi=c(()=>{"use strict";an();Xe=class{constructor(){this.horizontal=new at,this.vertical=new at}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}});var _i,cn=c(()=>{"use strict";nn();sn();wi();B();_i=class{constructor(){this.absorb=new vi,this.bounce=new Xe,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new bi}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}});var ki,Er=c(()=>{"use strict";U();ki=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Mi,ln=c(()=>{"use strict";B();Mi=class{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=M(e.offset)),e.value!==void 0&&(this.value=M(e.value)))}}});var Ci,fn=c(()=>{"use strict";B();Ci=class{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=M(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;t!==void 0&&(this.rotate.x=t);let o=e.rotate.y;o!==void 0&&(this.rotate.y=o)}}}});var Ri,un=c(()=>{"use strict";Ri=class{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}});var Oi,hn=c(()=>{"use strict";B();Oi=class{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)))}}});var Pi,dn=c(()=>{"use strict";ze();U();Pi=class{constructor(){this.clamp=!0,this.delay=new ee,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=D(this.options,e.options)))}}});var zi,Tr=c(()=>{"use strict";Re();zi=class{load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}});var Di,pn=c(()=>{"use strict";Tr();Di=class{constructor(){this.enable=!1,this.length=10,this.fill=new zi}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}});var Si,mn=c(()=>{"use strict";Si=class{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}});var Ii,xn=c(()=>{"use strict";U();B();Ii=class{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=D({},e.position)))}}});var Ei,gn=c(()=>{"use strict";ae();ln();fn();un();hn();dn();pn();mn();xn();B();Ei=class{constructor(){this.angle=new Mi,this.attract=new Ci,this.center=new Ri,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Oi,this.path=new Pi,this.outModes=new Si,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ii,this.straight=!1,this.trail=new Di,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(he(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=M(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=he(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=M(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;t!==void 0&&(xe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=M(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}});var Ti,yn=c(()=>{"use strict";$e();Ti=class extends we{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Li,vn=c(()=>{"use strict";yn();ze();Li=class extends Ye{constructor(){super(),this.animation=new Ti,this.value=1}load(e){if(!e)return;super.load(e);let t=e.animation;t!==void 0&&this.animation.load(t)}}});var Fi,bn=c(()=>{"use strict";Fi=class{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);let t=e.width;t!==void 0&&(this.width=t);let o=e.height;o!==void 0&&(this.height=o)}}});var Ai,wn=c(()=>{"use strict";Ai=class{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var Bi,_n=c(()=>{"use strict";bn();wn();Bi=class{constructor(){this.density=new Fi,this.limit=new Ai,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}});var qi,kn=c(()=>{"use strict";Re();qi=class{constructor(){this.blur=0,this.color=new S,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}});var Vi,Mn=c(()=>{"use strict";U();Vi=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Hi,Cn=c(()=>{"use strict";$e();Hi=class extends we{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Wi,Rn=c(()=>{"use strict";ze();Cn();Wi=class extends Ye{constructor(){super(),this.animation=new Hi,this.value=3}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}}});var ct,On=c(()=>{"use strict";yi();B();ct=class{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Pe.create(this.color,e.color)),e.width!==void 0&&(this.width=M(e.width)),e.opacity!==void 0&&(this.opacity=M(e.opacity)))}}});var Ui,Pn=c(()=>{"use strict";ze();Ui=class extends ee{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}});var ji,zn=c(()=>{"use strict";U();yi();cn();Er();gn();vn();wi();_n();kn();Mn();Rn();On();Pn();ji=class{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Xe,this.collisions=new _i,this.color=new Pe,this.color.value="#fff",this.effect=new ki,this.groups={},this.move=new Ei,this.number=new Bi,this.opacity=new Li,this.reduceDuplicates=!1,this.shadow=new qi,this.shape=new Vi,this.size=new Wi,this.stroke=new ct,this.zIndex=new Ui}load(e){if(!e)return;if(e.groups!==void 0)for(let o of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,o))continue;let n=e.groups[o];n!==void 0&&(this.groups[o]=D(this.groups[o]??{},n))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(Pe.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=D({},e.interactivity));let t=e.stroke;if(t&&(this.stroke=V(t,o=>{let n=new ct;return n.load(o),n})),this._container){let o=this._engine.updaters.get(this._container);if(o)for(let s of o)s.loadOptions&&s.loadOptions(this,e);let n=this._engine.interactors.get(this._container);if(n)for(let s of n)s.loadParticlesOptions&&s.loadParticlesOptions(this,e)}}}});function Dn(i,...e){for(let t of e)i.load(t)}function Gi(i,e,...t){let o=new ji(i,e);return Dn(o,...t),o}var lt=c(()=>{"use strict";zn()});var $i,Sn=c(()=>{"use strict";U();Wo();jo();Go();hi();Zo();Ko();en();ae();lt();B();$i=class{constructor(e,t){this._findDefaultTheme=o=>this.themes.find(n=>n.default.value&&n.default.mode===o)??this.themes.find(n=>n.default.value&&n.default.mode==="any"),this._importPreset=o=>{this.load(this._engine.getPreset(o))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new ei,this.backgroundMask=new ii,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new oi,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Ge(e,t),this.manualParticles=[],this.particles=Gi(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if(!e)return;e.preset!==void 0&&V(e.preset,r=>this._importPreset(r)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=M(e.delay));let t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=M(e.duration));let o=e.fpsLimit;o!==void 0&&(this.fpsLimit=o),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;Et(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(r=>{let a=new di;return a.load(r),a})),this.particles.load(e.particles),this.style=D(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let r of s)r.loadOptions&&r.loadOptions(this,e);if(e.responsive!==void 0)for(let r of e.responsive){let a=new pi;a.load(r),this.responsive.push(a)}if(this.responsive.sort((r,a)=>r.maxWidth-a.maxWidth),e.themes!==void 0)for(let r of e.themes){let a=this.themes.find(l=>l.name===r.name);if(a)a.load(r);else{let l=new xi;l.load(r),this.themes.push(l)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(e,t,o){this.load(o);let n=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*t>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){let t=this.themes.find(o=>o.name===e);t&&this.load(t.options)}else{let t=Bt("(prefers-color-scheme: dark)"),o=t&&t.matches,n=this._findDefaultTheme(o?"dark":"light");n&&this.load(n.options)}}}});var Ni,Lr=c(()=>{"use strict";Ni=class{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(let t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(let t of this._externalInteractors)t.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(let e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(let o of this._externalInteractors)o.clear(e,t);for(let o of this._particleInteractors)o.isEnabled(e)&&o.interact(e,t)}reset(e){for(let t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(let t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}});function hp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function dp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function Ar(i){if(!z(i.outMode,i.checkModes))return;let e=i.radius*In;i.coord>i.maxCoord-e?i.setCb(-i.radius):i.coord<e&&i.setCb(i.radius)}var Fr,In,Yi,up,Xi,Br=c(()=>{"use strict";it();B();U();se();Ce();hi();Zt();lt();Fr=0,In=2,Yi=.5,up=2;Xi=class{constructor(e,t){this.container=t,this._calcPosition=(o,n,s,r=Fr)=>{for(let[,x]of o.plugins){let m=x.particlePosition!==void 0?x.particlePosition(n,this):void 0;if(m)return Ae.create(m.x,m.y,s)}let a=o.canvas.size,l=ur({size:a,position:n}),f=Ae.create(l.x,l.y,s),u=this.getRadius(),h=this.options.move.outModes,d=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.x,maxCoord:o.canvas.size.width,setCb:m=>f.x+=m,radius:u})},p=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.y,maxCoord:o.canvas.size.height,setCb:m=>f.y+=m,radius:u})};return d(h.left??h.default),d(h.right??h.default),p(h.top??h.default),p(h.bottom??h.default),this._checkOverlap(f,r)?this._calcPosition(o,void 0,s,r+1):f},this._calculateVelocity=()=>{let o=fr(this.direction),n=o.copy(),s=this.options.move;if(s.direction==="inside"||s.direction==="outside")return n;let r=le(g(s.angle.value)),a=le(g(s.angle.offset)),l={left:a-r*Yi,right:a+r*Yi};return s.straight||(n.angle+=$(M(l.left,l.right))),s.random&&typeof s.speed=="number"&&(n.length*=R()),n},this._checkOverlap=(o,n=Fr)=>{let s=this.options.collisions,r=this.getRadius();if(!s.enable)return!1;let a=s.overlap;if(a.enable)return!1;let l=a.retries;if(l>=0&&n>l)throw new Error(`${G} particle is overlapping and can't be placed`);return!!this.container.particles.find(u=>A(o,u.position)<r+u.getRadius())},this._getRollColor=o=>{if(!o||!this.roll||!this.backColor&&!this.roll.alter)return o;let n=1,s=0,r=this.roll.horizontal&&this.roll.vertical?In*n:n,a=this.roll.horizontal?Math.PI*Yi:s;return Math.floor(((this.roll.angle??s)+a)/(Math.PI/r))%In?this.backColor?this.backColor:this.roll.alter?Or(o,this.roll.alter.type,this.roll.alter.value):o:o},this._initPosition=o=>{let n=this.container,s=g(this.options.zIndex.value),r=0;this.position=this._calcPosition(n,o,W(s,r,n.zLayers)),this.initialPosition=this.position.copy();let a=n.canvas.size,l=0;switch(this.moveCenter={...Wt(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??"percent"},this.direction=lr(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=I.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let t=this.container,o=this.pathGenerator;t.shapeDrawers.get(this.shape)?.particleDestroy?.(this);for(let[,s]of t.plugins)s.particleDestroyed?.(this,e);for(let s of t.particles.updaters)s.particleDestroyed?.(this,e);o?.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){let t=this.container,o=t.canvas;for(let[,n]of t.plugins)o.drawParticlePlugin(n,this,e);o.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Ho(this.color))}getMass(){return this.getRadius()**up*Math.PI*Yi}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??Ho(this.strokeColor))}init(e,t,o,n){let s=this.container,r=this._engine;this.id=e,this.group=n,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;let a=s.retina.pixelRatio,l=s.actualOptions,f=Gi(this._engine,s,l.particles),u=f.effect.type,h=f.shape.type,{reduceDuplicates:d}=f;this.effect=Q(u,this.id,d),this.shape=Q(h,this.id,d);let p=f.effect,x=f.shape;if(o){if(o.effect?.type){let T=o.effect.type,L=Q(T,this.id,d);L&&(this.effect=L,p.load(o.effect))}if(o.shape?.type){let T=o.shape.type,L=Q(T,this.id,d);L&&(this.shape=L,x.load(o.shape))}}this.effectData=hp(this.effect,p,this.id,d),this.shapeData=dp(this.shape,x,this.id,d),f.load(o);let m=this.effectData;m&&f.load(m.particles);let w=this.shapeData;w&&f.load(w.particles);let y=new Ge(r,s);y.load(s.actualOptions.interactivity),y.load(f.interactivity),this.interactivity=y,this.effectFill=m?.fill??f.effect.fill,this.effectClose=m?.close??f.effect.close,this.shapeFill=w?.fill??f.shape.fill,this.shapeClose=w?.close??f.shape.close,this.options=f;let k=this.options.move.path;this.pathDelay=g(k.delay.value)*1e3,k.generator&&(this.pathGenerator=this._engine.getPathGenerator(k.generator),this.pathGenerator&&s.addPath(k.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=Ht(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();let C=1;this.moveDecay=C-g(this.options.move.decay);let b=s.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let O=s.effectDrawers.get(this.effect);O||(O=this._engine.getEffectDrawer(this.effect),O&&s.effectDrawers.set(this.effect,O)),O?.loadEffect&&O.loadEffect(this);let P=s.shapeDrawers.get(this.shape);P||(P=this._engine.getShapeDrawer(this.shape),P&&s.shapeDrawers.set(this.shape,P)),P?.loadShape&&P.loadShape(this);let Y=P?.getSidesCount;Y&&(this.sides=Y(this)),this.spawning=!1,this.shadowColor=J(this.options.shadow.color);for(let T of b.updaters)T.init(this);for(let T of b.movers)T.init?.(this);O?.particleInit?.(s,this),P?.particleInit?.(s,this);for(let[,T]of s.plugins)T.particleCreated?.(this)}isInsideCanvas(){let e=this.getRadius(),t=this.container.canvas.size,o=this.position;return o.x>=-e&&o.y>=-e&&o.y<=t.height+e&&o.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let e of this.container.particles.updaters)e.reset?.(this)}}});var Qi,En=c(()=>{"use strict";Qi=class{constructor(e,t){this.position=e,this.particle=t}}});var ft,Zi,q,N,Ki=c(()=>{"use strict";B();ft=2,Zi=class{constructor(e,t,o){this.position={x:e,y:t},this.type=o}},q=class i extends Zi{constructor(e,t,o){super(e,t,"circle"),this.radius=o}contains(e){return A(e,this.position)<=this.radius}intersects(e){let t=this.position,o=e.position,n={x:Math.abs(o.x-t.x),y:Math.abs(o.y-t.y)},s=this.radius;if(e instanceof i||e.type==="circle"){let r=e,a=s+r.radius,l=Math.sqrt(n.x**ft+n.y**ft);return a>l}else if(e instanceof N||e.type==="rectangle"){let r=e,{width:a,height:l}=r.size;return Math.pow(n.x-a,ft)+Math.pow(n.y-l,ft)<=s**ft||n.x<=s+a&&n.y<=s+l||n.x<=a||n.y<=l}return!1}},N=class i extends Zi{constructor(e,t,o,n){super(e,t,"rectangle"),this.size={height:n,width:o}}contains(e){let t=this.size.width,o=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+o}intersects(e){if(e instanceof q)return e.intersects(this);let t=this.size.width,o=this.size.height,n=this.position,s=e.position,r=e instanceof i?e.size:{width:0,height:0},a=r.width,l=r.height;return s.x<n.x+t&&s.x+a>n.x&&s.y<n.y+o&&s.y+l>n.y}}});var ut,pp,mp,ht,qr=c(()=>{"use strict";Ki();B();ut=.5,pp=2,mp=4,ht=class i{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{let{x:o,y:n}=this.rectangle.position,{width:s,height:r}=this.rectangle.size,{capacity:a}=this;for(let l=0;l<mp;l++){let f=l%pp;this._subs.push(new i(new N(o+s*ut*f,n+r*ut*(Math.round(l*ut)-f),s*ut,r*ut),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(t=>t.insert(e))):!1}query(e,t){let o=[];if(!e.intersects(this.rectangle))return[];for(let n of this._points)!e.contains(n.position)&&A(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||o.push(n.particle);if(this._divided)for(let n of this._subs)o.push(...n.query(e,t));return o}queryCircle(e,t,o){return this.query(new q(e.x,e.y,t),o)}queryRectangle(e,t,o){return this.query(new N(e.x,e.y,t.width,t.height),o)}}});var Vr,xp,gp,Hr,Ji,Wr=c(()=>{"use strict";U();Lr();Br();En();qr();Ki();se();Vr=4,xp=2,gp=1,Hr=i=>{let{height:e,width:t}=i,o=-.25,n=1.5;return new N(o*t,o*e,n*t,n*e)},Ji=class{constructor(e,t){this._addToPool=(...n)=>{for(let s of n)this._pool.push(s)},this._applyDensity=(n,s,r)=>{let a=n.number;if(!n.number.density?.enable){r===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(r,a.limit.value);return}let l=this._initDensityFactor(a.density),f=a.value,u=0,h=a.limit.value>u?a.limit.value:f,d=Math.min(f,h)*l+s,p=Math.min(this.count,this.filter(x=>x.group===r).length);r===void 0?this._limit=a.limit.value*l:this._groupLimits.set(r,a.limit.value*l),p<d?this.push(Math.abs(d-p),void 0,n,r):p>d&&this.removeQuantity(p-d,r)},this._initDensityFactor=n=>{let s=this._container,r=1;if(!s.canvas.element||!n.enable)return r;let a=s.canvas.element,l=s.retina.pixelRatio;return a.width*a.height/(n.height*n.width*l**xp)},this._pushParticle=(n,s,r,a)=>{try{let l=this._pool.pop();l||(l=new Xi(this._engine,this._container)),l.init(this._nextId,n,s,r);let f=!0;return a&&(f=a(l)),f?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:l}}),l):void 0}catch(l){fe().warning(`${G} adding particle: ${l}`)}},this._removeParticle=(n,s,r)=>{let a=this._array[n];if(!a||a.group!==s)return!1;let l=this._zArray.indexOf(a),f=1;return this._array.splice(n,f),this._zArray.splice(l,f),a.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=e,this._container=t,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 Ni(e,t),this._pluginsInitialized=!1;let o=t.canvas.size;this.quadTree=new ht(Hr(o),Vr),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let e=this._container,t=e.actualOptions;for(let o of t.manualParticles)this.addParticle(o.position?Wt(o.position,e.canvas.size):void 0,o.options)}addParticle(e,t,o,n){let s=this._container.actualOptions.particles.number.limit,r=o===void 0?this._limit:this._groupLimits.get(o)??this._limit,a=this.count;if(r>0){if(s.mode==="delete"){let h=a+1-r;h>0&&this.removeQuantity(h)}else if(s.mode==="wait"&&a>=r)return}return this._pushParticle(e,t,o,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){let t=this._container,o=t.canvas;o.clear(),this.update(e);for(let[,n]of t.plugins)o.drawPlugin(n,e);for(let n of this._zArray)n.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){let e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let o=!1;for(let[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(o=n.particlesInitialization()),o)break;if(this.addManualParticles(),!o){let n=t.particles,s=n.groups;for(let r in s){let a=s[r];for(let l=this.count,f=0;f<a.number?.value&&l<n.number.value;l++,f++)this.addParticle(void 0,a,r)}for(let r=this.count;r<n.number.value;r++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(let[,t]of e.pathGenerators)t.init(e)}push(e,t,o,n){for(let s=0;s<e;s++)this.addParticle(t?.position,o,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,o){this.removeAt(this._array.indexOf(e),void 0,t,o)}removeAt(e,t=gp,o,n){if(e<0||e>this.count)return;let r=0;for(let a=e;r<t&&a<this.count;a++)this._removeParticle(a--,o,n)&&r++}removeQuantity(e,t){this.removeAt(0,e,t)}setDensity(){let e=this._container.actualOptions,t=e.particles.groups,o=0;for(let n in t)this._applyDensity(t[n],o,n);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){let t=this._container,o=new Set;this.quadTree=new ht(Hr(t.canvas.size),Vr);for(let[,s]of t.pathGenerators)s.update();for(let[,s]of t.plugins)s.update?.(e);let n=this._resizeFactor;for(let s of this._array){n&&!s.ignoresResizeRatio&&(s.position.x*=n.width,s.position.y*=n.height,s.initialPosition.x*=n.width,s.initialPosition.y*=n.height),s.ignoresResizeRatio=!1,this._interactionManager.reset(s);for(let[,r]of this._container.plugins){if(s.destroyed)break;r.particleUpdate?.(s,e)}for(let r of this.movers)r.isEnabled(s)&&r.move(s,e);if(s.destroyed){o.add(s);continue}this.quadTree.insert(new Qi(s.getPosition(),s))}if(o.size){let s=r=>!o.has(r);this._array=this.filter(s),this._zArray=this._zArray.filter(s);for(let r of o)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:r}});this._addToPool(...o)}this._interactionManager.externalInteract(e);for(let s of this._array){for(let r of this.updaters)r.update(s,e);!s.destroyed&&!s.spawning&&this._interactionManager.particlesInteract(s,e)}if(delete this._resizeFactor,this._needsSort){let s=this._zArray;s.sort((a,l)=>l.position.z-a.position.z||a.id-l.id);let r=1;this._lastZIndex=s[s.length-r].position.z,this._needsSort=!1}}}});var Ur,jr,eo,Gr=c(()=>{"use strict";B();U();Ur=1,jr=1,eo=class{constructor(e){this.container=e,this.pixelRatio=Ur,this.reduceFactor=jr}init(){let e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||me()?Ur:window.devicePixelRatio,this.reduceFactor=jr;let o=this.pixelRatio,n=e.canvas;if(n.element){let a=n.element;n.size.width=a.offsetWidth*o,n.size.height=a.offsetHeight*o}let s=t.particles,r=s.move;this.maxSpeed=g(r.gravity.maxSpeed)*o,this.sizeAnimationSpeed=g(s.size.animation.speed)*o}initParticle(e){let t=e.options,o=this.pixelRatio,n=t.move,s=n.distance,r=e.retina;r.moveDrift=g(n.drift)*o,r.moveSpeed=g(n.speed)*o,r.sizeAnimationSpeed=g(t.size.animation.speed)*o;let a=r.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*o:void 0,a.vertical=s.vertical!==void 0?s.vertical*o:void 0,r.maxSpeed=g(n.gravity.maxSpeed)*o}}});var $r={};v($r,{Container:()=>Ln});function j(i){return i&&!i.destroyed}function yp(i,e=Tn,t=!1){return{value:i,factor:t?Tn/e:Tn*i/1e3}}function Qe(i,e,...t){let o=new $i(i,e);return Dn(o,...t),o}var Tn,Ln,Nr=c(()=>{"use strict";se();U();zr();Sr();Sn();Wr();Gr();B();lt();Tn=60;Ln=class{constructor(e,t,o){this._intersectionManager=n=>{if(!(!j(this)||!this.actualOptions.pauseOnOutsideViewport))for(let s of n)s.target===this.interactivity.element&&(s.isIntersecting?this.play():this.pause())},this._nextFrame=n=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&n<this._lastFrameTime+1e3/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=n;let s=yp(n-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(s.value),this._lastFrameTime=n,s.value>1e3){this.draw(!1);return}if(this.particles.draw(s),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(s){fe().error(`${G} in animation loop`,s)}},this._engine=e,this.id=Symbol(t),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=o,this._initialSourceOptions=o,this.retina=new eo(this),this.canvas=new Kt(this),this.particles=new Ji(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=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this),this._eventListeners=new Jt(this),this._intersectionObserver=pr(n=>this._intersectionManager(n)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&j(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!j(this))return;let t=this.interactivity.element;if(!t)return;let o=(h,d,p)=>{if(!j(this))return;let x=this.retina.pixelRatio,m={x:d.x*x,y:d.y*x},w=this.particles.quadTree.queryCircle(m,p*x);e(h,w)},n=h=>{if(!j(this))return;let d=h,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};o(h,p,1)},s=()=>{j(this)&&(f=!0,u=!1)},r=()=>{j(this)&&(u=!0)},a=h=>{if(j(this)){if(f&&!u){let d=h,p=1,x=d.touches[d.touches.length-p];if(!x&&(x=d.changedTouches[d.changedTouches.length-p],!x))return;let m=this.canvas.element,w=m?m.getBoundingClientRect():void 0,y=0,k={x:x.clientX-(w?w.left:y),y:x.clientY-(w?w.top:y)};o(h,k,Math.max(x.radiusX,x.radiusY))}f=!1,u=!1}},l=()=>{j(this)&&(f=!1,u=!1)},f=!1,u=!1;t.addEventListener("click",n),t.addEventListener("touchstart",s),t.addEventListener("touchmove",r),t.addEventListener("touchend",a),t.addEventListener("touchcancel",l)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,o=!1){return!j(this)||!o&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!j(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(let[,n]of this.effectDrawers)n.destroy?.(this);for(let[,n]of this.shapeDrawers)n.destroy?.(this);for(let n of this.effectDrawers.keys())this.effectDrawers.delete(n);for(let n of this.shapeDrawers.keys())this.shapeDrawers.delete(n);this._engine.clearPlugins(this),this.destroyed=!0;let e=this._engine.dom(),t=e.findIndex(n=>n===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!j(this))return;let t=e,o=n=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(n)};this._drawAnimationFrame=requestAnimationFrame(n=>o(n))}async export(e,t={}){for(let[,o]of this.plugins){if(!o.export)continue;let n=await o.export(e,t);if(n.supported)return n.blob}fe().error(`${G} - Export plugin with type ${e} not found`)}handleClickMode(e){if(j(this)){this.particles.handleClickMode(e);for(let[,t]of this.plugins)t.handleClickMode?.(e)}}async init(){if(!j(this))return;let e=this._engine.getSupportedEffects();for(let r of e){let a=this._engine.getEffectDrawer(r);a&&this.effectDrawers.set(r,a)}let t=this._engine.getSupportedShapes();for(let r of t){let a=this._engine.getShapeDrawer(r);a&&this.shapeDrawers.set(r,a)}await this.particles.initPlugins(),this._options=Qe(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Qe(this._engine,this,this._options);let o=await this._engine.getAvailablePlugins(this);for(let[r,a]of o)this.plugins.set(r,a);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=g(this.actualOptions.duration)*1e3,this._delay=g(this.actualOptions.delay)*1e3,this._lifeTime=0;let n=120,s=0;this.fpsLimit=this.actualOptions.fpsLimit>s?this.actualOptions.fpsLimit:n,this._smooth=this.actualOptions.smooth;for(let[,r]of this.effectDrawers)await r.init?.(this);for(let[,r]of this.shapeDrawers)await r.init?.(this);for(let[,r]of this.plugins)await r.init?.();this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(let[,r]of this.plugins)r.particlesSetup?.();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){j(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(j(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let[,e]of this.plugins)e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!j(this))return;let t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(let[,o]of this.plugins)o.play&&o.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(j(this))return this.stop(),this.start()}async reset(){if(j(this))return this._initialSourceOptions=void 0,this._options=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this,this._options),this.refresh()}async start(){!j(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{let t=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(let[,o]of this.plugins)await o.start?.();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){if(!(!j(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(let[,e]of this.plugins)e.stop?.();for(let e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}});async function Fn(i,e,t,o=!1){let n=e.get(i);return(!n||o)&&(n=await Promise.all([...t.values()].map(s=>s(i))),e.set(i,n)),n}async function vp(i){let e=Q(i.url,i.index);if(!e)return i.fallback;let t=await fetch(e);return t.ok?await t.json():(fe().error(`${G} ${t.status} while retrieving config file`),i.fallback)}var to,Yr=c(()=>{"use strict";se();U();yr();B();to=class{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Ut,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(){let e={};for(let[t,o]of this._configs)e[t]=o;return e}get version(){return"3.3.0"}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:t,config:e}})}async addEffect(e,t,o=!0){V(e,n=>{this.getEffectDrawer(n)||this.effectDrawers.set(n,t)}),await this.refresh(o)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,o=!0){this._initializers.interactors.set(e,t),await this.refresh(o)}async addMover(e,t,o=!0){this._initializers.movers.set(e,t),await this.refresh(o)}async addParticleUpdater(e,t,o=!0){this._initializers.updaters.set(e,t),await this.refresh(o)}async addPathGenerator(e,t,o=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(o)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,o=!1,n=!0){(o||!this.getPreset(e))&&this.presets.set(e,t),await this.refresh(n)}async addShape(e,t,o=!0){V(e,n=>{this.getShapeDrawer(n)||this.shapeDrawers.set(n,t)}),await this.refresh(o)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this._domArray}domItem(e){let t=this.dom(),o=t[e];if(!o||o.destroyed){t.splice(e,1);return}return o}async getAvailablePlugins(e){let t=new Map;for(let o of this.plugins)o.needsPlugin(e.actualOptions)&&t.set(o.id,await o.getPlugin(e));return t}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return await Fn(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return await Fn(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return await Fn(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}async load(e){let o=e.id??e.element?.id??`tsparticles${Math.floor(R()*1e4)}`,{index:n,url:s}=e,r=s?await vp({fallback:e.options,url:s,index:n}):e.options,a=e.element??document.getElementById(o);a||(a=document.createElement("div"),a.id=o,document.body.append(a));let l=Q(r,n),f=this.dom(),u=f.findIndex(m=>m.id.description===o),h=0;if(u>=h){let m=this.domItem(u);if(m&&!m.destroyed){m.destroy();let w=1;f.splice(u,w)}}let d;if(a.tagName.toLowerCase()==="canvas")d=a,d.dataset[ke]="false";else{let m=a.getElementsByTagName("canvas");m.length?(d=m[0],d.dataset[ke]="false"):(d=document.createElement("canvas"),d.dataset[ke]="true",a.appendChild(d))}d.style.width||(d.style.width="100%"),d.style.height||(d.style.height="100%");let{Container:p}=await Promise.resolve().then(()=>(Nr(),$r)),x=new p(this,o,l);return u>=h?f.splice(u,0,x):f.push(x),x.canvas.loadCanvas(d),await x.start(),x}loadOptions(e,t){for(let o of this.plugins)o.loadOptions(e,t)}loadParticlesOptions(e,t,...o){let n=this.updaters.get(e);if(n)for(let s of n)s.loadOptions?.(t,...o)}async refresh(e=!0){e&&await Promise.all(this.dom().map(t=>t.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){let t=this.dom();if(!t.length)throw new Error(`${G} can only set click handlers after calling tsParticles.load()`);for(let o of t)o.addClickHandler(e)}}});var io,An=c(()=>{"use strict";B();Ce();io=class{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.s!==void 0&&o.l!==void 0)return Me(o)}handleRangeColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.l!==void 0)return Me({h:g(o.h),l:g(o.l),s:g(o.s)})}parseString(e){if(!e.startsWith("hsl"))return;let t=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=4,s=1,r=10;return o?br({a:o.length>n?At(o[5]):s,h:parseInt(o[1],r),l:parseInt(o[3],r),s:parseInt(o[2],r)}):void 0}}});var oo,Bn=c(()=>{"use strict";B();oo=class{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return o}handleRangeColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return{r:g(o.r),g:g(o.g),b:g(o.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;let t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=10,s=4,r=1;return o?{a:o.length>s?At(o[5]):r,b:parseInt(o[3],n),g:parseInt(o[2],n),r:parseInt(o[1],n)}:void 0}}});function Xr(){let i=new oo,e=new io;qo(i),qo(e);let t=new to;return t.init(),t}var Qr=c(()=>{"use strict";Yr();An();Bn();Ce()});var H,Zr=c(()=>{"use strict";H=class{constructor(e){this.type="external",this.container=e}}});var _e,Kr=c(()=>{"use strict";_e=class{constructor(e){this.type="particles",this.container=e}}});var Jr=c(()=>{"use strict"});var ea=c(()=>{"use strict"});var ta=c(()=>{"use strict"});var ia=c(()=>{"use strict"});var oa=c(()=>{"use strict"});var na=c(()=>{"use strict"});var sa=c(()=>{"use strict"});var ra=c(()=>{"use strict"});var aa=c(()=>{"use strict"});var ca=c(()=>{"use strict"});var la=c(()=>{"use strict"});var fa=c(()=>{"use strict"});var ua=c(()=>{"use strict"});var ha=c(()=>{"use strict"});var da=c(()=>{"use strict"});var pa=c(()=>{"use strict"});var ma=c(()=>{"use strict"});var xa=c(()=>{"use strict"});var ga=c(()=>{"use strict"});var ya=c(()=>{"use strict"});var va=c(()=>{"use strict"});var ba=c(()=>{"use strict";se();Zr();Kr();En();Ki();it();Jr();ea();ta();ia();oa();na();sa();ra();aa();ca();la();fa();ua();ha();da();pa();ma();xa();ga();ya();va();yi();$e();Wo();jo();Uo();tn();Go();on();si();ri();si();ri();Xo();No();$o();Yo();hi();Qo();Zo();Sn();Re();wi();an();cn();nn();sn();zn();kn();On();fn();gn();ln();un();hn();mn();dn();xn();pn();_n();wn();bn();vn();yn();Mn();Rn();Cn();Pn();Ko();en();Jo();ze();Zt();Ce();An();B();lt();Bn();U();ae()});var wa=c(()=>{"use strict"});var _a=c(()=>{"use strict"});var ka=c(()=>{"use strict"});var Ma=c(()=>{"use strict"});var Ca=c(()=>{"use strict"});var Ra=c(()=>{"use strict"});var Oa=c(()=>{"use strict"});var Pa=c(()=>{"use strict"});var za=c(()=>{"use strict"});var Da=c(()=>{"use strict"});var Sa=c(()=>{"use strict"});var Ia=c(()=>{"use strict"});var Ea=c(()=>{"use strict"});var Ta=c(()=>{"use strict"});var La=c(()=>{"use strict"});var Fa=c(()=>{"use strict"});var Aa=c(()=>{"use strict"});var Ba=c(()=>{"use strict"});var qa=c(()=>{"use strict"});var Va=c(()=>{"use strict"});var Ha=c(()=>{"use strict"});var Wa=c(()=>{"use strict"});var Ua=c(()=>{"use strict"});var ja=c(()=>{"use strict"});var Ga=c(()=>{"use strict"});var $a=c(()=>{"use strict"});var Na=c(()=>{"use strict"});var Ya=c(()=>{"use strict"});var Xa=c(()=>{"use strict"});var Qa=c(()=>{"use strict"});var Za=c(()=>{"use strict"});var Ka=c(()=>{"use strict"});var Ja=c(()=>{"use strict"});var ec=c(()=>{"use strict"});var tc=c(()=>{"use strict"});var ic=c(()=>{"use strict"});var oc=c(()=>{"use strict"});var nc=c(()=>{"use strict"});var sc=c(()=>{"use strict"});var rc=c(()=>{"use strict"});var ac=c(()=>{"use strict"});var cc=c(()=>{"use strict"});var lc=c(()=>{"use strict"});var fc=c(()=>{"use strict"});var uc=c(()=>{"use strict"});var hc=c(()=>{"use strict"});var dc=c(()=>{"use strict"});var pc=c(()=>{"use strict"});var mc=c(()=>{"use strict"});var xc=c(()=>{"use strict"});var gc=c(()=>{"use strict"});var yc=c(()=>{"use strict"});var vc=c(()=>{"use strict"});var bc=c(()=>{"use strict"});var wc=c(()=>{"use strict"});var _c=c(()=>{"use strict"});var kc=c(()=>{"use strict"});var Mc=c(()=>{"use strict"});var Cc=c(()=>{"use strict"});var Rc=c(()=>{"use strict"});var Oc=c(()=>{"use strict"});var Pc=c(()=>{"use strict"});var zc=c(()=>{"use strict"});var Dc=c(()=>{"use strict"});var Sc=c(()=>{"use strict"});var Ic=c(()=>{"use strict"});var Ec=c(()=>{"use strict"});var Tc=c(()=>{"use strict"});var Lc=c(()=>{"use strict"});var Fc=c(()=>{"use strict"});var Ac=c(()=>{"use strict"});var Bc=c(()=>{"use strict"});var qc=c(()=>{"use strict"});var Vc=c(()=>{"use strict"});var Hc=c(()=>{"use strict"});var Wc=c(()=>{"use strict"});var Uc=c(()=>{"use strict"});var jc=c(()=>{"use strict"});var Gc=c(()=>{"use strict"});var $c=c(()=>{"use strict"});var Nc=c(()=>{"use strict"});var Yc=c(()=>{"use strict"});var Xc=c(()=>{"use strict"});var Qc=c(()=>{"use strict"});var Zc=c(()=>{"use strict"});var Kc=c(()=>{"use strict"});var Jc=c(()=>{"use strict"});var el=c(()=>{"use strict"});var tl=c(()=>{"use strict"});var il=c(()=>{"use strict"});var ol=c(()=>{"use strict"});var nl=c(()=>{"use strict"});var sl=c(()=>{"use strict"});var rl=c(()=>{"use strict"});var al=c(()=>{"use strict"});var cl=c(()=>{"use strict"});var ll=c(()=>{"use strict"});var fl=c(()=>{"use strict"});var ul=c(()=>{"use strict"});var hl=c(()=>{"use strict";wa();_a();ka();Ma();Ca();Ra();Oa();Pa();za();Da();Sa();Ia();Ea();Ta();La();Fa();Aa();Ba();qa();Va();Ha();Wa();Ua();ja();Ga();$a();Na();Ya();Xa();Qa();Za();Ka();Ja();ec();tc();ic();oc();nc();sc();rc();ac();cc();lc();fc();uc();hc();dc();pc();mc();xc();gc();yc();vc();bc();wc();_c();kc();Mc();Cc();Rc();Oc();Pc();zc();Dc();Sc();Ic();Ec();Tc();Lc();Fc();Ac();Bc();qc();Vc();Hc();Wc();Uc();jc();Gc();$c();Nc();Yc();Xc();Qc();Zc();Kc();Jc();el();tl();il();ol();nl();sl();rl();al();cl();ll();fl();ul()});var no,_=c(()=>{"use strict";Qr();U();ba();hl();no=Xr();me()||(window.tsParticles=no)});var pl={};v(pl,{ParallaxMover:()=>qn});var dl,qn,ml=c(()=>{"use strict";_();dl=.5,qn=class{init(){}isEnabled(e){return!me()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){let t=e.container,o=t.actualOptions,n=o.interactivity.events.onHover.parallax;if(me()||!n.enable)return;let s=n.force,r=t.interactivity.mouse.position;if(!r)return;let a=t.canvas.size,l={x:a.width*dl,y:a.height*dl},f=n.smooth,u=e.getRadius()/s,h={x:(r.x-l.x)*u,y:(r.y-l.y)*u},{offset:d}=e;d.x+=(h.x-d.x)/f,d.y+=(h.y-d.y)/f}}});var xl={};v(xl,{loadParallaxMover:()=>bp});async function bp(i,e=!0){await i.addMover("parallax",async()=>{let{ParallaxMover:t}=await Promise.resolve().then(()=>(ml(),pl));return new t},e)}var gl=c(()=>{"use strict"});var dt,Vn=c(()=>{"use strict";dt=class{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}});var yl=c(()=>{"use strict"});function bl(i,e,t,o,n){let s=i.actualOptions.interactivity.modes.attract;if(!s)return;let r=i.particles.quadTree.query(o,n);for(let a of r){let{dx:l,dy:f,distance:u}=F(a.position,e),h=s.speed*s.factor,d=W(Lt(s.easing)(_p-u/t)*h,wp,s.maxSpeed),p=I.create(u?l/u*d:h,u?f/u*d:h);a.position.subFrom(p)}}function wl(i,e){i.attract||(i.attract={particles:[]});let{attract:t}=i;if(t.finish||(t.count||(t.count=0),t.count++,t.count===i.particles.count&&(t.finish=!0)),t.clicking){let o=i.interactivity.mouse.clickPosition,n=i.retina.attractModeDistance;if(!n||n<vl||!o)return;bl(i,o,n,new q(o.x,o.y,n),s=>e(s))}else t.clicking===!1&&(t.particles=[])}function _l(i,e){let t=i.interactivity.mouse.position,o=i.retina.attractModeDistance;!o||o<vl||!t||bl(i,t,o,new q(t.x,t.y,o),n=>e(n))}var wp,_p,vl,kl=c(()=>{"use strict";_();wp=1,_p=1,vl=0});var Ml={};v(Ml,{Attractor:()=>Hn});var pt,Hn,Cl=c(()=>{"use strict";_();kl();Vn();pt="attract",Hn=class extends H{constructor(e,t){super(t),this._engine=e,t.attract||(t.attract={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.attract;if(!(!s||o!==pt)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(let r of t.attract.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.attract;t&&(e.retina.attractModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,{enable:s,mode:r}=n.onHover,{enable:a,mode:l}=n.onClick;o&&s&&z(pt,r)?_l(this.container,f=>this.isEnabled(f)):a&&z(pt,l)&&wl(this.container,f=>this.isEnabled(f))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let r=s.onHover.mode,a=s.onClick.mode;return z(pt,r)||z(pt,a)}loadModeOptions(e,...t){e.attract||(e.attract=new dt);for(let o of t)e.attract.load(o?.attract)}reset(){}}});var Rl={};v(Rl,{Attract:()=>dt,loadExternalAttractInteraction:()=>kp});async function kp(i,e=!0){await i.addInteractor("externalAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Cl(),Ml));return new o(i,t)},e)}var Ol=c(()=>{"use strict";Vn();yl()});var mt,Wn=c(()=>{"use strict";mt=class{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}});var Pl=c(()=>{"use strict"});function Sl(i,e,t,o,n){let s=i.particles.quadTree.query(o,n);for(let r of s)o instanceof q?Vt(ot(r),{position:e,radius:t,mass:t**Mp*Cp,velocity:I.origin,factor:I.origin}):o instanceof N&&xr(r,ye(e,t))}function Op(i,e,t,o){let n=document.querySelectorAll(e);n.length&&n.forEach(s=>{let r=s,a=i.retina.pixelRatio,l={x:(r.offsetLeft+r.offsetWidth*so)*a,y:(r.offsetTop+r.offsetHeight*so)*a},f=r.offsetWidth*so*a,u=Dl*a,h=t.type==="circle"?new q(l.x,l.y,f+u):new N(r.offsetLeft*a-u,r.offsetTop*a-u,r.offsetWidth*a+u*zl,r.offsetHeight*a+u*zl);o(l,f,h)})}function Il(i,e,t,o){We(t,e,(n,s)=>Op(i,n,s,(r,a,l)=>Sl(i,r,a,l,o)))}function El(i,e){let t=i.retina.pixelRatio,o=Dl*t,n=i.interactivity.mouse.position,s=i.retina.bounceModeDistance;!s||s<Rp||!n||Sl(i,n,s,new q(n.x,n.y,s+o),e)}var Mp,so,Cp,zl,Dl,Rp,Tl=c(()=>{"use strict";_();Mp=2,so=.5,Cp=Math.PI*so,zl=2,Dl=10,Rp=0});var Ll={};v(Ll,{Bouncer:()=>Un});var ro,Un,Fl=c(()=>{"use strict";_();Tl();Wn();ro="bounce",Un=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bounce;t&&(e.retina.bounceModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity.events,n=e.interactivity.status===ne,s=o.onHover.enable,r=o.onHover.mode,a=o.onDiv;n&&s&&z(ro,r)?El(this.container,l=>this.isEnabled(l)):Il(this.container,a,ro,l=>this.isEnabled(l))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv;return!!n.position&&s.onHover.enable&&z(ro,s.onHover.mode)||He(ro,r)}loadModeOptions(e,...t){e.bounce||(e.bounce=new mt);for(let o of t)e.bounce.load(o?.bounce)}reset(){}}});var Al={};v(Al,{Bounce:()=>mt,loadExternalBounceInteraction:()=>Pp});async function Pp(i,e=!0){await i.addInteractor("externalBounce",async t=>{let{Bouncer:o}=await Promise.resolve().then(()=>(Fl(),Ll));return new o(t)},e)}var Bl=c(()=>{"use strict";Wn();Pl()});var De,ao=c(()=>{"use strict";_();De=class{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){let t=K(this.color)?void 0:this.color;this.color=V(e.color,o=>S.create(t,o))}e.size!==void 0&&(this.size=e.size)}}}});var xt,jn=c(()=>{"use strict";ao();xt=class extends De{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var gt,Gn=c(()=>{"use strict";_();ao();jn();gt=class extends De{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new xt;return o.load(t),o}))}}});var ql=c(()=>{"use strict"});var Vl=c(()=>{"use strict"});var Hl=c(()=>{"use strict"});function $n(i,e,t,o){if(e>=t){let n=i+(e-t)*o;return W(n,i,e)}else if(e<t){let n=i-(t-e)*o;return W(n,e,i)}}var Wl=c(()=>{"use strict";_()});var Gl={};v(Gl,{Bubbler:()=>Qn});var Se,Nn,zp,Dp,Ul,jl,Sp,Ip,Yn,Xn,Qn,$l=c(()=>{"use strict";_();Gn();Wl();Se="bubble",Nn=0,zp=0,Dp=2,Ul=1,jl=1,Sp=0,Ip=0,Yn=.5,Xn=1,Qn=class extends H{constructor(e){super(e),this._clickBubble=()=>{let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.clickPosition,s=o.interactivity.modes.bubble;if(!s||!n)return;t.bubble||(t.bubble={});let r=t.retina.bubbleModeDistance;if(!r||r<Nn)return;let a=t.particles.quadTree.queryCircle(n,r,f=>this.isEnabled(f)),{bubble:l}=t;for(let f of a){if(!l.clicking)continue;f.bubble.inRange=!l.durationEnd;let u=f.getPosition(),h=A(u,n),d=(new Date().getTime()-(t.interactivity.mouse.clickTime??zp))/1e3;d>s.duration&&(l.durationEnd=!0),d>s.duration*Dp&&(l.clicking=!1,l.durationEnd=!1);let p={bubbleObj:{optValue:t.retina.bubbleModeSize,value:f.bubble.radius},particlesObj:{optValue:X(f.options.size.value)*t.retina.pixelRatio,value:f.size.value},type:"size"};this._process(f,h,d,p);let x={bubbleObj:{optValue:s.opacity,value:f.bubble.opacity},particlesObj:{optValue:X(f.options.opacity.value),value:f.opacity?.value??Ul},type:"opacity"};this._process(f,h,d,x),!l.durationEnd&&h<=r?this._hoverBubbleColor(f,h):delete f.bubble.color}},this._hoverBubble=()=>{let t=this.container,o=t.interactivity.mouse.position,n=t.retina.bubbleModeDistance;if(!n||n<Nn||!o)return;let s=t.particles.quadTree.queryCircle(o,n,r=>this.isEnabled(r));for(let r of s){r.bubble.inRange=!0;let a=r.getPosition(),l=A(a,o),f=jl-l/n;l<=n?f>=Ip&&t.interactivity.status===ne&&(this._hoverBubbleSize(r,f),this._hoverBubbleOpacity(r,f),this._hoverBubbleColor(r,f)):this.reset(r),t.interactivity.status===tt&&this.reset(r)}},this._hoverBubbleColor=(t,o,n)=>{let s=this.container.actualOptions,r=n??s.interactivity.modes.bubble;if(r){if(!t.bubble.finalColor){let a=r.color;if(!a)return;let l=Q(a);t.bubble.finalColor=ge(l)}if(t.bubble.finalColor)if(r.mix){t.bubble.color=void 0;let a=t.getFillColor();t.bubble.color=a?Vo(nt(a,t.bubble.finalColor,jl-o,o)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}},this._hoverBubbleOpacity=(t,o,n)=>{let s=this.container,r=s.actualOptions,a=n?.opacity??r.interactivity.modes.bubble?.opacity;if(!a)return;let l=t.options.opacity.value,f=t.opacity?.value??Ul,u=$n(f,a,X(l),o);u!==void 0&&(t.bubble.opacity=u)},this._hoverBubbleSize=(t,o,n)=>{let s=this.container,r=n?.size?n.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(r===void 0)return;let a=X(t.options.size.value)*s.retina.pixelRatio,l=t.size.value,f=$n(l,r,a,o);f!==void 0&&(t.bubble.radius=f)},this._process=(t,o,n,s)=>{let r=this.container,a=s.bubbleObj.optValue,l=r.actualOptions,f=l.interactivity.modes.bubble;if(!f||a===void 0)return;let u=f.duration,h=r.retina.bubbleModeDistance,d=s.particlesObj.optValue,p=s.bubbleObj.value,x=s.particlesObj.value??Sp,m=s.type;if(!(!h||h<Nn||a===d))if(r.bubble||(r.bubble={}),r.bubble.durationEnd)p&&(m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity);else if(o<=h){if((p??x)!==a){let y=x-n*(x-a)/u;m==="size"&&(t.bubble.radius=y),m==="opacity"&&(t.bubble.opacity=y)}}else m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity},this._singleSelectorHover=(t,o,n)=>{let s=this.container,r=document.querySelectorAll(o),a=s.actualOptions.interactivity.modes.bubble;!a||!r.length||r.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*Yn)*u,y:(f.offsetTop+f.offsetHeight*Yn)*u},d=f.offsetWidth*Yn*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=s.particles.quadTree.query(p,m=>this.isEnabled(m));for(let m of x){if(!p.contains(m.getPosition()))continue;m.bubble.inRange=!0;let w=a.divs,y=qt(w,f);(!m.bubble.div||m.bubble.div!==f)&&(this.clear(m,t,!0),m.bubble.div=f),this._hoverBubbleSize(m,Xn,y),this._hoverBubbleOpacity(m,Xn,y),this._hoverBubbleColor(m,Xn,y)}})},e.bubble||(e.bubble={}),this.handleClickMode=t=>{t===Se&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,t,o){e.bubble.inRange&&!o||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bubble;t&&(e.retina.bubbleModeDistance=t.distance*e.retina.pixelRatio,t.size!==void 0&&(e.retina.bubbleModeSize=t.size*e.retina.pixelRatio))}interact(e){let t=this.container.actualOptions,o=t.interactivity.events,n=o.onHover,s=o.onClick,r=n.enable,a=n.mode,l=s.enable,f=s.mode,u=o.onDiv;r&&z(Se,a)?this._hoverBubble():l&&z(Se,f)?this._clickBubble():We(Se,u,(h,d)=>this._singleSelectorHover(e,h,d))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,{onClick:r,onDiv:a,onHover:l}=s,f=He(Se,a);return f||l.enable&&n.position||r.enable&&n.clickPosition?z(Se,l.mode)||z(Se,r.mode)||f:!1}loadModeOptions(e,...t){e.bubble||(e.bubble=new gt);for(let o of t)e.bubble.load(o?.bubble)}reset(e){e.bubble.inRange=!1}}});var Nl={};v(Nl,{Bubble:()=>gt,BubbleBase:()=>De,BubbleDiv:()=>xt,loadExternalBubbleInteraction:()=>Ep});async function Ep(i,e=!0){await i.addInteractor("externalBubble",async t=>{let{Bubbler:o}=await Promise.resolve().then(()=>($l(),Gl));return new o(t)},e)}var Yl=c(()=>{"use strict";ao();jn();Gn();ql();Vl();Hl()});var yt,Zn=c(()=>{"use strict";yt=class{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}});var vt,Kn=c(()=>{"use strict";Zn();vt=class{constructor(){this.distance=80,this.links=new yt,this.radius=60}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links),e.radius!==void 0&&(this.radius=e.radius))}}});var Xl=c(()=>{"use strict"});var Ql=c(()=>{"use strict"});function Lp(i,e,t,o){let n=Math.floor(t.getRadius()/e.getRadius()),s=e.getFillColor(),r=t.getFillColor();if(!s||!r)return;let a=e.getPosition(),l=t.getPosition(),f=nt(s,r,e.getRadius(),t.getRadius()),u=i.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(Zl,ve(s,o)),u.addColorStop(W(n,Zl,Kl),te(f,o)),u.addColorStop(Kl,ve(r,o)),u}function Fp(i,e,t,o,n){be(i,o,n),i.lineWidth=e,i.strokeStyle=t,i.stroke()}function Ap(i,e,t,o){let n=i.actualOptions,s=n.interactivity.modes.connect;if(s)return Lp(e,t,o,s.links.opacity)}function Jl(i,e,t){i.canvas.draw(o=>{let n=Ap(i,o,e,t);if(!n)return;let s=e.getPosition(),r=t.getPosition();Fp(o,e.retina.linksWidth??Tp,n,s,r)})}var Zl,Kl,Tp,ef=c(()=>{"use strict";_();Zl=0,Kl=1,Tp=0});var of={};v(of,{Connector:()=>Jn});var Bp,tf,Jn,nf=c(()=>{"use strict";_();Kn();ef();Bp="connect",tf=0,Jn=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.connect;t&&(e.retina.connectModeDistance=t.distance*e.retina.pixelRatio,e.retina.connectModeRadius=t.radius*e.retina.pixelRatio)}interact(){let e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){let o=e.interactivity.mouse.position,{connectModeDistance:n,connectModeRadius:s}=e.retina;if(!n||n<tf||!s||s<tf||!o)return;let r=Math.abs(s),a=e.particles.quadTree.queryCircle(o,r,l=>this.isEnabled(l));a.forEach((l,f)=>{let u=l.getPosition(),h=1;for(let d of a.slice(f+h)){let p=d.getPosition(),x=Math.abs(n),m=Math.abs(u.x-p.x),w=Math.abs(u.y-p.y);m<x&&w<x&&Jl(e,l,d)}})}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&o.position?z(Bp,n.onHover.mode):!1}loadModeOptions(e,...t){e.connect||(e.connect=new vt);for(let o of t)e.connect.load(o?.connect)}reset(){}}});var sf={};v(sf,{Connect:()=>vt,ConnectLinks:()=>yt,loadExternalConnectInteraction:()=>qp});async function qp(i,e=!0){await i.addInteractor("externalConnect",async t=>{let{Connector:o}=await Promise.resolve().then(()=>(nf(),of));return new o(t)},e)}var rf=c(()=>{"use strict";Kn();Zn();Xl();Ql()});var bt,es=c(()=>{"use strict";_();bt=class{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var wt,ts=c(()=>{"use strict";es();wt=class{constructor(){this.distance=100,this.links=new bt}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links))}}});var af=c(()=>{"use strict"});var cf=c(()=>{"use strict"});function Hp(i,e,t,o,n,s){be(i,t,o),i.strokeStyle=te(n,s),i.lineWidth=e,i.stroke()}function lf(i,e,t,o,n){i.canvas.draw(s=>{let r=e.getPosition();Hp(s,e.retina.linksWidth??Vp,r,n,t,o)})}var Vp,ff=c(()=>{"use strict";_();Vp=0});var uf={};v(uf,{Grabber:()=>is});var Wp,Up,jp,is,hf=c(()=>{"use strict";_();ts();ff();Wp="grab",Up=0,jp=0,is=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.grab;t&&(e.retina.grabModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity;if(!o.modes.grab||!o.events.onHover.enable||e.interactivity.status!==ne)return;let n=e.interactivity.mouse.position;if(!n)return;let s=e.retina.grabModeDistance;if(!s||s<Up)return;let r=e.particles.quadTree.queryCircle(n,s,a=>this.isEnabled(a));for(let a of r){let l=a.getPosition(),f=A(l,n);if(f>s)continue;let u=o.modes.grab.links,h=u.opacity,d=h-f*h/s;if(d<=jp)continue;let p=u.color??a.options.links?.color;if(!e.particles.grabLineColor&&p){let m=o.modes.grab.links;e.particles.grabLineColor=Nt(p,m.blink,m.consent)}let x=st(a,void 0,e.particles.grabLineColor);x&&lf(e,a,x,d,n)}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(Wp,n.onHover.mode)}loadModeOptions(e,...t){e.grab||(e.grab=new wt);for(let o of t)e.grab.load(o?.grab)}reset(){}}});var df={};v(df,{Grab:()=>wt,GrabLinks:()=>bt,loadExternalGrabInteraction:()=>Gp});async function Gp(i,e=!0){await i.addInteractor("externalGrab",async t=>{let{Grabber:o}=await Promise.resolve().then(()=>(hf(),uf));return new o(t)},e)}var pf=c(()=>{"use strict";ts();es();af();cf()});var mf={};v(mf,{Pauser:()=>os});var $p,os,xf=c(()=>{"use strict";_();$p="pause",os=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==$p)return;let o=this.container;o.animationStatus?o.pause():o.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}});var gf={};v(gf,{loadExternalPauseInteraction:()=>Np});async function Np(i,e=!0){await i.addInteractor("externalPause",async t=>{let{Pauser:o}=await Promise.resolve().then(()=>(xf(),mf));return new o(t)},e)}var yf=c(()=>{"use strict"});var _t,ns=c(()=>{"use strict";_();_t=class{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(o=>o)),this.groups.length||(this.default=!0);let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var vf=c(()=>{"use strict"});var bf={};v(bf,{Pusher:()=>ss});var Yp,Xp,ss,wf=c(()=>{"use strict";_();ns();Yp="push",Xp=0,ss=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==Yp)return;let o=this.container,n=o.actualOptions,s=n.interactivity.modes.push;if(!s)return;let r=g(s.quantity);if(r<=Xp)return;let a=qe([void 0,...s.groups]),l=a!==void 0?o.actualOptions.particles.groups[a]:void 0;o.particles.push(r,o.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.push||(e.push=new _t);for(let o of t)e.push.load(o?.push)}reset(){}}});var _f={};v(_f,{Push:()=>_t,loadExternalPushInteraction:()=>Qp});async function Qp(i,e=!0){await i.addInteractor("externalPush",async t=>{let{Pusher:o}=await Promise.resolve().then(()=>(wf(),bf));return new o(t)},e)}var kf=c(()=>{"use strict";ns();vf()});var kt,rs=c(()=>{"use strict";_();kt=class{constructor(){this.quantity=2}load(e){if(!e)return;let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var Mf=c(()=>{"use strict"});var Cf={};v(Cf,{Remover:()=>as});var Zp,as,Rf=c(()=>{"use strict";_();rs();Zp="remove",as=class extends H{constructor(e){super(e),this.handleClickMode=t=>{let o=this.container,n=o.actualOptions;if(!n.interactivity.modes.remove||t!==Zp)return;let s=g(n.interactivity.modes.remove.quantity);o.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.remove||(e.remove=new kt);for(let o of t)e.remove.load(o?.remove)}reset(){}}});var Of={};v(Of,{Remove:()=>kt,loadExternalRemoveInteraction:()=>Kp});async function Kp(i,e=!0){await i.addInteractor("externalRemove",async t=>{let{Remover:o}=await Promise.resolve().then(()=>(Rf(),Cf));return new o(t)},e)}var Pf=c(()=>{"use strict";rs();Mf()});var Ie,co=c(()=>{"use strict";Ie=class{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}});var Mt,cs=c(()=>{"use strict";co();Mt=class extends Ie{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var Ct,ls=c(()=>{"use strict";_();co();cs();Ct=class extends Ie{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new Mt;return o.load(t),o}))}}});var zf=c(()=>{"use strict"});var Df=c(()=>{"use strict"});var Sf=c(()=>{"use strict"});var If={};v(If,{Repulser:()=>us});var Ee,Jp,em,tm,im,om,nm,sm,fs,us,Ef=c(()=>{"use strict";_();ls();Ee="repulse",Jp=0,em=6,tm=3,im=2,om=0,nm=0,sm=1,fs=.5,us=class extends H{constructor(e,t){super(t),this._clickRepulse=()=>{let o=this.container,n=o.actualOptions.interactivity.modes.repulse;if(!n)return;let s=o.repulse??{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===o.particles.count&&(s.finish=!0)),s.clicking){let r=o.retina.repulseModeDistance;if(!r||r<Jp)return;let a=Math.pow(r/em,tm),l=o.interactivity.mouse.clickPosition;if(l===void 0)return;let f=new q(l.x,l.y,a),u=o.particles.quadTree.query(f,h=>this.isEnabled(h));for(let h of u){let{dx:d,dy:p,distance:x}=F(l,h.position),m=x**im,w=n.speed,y=-a*w/m;if(m<=a){s.particles.push(h);let k=I.create(d,p);k.length=y,h.velocity.setTo(k)}}}else if(s.clicking===!1){for(let r of s.particles)r.velocity.setTo(r.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{let o=this.container,n=o.interactivity.mouse.position,s=o.retina.repulseModeDistance;!s||s<om||!n||this._processRepulse(n,s,new q(n.x,n.y,s))},this._processRepulse=(o,n,s,r)=>{let a=this.container,l=a.particles.quadTree.query(s,w=>this.isEnabled(w)),f=a.actualOptions.interactivity.modes.repulse;if(!f)return;let{easing:u,speed:h,factor:d,maxSpeed:p}=f,x=Lt(u),m=(r?.speed??h)*d;for(let w of l){let{dx:y,dy:k,distance:C}=F(w.position,o),b=W(x(sm-C/n)*m,nm,p),O=I.create(C?y/C*b:m,C?k/C*b:m);w.position.addTo(O)}},this._singleSelectorRepulse=(o,n)=>{let s=this.container,r=s.actualOptions.interactivity.modes.repulse;if(!r)return;let a=document.querySelectorAll(o);a.length&&a.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*fs)*u,y:(f.offsetTop+f.offsetHeight*fs)*u},d=f.offsetWidth*fs*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=r.divs,m=qt(x,f);this._processRepulse(h,d,p,m)})},this._engine=e,t.repulse||(t.repulse={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.repulse;if(!s||o!==Ee)return;t.repulse||(t.repulse={particles:[]});let r=t.repulse;r.clicking=!0,r.count=0;for(let a of t.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);r.particles=[],r.finish=!1,setTimeout(()=>{t.destroyed||(r.clicking=!1)},s.duration*1e3)}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.repulse;t&&(e.retina.repulseModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,s=n.onHover,r=s.enable,a=s.mode,l=n.onClick,f=l.enable,u=l.mode,h=n.onDiv;o&&r&&z(Ee,a)?this._hoverRepulse():f&&z(Ee,u)?this._clickRepulse():We(Ee,h,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv,a=s.onHover,l=s.onClick,f=He(Ee,r);if(!(f||a.enable&&n.position||l.enable&&n.clickPosition))return!1;let u=a.mode,h=l.mode;return z(Ee,u)||z(Ee,h)||f}loadModeOptions(e,...t){e.repulse||(e.repulse=new Ct);for(let o of t)e.repulse.load(o?.repulse)}reset(){}}});var Tf={};v(Tf,{Repulse:()=>Ct,RepulseBase:()=>Ie,RepulseDiv:()=>Mt,loadExternalRepulseInteraction:()=>rm});async function rm(i,e=!0){await i.addInteractor("externalRepulse",async t=>{let{Repulser:o}=await Promise.resolve().then(()=>(Ef(),If));return new o(i,t)},e)}var Lf=c(()=>{"use strict";co();cs();ls();zf();Df();Sf()});var Rt,hs=c(()=>{"use strict";Rt=class{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}});var Ff=c(()=>{"use strict"});var Af={};v(Af,{Slower:()=>ds});var am,cm,ds,Bf=c(()=>{"use strict";_();hs();am="slow",cm=0,ds=class extends H{constructor(e){super(e)}clear(e,t,o){e.slow.inRange&&!o||(e.slow.factor=1)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.slow;t&&(e.retina.slowModeRadius=t.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(am,n.onHover.mode)}loadModeOptions(e,...t){e.slow||(e.slow=new Rt);for(let o of t)e.slow.load(o?.slow)}reset(e){e.slow.inRange=!1;let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.position,s=t.retina.slowModeRadius,r=o.interactivity.modes.slow;if(!r||!s||s<cm||!n)return;let a=e.getPosition(),l=A(n,a),f=l/s,u=r.factor,{slow:h}=e;l>s||(h.inRange=!0,h.factor=f/u)}}});var qf={};v(qf,{Slow:()=>Rt,loadExternalSlowInteraction:()=>lm});async function lm(i,e=!0){await i.addInteractor("externalSlow",async t=>{let{Slower:o}=await Promise.resolve().then(()=>(Bf(),Af));return new o(t)},e)}var Vf=c(()=>{"use strict";hs();Ff()});var Wf={};v(Wf,{Attractor:()=>ps});var Hf,fm,ps,Uf=c(()=>{"use strict";_();Hf=1e3,fm=1,ps=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e){let t=this.container;e.attractDistance===void 0&&(e.attractDistance=g(e.options.move.attract.distance)*t.retina.pixelRatio);let o=e.attractDistance,n=e.getPosition(),s=t.particles.quadTree.queryCircle(n,o);for(let r of s){if(e===r||!r.options.move.attract.enable||r.destroyed||r.spawning)continue;let a=r.getPosition(),{dx:l,dy:f}=F(n,a),u=e.options.move.attract.rotate,h=l/(u.x*Hf),d=f/(u.y*Hf),p=r.size.value/e.size.value,x=fm/p;e.velocity.x-=h*p,e.velocity.y-=d*p,r.velocity.x+=h*x,r.velocity.y+=d*x}}isEnabled(e){return e.options.move.attract.enable}reset(){}}});var jf={};v(jf,{loadParticlesAttractInteraction:()=>um});async function um(i,e=!0){await i.addInteractor("particlesAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Uf(),Wf));return new o(t)},e)}var Gf=c(()=>{"use strict"});function $f(i,e,t,o,n,s){let r=W(i.options.collisions.absorb.speed*n.factor/dm,pm,o);i.size.value+=r*hm,t.size.value-=r,o<=s&&(t.size.value=0,t.destroy())}function Nf(i,e,t,o){let n=i.getRadius(),s=e.getRadius();n===void 0&&s!==void 0?i.destroy():n!==void 0&&s===void 0?e.destroy():n!==void 0&&s!==void 0&&(n>=s?$f(i,n,e,s,t,o):$f(e,s,i,n,t,o))}var hm,dm,pm,Yf=c(()=>{"use strict";_();hm=.5,dm=10,pm=0});function lo(i,e){Vt(ot(i),ot(e)),Xf(i),Xf(e)}var Xf,ms=c(()=>{"use strict";_();Xf=i=>{i.collisionMaxSpeed===void 0&&(i.collisionMaxSpeed=g(i.options.collisions.maxSpeed)),i.velocity.length>i.collisionMaxSpeed&&(i.velocity.length=i.collisionMaxSpeed)}});function Qf(i,e){!i.unbreakable&&!e.unbreakable&&lo(i,e),i.getRadius()===void 0&&e.getRadius()!==void 0?i.destroy():i.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():i.getRadius()!==void 0&&e.getRadius()!==void 0&&(i.getRadius()>=e.getRadius()?e:i).destroy()}var Zf=c(()=>{"use strict";ms()});function Kf(i,e,t,o){switch(i.options.collisions.mode){case"absorb":{Nf(i,e,t,o);break}case"bounce":{lo(i,e);break}case"destroy":{Qf(i,e);break}}}var Jf=c(()=>{"use strict";Yf();ms();Zf()});var eu={};v(eu,{Collider:()=>xs});var mm,xs,tu=c(()=>{"use strict";_();Jf();mm=2,xs=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e,t){if(e.destroyed||e.spawning)return;let o=this.container,n=e.getPosition(),s=e.getRadius(),r=o.particles.quadTree.queryCircle(n,s*mm);for(let a of r){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let l=a.getPosition(),f=a.getRadius();if(Math.abs(Math.round(n.z)-Math.round(l.z))>s+f)continue;let u=A(n,l),h=s+f;u>h||Kf(e,a,t,o.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}});var iu={};v(iu,{loadParticlesCollisionsInteraction:()=>xm});async function xm(i,e=!0){await i.addInteractor("particlesCollisions",async t=>{let{Collider:o}=await Promise.resolve().then(()=>(tu(),eu));return new o(t)},e)}var ou=c(()=>{"use strict"});var Ot,gs=c(()=>{"use strict";_();Ot=class{constructor(){this.blur=5,this.color=new S,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}});var Pt,ys=c(()=>{"use strict";_();Pt=class{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var zt,vs=c(()=>{"use strict";_();gs();ys();zt=class{constructor(){this.blink=!1,this.color=new S,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ot,this.triangles=new Pt,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=S.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}});var nu=c(()=>{"use strict"});var su=c(()=>{"use strict"});var ru=c(()=>{"use strict"});var bs,fo,au=c(()=>{"use strict";_();bs=2,fo=class extends q{constructor(e,t,o,n){super(e,t,o),this.canvasSize=n,this.canvasSize={...n}}contains(e){let{width:t,height:o}=this.canvasSize,{x:n,y:s}=e;return super.contains(e)||super.contains({x:n-t,y:s})||super.contains({x:n-t,y:s-o})||super.contains({x:n,y:s-o})}intersects(e){if(super.intersects(e))return!0;let t=e,o=e,n={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(o.radius!==void 0){let s=new q(n.x,n.y,o.radius*bs);return super.intersects(s)}else if(t.size!==void 0){let s=new N(n.x,n.y,t.size.width*bs,t.size.height*bs);return super.intersects(s)}return!1}}});var lu={};v(lu,{Linker:()=>ws});function vm(i,e,t,o,n){let{dx:s,dy:r,distance:a}=F(i,e);if(!n||a<=t)return a;let l={x:Math.abs(s),y:Math.abs(r)},f={x:Math.min(l.x,o.width-l.x),y:Math.min(l.y,o.height-l.y)};return Math.sqrt(f.x**cu+f.y**cu)}var cu,gm,uo,ym,ws,fu=c(()=>{"use strict";_();au();vs();cu=2,gm=1,uo={x:0,y:0},ym=0;ws=class extends _e{constructor(e){super(e),this._setColor=t=>{if(!t.options.links)return;let o=this.linkContainer,n=t.options.links,s=n.id===void 0?o.particles.linksColor:o.particles.linksColors.get(n.id);if(s)return;let r=n.color;s=Nt(r,n.blink,n.consent),n.id===void 0?o.particles.linksColor=s:o.particles.linksColors.set(n.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(e){if(!e.options.links)return;e.links=[];let t=e.getPosition(),o=this.container,n=o.canvas.size;if(t.x<uo.x||t.y<uo.y||t.x>n.width||t.y>n.height)return;let s=e.options.links,r=s.opacity,a=e.retina.linksDistance??ym,l=s.warp,f;l?f=new fo(t.x,t.y,a,n):f=new q(t.x,t.y,a);let u=o.particles.quadTree.query(f);for(let h of u){let d=h.options.links;if(e===h||!d?.enable||s.id!==d.id||h.spawning||h.destroyed||!h.links||e.links.some(w=>w.destination===h)||h.links.some(w=>w.destination===e))continue;let p=h.getPosition();if(p.x<uo.x||p.y<uo.y||p.x>n.width||p.y>n.height)continue;let x=vm(t,p,a,n,l&&d.warp);if(x>a)continue;let m=(gm-x/a)*r;this._setColor(e),e.links.push({destination:h,opacity:m})}}isEnabled(e){return!!e.options.links?.enable}loadParticlesOptions(e,...t){e.links||(e.links=new zt);for(let o of t)e.links.load(o?.links)}reset(){}}});var uu={};v(uu,{loadLinksInteraction:()=>bm});async function bm(i,e=!0){await i.addInteractor("particlesLinks",async t=>{let{Linker:o}=await Promise.resolve().then(()=>(fu(),lu));return new o(t)},e)}var hu=c(()=>{"use strict"});function wm(i,e,t,o){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.lineTo(o.x,o.y),i.closePath()}function du(i){let e=!1,{begin:t,end:o,maxDistance:n,context:s,canvasSize:r,width:a,backgroundMask:l,colorLine:f,opacity:u,links:h}=i;if(A(t,o)<=n)be(s,t,o),e=!0;else if(h.warp){let p,x,m={x:o.x-r.width,y:o.y},w=F(t,m);if(w.distance<=n){let y=t.y-w.dy/w.dx*t.x;p={x:0,y},x={x:r.width,y}}else{let y={x:o.x,y:o.y-r.height},k=F(t,y);if(k.distance<=n){let b=-(t.y-k.dy/k.dx*t.x)/(k.dy/k.dx);p={x:b,y:0},x={x:b,y:r.height}}else{let C={x:o.x-r.width,y:o.y-r.height},b=F(t,C);if(b.distance<=n){let O=t.y-b.dy/b.dx*t.x;p={x:-O/(b.dy/b.dx),y:O},x={x:p.x+r.width,y:p.y+r.height}}}}p&&x&&(be(s,t,p),be(s,o,x),e=!0)}if(!e)return;s.lineWidth=a,l.enable&&(s.globalCompositeOperation=l.composite),s.strokeStyle=te(f,u);let{shadow:d}=h;if(d.enable){let p=J(d.color);p&&(s.shadowBlur=d.blur,s.shadowColor=te(p))}s.stroke()}function pu(i){let{context:e,pos1:t,pos2:o,pos3:n,backgroundMask:s,colorTriangle:r,opacityTriangle:a}=i;wm(e,t,o,n),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=te(r,a),e.fill()}function _m(i){return i.sort((e,t)=>e-t),i.join("_")}function _s(i,e){let t=_m(i.map(n=>n.id)),o=e.get(t);return o===void 0&&(o=R(),e.set(t,o)),o}var mu=c(()=>{"use strict";_()});var yu={};v(yu,{LinkInstance:()=>Ms});var xu,ks,gu,km,Mm,Ms,vu=c(()=>{"use strict";_();mu();xu=0,ks=0,gu=0,km=.5,Mm=1,Ms=class{constructor(e){this.container=e,this._drawLinkLine=(t,o)=>{let n=t.options.links;if(!n?.enable)return;let s=this.container,r=s.actualOptions,a=o.destination,l=t.getPosition(),f=a.getPosition(),u=o.opacity;s.canvas.draw(h=>{let d,p=t.options.twinkle?.lines;if(p?.enable){let y=p.frequency,k=J(p.color);R()<y&&k&&(d=k,u=g(p.opacity))}if(!d){let y=n.id!==void 0?s.particles.linksColors.get(n.id):s.particles.linksColor;d=st(t,a,y)}if(!d)return;let x=t.retina.linksWidth??ks,m=t.retina.linksDistance??gu,{backgroundMask:w}=r;du({context:h,width:x,begin:l,end:f,maxDistance:m,canvasSize:s.canvas.size,links:n,backgroundMask:w,colorLine:d,opacity:u})})},this._drawLinkTriangle=(t,o,n)=>{let s=t.options.links;if(!s?.enable)return;let r=s.triangles;if(!r.enable)return;let a=this.container,l=a.actualOptions,f=o.destination,u=n.destination,h=r.opacity??(o.opacity+n.opacity)*km;h<=xu||a.canvas.draw(d=>{let p=t.getPosition(),x=f.getPosition(),m=u.getPosition(),w=t.retina.linksDistance??gu;if(A(p,x)>w||A(m,x)>w||A(m,p)>w)return;let y=J(r.color);if(!y){let k=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;y=st(t,f,k)}y&&pu({context:d,pos1:p,pos2:x,pos3:m,backgroundMask:l.backgroundMask,colorTriangle:y,opacityTriangle:h})})},this._drawTriangles=(t,o,n,s)=>{let r=n.destination;if(!(t.links?.triangles.enable&&r.options.links?.triangles.enable))return;let a=r.links?.filter(l=>{let f=this._getLinkFrequency(r,l.destination),u=0;return r.options.links&&f<=r.options.links.frequency&&s.findIndex(h=>h.destination===l.destination)>=u});if(a?.length)for(let l of a){let f=l.destination;this._getTriangleFrequency(o,r,f)>t.links.triangles.frequency||this._drawLinkTriangle(o,n,l)}},this._getLinkFrequency=(t,o)=>_s([t,o],this._freqs.links),this._getTriangleFrequency=(t,o,n)=>_s([t,o,n],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,t){let{links:o,options:n}=t;if(!o?.length)return;let s=o.filter(r=>n.links&&(n.links.frequency>=Mm||this._getLinkFrequency(t,r.destination)<=n.links.frequency));for(let r of s)this._drawTriangles(n,t,r,s),r.opacity>xu&&(t.retina.linksWidth??ks)>ks&&this._drawLinkLine(t,r)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;let t=this.container.retina.pixelRatio,{retina:o}=e,{distance:n,width:s}=e.options.links;o.linksDistance=n*t,o.linksWidth=s*t}particleDestroyed(e){e.links=[]}}});var bu={};v(bu,{LinksPlugin:()=>Cs});var Cs,wu=c(()=>{"use strict";Cs=class{constructor(){this.id="links"}async getPlugin(e){let{LinkInstance:t}=await Promise.resolve().then(()=>(vu(),yu));return new t(e)}loadOptions(){}needsPlugin(){return!0}}});var _u={};v(_u,{loadLinksPlugin:()=>Cm});async function Cm(i,e=!0){let{LinksPlugin:t}=await Promise.resolve().then(()=>(wu(),bu)),o=new t;await i.addPlugin(o,e)}var ku=c(()=>{"use strict"});var Mu={};v(Mu,{Links:()=>zt,LinksShadow:()=>Ot,LinksTriangle:()=>Pt,loadParticlesLinksInteraction:()=>Rm});async function Rm(i,e=!0){let{loadLinksInteraction:t}=await Promise.resolve().then(()=>(hu(),uu)),{loadLinksPlugin:o}=await Promise.resolve().then(()=>(ku(),_u));await t(i,e),await o(i,e)}var Cu=c(()=>{"use strict";vs();gs();ys();nu();su();ru()});var Ru={};v(Ru,{loadEasingQuadPlugin:()=>Om});async function Om(){Tt("ease-in-quad",i=>i**2),Tt("ease-out-quad",i=>1-(1-i)**2),Tt("ease-in-out-quad",i=>i<.5?2*i**2:1-(-2*i+2)**2/2),await Promise.resolve()}var Ou=c(()=>{"use strict";_()});var Dt,Rs=c(()=>{"use strict";Dt=["emoji"]});function Pu(i){let{context:e,particle:t,radius:o,opacity:n}=i,s=t.emojiData,r=2,a=o*r,l=e.globalAlpha;s&&(e.globalAlpha=n,e.drawImage(s,-o,-o,a,a),e.globalAlpha=l)}var zu=c(()=>{"use strict"});var Su={};v(Su,{EmojiDrawer:()=>Os});var Du,Os,Iu=c(()=>{"use strict";_();zu();Rs();Du='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Os=class{constructor(){this._emojiShapeDict=new Map}destroy(){for(let[e,t]of this._emojiShapeDict)t instanceof ImageBitmap&&(t?.close(),this._emojiShapeDict.delete(e))}draw(e){Pu(e)}async init(e){let t=e.actualOptions;if(!Dt.find(s=>z(s,t.particles.shape.type)))return;let o=[Fo(Du)],n=Dt.map(s=>t.particles.shape.options[s]).find(s=>!!s);n&&V(n,s=>{s.font&&o.push(Fo(s.font))}),await Promise.all(o)}particleDestroy(e){delete e.emojiData}particleInit(e,t){let n=t.shapeData;if(!n?.value)return;let s=Q(n.value,t.randomIndexData),r=n.font??Du;if(!s)return;let a=`${s}_${r}`,l=this._emojiShapeDict.get(a);if(l){t.emojiData=l;return}let f=X(t.size.value)*2,u,h=X(t.size.value);if(typeof OffscreenCanvas<"u"){let d=new OffscreenCanvas(f,f),p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d.transferToImageBitmap()}else{let d=document.createElement("canvas");d.width=f,d.height=f;let p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d}this._emojiShapeDict.set(a,u),t.emojiData=u}}});var Eu={};v(Eu,{loadEmojiShape:()=>Pm});async function Pm(i,e=!0){let{EmojiDrawer:t}=await Promise.resolve().then(()=>(Iu(),Su));await i.addShape(Dt,new t,e)}var Tu=c(()=>{"use strict";Rs()});var Lu={};v(Lu,{downloadSvgImage:()=>Ps,loadImage:()=>St,replaceImageColor:()=>zs});function Im(i,e,t){let{svgData:o}=i;if(!o)return"";let n=ve(e,t);if(o.includes("fill"))return o.replace(Sm,()=>n);let s=o.indexOf(">");return`${o.substring(zm,s)} fill="${n}"${o.substring(s)}`}async function St(i){return new Promise(e=>{i.loading=!0;let t=new Image;i.element=t,t.addEventListener("load",()=>{i.loading=!1,e()}),t.addEventListener("error",()=>{i.element=void 0,i.error=!0,i.loading=!1,fe().error(`${G} loading image: ${i.source}`),e()}),t.src=i.source})}async function Ps(i){if(i.type!=="svg"){await St(i);return}i.loading=!0;let e=await fetch(i.source);e.ok?i.svgData=await e.text():(fe().error(`${G} Image not found`),i.error=!0),i.loading=!1}function zs(i,e,t,o){let n=Im(i,t,o.opacity?.value??Dm),s={color:t,gif:e.gif,data:{...i,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(r=>{let a=new Blob([n],{type:"image/svg+xml"}),l=URL||window.URL||window.webkitURL||window,f=l.createObjectURL(a),u=new Image;u.addEventListener("load",()=>{s.loaded=!0,s.element=u,r(s),l.revokeObjectURL(f)});let h=async()=>{l.revokeObjectURL(f);let d={...i,error:!1,loading:!0};await St(d),s.loaded=!0,s.element=d.element,r(s)};u.addEventListener("error",()=>void h()),u.src=f})}var zm,Dm,Sm,ho=c(()=>{"use strict";_();zm=0,Dm=1,Sm=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi});var po,Ds,Fu=c(()=>{"use strict";po=[0,4,2,1],Ds=[8,8,4,2]});var mo,Au=c(()=>{"use strict";mo=class{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){let t=this.data.slice(this.pos,this.pos+e);return this.pos+=t.length,t.reduce((o,n)=>o+String.fromCharCode(n),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",t=0,o=0,n=0;do{t=this.data[this.pos++];for(let s=t;--s>=o;e+=String.fromCharCode(this.data[this.pos++]));}while(t!==n);return e}readSubBlocksBin(){let e=this.data[this.pos],t=0,o=0,n=1;for(let r=0;e!==o;r+=e+n,e=this.data[this.pos+r])t+=e;let s=new Uint8Array(t);e=this.data[this.pos++];for(let r=0;e!==o;e=this.data[this.pos++])for(let a=e;--a>=o;s[r++]=this.data[this.pos++]);return s}skipSubBlocks(){for(let e=1,t=0;this.data[this.pos]!==t;this.pos+=this.data[this.pos]+e);this.pos++}}});var Uu={};v(Uu,{decodeGIF:()=>Wu,drawGif:()=>Is,getGIFLoopAmount:()=>Hu,loadGifImage:()=>Bm});function Vu(i,e){let t=[];for(let o=0;o<e;o++)t.push({r:i.data[i.pos],g:i.data[i.pos+1],b:i.data[i.pos+2]}),i.pos+=3;return t}function Lm(i,e,t,o){switch(i.nextByte()){case 249:{let n=e.frames[t(!1)];i.pos++;let s=i.nextByte();n.GCreserved=(s&224)>>>5,n.disposalMethod=(s&28)>>>2,n.userInputDelayFlag=(s&2)===2;let r=(s&1)===1;n.delayTime=i.nextTwoBytes()*10;let a=i.nextByte();r&&o(a),i.pos++;break}case 255:{i.pos++;let n={identifier:i.getString(8),authenticationCode:i.getString(3),data:i.readSubBlocksBin()};e.applicationExtensions.push(n);break}case 254:{e.comments.push([t(!1),i.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");i.pos++,e.frames[t(!1)].plainTextData={left:i.nextTwoBytes(),top:i.nextTwoBytes(),width:i.nextTwoBytes(),height:i.nextTwoBytes(),charSize:{width:i.nextTwoBytes(),height:i.nextTwoBytes()},foregroundColor:i.nextByte(),backgroundColor:i.nextByte(),text:i.readSubBlocks()};break}default:i.skipSubBlocks();break}}async function Fm(i,e,t,o,n,s){let r=e.frames[o(!0)];r.left=i.nextTwoBytes(),r.top=i.nextTwoBytes(),r.width=i.nextTwoBytes(),r.height=i.nextTwoBytes();let a=i.nextByte(),l=(a&128)===128,f=(a&64)===64;r.sortFlag=(a&32)===32,r.reserved=(a&24)>>>3;let u=1<<(a&7)+1;l&&(r.localColorTable=Vu(i,u));let h=y=>{let{r:k,g:C,b}=(l?r.localColorTable:e.globalColorTable)[y];return y!==n(null)?{r:k,g:C,b,a:255}:{r:k,g:C,b,a:t?~~((k+C+b)/3):0}},d=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(y){if(y instanceof DOMException&&y.name==="IndexSizeError")return null;throw y}})();if(d==null)throw new EvalError("GIF frame size is to large");let p=i.nextByte(),x=i.readSubBlocksBin(),m=1<<p,w=(y,k)=>{let C=y>>>3,b=y&7;return(x[C]+(x[C+1]<<8)+(x[C+2]<<16)&(1<<k)-1<<b)>>>b};if(f){for(let y=0,k=p+1,C=0,b=[[0]],O=0;O<4;O++){if(po[O]<r.height){let P=0,Y=0,T=!1;for(;!T;){let L=y;if(y=w(C,k),C+=k+1,y===m){k=p+1,b.length=m+2;for(let Z=0;Z<b.length;Z++)b[Z]=Z<m?[Z]:[]}else{y>=b.length?b.push(b[L].concat(b[L][0])):L!==m&&b.push(b[L].concat(b[y][0]));for(let Z of b[y]){let{r:oe,g:It,b:Ks,a:Js}=h(Z);d.data.set([oe,It,Ks,Js],po[O]*r.width+Ds[O]*Y+P%(r.width*4)),P+=4}b.length===1<<k&&k<12&&k++}P===r.width*4*(Y+1)&&(Y++,po[O]+Ds[O]*Y>=r.height&&(T=!0))}}s?.(i.pos/(i.data.length-1),o(!1)+1,d,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=d,r.bitmap=await createImageBitmap(d)}else{let y=0,k=p+1,C=0,b=-4,O=!1,P=[[0]];for(;!O;){let Y=y;if(y=w(C,k),C+=k,y===m){k=p+1,P.length=m+2;for(let T=0;T<P.length;T++)P[T]=T<m?[T]:[]}else{if(y===m+1){O=!0;break}y>=P.length?P.push(P[Y].concat(P[Y][0])):Y!==m&&P.push(P[Y].concat(P[y][0]));for(let T of P[y]){let{r:L,g:Z,b:oe,a:It}=h(T);d.data.set([L,Z,oe,It],b+=4)}P.length>=1<<k&&k<12&&k++}}r.image=d,r.bitmap=await createImageBitmap(d),s?.((i.pos+1)/i.data.length,o(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function Am(i,e,t,o,n,s){switch(i.nextByte()){case 59:return!0;case 44:await Fm(i,e,t,o,n,s);break;case 33:Lm(i,e,o,n);break;default:throw new EvalError("undefined block found")}return!1}function Hu(i){for(let e of i.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}async function Wu(i,e,t){t||(t=!1);let o=await fetch(i);if(!o.ok&&o.status===404)throw new EvalError("file not found");let n=await o.arrayBuffer(),s={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new mo(new Uint8ClampedArray(n));if(r.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");s.width=r.nextTwoBytes(),s.height=r.nextTwoBytes();let a=r.nextByte(),l=(a&128)===128;s.colorRes=(a&112)>>>4,s.sortFlag=(a&8)===8;let f=1<<(a&7)+1,u=r.nextByte();s.pixelAspectRatio=r.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),l&&(s.globalColorTable=Vu(r,f));let h=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(b){if(b instanceof DOMException&&b.name==="IndexSizeError")return null;throw b}})();if(h==null)throw new Error("GIF frame size is to large");let{r:d,g:p,b:x}=s.globalColorTable[u];h.data.set(l?[d,p,x,255]:[0,0,0,0]);for(let b=4;b<h.data.length;b*=2)h.data.copyWithin(b,0,b);s.backgroundImage=h;let m=-1,w=!0,y=-1,k=b=>(b&&(w=!0),m),C=b=>(b!=null&&(y=b),y);try{do w&&(s.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}),m++,y=-1,w=!1);while(!await Am(r,s,t,k,C,e));s.frames.length--;for(let b of s.frames){if(b.userInputDelayFlag&&b.delayTime===0){s.totalTime=1/0;break}s.totalTime+=b.delayTime}return s}catch(b){throw b instanceof EvalError?new Error(`error while parsing frame ${m} "${b.message}"`):b}}function Is(i){let{context:e,radius:t,particle:o,delta:n}=i,s=o.image;if(!s?.gifData||!s.gif)return;let r=new OffscreenCanvas(s.gifData.width,s.gifData.height),a=r.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ie.x,ie.y,r.width,r.height),o.gifLoopCount===void 0&&(o.gifLoopCount=s.gifLoopCount??Ss);let l=o.gifFrame??Em,f={x:-s.gifData.width*Bu,y:-s.gifData.height*Bu},u=s.gifData.frames[l];if(o.gifTime===void 0&&(o.gifTime=Tm),!!u.bitmap){switch(e.scale(t/s.gifData.width,t/s.gifData.height),u.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height);break;case 1:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y);break;case 2:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),s.gifData.globalColorTable.length?a.putImageData(s.gifData.backgroundImage,f.x,f.y):a.putImageData(s.gifData.frames[qu].image,f.x+u.left,f.y+u.top);break;case 3:{let h=a.getImageData(ie.x,ie.y,r.width,r.height);a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),a.putImageData(h,ie.x,ie.y)}break}if(o.gifTime+=n.value,o.gifTime>u.delayTime){if(o.gifTime-=u.delayTime,++l>=s.gifData.frames.length){if(--o.gifLoopCount<=Ss)return;l=qu,a.clearRect(ie.x,ie.y,r.width,r.height)}o.gifFrame=l}e.scale(s.gifData.width/t,s.gifData.height/t)}}async function Bm(i){if(i.type!=="gif"){let{loadImage:e}=await Promise.resolve().then(()=>(ho(),Lu));await e(i);return}i.loading=!0;try{i.gifData=await Wu(i.source),i.gifLoopCount=Hu(i.gifData)??Ss,i.gifLoopCount||(i.gifLoopCount=1/0)}catch{i.error=!0}i.loading=!1}var ie,Em,Bu,Tm,qu,Ss,Es=c(()=>{"use strict";Fu();Au();ie={x:0,y:0},Em=0,Bu=.5,Tm=0,qu=0,Ss=0});var xo,ju=c(()=>{"use strict";xo=class{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}});var Gu={};v(Gu,{ImagePreloaderPlugin:()=>Ts});var Ts,$u=c(()=>{"use strict";ju();Ts=class{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,t){if(!t?.preload)return;e.preload||(e.preload=[]);let o=e.preload;for(let n of t.preload){let s=o.find(r=>r.name===n.name||r.src===n.src);if(s)s.load(n);else{let r=new xo;r.load(n),o.push(r)}}}needsPlugin(){return!0}}});var Nu={};v(Nu,{ImageDrawer:()=>Ls});var qm,Vm,Hm,Wm,Ls,Yu=c(()=>{"use strict";_();ho();Es();qm=2,Vm=1,Hm=12,Wm=1,Ls=class{constructor(e){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw new Error(`${G} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){let{context:t,radius:o,particle:n,opacity:s}=e,r=n.image,a=r?.element;if(r){if(t.globalAlpha=s,r.gif&&r.gifData)Is(e);else if(a){let l=r.ratio,f={x:-o,y:-o},u=o*qm;t.drawImage(a,f.x,f.y,u,u/l)}t.globalAlpha=Vm}}getSidesCount(){return Hm}async init(e){let t=e.actualOptions;if(!(!t.preload||!this._engine.loadImage))for(let o of t.preload)await this._engine.loadImage(o)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);let t=e.shapeData;if(!t)return;this._engine.images.find(n=>n.name===t.name||n.source===t.src)||this.loadImageShape(t).then(()=>{this.loadShape(e)})}particleInit(e,t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);let o=this._engine.images,n=t.shapeData;if(!n)return;let s=t.getFillColor(),r=o.find(l=>l.name===n.name||l.source===n.src);if(!r)return;let a=n.replaceColor??r.replaceColor;if(r.loading){setTimeout(()=>{this.particleInit(e,t)});return}(async()=>{let l;r.svgData&&s?l=await zs(r,n,s,t):l={color:s,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:r.ratio??Wm,replaceColor:a,source:n.src},l.ratio||(l.ratio=1);let f=n.fill??t.shapeFill,u=n.close??t.shapeClose,h={image:l,fill:f,close:u};t.image=h.image,t.shapeFill=h.fill,t.shapeClose=h.close})()}}});var Xu={};v(Xu,{loadImageShape:()=>Gm});function jm(i){i.loadImage||(i.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${G} no image source provided`);if(i.images||(i.images=[]),!i.images.find(t=>t.name===e.name||t.source===e.src))try{let t={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-Um),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};i.images.push(t);let o;if(e.gif){let{loadGifImage:n}=await Promise.resolve().then(()=>(Es(),Uu));o=n}else o=e.replaceColor?Ps:St;await o(t)}catch{throw new Error(`${G} ${e.name??e.src} not found`)}})}async function Gm(i,e=!0){jm(i);let{ImagePreloaderPlugin:t}=await Promise.resolve().then(()=>($u(),Gu)),{ImageDrawer:o}=await Promise.resolve().then(()=>(Yu(),Nu)),n=new t(i);await i.addPlugin(n,e),await i.addShape(["image","images"],new o(i),e)}var Um,Qu=c(()=>{"use strict";ho();_();Um=3});function Zu(i){let{context:e,particle:t,radius:o}=i,n=t.shapeData,s=0;e.moveTo(-o,s),e.lineTo(o,s),e.lineCap=n?.cap??"butt"}var Ku=c(()=>{"use strict"});var Ju={};v(Ju,{LineDrawer:()=>Fs});var $m,Fs,eh=c(()=>{"use strict";Ku();$m=1,Fs=class{draw(e){Zu(e)}getSidesCount(){return $m}}});var th={};v(th,{loadLineShape:()=>Nm});async function Nm(i,e=!0){let{LineDrawer:t}=await Promise.resolve().then(()=>(eh(),Ju));await i.addShape("line",new t,e)}var ih=c(()=>{"use strict"});function oh(i,e,t){let{context:o}=i,n=t.count.numerator*t.count.denominator,s=t.count.numerator/t.count.denominator,r=Ym*(s-Xm)/s,a=Math.PI-le(r);if(o){o.beginPath(),o.translate(e.x,e.y),o.moveTo(go.x,go.y);for(let l=0;l<n;l++)o.lineTo(t.length,go.y),o.translate(t.length,go.y),o.rotate(a)}}var Ym,go,Xm,nh=c(()=>{"use strict";_();Ym=180,go={x:0,y:0},Xm=2});var Qm,Ze,As=c(()=>{"use strict";_();nh();Qm=5,Ze=class{draw(e){let{particle:t,radius:o}=e,n=this.getCenter(t,o),s=this.getSidesData(t,o);oh(e,n,s)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??Qm))}}});var ah={};v(ah,{PolygonDrawer:()=>Bs});var sh,rh,Zm,Bs,ch=c(()=>{"use strict";As();sh=3.5,rh=2.66,Zm=3,Bs=class extends Ze{getCenter(e,t){return{x:-t/(e.sides/sh),y:-t/(rh/sh)}}getSidesData(e,t){let o=e.sides;return{count:{denominator:1,numerator:o},length:t*rh/(o/Zm)}}}});var lh={};v(lh,{TriangleDrawer:()=>qs});var Km,Jm,ex,qs,fh=c(()=>{"use strict";As();Km=1.66,Jm=3,ex=2,qs=class extends Ze{getCenter(e,t){return{x:-t,y:t/Km}}getSidesCount(){return Jm}getSidesData(e,t){let o=t*ex;return{count:{denominator:2,numerator:3},length:o}}}});var dh={};v(dh,{loadGenericPolygonShape:()=>uh,loadPolygonShape:()=>tx,loadTriangleShape:()=>hh});async function uh(i,e=!0){let{PolygonDrawer:t}=await Promise.resolve().then(()=>(ch(),ah));await i.addShape("polygon",new t,e)}async function hh(i,e=!0){let{TriangleDrawer:t}=await Promise.resolve().then(()=>(fh(),lh));await i.addShape("triangle",new t,e)}async function tx(i,e=!0){await uh(i,e),await hh(i,e)}var ph=c(()=>{"use strict"});function mh(i){let{context:e,radius:t}=i,o=t/ix,n=o*ox;e.rect(-o,-o,n,n)}var ix,ox,xh=c(()=>{"use strict";ix=Math.sqrt(2),ox=2});var gh={};v(gh,{SquareDrawer:()=>Vs});var nx,Vs,yh=c(()=>{"use strict";xh();nx=4,Vs=class{draw(e){mh(e)}getSidesCount(){return nx}}});var vh={};v(vh,{loadSquareShape:()=>sx});async function sx(i,e=!0){let{SquareDrawer:t}=await Promise.resolve().then(()=>(yh(),gh));await i.addShape(["edge","square"],new t,e)}var bh=c(()=>{"use strict"});function wh(i){let{context:e,particle:t,radius:o}=i,n=t.sides,s=t.starInset??2;e.moveTo(Ke.x,Ke.y-o);for(let r=0;r<n;r++)e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o*s),e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o)}var Ke,_h=c(()=>{"use strict";Ke={x:0,y:0}});var kh={};v(kh,{StarDrawer:()=>Hs});var rx,ax,Hs,Mh=c(()=>{"use strict";_();_h();rx=2,ax=5,Hs=class{draw(e){wh(e)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??ax))}particleInit(e,t){let o=t.shapeData;t.starInset=g(o?.inset??rx)}}});var Ch={};v(Ch,{loadStarShape:()=>cx});async function cx(i,e=!0){let{StarDrawer:t}=await Promise.resolve().then(()=>(Mh(),kh));await i.addShape("star",new t,e)}var Rh=c(()=>{"use strict"});var yo,Oh=c(()=>{"use strict";_();yo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var vo,Ph=c(()=>{"use strict";_();vo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var bo,zh=c(()=>{"use strict";Oh();Ph();bo=class{constructor(){this.count=0,this.delay=new yo,this.duration=new vo}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}});function Ih(i,e,t){if(!i.life)return;let o=i.life,n=!1;if(i.spawning)if(o.delayTime+=e.value,o.delayTime>=i.life.delay)n=!0,i.spawning=!1,o.delayTime=Je,o.time=Je;else return;if(o.duration===lx||i.spawning||(n?o.time=Je:o.time+=e.value,o.time<o.duration))return;if(o.time=Je,i.life.count>Dh&&i.life.count--,i.life.count===Dh){i.destroy();return}let s=M(Sh,t.width),r=M(Sh,t.width);i.position.x=$(s),i.position.y=$(r),i.spawning=!0,o.delayTime=Je,o.time=Je,i.reset();let a=i.options.life;a&&(o.delay=g(a.delay.value)*1e3,o.duration=g(a.duration.value)*1e3)}var Je,lx,Dh,Sh,Eh=c(()=>{"use strict";_();Je=0,lx=-1,Dh=0,Sh=0});var Fh={};v(Fh,{LifeUpdater:()=>Ws});var Te,Th,Lh,Ws,Ah=c(()=>{"use strict";_();zh();Eh();Te=0,Th=1,Lh=-1,Ws=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=o.life;n&&(e.life={delay:t.retina.reduceFactor?g(n.delay.value)*(n.delay.sync?Th:R())/t.retina.reduceFactor*1e3:Te,delayTime:Te,duration:t.retina.reduceFactor?g(n.duration.value)*(n.duration.sync?Th:R())/t.retina.reduceFactor*1e3:Te,time:Te,count:n.count},e.life.duration<=Te&&(e.life.duration=Lh),e.life.count<=Te&&(e.life.count=Lh),e.life&&(e.spawning=e.life.delay>Te))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new bo);for(let o of t)e.life.load(o?.life)}update(e,t){!this.isEnabled(e)||!e.life||Ih(e,t,this.container.canvas.size)}}});var Bh={};v(Bh,{loadLifeUpdater:()=>fx});async function fx(i,e=!0){await i.addParticleUpdater("life",async t=>{let{LifeUpdater:o}=await Promise.resolve().then(()=>(Ah(),Fh));return new o(t)},e)}var qh=c(()=>{"use strict"});var wo,Vh=c(()=>{"use strict";_();wo=class{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}});var _o,Hh=c(()=>{"use strict";_();Vh();_o=class extends ee{constructor(){super(),this.animation=new wo,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}});var Uh={};v(Uh,{RotateUpdater:()=>Us});var Wh,ux,hx,dx,Us,jh=c(()=>{"use strict";_();Hh();Wh=2,ux=Math.PI*Wh,hx=1,dx=360,Us=class{constructor(e){this.container=e}init(e){let t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:le(g(t.value)),min:0,max:ux},e.pathRotation=t.path;let o=t.direction;switch(o==="random"&&(o=Math.floor(R()*Wh)>0?"counter-clockwise":"clockwise"),o){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}let n=t.animation;n.enable&&(e.rotate.decay=hx-g(n.decay),e.rotate.velocity=g(n.speed)/dx*this.container.retina.reduceFactor,n.sync||(e.rotate.velocity*=R())),e.rotation=e.rotate.value}isEnabled(e){let t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new _o);for(let o of t)e.rotate.load(o?.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(Ue(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}});var Gh={};v(Gh,{loadRotateUpdater:()=>px});async function px(i,e=!0){await i.addParticleUpdater("rotate",async t=>{let{RotateUpdater:o}=await Promise.resolve().then(()=>(jh(),Uh));return new o(t)},e)}var $h=c(()=>{"use strict"});var Nh={};v(Nh,{StrokeColorUpdater:()=>js});var mx,js,Yh=c(()=>{"use strict";_();mx=1,js=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=Q(o.stroke,e.id,o.reduceDuplicates);e.strokeWidth=g(n.width)*t.retina.pixelRatio,e.strokeOpacity=g(n.opacity??mx),e.strokeAnimation=n.color?.animation;let s=ge(n.color)??e.getFillColor();s&&(e.strokeColor=Yt(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){let t=e.strokeAnimation,{strokeColor:o}=e;return!e.destroyed&&!e.spawning&&!!t&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable)}update(e,t){this.isEnabled(e)&&Xt(e.strokeColor,t)}}});var Xh={};v(Xh,{loadStrokeColorUpdater:()=>xx});async function xx(i,e=!0){await i.addParticleUpdater("strokeColor",async t=>{let{StrokeColorUpdater:o}=await Promise.resolve().then(()=>(Yh(),Nh));return new o(t)},e)}var Qh=c(()=>{"use strict"});function Jh(i){let e=i.initialPosition,{dx:t,dy:o}=F(e,i.position),n=Math.abs(t),s=Math.abs(o),{maxDistance:r}=i.retina,a=r.horizontal,l=r.vertical;if(!a&&!l)return;let f=(a&&n>=a)??!1,u=(l&&s>=l)??!1;if((f||u)&&!i.misplaced)i.misplaced=!!a&&n>a||!!l&&s>l,a&&(i.velocity.x=i.velocity.y*Gs-i.velocity.x),l&&(i.velocity.y=i.velocity.x*Gs-i.velocity.y);else if((!a||n<a)&&(!l||s<l)&&i.misplaced)i.misplaced=!1;else if(i.misplaced){let h=i.position,d=i.velocity;a&&(h.x<e.x&&d.x<Le||h.x>e.x&&d.x>Le)&&(d.x*=-R()),l&&(h.y<e.y&&d.y<Le||h.y>e.y&&d.y>Le)&&(d.y*=-R())}}function ed(i,e,t,o,n,s){yx(i,s);let r=i.gravity,a=r?.enable&&r.inverse?-de:de;n&&t&&(i.velocity.x+=n*s.factor/(Zh*t)),r?.enable&&t&&(i.velocity.y+=a*(r.acceleration*s.factor)/(Zh*t));let l=i.moveDecay;i.velocity.multTo(l);let f=i.velocity.mult(t);r?.enable&&o>Le&&(!r.inverse&&f.y>=Le&&f.y>=o||r.inverse&&f.y<=Le&&f.y<=-o)&&(f.y=a*o,t&&(i.velocity.y=f.y/t));let u=i.options.zIndex,h=(de-i.zIndexFactor)**u.velocityRate;f.multTo(h);let{position:d}=i;d.addTo(f),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function td(i,e){let t=i.container;if(!i.spin)return;let o={x:i.spin.direction==="clockwise"?Math.cos:Math.sin,y:i.spin.direction==="clockwise"?Math.sin:Math.cos};i.position.x=i.spin.center.x+i.spin.radius*o.x(i.spin.angle),i.position.y=i.spin.center.y+i.spin.radius*o.y(i.spin.angle),i.spin.radius+=i.spin.acceleration;let n=Math.max(t.canvas.size.width,t.canvas.size.height),s=n*Gs;i.spin.radius>s?(i.spin.radius=s,i.spin.acceleration*=-de):i.spin.radius<Kh&&(i.spin.radius=Kh,i.spin.acceleration*=-de),i.spin.angle+=e*gx*(de-i.spin.radius/n)}function yx(i,e){let t=i.options,o=t.move.path;if(!o.enable)return;if(i.lastPathTime<=i.pathDelay){i.lastPathTime+=e.value;return}let s=i.pathGenerator?.generate(i,e);s&&i.velocity.addTo(s),o.clamp&&(i.velocity.x=W(i.velocity.x,-de,de),i.velocity.y=W(i.velocity.y,-de,de)),i.lastPathTime-=i.pathDelay}function id(i){return i.slow.inRange?i.slow.factor:de}function od(i){let e=i.container,t=i.options,o=t.move.spin;if(!o.enable)return;let n=o.position??{x:50,y:50},s=.01,r={x:n.x*s*e.canvas.size.width,y:n.y*s*e.canvas.size.height},a=i.getPosition(),l=A(a,r),f=g(o.acceleration);i.retina.spinAcceleration=f*e.retina.pixelRatio;let u=0;i.spin={center:r,direction:i.velocity.x>=u?"clockwise":"counter-clockwise",angle:i.velocity.angle,radius:l,acceleration:i.retina.spinAcceleration}}var Gs,Le,de,Zh,Kh,gx,nd=c(()=>{"use strict";_();Gs=.5,Le=0,de=1,Zh=60,Kh=0,gx=.01});var sd={};v(sd,{BaseMover:()=>$s});var vx,bx,wx,$s,rd=c(()=>{"use strict";_();nd();vx=2,bx=1,wx=1,$s=class{init(e){let t=e.options,o=t.move.gravity;e.gravity={enable:o.enable,acceleration:g(o.acceleration),inverse:o.inverse},od(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){let o=e.options,n=o.move;if(!n.enable)return;let s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=g(n.speed)*r,e.retina.moveDrift??=g(e.options.move.drift)*r;let a=id(e),l=e.retina.moveSpeed*s.retina.reduceFactor,f=e.retina.moveDrift,u=X(o.size.value)*r,h=n.size?e.getRadius()/u:bx,d=t.factor||wx,p=l*h*a*d/vx,x=e.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?td(e,p):ed(e,n,p,x,f,t),Jh(e)}}});var ad={};v(ad,{loadBaseMover:()=>_x});async function _x(i,e=!0){await i.addMover("base",async()=>{let{BaseMover:t}=await Promise.resolve().then(()=>(rd(),sd));return new t},e)}var cd=c(()=>{"use strict"});function fd(i){let{context:e,particle:t,radius:o}=i;t.circleRange||(t.circleRange={min:Mx,max:kx});let n=t.circleRange;e.arc(ld.x,ld.y,o,n.min,n.max,!1)}var kx,Mx,ld,ud=c(()=>{"use strict";kx=Math.PI*2,Mx=0,ld={x:0,y:0}});var dd={};v(dd,{CircleDrawer:()=>Ns});var Cx,Rx,hd,Ns,pd=c(()=>{"use strict";_();ud();Cx=12,Rx=360,hd=0,Ns=class{draw(e){fd(e)}getSidesCount(){return Cx}particleInit(e,t){let o=t.shapeData,n=o?.angle??{max:Rx,min:hd};t.circleRange=xe(n)?{min:le(n.min),max:le(n.max)}:{min:hd,max:le(n)}}}});var md={};v(md,{loadCircleShape:()=>Ox});async function Ox(i,e=!0){let{CircleDrawer:t}=await Promise.resolve().then(()=>(pd(),dd));await i.addShape("circle",new t,e)}var xd=c(()=>{"use strict"});var gd={};v(gd,{ColorUpdater:()=>Ys});var Ys,yd=c(()=>{"use strict";_();Ys=class{constructor(e){this.container=e}init(e){let t=ge(e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=Yt(t,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){let{h:t,s:o,l:n}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&(s?.h.value!==void 0&&t.enable||s?.s.value!==void 0&&o.enable||s?.l.value!==void 0&&n.enable)}update(e,t){Xt(e.color,t)}}});var vd={};v(vd,{loadColorUpdater:()=>Px});async function Px(i,e=!0){await i.addParticleUpdater("color",async t=>{let{ColorUpdater:o}=await Promise.resolve().then(()=>(yd(),gd));return new o(t)},e)}var bd=c(()=>{"use strict"});var wd={};v(wd,{OpacityUpdater:()=>Xs});var Xs,_d=c(()=>{"use strict";_();Xs=class{constructor(e){this.container=e}init(e){let t=e.options.opacity,o=1;e.opacity=Ht(t,o);let n=t.animation;n.enable&&(e.opacity.velocity=g(n.speed)/100*this.container.retina.reduceFactor,n.sync||(e.opacity.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){!this.isEnabled(e)||!e.opacity||Ue(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}});var kd={};v(kd,{loadOpacityUpdater:()=>zx});async function zx(i,e=!0){await i.addParticleUpdater("opacity",async t=>{let{OpacityUpdater:o}=await Promise.resolve().then(()=>(_d(),wd));return new o(t)},e)}var Md=c(()=>{"use strict"});function Cd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.right<et&&i.direction==="left"?i.particle.position.x=i.size+i.offset.x:i.bounds.left>i.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);let e=i.particle.velocity.x,t=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&e>ko||i.direction==="left"&&i.bounds.left<=et&&e<ko){let n=g(i.particle.options.bounce.horizontal.value);i.particle.velocity.x*=-n,t=!0}if(!t)return;let o=i.offset.x+i.size;i.bounds.right>=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-o:i.bounds.left<=et&&i.direction==="left"&&(i.particle.position.x=o),i.outMode==="split"&&i.particle.destroy()}function Rd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottom<et&&i.direction==="top"?i.particle.position.y=i.size+i.offset.y:i.bounds.top>i.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);let e=i.particle.velocity.y,t=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&e>ko||i.direction==="top"&&i.bounds.top<=et&&e<ko){let n=g(i.particle.options.bounce.vertical.value);i.particle.velocity.y*=-n,t=!0}if(!t)return;let o=i.offset.y+i.size;i.bounds.bottom>=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-o:i.bounds.top<=et&&i.direction==="top"&&(i.particle.position.y=o),i.outMode==="split"&&i.particle.destroy()}var ko,et,Od=c(()=>{"use strict";_();ko=0,et=0});var Mo,Pd=c(()=>{"use strict";_();Od();Mo=class{constructor(e){this.container=e,this.modes=["bounce","split"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container,r=!1;for(let[,d]of s.plugins)if(d.particleBounce!==void 0&&(r=d.particleBounce(e,o,t)),r)break;if(r)return;let a=e.getPosition(),l=e.offset,f=e.getRadius(),u=ye(a,f),h=s.canvas.size;Cd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f}),Rd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f})}}});var Co,Ro,zd=c(()=>{"use strict";_();Co=0,Ro=class{constructor(e){this.container=e,this.modes=["destroy"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"normal":case"outside":if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;break;case"inside":{let{dx:r,dy:a}=F(e.position,e.moveCenter),{x:l,y:f}=e.velocity;if(l<Co&&r>e.moveCenter.radius||f<Co&&a>e.moveCenter.radius||l>=Co&&r<-e.moveCenter.radius||f>=Co&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}});var Oo,Po,Dd=c(()=>{"use strict";_();Oo=0,Po=class{constructor(e){this.container=e,this.modes=["none"]}update(e,t,o,n){if(!this.modes.includes(n)||((e.options.move.distance.horizontal&&(t==="left"||t==="right"))??(e.options.move.distance.vertical&&(t==="top"||t==="bottom"))))return;let s=e.options.move.gravity,r=this.container,a=r.canvas.size,l=e.getRadius();if(s.enable){let f=e.position;(!s.inverse&&f.y>a.height+l&&t==="bottom"||s.inverse&&f.y<-l&&t==="top")&&r.particles.remove(e)}else{if(e.velocity.y>Oo&&e.position.y<=a.height+l||e.velocity.y<Oo&&e.position.y>=-l||e.velocity.x>Oo&&e.position.x<=a.width+l||e.velocity.x<Oo&&e.position.x>=-l)return;Ve(e.position,r.canvas.size,I.origin,l,t)||r.particles.remove(e)}}}});var zo,Do,So,Sd=c(()=>{"use strict";_();zo=0,Do=0,So=class{constructor(e){this.container=e,this.modes=["out"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"inside":{let{x:r,y:a}=e.velocity,l=I.origin;l.length=e.moveCenter.radius,l.angle=e.velocity.angle+Math.PI,l.addTo(I.create(e.moveCenter));let{dx:f,dy:u}=F(e.position,l);if(r<=zo&&f>=Do||a<=zo&&u>=Do||r>=zo&&f<=Do||a>=zo&&u<=Do)return;e.position.x=Math.floor($({min:0,max:s.canvas.size.width})),e.position.y=Math.floor($({min:0,max:s.canvas.size.height}));let{dx:h,dy:d}=F(e.position,e.moveCenter);e.direction=Math.atan2(-d,-h),e.velocity.angle=e.direction;break}default:{if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;switch(e.outType){case"outside":{e.position.x=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;let{dx:r,dy:a}=F(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,r),e.velocity.angle=e.direction);break}case"normal":{let r=e.options.move.warp,a=s.canvas.size,l={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},f=e.getRadius(),u=ye(e.position,f);t==="right"&&u.left>a.width+e.offset.x?(e.position.x=l.left,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)):t==="left"&&u.right<-e.offset.x&&(e.position.x=l.right,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)),t==="bottom"&&u.top>a.height+e.offset.y?(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.top,e.initialPosition.y=e.position.y):t==="top"&&u.bottom<-e.offset.y&&(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.bottom,e.initialPosition.y=e.position.y);break}}break}}}}});var Id={};v(Id,{OutOfCanvasUpdater:()=>Qs});var Io,Qs,Ed=c(()=>{"use strict";Pd();zd();Dd();Sd();Io=(i,e)=>i.default===e||i.bottom===e||i.left===e||i.right===e||i.top===e,Qs=class{constructor(e){this._updateOutMode=(t,o,n,s)=>{for(let r of this.updaters)r.update(t,s,o,n)},this.container=e,this.updaters=[]}init(e){this.updaters=[];let t=e.options.move.outModes;Io(t,"bounce")?this.updaters.push(new Mo(this.container)):Io(t,"out")?this.updaters.push(new So(this.container)):Io(t,"destroy")?this.updaters.push(new Ro(this.container)):Io(t,"none")&&this.updaters.push(new Po(this.container))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){let o=e.options.move.outModes;this._updateOutMode(e,t,o.bottom??o.default,"bottom"),this._updateOutMode(e,t,o.left??o.default,"left"),this._updateOutMode(e,t,o.right??o.default,"right"),this._updateOutMode(e,t,o.top??o.default,"top")}}});var Td={};v(Td,{loadOutModesUpdater:()=>Dx});async function Dx(i,e=!0){await i.addParticleUpdater("outModes",async t=>{let{OutOfCanvasUpdater:o}=await Promise.resolve().then(()=>(Ed(),Id));return new o(t)},e)}var Ld=c(()=>{"use strict"});var Fd={};v(Fd,{SizeUpdater:()=>Zs});var Fe,Zs,Ad=c(()=>{"use strict";_();Fe=0,Zs=class{init(e){let t=e.container,o=e.options.size,n=o.animation;n.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/100*t.retina.reduceFactor,n.sync||(e.size.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??Fe)<=Fe||(e.size.maxLoops??Fe)>Fe&&(e.size.loops??Fe)<(e.size.maxLoops??Fe))}reset(e){e.size.loops=Fe}update(e,t){this.isEnabled(e)&&Ue(e,e.size,!0,e.options.size.animation.destroy,t)}}});var Bd={};v(Bd,{loadSizeUpdater:()=>Sx});async function Sx(i,e=!0){await i.addParticleUpdater("size",async()=>{let{SizeUpdater:t}=await Promise.resolve().then(()=>(Ad(),Fd));return new t},e)}var qd=c(()=>{"use strict"});var Vd={};v(Vd,{loadBasic:()=>Ix});async function Ix(i,e=!0){let{loadBaseMover:t}=await Promise.resolve().then(()=>(cd(),ad)),{loadCircleShape:o}=await Promise.resolve().then(()=>(xd(),md)),{loadColorUpdater:n}=await Promise.resolve().then(()=>(bd(),vd)),{loadOpacityUpdater:s}=await Promise.resolve().then(()=>(Md(),kd)),{loadOutModesUpdater:r}=await Promise.resolve().then(()=>(Ld(),Td)),{loadSizeUpdater:a}=await Promise.resolve().then(()=>(qd(),Bd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await i.refresh(e)}var Hd=c(()=>{"use strict"});_();async function Wd(i,e=!0){let{loadParallaxMover:t}=await Promise.resolve().then(()=>(gl(),xl)),{loadExternalAttractInteraction:o}=await Promise.resolve().then(()=>(Ol(),Rl)),{loadExternalBounceInteraction:n}=await Promise.resolve().then(()=>(Bl(),Al)),{loadExternalBubbleInteraction:s}=await Promise.resolve().then(()=>(Yl(),Nl)),{loadExternalConnectInteraction:r}=await Promise.resolve().then(()=>(rf(),sf)),{loadExternalGrabInteraction:a}=await Promise.resolve().then(()=>(pf(),df)),{loadExternalPauseInteraction:l}=await Promise.resolve().then(()=>(yf(),gf)),{loadExternalPushInteraction:f}=await Promise.resolve().then(()=>(kf(),_f)),{loadExternalRemoveInteraction:u}=await Promise.resolve().then(()=>(Pf(),Of)),{loadExternalRepulseInteraction:h}=await Promise.resolve().then(()=>(Lf(),Tf)),{loadExternalSlowInteraction:d}=await Promise.resolve().then(()=>(Vf(),qf)),{loadParticlesAttractInteraction:p}=await Promise.resolve().then(()=>(Gf(),jf)),{loadParticlesCollisionsInteraction:x}=await Promise.resolve().then(()=>(ou(),iu)),{loadParticlesLinksInteraction:m}=await Promise.resolve().then(()=>(Cu(),Mu)),{loadEasingQuadPlugin:w}=await Promise.resolve().then(()=>(Ou(),Ru)),{loadEmojiShape:y}=await Promise.resolve().then(()=>(Tu(),Eu)),{loadImageShape:k}=await Promise.resolve().then(()=>(Qu(),Xu)),{loadLineShape:C}=await Promise.resolve().then(()=>(ih(),th)),{loadPolygonShape:b}=await Promise.resolve().then(()=>(ph(),dh)),{loadSquareShape:O}=await Promise.resolve().then(()=>(bh(),vh)),{loadStarShape:P}=await Promise.resolve().then(()=>(Rh(),Ch)),{loadLifeUpdater:Y}=await Promise.resolve().then(()=>(qh(),Bh)),{loadRotateUpdater:T}=await Promise.resolve().then(()=>($h(),Gh)),{loadStrokeColorUpdater:L}=await Promise.resolve().then(()=>(Qh(),Xh)),{loadBasic:Z}=await Promise.resolve().then(()=>(Hd(),Vd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await l(i,!1),await f(i,!1),await u(i,!1),await h(i,!1),await d(i,!1),await p(i,!1),await x(i,!1),await m(i,!1),await w(),await y(i,!1),await k(i,!1),await C(i,!1),await b(i,!1),await O(i,!1),await P(i,!1),await Y(i,!1),await T(i,!1),await L(i,!1),await Z(i,e)}var Ud=!1,jd=Symbol(),Ex=i=>(i.autoPlay||=!0,i.fullScreen||={enable:!0},i),Tx=(()=>{let i=0;return()=>`np-${i++}`})(),Lx=i=>{let e=async({clear:t,data:o,getDomNodes:n,flags:{goingBack:s,preview:r}})=>{if(r)return;Ud||(await Wd(no),Ud=!0);let{element:a}=n(!0);t(()=>{let h=o().instance;h&&(h.destroy(),o({}))});let l=o().options===i;if(l&&o().instance||l&&s)return;let f=Tx();(async()=>{let h=await no.load({id:f,element:a,options:Ex(i)});h&&h.canvas.element&&h.canvas.element.style.setProperty("z-index","2"),o({instance:h,options:i})})()};return e.callOnlyLatest=e.skipClearOnGoingBack=!0,e.id=jd,e.key="particles",e},Fx=()=>{let i=({data:e,remove:t,flags:{preview:o}})=>{if(o)return;let n=e().instance;n&&n.destroy(),t()};return i.callOnlyLatest=!0,i.id=jd,i.key="particles",i};export{Fx as hideParticles,Lx as showParticles};
2
2
  //# sourceMappingURL=index.js.map