@tsparticles/preset-ambient 4.4.0 → 4.5.1

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.
@@ -1 +1 @@
1
- !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.ambient=t.__tsParticlesInternals.presets.ambient||{}))}(this,function(t){"use strict";const e="generated",i="source-over",s=100,n=.5,a=1e3,r={x:0,y:0,z:0},o=1,l=0,c=0,h=1,d="random",u=2*Math.PI,p="true",f="false",g="canvas",m=255,y=360,v=100,w=100,P=.25,b=400;var x;function M(t){return"z"in t?t.z:r.z}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(x||(x={}));class z{x;y;z;constructor(t=r.x,e=r.y,i=r.z){this.x=t,this.y=e,this.z=i}static get origin(){return z.create(r.x,r.y,r.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return z.create(t.x,t.y,M(t))}static create(t,e,i){return"number"==typeof t?new z(t,e??r.y,i??r.z):new z(t.x,t.y,M(t))}add(t){return z.create(this.x+t.x,this.y+t.y,this.z+M(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=M(t)}copy(){return z.clone(this)}div(t){return z.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return z.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return z.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),r.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=M(t)}sub(t){return z.create(this.x-t.x,this.y-t.y,this.z-M(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=M(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class C extends z{constructor(t=r.x,e=r.y){super(t,e,r.z)}static get origin(){return C.create(r.x,r.y)}static clone(t){return C.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new C(t,e??r.y):new C(t.x,t.y)}}function k(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}function I(t){return"number"==typeof t}function O(t){return"object"==typeof t&&null!==t}function _(t){return Array.isArray(t)}function L(t){return null==t}const D=Math.PI/180;let R=Math.random;const E=t=>requestAnimationFrame(t),T=t=>{cancelAnimationFrame(t)};function B(){return A(R(),0,1-Number.EPSILON)}function F(t,e){return B()*(e-t)+t}function A(t,e,i){return Math.min(Math.max(t,e),i)}function U(t){const e=H(t);let i=V(t);return e===i&&(i=0),F(i,e)}function $(t){return I(t)?t:U(t)}function V(t){return I(t)?t:t.min}function H(t){return I(t)?t:t.max}function N(t,e){if(t===e||void 0===e&&I(t))return t;const i=V(t),s=H(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:N(i,s)}function W(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function G(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function j(t){return t*D}function q(t){const{position:e,size:i}=t;return{x:e?.x??B()*i.width,y:e?.y??B()*i.height}}function X(t){return t?t.endsWith("%")?parseFloat(t)/s:parseFloat(t):1}var Y,Q;!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(Y||(Y={})),function(t){t.precise="precise",t.percent="percent"}(Q||(Q={}));function K(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function Z(){return globalThis.document}function J(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function tt(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(B()*t.length)]}function et(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==Y.bottom||(n=t.top<e.height+i.x);!n||s&&s!==Y.left||(n=t.right>i.x);!n||s&&s!==Y.right||(n=t.left<e.width+i.y);!n||s&&s!==Y.top||(n=t.bottom>i.y);return n}(it(t,s??0),e,i,n)}function it(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function st(t,...e){for(const i of e){if(L(i))continue;if(!O(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):O(t)&&!Array.isArray(t)||(t=Object.create(null));const e=Object.keys(i);if(!e.some(t=>{const e=i[t];return O(e)||Array.isArray(e)})){const s=i,n=t;for(const t of e){if(K(t))continue;const e=s[t];void 0!==e&&(n[t]=e)}continue}for(const s of e){if(K(s))continue;const e=t,n=i[s];e[s]=Array.isArray(n)?n.map(t=>st(void 0,t)):st(e[s],n)}}return t}function nt(t,e){return _(t)?t.map((t,i)=>e(t,i)):e(t,0)}function at(t,e,i){return _(t)?tt(t,e,i):t}function rt(t,e){return function(t,e){if(t.mode!==Q.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/s*e.width,y:t.y/s*e.height}:{width:t.width/s*e.width,height:t.height/s*e.height}}(t,e)}let ot,lt;function ct(t,e,i,s,n){if(s){let s={passive:!0};k(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function ht(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class dt{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this.#e.get(t);i||(i=[],this.#e.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):i.splice(n,1))}}var ut;!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(ut||(ut={}));class pt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#r=!1;#o=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(ut.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return ht(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return ht(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return async function(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this.#r&&!this.#o){this.#o=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#o=!1,this.#r=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this.#r)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this.#o?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}const ft=t=>(...e)=>{t(...e)},gt={debug:ft(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:ft(console.info),log:ft(console.log),trace:ft(console.trace),verbose:ft(console.log),warning:ft(console.warn)};function mt(){return gt}const yt="100%";class vt{pluginManager=new pt(this);#h=[];#d=new dt;#r=!1;get items(){return this.#h}get version(){return"4.4.0"}addEventListener(t,e){this.#d.addEventListener(t,e)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#r||(await this.pluginManager.init(),this.#r=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let i;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(i=t.element);const{Container:s}=await Promise.resolve().then(function(){return Gi}),n=t.id??i?.id??`tsparticles${Math.floor(1e4*B()).toString()}`,{index:a,url:r}=t,o=r?await async function(t){const e=at(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(mt().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:r,index:a}):t.options,l=at(o,a),{items:c}=this,h=c.findIndex(t=>t.id.description===n),d=new s({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:n,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const i=Z();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===g)s=t,s.dataset[e]??=f,s.dataset[e]===p&&(s.style.width||=yt,s.style.height||=yt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(g).item(0);n?(s=n,s.dataset[e]=f):(s=i.createElement(g),s.dataset[e]=p,t.appendChild(s)),s.style.width||=yt,s.style.height||=yt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(((t,i)=>{const s=Z();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=p,s.body.append(n),n)})(n,i));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}var wt,Pt,bt,xt,Mt,zt,Ct,kt,St,It,Ot,_t,Lt;!function(t){t.circle="circle",t.rectangle="rectangle"}(wt||(wt={}));class Dt{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class Rt extends Dt{radius;constructor(t,e,i){super(t,e,wt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,G(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof Rt||t.type===wt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Et||t.type===wt.rectangle){const e=t,{width:i,height:r}=e.size;return Math.pow(n-i,2)+Math.pow(a-r,2)<=s**2||n<=s+i&&a<=s+r||n<=i||a<=r}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Et extends Dt{size;constructor(t,e,i,s){super(t,e,wt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof Rt)return t.intersects(this);if(!(t instanceof Et))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,r=a.width,o=a.height;return n.x<s.x+e&&n.x+r>s.x&&n.y<s.y+i&&n.y+o>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(Pt||(Pt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(bt||(bt={})),function(t){t.standard="standard",t.natural="natural",t.vivid="vivid",t.cinematic="cinematic",t.dynamic="dynamic"}(xt||(xt={})),function(t){t.delete="delete",t.wait="wait"}(Mt||(Mt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(zt||(zt={})),function(t){t.darken="darken",t.enlighten="enlighten"}(Ct||(Ct={})),function(t){t.none="none",t.max="max",t.min="min"}(kt||(kt={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(St||(St={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(It||(It={})),function(t){t.max="max",t.min="min",t.random="random"}(Ot||(Ot={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(_t||(_t={})),function(t){t[t.BackgroundElement=0]="BackgroundElement",t[t.BackgroundDraw=1]="BackgroundDraw",t[t.BackgroundMask=2]="BackgroundMask",t[t.CanvasSetup=3]="CanvasSetup",t[t.PluginContent=4]="PluginContent",t[t.Particles=5]="Particles",t[t.CanvasCleanup=6]="CanvasCleanup",t[t.Foreground=7]="Foreground"}(Lt||(Lt={}));class Tt{load(t){L(t)||this.doLoad(t)}}function Bt(t,...e){for(const i of e)t.load(i)}function Ft(t,e,i){void 0!==i&&(t[e]=i)}function At(t,e,i){void 0!==i&&(t[e]=N(i))}function Ut(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function $t(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}class Vt extends Tt{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){At(this,"count",t.count),Ft(this,"enable",t.enable),At(this,"speed",t.speed),At(this,"decay",t.decay),At(this,"delay",t.delay),Ft(this,"sync",t.sync)}}class Ht extends Vt{mode=bt.auto;startValue=Ot.random;doLoad(t){super.doLoad(t),Ft(this,"mode",t.mode),Ft(this,"startValue",t.startValue)}}class Nt extends Vt{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Ft(this,"max",t.max),Ft(this,"min",t.min),At(this,"offset",t.offset)}}class Wt extends Tt{h=new Nt(0,y);l=new Nt(0,w);s=new Nt(0,v);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class Gt extends Tt{value="";static create(t,e){const i=new Gt;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){L(t.value)||(this.value=t.value)}}class jt extends Gt{animation=new Wt;static create(t,e){const i=new jt;return i.load(t),void 0!==e&&(S(e)||_(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class qt extends Tt{color;draw;element;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new Gt,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=Gt.create(this.color,t.color)),Ft(this,"element",t.element),Ft(this,"draw",t.draw),Ft(this,"image",t.image),Ft(this,"position",t.position),Ft(this,"repeat",t.repeat),Ft(this,"size",t.size),Ft(this,"opacity",t.opacity)}}class Xt extends Tt{enable=!0;zIndex=0;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"zIndex",t.zIndex)}}class Yt extends Tt{enable=!0;mode=xt.standard;peakNits=400;doLoad(t){if(void 0!==t.enable&&!k(t.enable))throw new Error(`Invalid HDR "enable" value: expected a boolean, got "${String(t.enable)}"`);if(void 0!==t.mode&&("string"!=typeof t.mode||!Object.values(xt).includes(t.mode)))throw new Error(`Invalid HDR "mode" value: expected one of ${Object.values(xt).join(", ")}, got "${e=t.mode,String(e)}"`);var e;if(void 0!==t.peakNits&&(!I(t.peakNits)||!Number.isFinite(t.peakNits)||t.peakNits<=0))throw new Error(`Invalid HDR "peakNits" value: expected a positive number, got "${String(t.peakNits)}"`);Ft(this,"enable",t.enable),Ft(this,"mode",t.mode),Ft(this,"peakNits",t.peakNits)}}class Qt extends Tt{delay=.5;enable=!0;doLoad(t){Ft(this,"delay",t.delay),Ft(this,"enable",t.enable)}}class Kt extends Tt{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class Zt extends Tt{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Ft(this,"enable",t.enable),At(this,"opacity",t.opacity)}}class Jt extends Tt{offset=0;value=90;doLoad(t){At(this,"offset",t.offset),At(this,"value",t.value)}}class te extends Tt{mode=Q.percent;radius=0;x=50;y=50;doLoad(t){Ft(this,"x",t.x),Ft(this,"y",t.y),Ft(this,"mode",t.mode),Ft(this,"radius",t.radius)}}class ee extends Tt{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){At(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),Ft(this,"inverse",t.inverse),At(this,"maxSpeed",t.maxSpeed)}}class ie extends Tt{value=0;doLoad(t){L(t.value)||(this.value=N(t.value))}}class se extends ie{animation=new Vt;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class ne extends se{animation=new Ht}class ae extends Tt{clamp=!0;delay=new ie;enable=!1;generator;options={};doLoad(t){Ft(this,"clamp",t.clamp),this.delay.load(t.delay),Ft(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=st(this.options,t.options))}}class re extends Tt{bottom;default=zt.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class oe extends Tt{acceleration=0;enable=!1;position;doLoad(t){At(this,"acceleration",t.acceleration),Ft(this,"enable",t.enable),t.position&&(this.position=st({},t.position))}}class le extends Tt{angle=new Jt;center=new te;decay=0;direction=x.none;distance={};drift=0;enable=!1;gravity=new ee;outModes=new re;path=new ae;random=!1;size=!1;speed=2;spin=new oe;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(I(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),At(this,"decay",t.decay),Ft(this,"direction",t.direction),void 0!==t.distance&&(this.distance=I(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),At(this,"drift",t.drift),Ft(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(O(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Ft(this,"random",t.random),Ft(this,"size",t.size),At(this,"speed",t.speed),this.spin.load(t.spin),Ft(this,"straight",t.straight),Ft(this,"vibrate",t.vibrate),Ft(this,"warp",t.warp)}}class ce extends Tt{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),At(this,"width",t.width),At(this,"opacity",t.opacity)}}class he extends Tt{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=jt.create(this.color,t.color)),Ut(this,"fill",t.fill,()=>new Zt),Ut(this,"stroke",t.stroke,()=>new ce)}}class de extends ie{value=1}class ue extends Tt{horizontal=new de;vertical=new de;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class pe extends Tt{enable=!1;height=1080;width=1920;doLoad(t){Ft(this,"enable",t.enable),Ft(this,"width",t.width),Ft(this,"height",t.height)}}class fe extends Tt{mode=Mt.delete;value=0;doLoad(t){Ft(this,"mode",t.mode),Ft(this,"value",t.value)}}class ge extends Tt{density=new pe;limit=new fe;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Ft(this,"value",t.value)}}class me extends Tt{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=st(this.options[t]??{},i))}Ft(this,"close",t.close),Ft(this,"type",t.type)}}class ye extends ie{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Ft(this,"opacityRate",t.opacityRate),Ft(this,"sizeRate",t.sizeRate),Ft(this,"velocityRate",t.velocityRate)}}class ve extends Tt{bounce=new ue;effect=new Kt;groups={};move=new le;number=new ge;paint;palette;reduceDuplicates=!1;shape=new me;zIndex=new ye;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new he,this.paint.color=new jt,this.paint.color.value="#fff",this.paint.fill=new Zt,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#f(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=st(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(_(e)?this.paint=nt(e,t=>{const e=new he;return e.load(t),e}):_(this.paint)?(this.paint=new he,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#p.updaters.get(this.#u);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#f(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(_(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function we(t,e,...i){const s=new ve(t,e);return Bt(s,...i),s}class Pe extends Tt{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new qt,this.fullScreen=new Xt,this.hdr=new Yt,this.particles=we(this.#p,this.#u),this.resize=new Qt}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,nt(this.preset,t=>{this.#g(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#f(this.palette)),Ft(this,"autoPlay",t.autoPlay),Ft(this,"clear",t.clear),Ft(this,"key",t.key),Ft(this,"name",t.name),At(this,"delay",t.delay),Ft(this,"detectRetina",t.detectRetina),At(this,"duration",t.duration),Ft(this,"fpsLimit",t.fpsLimit);const e=t.hdr;k(e)?(this.hdr.enable=e,this.hdr.mode=xt.standard,this.hdr.peakNits=400):this.hdr.load(e),Ft(this,"pauseOnBlur",t.pauseOnBlur),Ft(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Ft(this,"zLayers",t.zLayers),this.background.load(t.background);const i=t.fullScreen;k(i)?this.fullScreen.enable=i:this.fullScreen.load(i),this.particles.load(t.particles),this.resize.load(t.resize),this.style=st(this.style,t.style),Ft(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#f(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#g(t){this.load(this.#p.getPreset(t))}}const be=new Map,xe=1.15,Me=1.05,ze=.2126,Ce=.7152,ke=.0722;function Se(t,e){let i=be.get(t);return i||(i=e(),be.size>2e3&&be.clear(),be.set(t,i)),i}function Ie(t){return A(t*(2.51*t+.03)/(t*(2.43*t+.59)+.14),0,1)}function Oe(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return _e(t,n.value,i,s);if(_(n.value)){const e=tt(n.value,i,s);if(!e)return;return Oe(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function _e(t,e,i,s=!0){if(!e)return;const n=S(e)?{value:e}:e;if(S(n.value))return n.value===d?function(){const t=0,e=256,i=()=>Math.floor(F(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(_(n.value)){const e=tt(n.value,i,s);if(!e)return;return _e(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Le(t,e,i,s=!0){const a=Oe(t,e,i,s);return a?function(t){const e=t.r/m,i=t.g/m,s=t.b/m,a=Math.max(e,i,s),r=Math.min(e,i,s),o={h:0,l:(a+r)*n,s:0};a!==r&&(o.s=o.l<n?(a-r)/(a+r):(a-r)/(2-a-r),o.h=e===a?(i-s)/(a-r):i===a?2+(s-e)/(a-r):4+(e-i)/(a-r));o.l*=w,o.s*=v,o.h*=60,o.h<0&&(o.h+=y);o.h>=y&&(o.h-=y);return o}(a):void 0}function De(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function Re(t){const e=(t.h%y+y)%y,i=Math.max(0,Math.min(v,t.s)),s=Math.max(0,Math.min(w,t.l)),a=e/y,r=i/v,o=s/w;if(0===i){const t=Math.round(o*m);return{r:t,g:t,b:t}}const l=o<n?o*(1+r):o+r-o*r,c=2*o-l,h=1/3,d=Math.min(m,m*De(c,l,a+h)),u=Math.min(m,m*De(c,l,a)),p=Math.min(m,m*De(c,l,a-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function Ee(t,e,i,s,n){const a=e?4:2,r=i??1;return Se(e?`rgb-${t.r.toFixed(a)}-${t.g.toFixed(a)}-${t.b.toFixed(a)}-hdr-${r.toString()}-${(s??400).toString()}-${n??xt.standard}`:`rgb-${t.r.toFixed(a)}-${t.g.toFixed(a)}-${t.b.toFixed(a)}-sdr-${r.toString()}`,()=>e?function(t,e,i=400,s=xt.standard){const n=i/203,a=function(t,e,i,s){const n=t.r/m,a=t.g/m,r=t.b/m;if(s!==xt.natural&&s!==xt.vivid&&s!==xt.cinematic&&s!==xt.dynamic)return{b:r,g:a,r:n};const o=Math.max(1,e),l=ze*n+Ce*a+ke*r,c=function(t,e,i){if(t<=i)return Ie(t);const s=t+(t-i)*(e-1);return Ie(s)}(l,e,i),h=l>0?c/l:1;return function(t,e,i,s,n){switch(s){case xt.vivid:{const s=(t+e+i)/3;return{b:A(A(s+(i-s)*xe,0,n)*Me,0,n),g:A(A(s+(e-s)*xe,0,n)*Me,0,n),r:A(A(s+(t-s)*xe,0,n)*Me,0,n)}}case xt.cinematic:{const s=1.05*t,a=.95*i,r=(s+e+a)/3;return{b:A(r+1.1*(a-r),0,n),g:A(r+1.1*(e-r),0,n),r:A(r+1.1*(s-r),0,n)}}case xt.dynamic:{const s=ze*t+Ce*e+ke*i,a=Math.min(1,2*s),r=1-a,o=(t+e+i)/3,l=A(o+(t-o)*xe,0,n)*Me,c=A(o+(e-o)*xe,0,n)*Me,h=A(o+(i-o)*xe,0,n)*Me;return{b:A(i*r+h*a,0,n),g:A(e*r+c*a,0,n),r:A(t*r+l*a,0,n)}}case xt.standard:case xt.natural:default:return{b:i,g:e,r:t}}}(A(n*h,0,o),A(a*h,0,o),A(r*h,0,o),s,o)}(t,n,.18,s);return`color(display-p3 ${a.r.toString()} ${a.g.toString()} ${a.b.toString()} / ${(e??1).toString()})`}(t,i,s,n):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Te(t,e,i,s,a){const r=e?4:2,o=i??1;return Se(e?`hsl-${t.h.toFixed(r)}-${t.s.toFixed(r)}-${t.l.toFixed(r)}-hdr-${o.toString()}-${(s??b).toString()}-${a??xt.standard}`:`hsl-${t.h.toFixed(r)}-${t.s.toFixed(r)}-${t.l.toFixed(r)}-sdr-${o.toString()}`,()=>e?Ee(function(t){const e=(t.h%y+y)%y,i=Math.max(0,Math.min(v,t.s)),s=Math.max(0,Math.min(w,t.l)),a=e/y,r=i/v,o=s/w;if(0===i){const t=o*m;return{r:t,g:t,b:t}}const l=o<n?o*(1+r):o+r-o*r,c=2*o-l,h=1/3;return{r:Math.min(m,m*De(c,l,a+h)),g:Math.min(m,m*De(c,l,a)),b:Math.min(m,m*De(c,l,a-h))}}(t),!0,i,s,a):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${o.toString()})`)}function Be(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function Fe(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:y},s:{enable:!1,value:t.s,min:0,max:v},l:{enable:!1,value:t.l,min:0,max:w}};return e&&(Ae(s.h,e.h,i),Ae(s.s,e.s,i),Ae(s.l,e.l,i)),s}function Ae(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=$(e.speed)/s*i,t.decay=1-$(e.decay),t.status=_t.increasing,t.loops=0,t.maxLoops=$(e.count),t.time=0,t.delayTime=$(e.delay)*a,e.sync||(t.velocity*=B(),t.value*=B()),t.initialValue=t.value,t.offset=N(e.offset)):t.velocity=0}function Ue(t,e,i,s){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const n=t.offset?U(t.offset):0,a=(t.velocity??0)*i.factor+3.6*n,r=t.decay??1,o=t.max,l=t.min;e&&t.status!==_t.increasing?(t.value-=a,t.value<l&&(t.loops??=0,t.loops++,t.status=_t.increasing)):(t.value+=a,t.value>o&&(t.loops??=0,t.loops++,e?t.status=_t.decreasing:t.value-=o)),t.velocity&&1!==r&&(t.velocity*=r),t.value=A(t.value,l,o)}function $e(t,e,i){if(!t)return;const{h:s,s:n,l:a}=t;Ue(s,!1,e),Ue(n,!0,e),Ue(a,!0,e)}const Ve=function(){const t=globalThis.tsParticles;return t?.pluginManager?t:new vt}();class He{enable=!1;mode="destination-out";load(t){L(t)||(Ft(this,"mode",t.mode),Ft(this,"enable",t.enable))}}class Ne{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return ji});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new He),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new He,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function We(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new Ne)})}class Ge{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:u};const n=i.circleRange;e.arc(r.x,r.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=O(s)?{min:j(s.min),max:j(s.max)}:{min:0,max:j(s)}}}async function je(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Ge))})}var qe;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(qe||(qe={}));const Xe=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ye=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class Qe{accepts(t){return t.startsWith("#")}handleColor(t){return this.#m(t.value)}handleRangeColor(t){return this.#m(t.value)}parseString(t){return this.#m(t)}#m(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Xe,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=Ye.exec(e);return i?{a:i[qe.a]?Number.parseInt(i[qe.a],16)/255:1,b:Number.parseInt(i[qe.b]??"0",16),g:Number.parseInt(i[qe.g]??"0",16),r:Number.parseInt(i[qe.r]??"0",16)}:void 0}}async function Ke(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new Qe)})}var Ze;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(Ze||(Ze={}));const Je=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class ti{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return Re(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return Re({h:$(e.h),l:$(e.l),s:$(e.s)})}parseString(t){if(!this.accepts(t))return;const e=Je.exec(t);return e?function(t){const e=Re(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?X(e[Ze.a]):1,h:Number.parseInt(e[Ze.h]??"0",10),l:Number.parseInt(e[Ze.l]??"0",10),s:Number.parseInt(e[Ze.s]??"0",10)}):void 0}}async function ei(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new ti)})}class ii{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Yi});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function si(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,ht(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new ii(t.pluginManager))})}function ni(t,e){const i=t.value,s=t.animation,r={delayTime:$(s.delay)*a,enable:s.enable,value:$(t.value)*e,max:H(i)*e,min:V(i)*e,loops:0,maxLoops:$(s.count),time:0};if(s.enable){switch(r.decay=1-$(s.decay),s.mode){case bt.increase:r.status=_t.increasing;break;case bt.decrease:r.status=_t.decreasing;break;case bt.random:r.status=B()>=n?_t.increasing:_t.decreasing}const t=s.mode===bt.auto;switch(s.startValue){case Ot.min:r.value=r.min,t&&(r.status=_t.increasing);break;case Ot.max:r.value=r.max,t&&(r.status=_t.decreasing);break;case Ot.random:default:r.value=U(r),t&&(r.status=B()>=n?_t.increasing:_t.decreasing)}}return r.initialValue=r.value,r}function ai(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,r=e.min,o=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case _t.increasing:e.value+=a;break;case _t.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case _t.increasing:e.value>=o&&(e.status=_t.decreasing,e.loops??=0,e.loops++);break;case _t.decreasing:e.value<=r&&(e.status=_t.increasing,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case kt.max:i>=n&&t.destroy();break;case kt.min:i<=s&&t.destroy()}}(t,s,e.value,r,o),t.destroyed||(e.value=A(e.value,r,o))}}class ri extends Ht{destroy=kt.none;load(t){super.load(t),L(t)||Ft(this,"destroy",t.destroy)}}class oi extends ne{animation=new ri;value=1;load(t){if(L(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class li{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=ni(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=$(i.speed)/s*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=B()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){$t(t,"opacity",oi,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&ai(t,t.opacity,0,t.options.opacity.animation.destroy,e)}}async function ci(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new li(t)))})}class hi{modes;#u;#y;constructor(t){this.#u=t,this.modes=[zt.bounce,zt.split],this.#y=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;let a=!1;for(const s of this.#y)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const r=t.getPosition(),o=t.offset,l=t.getRadius(),c=it(r,l),h=n.canvas.size,d=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==zt.bounce&&t.outMode!==zt.split||t.direction!==Y.left&&t.direction!==Y.right)return;t.bounds.right<0&&t.direction===Y.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===Y.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.outOfCanvas&&(t.direction===Y.right&&e>0||t.direction===Y.left&&e<0)){const e=$(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.outOfCanvas&&t.direction===Y.right?t.particle.position.x=t.canvasSize.width-s:t.outOfCanvas&&t.direction===Y.left&&(t.particle.position.x=s),t.outMode===zt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:o,outOfCanvas:d,size:l}),function(t){if(t.outMode!==zt.bounce&&t.outMode!==zt.split||t.direction!==Y.bottom&&t.direction!==Y.top)return;t.bounds.bottom<0&&t.direction===Y.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===Y.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.outOfCanvas&&(t.direction===Y.bottom&&e>0||t.direction===Y.top&&e<0)){const e=$(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.outOfCanvas&&t.direction===Y.bottom?t.particle.position.y=t.canvasSize.height-s:t.outOfCanvas&&t.direction===Y.top&&(t.particle.position.y=s),t.outMode===zt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:o,outOfCanvas:d,size:l})}}class di{modes;constructor(t){this.modes=[zt.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case It.normal:case It.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case It.inside:{const{dx:e,dy:i}=W(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class ui{modes;#u;constructor(t){this.#u=t,this.modes=[zt.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===Y.left||e===Y.right))??(t.options.move.distance.vertical&&(e===Y.top||e===Y.bottom)))return;const n=t.options.move.gravity,a=this.#u,o=a.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>o.height+l&&e===Y.bottom||n.inverse&&i.y<-l&&e===Y.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=o.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=o.width+l||t.velocity.x<0&&t.position.x>=-l)return;et(t.position,a.canvas.size,r,l,e)||t.destroy()}}}const pi=C.origin;class fi{modes;#u;constructor(t){this.#u=t,this.modes=[zt.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;switch(t.outType){case It.inside:{const{x:e,y:i}=t.velocity;pi.setTo(r),pi.length=t.moveCenter.radius,pi.angle=t.velocity.angle+Math.PI,pi.addTo(t.moveCenter);const{dx:s,dy:a}=W(t.position,pi);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor(U({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(U({min:0,max:n.canvas.size.height}));const{dx:o,dy:l}=W(t.position,t.moveCenter);t.direction=Math.atan2(-l,-o),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(t.isInsideCanvasForOutMode(s,e))return;switch(t.outType){case It.outside:{t.position.x=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(U({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=W(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case It.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},r=t.getRadius(),o=it(t.position,r);e===Y.right&&o.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=B()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===Y.left&&o.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=B()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===Y.bottom&&o.top>s.height+t.offset.y?(i||(t.position.x=B()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===Y.top&&o.bottom<-t.offset.y&&(i||(t.position.x=B()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class gi{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#v(t,zt.bounce,t=>new hi(t)),this.#v(t,zt.out,t=>new fi(t)),this.#v(t,zt.destroy,t=>new di(t)),this.#v(t,zt.none,t=>new ui(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#w(t,e,i.bottom??i.default,Y.bottom),this.#w(t,e,i.left??i.default,Y.left),this.#w(t,e,i.right??i.default,Y.right),this.#w(t,e,i.top??i.default,Y.top)}#v(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#w(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function mi(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new gi(t)))})}class yi{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=at(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,r=s?.fill,o=s?.stroke;if(r){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),r.color);t.fillEnabled=r.enable,t.fillOpacity=$(r.opacity),t.fillAnimation=i.animation;const s=Le(this.#p,i);s&&(t.fillColor=Fe(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(o){const i=jt.create(void 0===a?void 0:jt.create(void 0,a),o.color);t.strokeWidth=$(o.width)*e.retina.pixelRatio,t.strokeOpacity=$(o.opacity??1),t.strokeAnimation=i.animation;const s=Le(this.#p,i)??t.getFillColor();s&&(t.strokeColor=Fe(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),r=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||r)}update(t,e){this.isEnabled(t)&&($e(t.fillColor,e,this.#u.hdr),$e(t.strokeColor,e,this.#u.hdr))}}async function vi(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new yi(t.pluginManager,e)))})}var wi;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(wi||(wi={}));const Pi=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class bi{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:$(e.r),g:$(e.g),b:$(e.b)}}parseString(t){if(!this.accepts(t))return;const e=Pi.exec(t);return e?{a:e.length>4?X(e[wi.a]):1,b:parseInt(e[wi.b]??"0",10),g:parseInt(e[wi.g]??"0",10),r:parseInt(e[wi.r]??"0",10)}:void 0}}async function xi(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new bi)})}class Mi extends Ht{destroy=kt.none;load(t){super.load(t),L(t)||Ft(this,"destroy",t.destroy)}}class zi extends ne{animation=new Mi;value=3;load(t){if(super.load(t),L(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ci{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const n=i.animation;n.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/s*e.retina.reduceFactor,n.sync||(t.size.velocity*=B()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){$t(t,"size",zi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=ni(i,e),t.retina.sizeAnimationSpeed=$(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&ai(t,t.size,0,t.options.size.animation.destroy,e)}}async function ki(t){t.checkVersion("4.4.0"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new Ci(t)))})}const Si={fpsLimit:120,background:{color:"#191d1e",image:"linear-gradient(0deg, #191d1e 50%,#283139 100%)"},particles:{number:{value:200,density:{enable:!0}},shape:{type:"circle",options:{circle:[{particles:{paint:{fill:{enable:!1},stroke:{width:1,color:{value:"#0cdbf3"}}},opacity:{value:{min:0,max:.8},animation:{enable:!0,speed:.1}},size:{value:{min:3,max:5}}}},{particles:{paint:{fill:{color:{value:"#6fd2f3"},enable:!0}},opacity:{value:{min:0,max:.6},animation:{enable:!0,speed:.1}},size:{value:{min:5,max:7}}}},{particles:{paint:{fill:{color:{value:"#93e9f3"},enable:!0}},opacity:{value:{min:0,max:.4},animation:{enable:!0,speed:.1}},size:{value:{min:10,max:20}}}}]}},move:{enable:!0,speed:{min:.1,max:.5},direction:x.none,outModes:zt.bounce}},detectRetina:!0};async function Ii(t){await t.pluginManager.register(async t=>{await async function(t){t.checkVersion("4.4.0"),await t.pluginManager.register(async t=>{await Promise.all([We(t),Ke(t),ei(t),xi(t),si(t),je(t),vi(t),ci(t),mi(t),ki(t)])})}(t),t.pluginManager.addPreset("ambient",Si)})}const Oi=globalThis;Oi.loadAmbientPreset=Ii,Oi.tsParticles=Ve;function _i(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class Li{#P;#b;#x;#M;#z;#u;#C;#k;#S;#I;#O;#_;#p;#L;#D;#R={};#E=[void 0,void 0];#T={};constructor(t,e,i){this.#p=t,this.#u=e,this.#M=i,this.#C=null,this.#P=null,this.#b=new Set,this.#D=[],this.#L=[],this.#x=[],this.#z=[],this.#S=[],this.#I=[],this.#O=[],this.#_={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[]}}get settings(){return this.#k}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(r.x,r.y,this.#M.size.width,this.#M.size.height)})}clear(){for(const t of this.#x)if(t.canvasClear?.())return;for(const t of Object.values(Lt))if("number"==typeof t)for(const e of this.#B(t))if(e.canvasClear?.())return;this.canvasClear()}destroy(){this.stop(),this.#P=null,this.#b.clear(),this.#D=[],this.#L=[],this.#x=[],this.#z=[],this.#S=[],this.#I=[],this.#O=[];for(const t of Object.values(Lt))"number"==typeof t&&(this.#_[t]=[])}draw(t){const e=this.#C;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,r]=this.#F(t);if(a??=s,r??=n,!a&&!r)return;const o=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#T,f=this.#R,g=a?Te(a,o.hdr,h*d,o.peakNits,o.hdrMode):void 0,m=r?Te(r,o.hdr,u*d,o.peakNits,o.hdrMode):g;p.a=p.b=p.c=p.d=void 0,f.fill=g,f.stroke=m,this.draw(s=>{for(const i of this.#O)i.drawParticleSetup?.(s,t,e);this.#A(s,t,i,d,f,p),this.#U({container:o,context:s,particle:t,delta:e,colorStyles:f,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#$(t);for(const i of this.#I)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#S)this.#V(i,s,t,e)})}drawParticles(t){const{particles:e,actualOptions:i}=this.#u;this.clear(),e.update(t),this.draw(s=>{const n=this.#M.size.width,a=this.#M.size.height;if(this.#P)try{s.drawImage(this.#P,r.x,r.y,n,a)}catch{this.#H("background-element-draw-error","Error drawing background element onto canvas")}const o=i.background;if(o.draw)try{o.draw(s,t)}catch{this.#H("background-draw-error","Error in background.draw callback")}for(const t of this.#B(Lt.BackgroundMask))t.canvasPaint?.();for(const e of this.#B(Lt.CanvasSetup))e.drawSettingsSetup?.(s,t);for(const e of this.#B(Lt.PluginContent))e.draw?.(s,t);e.drawParticles(t);for(const e of this.#B(Lt.CanvasCleanup))e.clearDraw?.(s,t),e.drawSettingsCleanup?.(s,t)})}init(){this.initUpdaters(),this.initPlugins(),this.#N(),this.paint()}initPlugins(){this.#x=[],this.#z=[],this.#S=[],this.#O=[],this.#I=[];for(const t of Object.values(Lt))"number"==typeof t&&(this.#_[t]=[]);for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#z.push(t),t.drawParticle&&this.#S.push(t),t.drawParticleSetup&&this.#O.push(t),t.drawParticleCleanup&&this.#I.push(t),t.canvasClear&&this.#x.push(t),t.canvasPaint&&this.#B(Lt.BackgroundMask).push(t),t.drawSettingsSetup&&this.#B(Lt.CanvasSetup).push(t),t.draw&&this.#B(Lt.PluginContent).push(t),(t.clearDraw??t.drawSettingsCleanup)&&this.#B(Lt.CanvasCleanup).push(t)}initUpdaters(){this.#D=[],this.#L=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#L.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#D.push(t)}paint(){let t=!1;for(const e of this.#B(Lt.BackgroundMask))if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(r.x,r.y,this.#M.size.width,this.#M.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,r.x,r.y,this.#M.size.width,this.#M.size.height),i.globalAlpha=s})}setContext(t){this.#C=t,this.#C&&(this.#C.globalCompositeOperation=i)}setContextSettings(t){this.#k=t}stop(){this.draw(t=>{t.clearRect(r.x,r.y,this.#M.size.width,this.#M.size.height)})}#$(t){for(const e of this.#L)e.afterDraw?.(t)}#A(t,e,i,s,n,a){for(const r of this.#D){if(r.getColorStyles){const{fill:a,stroke:o}=r.getColorStyles(e,t,i,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){const t=r.getTransformValues(e);for(const e in t)_i(a,t,e)}r.beforeDraw?.(e)}}#W(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#G(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#U(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:r,opacity:o,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const f=!!s.fillEnabled,g=s.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke);const m={context:i,particle:s,radius:r,drawRadius:1*r,opacity:o,delta:n,pixelRatio:e.retina.pixelRatio,fill:f,stroke:g>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(m);const y=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#G(y,m),this.#j(v,m),this.#q(v,m),this.#X(v,m),this.#W(y,m),i.resetTransform()}#V(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#q(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#X(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#j(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#B(t){return this.#_[t]}#F(t){let e,i;for(const s of this.#z)if(!e&&s.particleFillColor&&(e=Le(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Le(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#E[0]=e,this.#E[1]=i,this.#E}#N(){const t=this.#u.actualOptions.background;if(this.#P=null,t.element)if("string"==typeof t.element){if("undefined"!=typeof document){const e=document.querySelector(t.element);"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement||"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?this.#P=e:e?this.#H("background-element-not-supported",`Background element "${t.element}" is not a supported drawable element (canvas, video, or img)`):this.#H("background-element-not-found",`Background element selector "${t.element}" not found`)}}else("undefined"!=typeof HTMLCanvasElement&&t.element instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas||"undefined"!=typeof HTMLVideoElement&&t.element instanceof HTMLVideoElement||"undefined"!=typeof HTMLImageElement&&t.element instanceof HTMLImageElement)&&(this.#P=t.element)}#H(t,e){this.#b.has(t)||(this.#b.add(t),mt().warning(e))}}const Di=new WeakMap;function Ri(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Ei{domElement;render;renderCanvas;size;zoom=1;#u;#Y;#Q;#K;#Z;#p;#J;#tt;#et;#it;constructor(t,e){this.#p=t,this.#u=e,this.render=new Li(t,e,this),this.#et={height:0,width:0};const i=e.retina.pixelRatio,s=this.#et;this.size={height:s.height*i,width:s.width*i},this.#Y=!1,this.#tt=[],this.#J="none"}get#st(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#Y){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#nt();this.render.destroy(),this.#tt=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#it?this.#it:{x:e*n/t,y:i*n/t}}init(){this.#at(t=>{t.disconnect()}),this.#K=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#rt()}),this.resize(),this.#ot(),this.#at(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#lt(),this.initBackground(),this.#ct(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=Oe(this.#p,e.color);if(n){const i=t.actualOptions.hdr;s.backgroundColor=Ee(n,t.hdr,e.opacity,i.peakNits,i.mode)}else s.backgroundColor="";s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#tt=[];for(const t of this.#u.plugins)t.resize&&this.#tt.push(t)}loadCanvas(t){this.#Y&&this.domElement&&this.domElement.remove();const i=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=i,this.#Y=!!i&&"true"===i.dataset[e],this.renderCanvas=i?(t=>{const e=Di.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError("OffscreenCanvas is required but not supported by this browser");try{const e=t.transferControlToOffscreen();return Di.set(t,e),e}catch{throw new TypeError("OffscreenCanvas transfer failed")}})(i):t;const s=this.domElement;s&&(s.ariaHidden="true",this.#Z=function(t){const e=Z().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||L(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(s.style));const n=this.#et,a=this.renderCanvas;s?(n.height=s.offsetHeight,n.width=s.offsetWidth):(n.height=a.height,n.width=a.width);const r=this.#u.retina.pixelRatio,o=this.size;a.height=o.height=n.height*r,a.width=o.width=n.width*r}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#et,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,r={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&r.height===i.height&&r.width===i.width)return!1;const o={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=r.width,i.height=l.height=r.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/o.width,height:s.height/o.height}),!0}setPointerEvents(t){this.domElement&&(this.#J=t,this.#rt())}setZoom(t,e){this.zoom=t,this.#it=e}stop(){this.#at(t=>{t.disconnect()}),this.#K=void 0,this.#ht(),this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#dt(),e&&await t.refresh()}#dt(){for(const t of this.#tt)t.resize?.()}#lt(){const t=this.#u,e=t.actualOptions.hdr.enable&&J("(color-gamut: p3)")?.matches&&J("(dynamic-range: high)")?.matches;t.hdr=e??!1,t.hdrMode=t.actualOptions.hdr.mode,t.peakNits=t.actualOptions.hdr.peakNits;const i=this.renderCanvas;if(!i)return;let s;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...e?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});try{s=i.getContext("2d",this.render.settings)}catch{s=null}if(e&&!s){t.hdr=!1;const e={alpha:!0,desynchronized:!0,willReadFrequently:!1,colorSpace:"srgb"};this.render.setContextSettings(e);try{s=i.getContext("2d",e)}catch{s=null}}this.render.setContext(s)}#ct(){this.#ht();const t=J("(color-gamut: p3)"),e=J("(dynamic-range: high)"),i=()=>{this.#ut(),this.#lt(),this.initBackground()},s=[];t&&(t.addEventListener("change",i),s.push({handler:i,mql:t})),e&&(e.addEventListener("change",i),s.push({handler:i,mql:e})),this.#Q=s}#ot(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#st?this.#pt():this.#nt();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#ut(){const t=this.renderCanvas;t&&(this.domElement||(this.renderCanvas=new OffscreenCanvas(t.width,t.height)))}#ht(){if(this.#Q){for(const{handler:t,mql:e}of this.#Q)e.removeEventListener("change",t);this.#Q=void 0}}#rt(){const t=this.domElement;if(!t)return;this.#at(t=>{t.disconnect()}),this.#ot(),this.initBackground();const e=this.#J;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#at(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#nt(){const t=this.domElement,e=this.#Z;t&&e&&Ri(t,e,!0)}#at(t){this.#K&&t(this.#K)}#pt(){const t=this.domElement;t&&Ri(t,function(t){if(ot!==t||!lt){ot=t;const e=Z().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}lt=e}return lt}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Ti{#u;#ft;#gt;#mt;constructor(t){this.#u=t,this.#ft={visibilityChange:()=>{this.#yt()},resize:()=>{this.#vt()}}}addListeners(){this.#wt(!0)}removeListeners(){this.#wt(!1)}#yt(){const t=this.#u;t.actualOptions.pauseOnBlur&&(Z().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#vt(){this.#mt&&(clearTimeout(this.#mt),this.#mt=void 0);const t=async()=>{const t=this.#u.canvas;await t.windowResize()};this.#mt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*a)}#wt(t){const e=this.#ft;this.#Pt(t),ct(document,"visibilitychange",e.visibilityChange,t,!1)}#Pt(t){const e=this.#ft,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void ct(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#gt&&!t?(s&&this.#gt.unobserve(s),this.#gt.disconnect(),this.#gt=void 0):!this.#gt&&t&&s&&(this.#gt=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this.#vt()}),this.#gt.observe(s))}}function Bi(t){if(e=t.outMode,i=t.checkModes,!(e===i||_(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Fi(t,e){const i=t%e;return i<0?i+e:i}function Ai(t,e,i,s){const n=we(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=at(n.effect.type,t.id,a),t.shape=at(n.shape.type,t.id,a);const r=n.effect,o=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=at(e,t.id,a);i&&(t.effect=i)}r.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=at(e,t.id,a);i&&(t.shape=i)}o.load(s.shape)}}if(t.effect===d){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(B()*i.length)]}if(t.shape===d){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(B()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.effect,r,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return st({close:e.close},at(n,i,s))}(t.shape,o,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class Ui{backColor;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#bt={fillOpacity:1,opacity:1,strokeOpacity:1};#xt=z.origin;#Mt={sin:0,cos:0};#zt={a:1,b:0,c:0,d:1};#u;#Ct=[];#p;constructor(t,e){this.#p=t,this.#u=e}addModifier(t){this.#Ct.push(t),this.#Ct.sort((t,e)=>t.priority-e.priority)}clearModifiers(){this.#Ct.length=0}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.clearModifiers();const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(ut.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#kt(this.#St(Be(this.fillColor),t=>t.fillColor))}getMass(){return this.getRadius()**2*Math.PI*n}getModifier(t){return this.#Ct.find(e=>e.id===t)}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=$(this.opacity?.value??1),s=this.#St(void 0,t=>t.opacity)??i,n=this.fillOpacity??1,a=this.strokeOpacity??1;return this.#bt.fillOpacity=n,this.#bt.opacity=s*e,this.#bt.strokeOpacity=a,this.#bt}getPosition(){return this.#xt.x=this.position.x+this.offset.x,this.#xt.y=this.position.y+this.offset.y,this.#xt.z=this.position.z,this.#xt}getRadius(){return this.#St(this.size.value,t=>t.radius)}getRotateData(){const t=this.getAngle();return this.#Mt.sin=Math.sin(t),this.#Mt.cos=Math.cos(t),this.#Mt}getStrokeColor(){return this.#kt(this.#St(Be(this.strokeColor),t=>t.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#zt.a=e.cos*(t.a??o),this.#zt.b=i?e.sin*(t.b??1):t.b??l,this.#zt.c=i?-e.sin*(t.c??1):t.c??c,this.#zt.d=e.cos*(t.d??h),this.#zt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=It.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=Ai(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.#It(e),this.initialVelocity=this.#Ot(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#_t({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#_t({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Fi(t,u);return e>=Math.PI*n&&e<3*Math.PI*n}if(this.roll.horizontal){const e=Fi(t+Math.PI*n,u);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Fi(t,u);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}removeModifier(t){const e=this.#Ct.findIndex(e=>e.id===t);e>=0&&this.#Ct.splice(e,1)}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#St(t,e){let i=t;for(const t of this.#Ct)if(t.enabled){const s=e(t);void 0!==s&&(i=s)}return i}#Lt(t,e){let i=0,s=t?z.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,r=this.options.move.outModes,o=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return z.create(i.x,i.y,e)}const t=q({size:l,position:s}),c=z.create(t.x,t.y,e);this.#Dt(c,o,r.left??r.default),this.#Dt(c,o,r.right??r.default),this.#Rt(c,o,r.top??r.default),this.#Rt(c,o,r.bottom??r.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#Ot(){const t=this.options.move,e=function(t){const e=C.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===x.inside||t.direction===x.outside)return e;const i=j($(t.angle.value)),s=j($(t.angle.offset)),a={left:s-i*n,right:s+i*n};return t.straight||(e.angle+=U(N(a.left,a.right))),t.random&&"number"==typeof t.speed&&(e.length*=B()),e}#Dt(t,e,i){Bi({outMode:i,checkModes:[zt.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#Rt(t,e,i){Bi({outMode:i,checkModes:[zt.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#Et(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===zt.bounce;return t===Y.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===Y.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===Y.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===Y.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#Tt(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#_t(t){const e=this.#Et(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,r=n?.isInsideCanvas;if(!a&&!r)return e;const o=this.#Tt(t.direction,t.outMode),l=a?this.#Bt(a(o),"shape"):void 0,c=r?this.#Bt(r(o),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#kt(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===Ct.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#It(t){const e=this.#u,i=Math.floor($(this.options.zIndex.value)),s=this.#Lt(t,A(i,0,e.zLayers));if(!s)throw new Error("a valid position cannot be found for particle");this.position=s,this.initialPosition=this.position.copy();const a=e.canvas.size;switch(this.moveCenter={...rt(this.options.move.center,a),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(I(t))return j(t);switch(t){case x.top:return-Math.PI*n;case x.topRight:return-Math.PI*P;case x.right:return 0;case x.bottomRight:return Math.PI*P;case x.bottom:return Math.PI*n;case x.bottomLeft:return.75*Math.PI;case x.left:return Math.PI;case x.topLeft:return.75*-Math.PI;case x.inside:return Math.atan2(i.y-e.y,i.x-e.x);case x.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return B()*u}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case x.inside:this.outType=It.inside;break;case x.outside:this.outType=It.outside}this.offset=C.origin}#Bt(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class $i{#Ft;#At=new Map;#Ut=[];#$t;#Vt;#Ht=[];#Nt;constructor(t){this.#Ft=t,this.#$t=0,this.#Nt=0}clear(){this.#At.clear();const t=this.#Vt;t&&(this.#Ft=t),this.#Vt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#Wt(e,i);this.#At.has(s)||this.#At.set(s,[]),this.#At.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Gt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Ft),a=Math.floor(s.maxX/this.#Ft),r=Math.floor(s.minY/this.#Ft),o=Math.floor(s.maxY/this.#Ft);for(let s=n;s<=a;s++)for(let n=r;n<=o;n++){const a=`${s}_${n}`,r=this.#At.get(a);if(r)for(const s of r)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this.#jt(t.x,t.y,e),a=this.query(n,i,s);return this.#qt(),a}queryRectangle(t,e,i,s=[]){const n=this.#Xt(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this.#qt(),a}setCellSize(t){this.#Vt=t}#jt(t,e,i){return(this.#Ut[this.#$t++]??=new Rt(t,e,i)).reset(t,e,i)}#Xt(t,e,i,s){return(this.#Ht[this.#Nt++]??=new Et(t,e,i,s)).reset(t,e,i,s)}#Wt(t,e){return`${Math.floor(t/this.#Ft)}_${Math.floor(e/this.#Ft)}`}#Gt(t){if(t instanceof Rt){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Et){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#qt(){this.#$t=0,this.#Nt=0}}class Vi{checkParticlePositionPlugins;grid;#Yt;#u;#Qt;#Kt;#Zt;#Jt;#te;#ee;#p;#ie;#se;#ne;#ae;#re;#oe;constructor(t,e){this.#p=t,this.#u=e,this.#Zt=0,this.#Yt=[],this.#ie=[],this.#Kt=0,this.#Qt=new Map,this.#Jt=new Map,this.#oe=this.#le(this.#u.zLayers),this.grid=new $i(100),this.checkParticlePositionPlugins=[],this.#te=[],this.#ee=[],this.#ne=[],this.#se=[],this.#re=[]}get count(){return this.#Yt.length}addParticle(t,e,i,s){const n=this.#u.actualOptions.particles.number.limit.mode,a=void 0===i?this.#Kt:this.#Qt.get(i)??this.#Kt,r=this.count;if(a>0)switch(n){case Mt.delete:{const t=r+1-a;t>0&&this.removeQuantity(t);break}case Mt.wait:if(r>=a)return}try{const n=this.#ie.pop()??new Ui(this.#p,this.#u);n.init(this.#Zt,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#Yt.push(n),this.#ce(n),this.#Zt++,this.#u.dispatchEvent(ut.particleAdded,{particle:n}),n):void this.#ie.push(n)}catch(t){mt().warning(`error adding particle: ${t}`)}}clear(){this.#Yt=[],this.#Jt.clear(),this.#he(this.#u.zLayers)}destroy(){this.#Yt=[],this.#ie.length=0,this.#Jt.clear(),this.#oe=[],this.checkParticlePositionPlugins=[],this.#te=[],this.#ee=[],this.#ne=[],this.#se=[],this.#re=[]}drawParticles(t){for(let e=this.#oe.length-1;e>=0;e--){const i=this.#oe[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#Yt.filter(t)}find(t){return this.#Yt.find(t)}get(t){return this.#Yt[t]}async init(){const t=this.#u,e=t.actualOptions;this.checkParticlePositionPlugins=[],this.#re=[],this.#ee=[],this.#ne=[],this.#te=[],this.#se=[],this.#Jt.clear(),this.#he(t.zLayers),this.grid=new $i(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#re.push(e),e.particleUpdate&&this.#ee.push(e),e.postUpdate&&this.#ne.push(e),e.particleReset&&this.#te.push(e),e.postParticleUpdate&&this.#se.push(e);await this.#u.initDrawersAndUpdaters();for(const e of this.#u.effectDrawers.values())await(e.init?.(t));for(const e of this.#u.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#Yt.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this.#de(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=we(this.#p,this.#u,s);this.#ue(n,i,t)}this.#ue(t.particles,i)}setResizeFactor(t){this.#ae=t}update(t){this.grid.clear();for(const e of this.#re)e.update?.(t);const e=this.#pe(t);for(const e of this.#ne)e.postUpdate?.(t);if(this.#fe(t,e),e.size)for(const t of e)this.remove(t);this.#ae=void 0}#ge(...t){this.#ie.push(...t)}#ue(t,e,i,s){const n=t.number;if(!n.density.enable)return void(void 0===i?this.#Kt=n.limit.value:(s?.number.limit.value??n.limit.value)&&this.#Qt.set(i,s?.number.limit.value??n.limit.value));const a=this.#me(n.density),r=n.value,o=n.limit.value>0?n.limit.value:r,l=Math.min(r,o)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#Kt=n.limit.value*a:this.#Qt.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#le(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#ye(t){const e=this.#oe.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#me(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}#ce(t){const e=this.#ye(t.position.z),i=this.#oe[e];i&&(i.push(t),this.#Jt.set(t.id,e))}#de(t,e,i){const s=this.#Yt[t];return!!s&&(s.group===e&&(this.#Yt.splice(t,1),this.#ve(s),s.destroy(i),this.#u.dispatchEvent(ut.particleRemoved,{particle:s}),this.#ge(s),!0))}#ve(t){const e=this.#Jt.get(t.id)??this.#ye(t.position.z),i=this.#oe[e];if(!i)return void this.#Jt.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#Jt.delete(t.id)}#he(t){const e=Math.max(Math.floor(t),1);if(this.#oe.length===e)for(const t of this.#oe)t.length=0;else this.#oe=this.#le(e)}#we(t){const e=this.#ye(t.position.z),i=this.#Jt.get(t.id);if(void 0===i)return void this.#ce(t);if(i===e)return;const s=this.#oe[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#oe[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#Jt.set(t.id,e)}else this.#Jt.set(t.id,e)}#pe(t){const e=new Set,i=this.#ae;for(const s of this.#Yt){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#te)t.particleReset?.(s);for(const e of this.#ee){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}return e}#fe(t,e){for(const i of this.#Yt)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#se)e.postParticleUpdate?.(i,t);this.#we(i)}}}class Hi{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=$(s.gravity.maxSpeed)*i,a.moveDrift=$(s.drift)*i,a.moveSpeed=$(s.speed)*i;const r=a.maxDistance;r.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,r.vertical=void 0===n.vertical?void 0:n.vertical*i}}function Ni(t){return!t.destroyed}function Wi(t,e,...i){const s=new Pe(t,e);return Bt(s,...i),s}var Gi=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;hdrMode;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;peakNits;plugins;retina;shapeDrawers;started;zLayers;#Pe;#be;#xe={value:0,factor:0};#Me;#ze;#Ce;#ke;#Se;#Ie;#Oe;#_e;#Le;#De;#Re;#p;#Ee;#Te;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#Me=e,this.#Le=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.hdrMode=xt.standard,this.peakNits=400,this.#Ee=!1,this.#Pe=0,this.#Ce=0,this.#_e=0,this.#Se=!0,this.started=!1,this.destroyed=!1,this.#Re=!0,this.#Oe=0,this.zLayers=100,this.pageHidden=!1,this.#Te=a,this.#Ie=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Hi(this),this.canvas=new Ei(this.#p,this),this.particles=new Vi(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#De=Wi(this.#p,this),this.actualOptions=Wi(this.#p,this),this.#ke=new Ti(this),this.dispatchEvent(ut.containerBuilt)}get animationStatus(){return!this.#Re&&!this.pageHidden&&Ni(this)}get options(){return this.#De}get sourceOptions(){return this.#Te}addLifeTime(t){this.#_e+=t}alive(){return!this.#Ce||this.#_e<=this.#Ce}destroy(t=!0){if(Ni(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.#p.clearPlugins(this),this.destroyed=!0,this.#Le(t),this.dispatchEvent(ut.containerDestroyed)}}dispatchEvent(t,e){this.#Me(t,{container:this,data:e})}draw(t){if(!Ni(this))return;let e=t;this.#ze=E(t=>{e&&(this.#Oe=void 0,e=!1),this.#Be(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}mt().error(`Export plugin with type ${t} not found`)}async init(){if(!Ni(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#De=Wi(this.#p,this,this.#Ie,this.sourceOptions),this.actualOptions=Wi(this.#p,this,this.#De),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,smooth:n,zLayers:r}=this.actualOptions,o=this.actualOptions.hdr;this.hdrMode=o.mode,this.peakNits=o.peakNits,this.zLayers=r,this.#Ce=$(i)*a,this.#Pe=$(e)*a,this.#_e=0,this.fpsLimit=s>0?s:120,this.#Ee=n;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(ut.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(ut.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(Ni(this)&&(void 0!==this.#ze&&(t=this.#ze,T(t),this.#ze=void 0),!this.#Re)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Re=!0),this.dispatchEvent(ut.containerPaused)}}play(t){if(!Ni(this))return;const e=this.#Re||t;if(!this.#Se||this.actualOptions.autoPlay){if(this.#Re&&(this.#Re=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(ut.containerPlay),this.draw(e??!1)}else this.#Se=!1}async refresh(){if(Ni(this))return this.stop(),this.start()}async reset(t){if(Ni(this))return this.#Ie=t,this.#Te=t,this.#De=Wi(this.#p,this,this.#Ie,this.sourceOptions),this.actualOptions=Wi(this.#p,this,this.#De),this.refresh()}async start(){Ni(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this.#ke.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(ut.containerStarted),this.play(),t()};this.#be=setTimeout(()=>{e()},this.#Pe)}))}stop(){if(Ni(this)&&this.started){this.#be&&(clearTimeout(this.#be),this.#be=void 0),this.#Se=!0,this.started=!1,this.#ke.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#Te=this.#De,this.dispatchEvent(ut.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#Be(t){try{if(!this.#Ee&&void 0!==this.#Oe&&t<this.#Oe+a/this.fpsLimit)return void this.draw(!1);if(this.#Oe??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/a}(this.#xe,t-this.#Oe,this.fpsLimit,this.#Ee),this.addLifeTime(this.#xe.value),this.#Oe=t,this.#xe.value>a)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#xe),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){mt().error("error in animation loop",t)}}}});var ji=Object.freeze({__proto__:null,BlendPluginInstance:class{layer=Lt.CanvasSetup;#u;#Fe;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??i,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#Fe&&(t.globalCompositeOperation=this.#Fe)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#Fe=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function qi(t,e,i,s,n,a,r){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=A(t.velocity.x,-1,1),t.velocity.y=A(t.velocity.y,-1,1));t.lastPathTime-=n}(t,r);const o=t.gravity,l=o?.enable&&o.inverse?-1:1;n&&i&&(t.velocity.x+=n*r.factor/(60*i)),o?.enable&&i&&(t.velocity.y+=l*(o.acceleration*r.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);o?.enable&&s>0&&(!o.inverse&&h.y>=0&&h.y>=s||o.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}function Xi(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=e.getPosition(),r=(l=a,c=n,Math.sqrt(G(l,c))),o=$(i.acceleration);var l,c;e.retina.spinAcceleration=o*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?Pt.clockwise:Pt.counterClockwise,angle:B()*u,radius:r,acceleration:e.retina.spinAcceleration}}var Yi=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-$(e.decay),t.pathDelay=$(s.delay.value)*a,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:$(i.acceleration),inverse:i.inverse},Xi(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,a=function(t){const e=t.getModifier("slow");return e?.enabled?e.speedFactor??1:1}(t),r=s.retina.reduceFactor,o=t.retina.moveSpeed,l=t.retina.moveDrift,c=t.size.max,h=o*(i.size?t.getRadius()/c:1)*a*(e.factor||1)*n,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const a=e.spin.direction===Pt.clockwise,r={x:a?Math.cos:Math.sin,y:a?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*r.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*r.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const o=Math.max(t.canvas.size.width,t.canvas.size.height),l=o*n;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/o)}(s,t,h,r):qi(t,i,h,d,l,r,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=W(e,t.position),a=Math.abs(i),r=Math.abs(s),{maxDistance:o}=t.retina,l=o.horizontal,c=o.vertical;if(!l&&!c)return;if((l&&a>=l||c&&r>=c)&&!t.misplaced)t.misplaced=!!l&&a>l||!!c&&r>c,l&&(t.velocity.x=t.velocity.y*n-t.velocity.x),c&&(t.velocity.y=t.velocity.x*n-t.velocity.y);else if((!l||a<l)&&(!c||r<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-B()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-B())}}(t)}preInit(){return this.#Ae()}redrawInit(){return this.#Ae()}update(){for(const t of this.pathGenerators.values())t.update()}async#Ae(){const t=await(this.#p.getPathGenerators?.(this.#u,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});t.loadAmbientPreset=Ii,t.tsParticles=Ve}),Object.assign(globalThis.window||globalThis,{loadAmbientPreset:(globalThis.__tsParticlesInternals.presets.ambient||{}).loadAmbientPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},function(t){"use strict";const e=/^\[tsParticles Error (TSP-\d+)\]\s*/,i=t=>(...e)=>{t(...e)},s={debug:i(console.debug),error:(t,...i)=>{if("string"==typeof t){const s=e.exec(t);if(s?.[1])return void console.error(`tsParticles - ${s[1]} - ${t.slice(s[0].length)}`,...i)}console.error(`tsParticles - Error - ${t}`,...i)},info:i(console.info),log:i(console.log),trace:i(console.trace),verbose:i(console.log),warning:i(console.warn)};function n(){return s}var a;!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(a||(a={}));const r="generated",o="100%",l="source-over",c=100,h=.5,d=1e3,u={x:0,y:0,z:0},p=1,f=0,g=0,m=1,y="random",v=2*Math.PI,w="true",P="false",b="canvas",x=255,M=360,z=100,k=100,C=.25,S=400;function I(t){return"z"in t?t.z:u.z}class O{x;y;z;constructor(t=u.x,e=u.y,i=u.z){this.x=t,this.y=e,this.z=i}static get origin(){return O.create(u.x,u.y,u.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.#t(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this.#t(this.angle,t)}static clone(t){return O.create(t.x,t.y,I(t))}static create(t,e,i){return"number"==typeof t?new O(t,e??u.y,i??u.z):new O(t.x,t.y,I(t))}add(t){return O.create(this.x+t.x,this.y+t.y,this.z+I(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=I(t)}copy(){return O.clone(this)}div(t){return O.create(this.x/t,this.y/t,this.z/t)}getLengthSq(){return this.x**2+this.y**2}mult(t){return O.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return O.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),u.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=I(t)}sub(t){return O.create(this.x-t.x,this.y-t.y,this.z-I(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=I(t)}#t(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class _ extends O{constructor(t=u.x,e=u.y){super(t,e,u.z)}static get origin(){return _.create(u.x,u.y)}static clone(t){return _.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new _(t,e??u.y):new _(t.x,t.y)}}function L(t){return"boolean"==typeof t}function D(t){return"string"==typeof t}function E(t){return"number"==typeof t}function R(t,e){return Object.values(t).some(t=>t===e)}function T(t,e,i){return R(t,e)?e:i}function B(t){return"object"==typeof t&&null!==t}function A(t){return Array.isArray(t)}function F(t){return null==t}const U=Math.PI/180;let $=Math.random;const V=t=>requestAnimationFrame(t),N=t=>{cancelAnimationFrame(t)};function W(){return j($(),0,1-Number.EPSILON)}function H(t,e){return W()*(e-t)+t}function j(t,e,i){return Math.min(Math.max(t,e),i)}function q(t){const e=Y(t);let i=X(t);return e===i&&(i=0),H(i,e)}function G(t){return E(t)?t:q(t)}function X(t){return E(t)?t:t.min}function Y(t){return E(t)?t:t.max}function Q(t,e){if(t===e||void 0===e&&E(t))return t;const i=X(t),s=Y(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:Q(i,s)}function K(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function Z(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function J(t){return t*U}function tt(t){const{position:e,size:i}=t;return{x:e?.x??W()*i.width,y:e?.y??W()*i.height}}function et(t){return t?t.endsWith("%")?Number.parseFloat(t)/c:Number.parseFloat(t):1}const it="TSP-1001",st="TSP-1002",nt="TSP-1003",at="TSP-1101",rt="TSP-1102",ot="TSP-1201",lt="TSP-1202",ct="TSP-1203";function ht(t,...e){return`[tsParticles Error ${t}] https://particles.js.org/errors/#${t}`}var dt,ut;function pt(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function ft(){return globalThis.document}function gt(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function mt(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(W()*t.length)]}function yt(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==dt.bottom||(n=t.top<e.height+i.x);!n||s&&s!==dt.left||(n=t.right>i.x);!n||s&&s!==dt.right||(n=t.left<e.width+i.y);!n||s&&s!==dt.top||(n=t.bottom>i.y);return n}(vt(t,s??0),e,i,n)}function vt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function wt(t,...e){for(const i of e){if(F(i))continue;if(!B(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):B(t)&&!Array.isArray(t)||(t=Object.create(null));const e=Object.keys(i);if(!e.some(t=>{const e=i[t];return B(e)||Array.isArray(e)})){const s=i,n=t;for(const t of e){if(pt(t))continue;const e=s[t];void 0!==e&&(n[t]=e)}continue}for(const s of e){if(pt(s))continue;const e=t,n=i[s];e[s]=Array.isArray(n)?n.map(t=>wt(void 0,t)):wt(e[s],n)}}return t}function Pt(t,e){return A(t)?t.map((t,i)=>e(t,i)):e(t,0)}function bt(t,e,i){return A(t)?mt(t,e,i):t}function xt(t,e){return function(t,e){if(t.mode!==ut.percent){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/c*e.width,y:t.y/c*e.height}:{width:t.width/c*e.width,height:t.height/c*e.height}}(t,e)}let Mt,zt;function kt(t,e,i,s,n){if(s){let s={passive:!0};L(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function Ct(t,e){const i=await Promise.all([...e.entries()].map(([e,i])=>i(t).then(t=>[e,t])));return new Map(i)}async function St(t){const e=bt(t.url,t.index);if(!e)return t.fallback;try{const t=await fetch(e);if(t.ok){const e=await t.json();if(function(t){if(A(t))return t.every(t=>B(t)&&!A(t));return B(t)&&!A(t)}(e))return e;n().error("invalid configuration data while retrieving config file")}else n().error(`${t.status.toString()} while retrieving config file`)}catch(t){n().error(`error while retrieving config file: ${t}`)}return t.fallback}!function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(dt||(dt={})),function(t){t.precise="precise",t.percent="percent"}(ut||(ut={}));class It{#e;constructor(){this.#e=new Map}addEventListener(t,e){this.removeEventListener(t,e);const i=this.#e.get(t);this.#e.set(t,i?[...i,e]:[e])}dispatchEvent(t,e){const i=this.#e.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this.#e.get(t)}removeAllEventListeners(t){t?this.#e.delete(t):this.#e=new Map}removeEventListener(t,e){const i=this.#e.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this.#e.delete(t):this.#e.set(t,[...i.slice(0,n),...i.slice(n+1)]))}}var Ot,_t,Lt,Dt,Et,Rt,Tt,Bt,At,Ft,Ut,$t,Vt,Nt;!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(Ot||(Ot={}));class Wt{colorManagers=new Map;easingFunctions=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;#i=new Set;#s=new Map;#n;#a=new Set;#r=!1;#o=!1;#l=new Set;constructor(t){this.#n=t}get configs(){const t={};for(const[e,i]of this.#s)t[e]=i;return t}get initialized(){return this.#r}addColorManager(t,e){this.#r||this.colorManagers.set(t,e)}addConfig(t){if(this.#r)return;const e=t.key??t.name??"default";this.#s.set(e,t),this.#n.dispatchEvent(Ot.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.#r||this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.#r||this.initializers.effects.set(t,e)}addPalette(t,e){this.#r||this.palettes.set(t,e)}addParticleUpdater(t,e){this.#r||this.initializers.updaters.set(t,e)}addPlugin(t){this.#r||this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){this.#r||!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t,e){if(!this.#r)for(const i of t)this.initializers.shapes.set(i,e)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async init(){if(!this.#r&&!this.#o){this.#o=!0,this.#a=new Set,this.#i=new Set(this.#l);try{for(const t of this.#i)await this.#c(t,this.#a,this.#i)}finally{this.#l.clear(),this.#o=!1,this.#r=!0}}}async register(...t){if(this.#r)throw new Error(ht(nt));for(const e of t)this.#o?await this.#c(e,this.#a,this.#i):this.#l.add(e)}async#c(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this.#n))}}class Ht{pluginManager=new Wt(this);#h=[];#d=new It;#r=!1;get items(){return this.#h}get version(){return"4.5.1"}addEventListener(t,e){this.#d.addEventListener(t,e)}checkVersion(t){if(this.version!==t)throw new Error(ht(it,this.version))}dispatchEvent(t,e){this.#d.dispatchEvent(t,e)}async init(){this.#r||(await this.pluginManager.init(),this.#r=!0)}item(t){const e=this.items,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){let e;await this.init(),"undefined"!=typeof HTMLElement&&t.element instanceof HTMLElement&&(e=t.element);const{Container:i}=await Promise.resolve().then(function(){return as}),s=t.id??e?.id??`tsparticles${Math.floor(1e4*W()).toString()}`,{index:n,url:a}=t,l=bt(a?await St({fallback:t.options,url:a,index:n}):t.options,n),{items:c}=this,h=c.findIndex(t=>t.id.description===s),d=new i({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:s,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(d);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:l});if(h>=0){const t=this.item(h),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),c.splice(h,e,d)}else c.push(d);const u="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:function(t){let e;const i=ft();if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===b)e=t,e.dataset[r]??=P,e.dataset[r]===w&&(e.style.width||=o,e.style.height||=o,e.style.pointerEvents="none",e.style.setProperty("pointer-events","none"));else{const s=t.getElementsByTagName(b).item(0);s?(e=s,e.dataset[r]=P):(e=i.createElement(b),e.dataset[r]=w,t.appendChild(e)),e.style.width||=o,e.style.height||=o,e.style.pointerEvents="none",e.style.setProperty("pointer-events","none")}return e}(function(t,e){const i=ft();let s=e??i.getElementById(t);return s||(s=i.createElement("canvas"),s.id=t,s.dataset[r]=w,i.body.append(s),s)}(s,e));return d.canvas.loadCanvas(u),await d.start(),d}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this.#d.removeEventListener(t,e)}}!function(t){t.circle="circle",t.rectangle="rectangle"}(_t||(_t={}));class jt{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class qt extends jt{radius;constructor(t,e,i){super(t,e,_t.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,Z(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof qt||t.type===_t.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof Gt||t.type===_t.rectangle){const e=t,{width:i,height:r}=e.size;return Math.pow(n-i,2)+Math.pow(a-r,2)<=s**2||n<=s+i&&a<=s+r||n<=i||a<=r}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class Gt extends jt{size;constructor(t,e,i,s){super(t,e,_t.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof qt)return t.intersects(this);if(!(t instanceof Gt))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,r=a.width,o=a.height;return n.x<s.x+e&&n.x+r>s.x&&n.y<s.y+i&&n.y+o>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}function Xt(t,e,i){void 0!==i&&(t[e]=i)}function Yt(t,e,i){void 0!==i&&(t[e]=Q(i))}function Qt(t,e,i,s){if(void 0!==i){const n=t;n[e]??=s(),n[e].load(i)}}function Kt(t,e,i,...s){const n=t;n[e]??=new i;const a=n[e];for(const t of s)a.load(t?.[e])}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(Lt||(Lt={})),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(Dt||(Dt={})),function(t){t.standard="standard",t.natural="natural",t.vivid="vivid",t.cinematic="cinematic",t.dynamic="dynamic"}(Et||(Et={})),function(t){t.delete="delete",t.wait="wait"}(Rt||(Rt={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(Tt||(Tt={})),function(t){t.darken="darken",t.enlighten="enlighten"}(Bt||(Bt={})),function(t){t.none="none",t.max="max",t.min="min"}(At||(At={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(Ft||(Ft={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(Ut||(Ut={})),function(t){t.max="max",t.min="min",t.random="random"}($t||($t={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(Vt||(Vt={})),function(t){t[t.BackgroundElement=0]="BackgroundElement",t[t.BackgroundDraw=1]="BackgroundDraw",t[t.BackgroundMask=2]="BackgroundMask",t[t.CanvasSetup=3]="CanvasSetup",t[t.PluginContent=4]="PluginContent",t[t.Particles=5]="Particles",t[t.CanvasCleanup=6]="CanvasCleanup",t[t.Foreground=7]="Foreground"}(Nt||(Nt={}));class Zt{load(t){F(t)||this.doLoad(t)}}function Jt(t,...e){for(const i of e)t.load(i)}class te extends Zt{count=0;decay=0;delay=0;enable=!1;speed=1;sync=!1;doLoad(t){Yt(this,"count",t.count),Xt(this,"enable",t.enable),Yt(this,"speed",t.speed),Yt(this,"decay",t.decay),Yt(this,"delay",t.delay),Xt(this,"sync",t.sync)}}class ee extends te{mode=Dt.auto;startValue=$t.random;doLoad(t){super.doLoad(t),Xt(this,"mode",t.mode),Xt(this,"startValue",t.startValue)}}class ie extends te{max;min;offset=0;sync=!0;constructor(t,e){super(),this.min=t,this.max=e}doLoad(t){super.doLoad(t),Xt(this,"max",t.max),Xt(this,"min",t.min),Yt(this,"offset",t.offset)}}class se extends Zt{h=new ie(0,M);l=new ie(0,k);s=new ie(0,z);doLoad(t){this.h.load(t.h),this.s.load(t.s),this.l.load(t.l)}}class ne extends Zt{value="";static create(t,e){const i=new ne;return i.load(t),void 0!==e&&(D(e)||A(e)?i.load({value:e}):i.load(e)),i}doLoad(t){F(t.value)||(this.value=t.value)}}class ae extends ne{animation=new se;static create(t,e){const i=new ae;return i.load(t),void 0!==e&&(D(e)||A(e)?i.load({value:e}):i.load(e)),i}doLoad(t){super.doLoad(t);const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class re extends Zt{color;draw;element;image="";opacity=1;position="";repeat="";size="";constructor(){super(),this.color=new ne,this.color.value=""}doLoad(t){void 0!==t.color&&(this.color=ne.create(this.color,t.color)),Xt(this,"element",t.element),Xt(this,"draw",t.draw),Xt(this,"image",t.image),Xt(this,"position",t.position),Xt(this,"repeat",t.repeat),Xt(this,"size",t.size),Xt(this,"opacity",t.opacity)}}class oe extends Zt{enable=!0;zIndex=0;doLoad(t){Xt(this,"enable",t.enable),Xt(this,"zIndex",t.zIndex)}}class le extends Zt{enable=!0;mode=Et.standard;peakNits=400;doLoad(t){if(void 0!==t.enable&&!L(t.enable))throw new Error(ht(ot,String(t.enable)));if(void 0!==t.mode&&!R(Et,t.mode))throw new Error(ht(lt,Object.values(Et).join(", "),(e=t.mode,String(e))));var e;if(void 0!==t.peakNits&&(!E(t.peakNits)||!Number.isFinite(t.peakNits)||t.peakNits<=0))throw new Error(ht(ct,String(t.peakNits)));Xt(this,"enable",t.enable),Xt(this,"mode",t.mode),Xt(this,"peakNits",t.peakNits)}}class ce extends Zt{delay=.5;enable=!0;doLoad(t){Xt(this,"delay",t.delay),Xt(this,"enable",t.enable)}}class he extends Zt{close=!0;options={};type=[];doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=wt(this.options[t]??{},i))}Xt(this,"close",t.close),Xt(this,"type",t.type)}}class de extends Zt{color;enable=!0;opacity=1;doLoad(t){void 0!==t.color&&(this.color=ae.create(this.color,t.color)),Xt(this,"enable",t.enable),Yt(this,"opacity",t.opacity)}}class ue extends Zt{offset=0;value=90;doLoad(t){Yt(this,"offset",t.offset),Yt(this,"value",t.value)}}class pe extends Zt{mode=ut.percent;radius=0;x=50;y=50;doLoad(t){Xt(this,"x",t.x),Xt(this,"y",t.y),Xt(this,"mode",t.mode),Xt(this,"radius",t.radius)}}class fe extends Zt{acceleration=9.81;enable=!1;inverse=!1;maxSpeed=50;doLoad(t){Yt(this,"acceleration",t.acceleration),Xt(this,"enable",t.enable),Xt(this,"inverse",t.inverse),Yt(this,"maxSpeed",t.maxSpeed)}}class ge extends Zt{value=0;doLoad(t){F(t.value)||(this.value=Q(t.value))}}class me extends ge{animation=new te;doLoad(t){var e,i,s;super.doLoad(t),e=this,i="animation",void 0!==(s=t.animation)&&e[i].load(s)}}class ye extends me{animation=new ee}class ve extends Zt{clamp=!0;delay=new ge;enable=!1;generator;options={};doLoad(t){Xt(this,"clamp",t.clamp),this.delay.load(t.delay),Xt(this,"enable",t.enable),this.generator=t.generator,t.options&&(this.options=wt(this.options,t.options))}}class we extends Zt{bottom;default=Tt.out;left;right;top;doLoad(t){void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default}}class Pe extends Zt{acceleration=0;enable=!1;position;doLoad(t){Yt(this,"acceleration",t.acceleration),Xt(this,"enable",t.enable),t.position&&(this.position=wt({},t.position))}}class be extends Zt{angle=new ue;center=new pe;decay=0;direction=a.none;distance={};drift=0;enable=!1;gravity=new fe;outModes=new we;path=new ve;random=!1;size=!1;speed=2;spin=new Pe;straight=!1;vibrate=!1;warp=!1;doLoad(t){this.angle.load(E(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),Yt(this,"decay",t.decay),Xt(this,"direction",t.direction),void 0!==t.distance&&(this.distance=E(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),Yt(this,"drift",t.drift),Xt(this,"enable",t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(B(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),Xt(this,"random",t.random),Xt(this,"size",t.size),Yt(this,"speed",t.speed),this.spin.load(t.spin),Xt(this,"straight",t.straight),Xt(this,"vibrate",t.vibrate),Xt(this,"warp",t.warp)}}class xe extends Zt{color;opacity;width=0;doLoad(t){void 0!==t.color&&(this.color=ae.create(this.color,t.color)),Yt(this,"width",t.width),Yt(this,"opacity",t.opacity)}}class Me extends Zt{color;fill;stroke;doLoad(t){void 0!==t.color&&(this.color=ae.create(this.color,t.color)),Qt(this,"fill",t.fill,()=>new de),Qt(this,"stroke",t.stroke,()=>new xe)}}class ze extends ge{value=1}class ke extends Zt{horizontal=new ze;vertical=new ze;doLoad(t){this.horizontal.load(t.horizontal),this.vertical.load(t.vertical)}}class Ce extends Zt{enable=!1;height=1080;width=1920;doLoad(t){Xt(this,"enable",t.enable),Xt(this,"width",t.width),Xt(this,"height",t.height)}}class Se extends Zt{mode=Rt.delete;value=0;doLoad(t){Xt(this,"mode",t.mode),Xt(this,"value",t.value)}}class Ie extends Zt{density=new Ce;limit=new Se;value=0;doLoad(t){this.density.load(t.density),this.limit.load(t.limit),Xt(this,"value",t.value)}}class Oe extends Zt{close=!0;options={};type="circle";doLoad(t){const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=wt(this.options[t]??{},i))}Xt(this,"close",t.close),Xt(this,"type",t.type)}}class _e extends ge{opacityRate=1;sizeRate=1;velocityRate=1;doLoad(t){super.doLoad(t),Xt(this,"opacityRate",t.opacityRate),Xt(this,"sizeRate",t.sizeRate),Xt(this,"velocityRate",t.velocityRate)}}class Le extends Zt{bounce=new ke;effect=new he;groups={};move=new be;number=new Ie;paint;palette;reduceDuplicates=!1;shape=new Oe;zIndex=new _e;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.paint=new Me,this.paint.color=new ae,this.paint.color.value="#fff",this.paint.fill=new de,this.paint.fill.enable=!0}doLoad(t){if(t.palette&&(this.palette=t.palette,this.#f(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=wt(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number);const e=t.paint;if(e&&(A(e)?this.paint=Pt(e,t=>{const e=new Me;return e.load(t),e}):A(this.paint)?(this.paint=new Me,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.zIndex.load(t.zIndex),this.#u){for(const e of this.#p.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this.#u,this,t);const e=this.#u.particleUpdaters;for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}#f(t){const e=this.#p.getPalette(t);if(!e)return;const i=e.colors,s=(A(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function De(t,e,...i){const s=new Le(t,e);return Jt(s,...i),s}class Ee extends Zt{autoPlay=!0;background;clear=!0;defaultThemes={};delay=0;detectRetina=!0;duration=0;fpsLimit=120;fullScreen;hdr;key;name;palette;particles;pauseOnBlur=!0;pauseOnOutsideViewport=!0;preset;resize;smooth=!1;style={};zLayers=100;#u;#p;constructor(t,e){super(),this.#p=t,this.#u=e,this.background=new re,this.fullScreen=new oe,this.hdr=new le,this.particles=De(this.#p,this.#u),this.resize=new ce}doLoad(t){void 0!==t.preset&&(this.preset=t.preset,Pt(this.preset,t=>{this.#g(t)})),void 0!==t.palette&&(this.palette=t.palette,this.#f(this.palette)),Xt(this,"autoPlay",t.autoPlay),Xt(this,"clear",t.clear),Xt(this,"key",t.key),Xt(this,"name",t.name),Yt(this,"delay",t.delay),Xt(this,"detectRetina",t.detectRetina),Yt(this,"duration",t.duration),Xt(this,"fpsLimit",t.fpsLimit);const e=t.hdr;L(e)?(this.hdr.enable=e,this.hdr.mode=Et.standard,this.hdr.peakNits=400):this.hdr.load(e),Xt(this,"pauseOnBlur",t.pauseOnBlur),Xt(this,"pauseOnOutsideViewport",t.pauseOnOutsideViewport),Xt(this,"zLayers",t.zLayers),this.background.load(t.background);const i=t.fullScreen;L(i)?this.fullScreen.enable=i:this.fullScreen.load(i),this.particles.load(t.particles),this.resize.load(t.resize),this.style=wt(this.style,t.style),Xt(this,"smooth",t.smooth),this.#p.plugins.forEach(e=>{e.loadOptions(this.#u,this,t)})}#f(t){const e=this.#p.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})}#g(t){this.load(this.#p.getPreset(t))}}const Re=new Map,Te=1.15,Be=1.05,Ae=.2126,Fe=.7152,Ue=.0722;function $e(t,e){let i=Re.get(t);return i||(i=e(),Re.size>2e3&&Re.clear(),Re.set(t,i)),i}function Ve(t){return j(t*(2.51*t+.03)/(t*(2.43*t+.59)+.14),0,1)}function Ne(t,e,i,s=!0){if(!e)return;const n=D(e)?{value:e}:e;if(D(n.value))return We(t,n.value,i,s);if(A(n.value)){const e=mt(n.value,i,s);if(!e)return;return Ne(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function We(t,e,i,s=!0){if(!e)return;const n=D(e)?{value:e}:e;if(D(n.value))return n.value===y?function(){const t=0,e=256,i=()=>Math.floor(H(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(A(n.value)){const e=mt(n.value,i,s);if(!e)return;return We(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function He(t,e,i,s=!0){const n=Ne(t,e,i,s);return n?function(t){const e=t.r/x,i=t.g/x,s=t.b/x,n=Math.max(e,i,s),a=Math.min(e,i,s),r={h:0,l:(n+a)*h,s:0};n!==a&&(r.s=r.l<h?(n-a)/(n+a):(n-a)/(2-n-a),r.h=e===n?(i-s)/(n-a):i===n?2+(s-e)/(n-a):4+(e-i)/(n-a));r.l*=k,r.s*=z,r.h*=60,r.h<0&&(r.h+=M);r.h>=M&&(r.h-=M);return r}(n):void 0}function je(t,e,i){if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t}function qe(t){const e=(t.h%M+M)%M,i=Math.max(0,Math.min(z,t.s)),s=Math.max(0,Math.min(k,t.l)),n=e/M,a=i/z,r=s/k;if(0===i){const t=Math.round(r*x);return{r:t,g:t,b:t}}const o=r<h?r*(1+a):r+a-r*a,l=2*r-o,c=1/3,d=Math.min(x,x*je(l,o,n+c)),u=Math.min(x,x*je(l,o,n)),p=Math.min(x,x*je(l,o,n-c));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function Ge(t,e,i,s,n){const a=e?4:2,r=i??1;return $e(e?`rgb-${t.r.toFixed(a)}-${t.g.toFixed(a)}-${t.b.toFixed(a)}-hdr-${r.toString()}-${(s??400).toString()}-${n??Et.standard}`:`rgb-${t.r.toFixed(a)}-${t.g.toFixed(a)}-${t.b.toFixed(a)}-sdr-${r.toString()}`,()=>e?function(t,e,i=400,s=Et.standard){const n=i/203,a=function(t,e,i,s){const n=t.r/x,a=t.g/x,r=t.b/x;if(s!==Et.natural&&s!==Et.vivid&&s!==Et.cinematic&&s!==Et.dynamic)return{b:r,g:a,r:n};const o=Math.max(1,e),l=Ae*n+Fe*a+Ue*r,c=function(t,e,i){if(t<=i)return Ve(t);const s=t+(t-i)*(e-1);return Ve(s)}(l,e,i),h=l>0?c/l:1;return function(t,e,i,s,n){switch(s){case Et.vivid:{const s=(t+e+i)/3;return{b:j(j(s+(i-s)*Te,0,n)*Be,0,n),g:j(j(s+(e-s)*Te,0,n)*Be,0,n),r:j(j(s+(t-s)*Te,0,n)*Be,0,n)}}case Et.cinematic:{const s=1.05*t,a=.95*i,r=(s+e+a)/3;return{b:j(r+1.1*(a-r),0,n),g:j(r+1.1*(e-r),0,n),r:j(r+1.1*(s-r),0,n)}}case Et.dynamic:{const s=Ae*t+Fe*e+Ue*i,a=Math.min(1,2*s),r=1-a,o=(t+e+i)/3,l=j(o+(t-o)*Te,0,n)*Be,c=j(o+(e-o)*Te,0,n)*Be,h=j(o+(i-o)*Te,0,n)*Be;return{b:j(i*r+h*a,0,n),g:j(e*r+c*a,0,n),r:j(t*r+l*a,0,n)}}case Et.standard:case Et.natural:default:return{b:i,g:e,r:t}}}(j(n*h,0,o),j(a*h,0,o),j(r*h,0,o),s,o)}(t,n,.18,s);return`color(display-p3 ${a.r.toString()} ${a.g.toString()} ${a.b.toString()} / ${(e??1).toString()})`}(t,i,s,n):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Xe(t,e,i,s,n){const a=e?4:2,r=i??1;return $e(e?`hsl-${t.h.toFixed(a)}-${t.s.toFixed(a)}-${t.l.toFixed(a)}-hdr-${r.toString()}-${(s??S).toString()}-${n??Et.standard}`:`hsl-${t.h.toFixed(a)}-${t.s.toFixed(a)}-${t.l.toFixed(a)}-sdr-${r.toString()}`,()=>e?Ge(function(t){const e=(t.h%M+M)%M,i=Math.max(0,Math.min(z,t.s)),s=Math.max(0,Math.min(k,t.l)),n=e/M,a=i/z,r=s/k;if(0===i){const t=r*x;return{r:t,g:t,b:t}}const o=r<h?r*(1+a):r+a-r*a,l=2*r-o,c=1/3;return{r:Math.min(x,x*je(l,o,n+c)),g:Math.min(x,x*je(l,o,n)),b:Math.min(x,x*je(l,o,n-c))}}(t),!0,i,s,n):`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${r.toString()})`)}function Ye(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function Qe(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:M},s:{enable:!1,value:t.s,min:0,max:z},l:{enable:!1,value:t.l,min:0,max:k}};return e&&(Ke(s.h,e.h,i),Ke(s.s,e.s,i),Ke(s.l,e.l,i)),s}function Ke(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=G(e.speed)/c*i,t.decay=1-G(e.decay),t.status=Vt.increasing,t.loops=0,t.maxLoops=G(e.count),t.time=0,t.delayTime=G(e.delay)*d,e.sync||(t.velocity*=W(),t.value*=W()),t.initialValue=t.value,t.offset=Q(e.offset)):t.velocity=0}function Ze(t,e,i,s){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const n=t.offset?q(t.offset):0,a=(t.velocity??0)*i.factor+3.6*n,r=t.decay??1,o=t.max,l=t.min;e&&t.status!==Vt.increasing?(t.value-=a,t.value<l&&(t.loops??=0,t.loops++,t.status=Vt.increasing)):(t.value+=a,t.value>o&&(t.loops??=0,t.loops++,e?t.status=Vt.decreasing:t.value-=o)),t.velocity&&1!==r&&(t.velocity*=r),t.value=j(t.value,l,o)}function Je(t,e,i){if(!t)return;const{h:s,s:n,l:a}=t;Ze(s,!1,e),Ze(n,!0,e),Ze(a,!0,e)}const ti=function(){const t=globalThis.tsParticles;return t?.pluginManager?t:new Ht}();class ei{enable=!1;mode="destination-out";load(t){F(t)||(Xt(this,"mode",t.mode),Xt(this,"enable",t.enable))}}class ii{id="blend";async getPlugin(t){const{BlendPluginInstance:e}=await Promise.resolve().then(function(){return rs});return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let s=e.blend;s?.load||(e.blend=s=new ei),s.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new ei,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}}async function si(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new ii)})}class ni{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:v};const n=i.circleRange;e.arc(u.x,u.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=B(s)?{min:J(s.min),max:J(s.max)}:{min:0,max:J(s)}}}async function ai(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new ni))})}var ri;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(ri||(ri={}));const oi=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,li=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class ci{accepts(t){return t.startsWith("#")}handleColor(t){return this.#m(t.value)}handleRangeColor(t){return this.#m(t.value)}parseString(t){return this.#m(t)}#m(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(oi,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=li.exec(e);return i?{a:i[ri.a]?Number.parseInt(i[ri.a],16)/255:1,b:Number.parseInt(i[ri.b]??"0",16),g:Number.parseInt(i[ri.g]??"0",16),r:Number.parseInt(i[ri.r]??"0",16)}:void 0}}async function hi(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new ci)})}var di;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(di||(di={}));const ui=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class pi{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return qe(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return qe({h:G(e.h),l:G(e.l),s:G(e.s)})}parseString(t){if(!this.accepts(t))return;const e=ui.exec(t);return e?function(t){const e=qe(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?et(e[di.a]):1,h:Number.parseInt(e[di.h]??"0",10),l:Number.parseInt(e[di.l]??"0",10),s:Number.parseInt(e[di.s]??"0",10)}):void 0}}async function fi(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new pi)})}class gi{id="move";#p;constructor(t){this.#p=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return cs});return new e(this.#p,t)}loadOptions(){}needsPlugin(){return!0}}async function mi(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initialized||(e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i))},t.pluginManager.addPlugin(new gi(t.pluginManager))})}function yi(t,e){const i=t.value,s=t.animation,n={delayTime:G(s.delay)*d,enable:s.enable,value:G(t.value)*e,max:Y(i)*e,min:X(i)*e,loops:0,maxLoops:G(s.count),time:0};if(s.enable){switch(n.decay=1-G(s.decay),s.mode){case Dt.increase:n.status=Vt.increasing;break;case Dt.decrease:n.status=Vt.decreasing;break;case Dt.random:n.status=W()>=h?Vt.increasing:Vt.decreasing}const t=s.mode===Dt.auto;switch(s.startValue){case $t.min:n.value=n.min,t&&(n.status=Vt.increasing);break;case $t.max:n.value=n.max,t&&(n.status=Vt.decreasing);break;case $t.random:default:n.value=q(n),t&&(n.status=W()>=h?Vt.increasing:Vt.decreasing)}}return n.initialValue=n.value,n}function vi(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,r=e.min,o=e.max,l=e.decay??1;e.time??=0;const c=e.delayTime??0;if(!(c>0&&e.time<c&&(e.time+=n.value,e.time<c))){switch(e.status){case Vt.increasing:e.value+=a;break;case Vt.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case Vt.increasing:e.value>=o&&(e.status=Vt.decreasing,e.loops??=0,e.loops++);break;case Vt.decreasing:e.value<=r&&(e.status=Vt.increasing,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case At.max:i>=n&&t.destroy();break;case At.min:i<=s&&t.destroy()}}(t,s,e.value,r,o),t.destroyed||(e.value=j(e.value,r,o))}}class wi extends ee{destroy=At.none;load(t){super.load(t),F(t)||Xt(this,"destroy",t.destroy)}}class Pi extends ye{animation=new wi;value=1;load(t){if(F(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class bi{#u;constructor(t){this.#u=t}init(t){const e=t.options.opacity;if(!e)return;t.opacity=yi(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=G(i.speed)/c*this.#u.retina.reduceFactor,i.sync||(t.opacity.velocity*=W()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}loadOptions(t,...e){Kt(t,"opacity",Pi,...e)}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&t.options.opacity&&vi(t,t.opacity,0,t.options.opacity.animation.destroy,e)}}async function xi(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new bi(t)))})}const Mi={[dt.left]:{axis:"x",canvas:"width",bounce:"horizontal",negativeEdge:"right",positiveEdge:"left",negative:!0},[dt.right]:{axis:"x",canvas:"width",bounce:"horizontal",negativeEdge:"right",positiveEdge:"left",negative:!1},[dt.top]:{axis:"y",canvas:"height",bounce:"vertical",negativeEdge:"bottom",positiveEdge:"top",negative:!0},[dt.bottom]:{axis:"y",canvas:"height",bounce:"vertical",negativeEdge:"bottom",positiveEdge:"top",negative:!1}};class zi{modes;#u;#y;constructor(t){this.#u=t,this.modes=[Tt.bounce,Tt.split],this.#y=t.plugins.filter(t=>!!t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;for(const s of this.#y)if(s.particleBounce?.(t,i,e))return;const n=t.getPosition(),a=t.offset,r=t.getRadius(),o=vt(n,r),l=this.#u.canvas.size,c=!t.isInsideCanvasForOutMode(s,e);!function(t){if(t.outMode!==Tt.bounce&&t.outMode!==Tt.split||!(t.direction in Mi))return;const e=Mi[t.direction],i=t.bounds,s=t.canvasSize[e.canvas],n=t.particle.position,a=t.particle.velocity[e.axis];if(e.negative&&i[e.negativeEdge]<0?n[e.axis]=t.size+t.offset[e.axis]:!e.negative&&i[e.positiveEdge]>s&&(n[e.axis]=s-t.size-t.offset[e.axis]),!t.outOfCanvas||!(e.negative&&a<0||!e.negative&&a>0))return;t.particle.velocity[e.axis]*=-G(t.particle.options.bounce[e.bounce].value);const r=t.offset[e.axis]+t.size;n[e.axis]=e.negative?r:s-r,t.outMode===Tt.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:o,canvasSize:l,offset:a,outOfCanvas:c,size:r})}}class ki{modes;constructor(t){this.modes=[Tt.destroy]}update(t,e,i,s){if(this.modes.includes(s)){switch(t.outType){case Ut.normal:case Ut.outside:if(t.isInsideCanvasForOutMode(s,e))return;break;case Ut.inside:{const{dx:e,dy:i}=K(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}}class Ci{modes;#u;constructor(t){this.#u=t,this.modes=[Tt.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===dt.left||e===dt.right))??(t.options.move.distance.vertical&&(e===dt.top||e===dt.bottom)))return;const n=t.options.move.gravity,a=this.#u,r=a.canvas.size,o=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>r.height+o&&e===dt.bottom||n.inverse&&i.y<-o&&e===dt.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=r.height+o||t.velocity.y<0&&t.position.y>=-o||t.velocity.x>0&&t.position.x<=r.width+o||t.velocity.x<0&&t.position.x>=-o)return;yt(t.position,a.canvas.size,u,o,e)||t.destroy()}}}const Si=_.origin;class Ii{modes;#u;constructor(t){this.#u=t,this.modes=[Tt.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.#u;if(t.outType===Ut.inside)this.#v(t,n);else{if(t.isInsideCanvasForOutMode(s,e))return;t.outType===Ut.outside?this.#w(t):this.#P(t,n,e)}}#v(t,e){const{x:i,y:s}=t.velocity;Si.setTo(u),Si.length=t.moveCenter.radius,Si.angle=t.velocity.angle+Math.PI,Si.addTo(t.moveCenter);const{dx:n,dy:a}=K(t.position,Si);if(i<=0&&n>=0||s<=0&&a>=0||i>=0&&n<=0||s>=0&&a<=0)return;t.position.x=Math.floor(q({min:0,max:e.canvas.size.width})),t.position.y=Math.floor(q({min:0,max:e.canvas.size.height}));const{dx:r,dy:o}=K(t.position,t.moveCenter);t.direction=Math.atan2(-o,-r),t.velocity.angle=t.direction,t.justWarped=!0}#P(t,e,i){const s=t.options.move.warp,n=e.canvas.size,a=t.getRadius(),r={bottom:n.height+a+t.offset.y,left:-a-t.offset.x,right:n.width+a+t.offset.x,top:-a-t.offset.y},o=vt(t.position,a);i===dt.right&&o.left>n.width+t.offset.x?(t.position.x=r.left,t.initialPosition.x=t.position.x,s||(t.position.y=W()*n.height,t.initialPosition.y=t.position.y),t.justWarped=!0):i===dt.left&&o.right<-t.offset.x&&(t.position.x=r.right,t.initialPosition.x=t.position.x,s||(t.position.y=W()*n.height,t.initialPosition.y=t.position.y),t.justWarped=!0),i===dt.bottom&&o.top>n.height+t.offset.y?(s||(t.position.x=W()*n.width,t.initialPosition.x=t.position.x),t.position.y=r.top,t.initialPosition.y=t.position.y,t.justWarped=!0):i===dt.top&&o.bottom<-t.offset.y&&(s||(t.position.x=W()*n.width,t.initialPosition.x=t.position.x),t.position.y=r.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0)}#w(t){t.position.x=Math.floor(q({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(q({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=K(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0}}class Oi{updaters;#u;constructor(t){this.#u=t,this.updaters=new Map}init(t){this.#b(t,Tt.bounce,t=>new zi(t)),this.#b(t,Tt.out,t=>new Ii(t)),this.#b(t,Tt.destroy,t=>new ki(t)),this.#b(t,Tt.none,t=>new Ci(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this.#x(t,e,i.bottom??i.default,dt.bottom),this.#x(t,e,i.left??i.default,dt.left),this.#x(t,e,i.right??i.default,dt.right),this.#x(t,e,i.top??i.default,dt.top)}#b(t,e,i){const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.#u))}#x(t,e,i,s){for(const n of this.updaters.values())n.update(t,s,e,i)}}async function _i(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new Oi(t)))})}class Li{#u;#p;constructor(t,e){this.#u=e,this.#p=t}init(t){const e=this.#u,i=t.options,s=bt(i.paint,t.id,i.reduceDuplicates);this.#M(s,t,e),this.#z(s,t,e)}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),r=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||r)}update(t,e){this.isEnabled(t)&&(Je(t.fillColor,e,this.#u.hdr),Je(t.strokeColor,e,this.#u.hdr))}#M(t,e,i){const s=t?.fill,n=t?.color,a=n??void 0;if(!s)return e.fillEnabled=!1,e.fillAnimation=void 0,e.fillColor=void 0,void(e.fillOpacity=1);const r=ae.create(void 0===a?void 0:ae.create(void 0,a),s.color);e.fillEnabled=s.enable,e.fillOpacity=G(s.opacity),e.fillAnimation=r.animation;const o=He(this.#p,r);o&&(e.fillColor=Qe(o,e.fillAnimation,i.retina.reduceFactor))}#z(t,e,i){const s=t?.stroke,n=t?.color,a=n??void 0;if(!s)return e.strokeAnimation=void 0,e.strokeColor=void 0,e.strokeOpacity=1,void(e.strokeWidth=0);const r=ae.create(void 0===a?void 0:ae.create(void 0,a),s.color);e.strokeWidth=G(s.width)*i.retina.pixelRatio,e.strokeOpacity=G(s.opacity??1),e.strokeAnimation=r.animation;const o=He(this.#p,r)??e.getFillColor();o&&(e.strokeColor=Qe(o,e.strokeAnimation,i.retina.reduceFactor))}}async function Di(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new Li(t.pluginManager,e)))})}var Ei;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(Ei||(Ei={}));const Ri=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class Ti{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:G(e.r),g:G(e.g),b:G(e.b)}}parseString(t){if(!this.accepts(t))return;const e=Ri.exec(t);return e?{a:e.length>4?et(e[Ei.a]):1,b:parseInt(e[Ei.b]??"0",10),g:parseInt(e[Ei.g]??"0",10),r:parseInt(e[Ei.r]??"0",10)}:void 0}}async function Bi(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new Ti)})}class Ai extends ee{destroy=At.none;load(t){super.load(t),F(t)||Xt(this,"destroy",t.destroy)}}class Fi extends ye{animation=new Ai;value=3;load(t){if(super.load(t),F(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ui{#u;constructor(t){this.#u=t}init(t){const e=this.#u,i=t.options.size;if(!i)return;const s=i.animation;s.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/c*e.retina.reduceFactor,s.sync||(t.size.velocity*=W()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}loadOptions(t,...e){Kt(t,"size",Fi,...e)}preInit(t){const e=this.#u.retina.pixelRatio,i=t.options.size;i&&(t.size=yi(i,e),t.retina.sizeAnimationSpeed=G(i.animation.speed)*e)}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&t.options.size&&vi(t,t.size,0,t.options.size.animation.destroy,e)}}async function $i(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new Ui(t)))})}const Vi={fpsLimit:120,background:{color:"#191d1e",image:"linear-gradient(0deg, #191d1e 50%,#283139 100%)"},particles:{number:{value:200,density:{enable:!0}},shape:{type:"circle",options:{circle:[{particles:{paint:{fill:{enable:!1},stroke:{width:1,color:{value:"#0cdbf3"}}},opacity:{value:{min:0,max:.8},animation:{enable:!0,speed:.1}},size:{value:{min:3,max:5}}}},{particles:{paint:{fill:{color:{value:"#6fd2f3"},enable:!0}},opacity:{value:{min:0,max:.6},animation:{enable:!0,speed:.1}},size:{value:{min:5,max:7}}}},{particles:{paint:{fill:{color:{value:"#93e9f3"},enable:!0}},opacity:{value:{min:0,max:.4},animation:{enable:!0,speed:.1}},size:{value:{min:10,max:20}}}}]}},move:{enable:!0,speed:{min:.1,max:.5},direction:a.none,outModes:Tt.bounce}},detectRetina:!0};async function Ni(t){await t.pluginManager.register(async t=>{await async function(t){t.checkVersion("4.5.1"),await t.pluginManager.register(async t=>{await Promise.all([si(t),hi(t),fi(t),Bi(t),mi(t),ai(t),Di(t),xi(t),_i(t),$i(t)])})}(t),t.pluginManager.addPreset("ambient",Vi)})}const Wi=globalThis;Wi.loadAmbientPreset=Ni,Wi.tsParticles=ti;function Hi(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class ji{#k;#C;#S;#I;#O;#u;#_;#L;#D;#E;#R;#T;#p;#B;#A;#F={};#U=[void 0,void 0];#$={};constructor(t,e,i){this.#p=t,this.#u=e,this.#I=i,this.#_=null,this.#k=null,this.#C=new Set,this.#A=[],this.#B=[],this.#S=[],this.#O=[],this.#D=[],this.#E=[],this.#R=[],this.#T={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[]}}get settings(){return this.#L}canvasClear(){this.#u.actualOptions.clear&&this.draw(t=>{t.clearRect(u.x,u.y,this.#I.size.width,this.#I.size.height)})}clear(){const t=new Set;for(const e of this.#S)if(t.add(e),e.canvasClear?.())return e;for(const e of Object.values(Nt))if("number"==typeof e)for(const i of this.#V(e))if(!t.has(i)&&(t.add(i),i.canvasClear?.()))return i;this.canvasClear()}destroy(){this.stop(),this.#k=null,this.#C.clear(),this.#A=[],this.#B=[],this.#S=[],this.#O=[],this.#D=[],this.#E=[],this.#R=[];for(const t of Object.values(Nt))"number"==typeof t&&(this.#T[t]=[])}draw(t){const e=this.#_;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,r]=this.#N(t);if(a??=s,r??=n,!a&&!r)return;const o=this.#u,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this.#$,f=this.#F,g=a?Xe(a,o.hdr,h*d,o.peakNits,o.hdrMode):void 0,m=r?Xe(r,o.hdr,u*d,o.peakNits,o.hdrMode):g;p.a=p.b=p.c=p.d=void 0,f.fill=g,f.stroke=m,this.draw(s=>{for(const i of this.#R)i.drawParticleSetup?.(s,t,e);this.#W(s,t,i,d,f,p),this.#H({container:o,context:s,particle:t,delta:e,colorStyles:f,radius:i*c**l.sizeRate,opacity:d,transform:p}),this.#j(t);for(const i of this.#E)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this.#D)this.#q(i,s,t,e)})}drawParticles(t){const{particles:e,actualOptions:i}=this.#u,s=this.clear();e.update(t),this.draw(n=>{const a=this.#I.size.width,r=this.#I.size.height;if(this.#k)try{n.drawImage(this.#k,u.x,u.y,a,r)}catch{this.#G("background-element-draw-error","Error drawing background element onto canvas")}const o=i.background;if(o.draw)try{o.draw(n,t)}catch{this.#G("background-draw-error","Error in background.draw callback")}for(const t of this.#V(Nt.BackgroundMask))t!==s&&t.canvasPaint?.();for(const e of this.#V(Nt.CanvasSetup))e.drawSettingsSetup?.(n,t);for(const e of this.#V(Nt.PluginContent))e.draw?.(n,t);e.drawParticles(t);for(const e of this.#V(Nt.CanvasCleanup))e.clearDraw?.(n,t),e.drawSettingsCleanup?.(n,t)})}init(){this.initUpdaters(),this.initPlugins(),this.#X(),this.paint()}initPlugins(){this.#S=[],this.#O=[],this.#D=[],this.#R=[],this.#E=[];for(const t of Object.values(Nt))"number"==typeof t&&(this.#T[t]=[]);this.#Y()}initUpdaters(){this.#A=[],this.#B=[];for(const t of this.#u.particleUpdaters)t.afterDraw&&this.#B.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this.#A.push(t)}paint(){let t=!1;for(const e of this.#V(Nt.BackgroundMask))if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(u.x,u.y,this.#I.size.width,this.#I.size.height)})}paintImage(t,e){this.draw(i=>{if(!t)return;const s=i.globalAlpha;i.globalAlpha=e,i.drawImage(t,u.x,u.y,this.#I.size.width,this.#I.size.height),i.globalAlpha=s})}setContext(t){this.#_=t,this.#_&&(this.#_.globalCompositeOperation=l)}setContextSettings(t){this.#L=t}stop(){this.draw(t=>{t.clearRect(u.x,u.y,this.#I.size.width,this.#I.size.height)})}#j(t){for(const e of this.#B)e.afterDraw?.(t)}#W(t,e,i,s,n,a){for(const r of this.#A){if(r.getColorStyles){const{fill:a,stroke:o}=r.getColorStyles(e,t,i,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){const t=r.getTransformValues(e);for(const e in t)Hi(a,t,e)}r.beforeDraw?.(e)}}#Q(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}#K(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}#H(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:r,opacity:o,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const f=!!s.fillEnabled,g=s.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke);const m={context:i,particle:s,radius:r,drawRadius:1*r,opacity:o,delta:n,pixelRatio:e.retina.pixelRatio,fill:f,stroke:g>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(m);const y=s.effect?c.get(s.effect):void 0,v=s.shape?h.get(s.shape):void 0;this.#K(y,m),this.#Z(v,m),this.#J(v,m),this.#tt(v,m),this.#Q(y,m),i.resetTransform()}#q(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}#J(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}#tt(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}#Z(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}#V(t){return this.#T[t]}#N(t){let e,i;for(const s of this.#O)if(!e&&s.particleFillColor&&(e=He(this.#p,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=He(this.#p,s.particleStrokeColor(t))),e&&i)break;return this.#U[0]=e,this.#U[1]=i,this.#U}#et(t){const e=[[Nt.BackgroundMask,!!t.canvasPaint],[Nt.CanvasSetup,!!t.drawSettingsSetup],[Nt.PluginContent,!!t.draw],[Nt.CanvasCleanup,!!(t.clearDraw??t.drawSettingsCleanup)]];for(const[i,s]of e)s&&this.#T[i].push(t)}#Y(){for(const t of this.#u.plugins)(t.particleFillColor??t.particleStrokeColor)&&this.#O.push(t),t.drawParticle&&this.#D.push(t),t.drawParticleSetup&&this.#R.push(t),t.drawParticleCleanup&&this.#E.push(t),t.canvasClear&&this.#S.push(t),this.#et(t)}#it(t){return"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas||"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement||"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement}#X(){const t=this.#u.actualOptions.background;if(this.#k=null,t.element)if("string"==typeof t.element){if("undefined"!=typeof document){const e=document.querySelector(t.element);e&&this.#it(e)?this.#k=e:e?this.#G("background-element-not-supported",`Background element "${t.element}" is not a supported drawable element (canvas, video, or img)`):this.#G("background-element-not-found",`Background element selector "${t.element}" not found`)}}else this.#it(t.element)&&(this.#k=t.element)}#G(t,e){this.#C.has(t)||(this.#C.add(t),n().warning(e))}}const qi=new WeakMap;function Gi(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Xi{domElement;render;renderCanvas;size;zoom=1;#u;#st;#nt;#at;#rt;#p;#ot;#lt;#ct;#ht;constructor(t,e){this.#p=t,this.#u=e,this.render=new ji(t,e,this),this.#ct={height:0,width:0};const i=e.retina.pixelRatio,s=this.#ct;this.size={height:s.height*i,width:s.width*i},this.#st=!1,this.#lt=[],this.#ot="none"}get#dt(){return this.#u.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#st){const t=this.domElement;t?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#ut();this.render.destroy(),this.#lt=[]}getZoomCenter(){const t=this.#u.retina.pixelRatio,{width:e,height:i}=this.size;return this.#ht?this.#ht:{x:e*h/t,y:i*h/t}}init(){this.#pt(t=>{t.disconnect()}),this.#at=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this.#ft()}),this.resize(),this.#gt(),this.#pt(t=>{const e=this.domElement;e&&e instanceof Node&&t.observe(e,{attributes:!0})}),this.initPlugins(),this.#mt(),this.initBackground(),this.#yt(),this.render.init()}initBackground(){const t=this.#u,e=t.actualOptions.background,i=this.domElement;if(!i)return;const s=i.style,n=Ne(this.#p,e.color);if(n){const i=t.actualOptions.hdr;s.backgroundColor=Ge(n,t.hdr,e.opacity,i.peakNits,T(Et,i.mode,Et.standard))}else s.backgroundColor="";s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this.#lt=[];for(const t of this.#u.plugins)t.resize&&this.#lt.push(t)}loadCanvas(t){this.#st&&this.domElement&&this.domElement.remove();const e=(t=>"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)(t)?t:void 0;this.domElement=e,this.#st=!!e&&"true"===e.dataset[r],this.renderCanvas=e?(t=>{const e=qi.get(t);if(e)return e;if("function"!=typeof t.transferControlToOffscreen)throw new TypeError(ht(at));try{const e=t.transferControlToOffscreen();return qi.set(t,e),e}catch{throw new TypeError(ht(rt))}})(e):t;const i=this.domElement;i&&(i.ariaHidden="true",this.#rt=function(t){const e=ft().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||F(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(i.style));const s=this.#ct,n=this.renderCanvas;i?(s.height=i.offsetHeight,s.width=i.offsetWidth):(s.height=n.height,s.width=n.width);const a=this.#u.retina.pixelRatio,o=this.size;n.height=o.height=s.height*a,n.width=o.width=s.width*a}resize(){const t=this.domElement;if(!t)return!1;const e=this.#u,i=this.renderCanvas;if(void 0===i)return!1;const s=e.canvas.#ct,n={width:t.offsetWidth,height:t.offsetHeight},a=e.retina.pixelRatio,r={width:n.width*a,height:n.height*a};if(n.height===s.height&&n.width===s.width&&r.height===i.height&&r.width===i.width)return!1;const o={...s};s.height=n.height,s.width=n.width;const l=this.size;return i.width=l.width=r.width,i.height=l.height=r.height,this.#u.started&&e.particles.setResizeFactor({width:s.width/o.width,height:s.height/o.height}),!0}setPointerEvents(t){this.domElement&&(this.#ot=t,this.#ft())}setZoom(t,e){this.zoom=t,this.#ht=e}stop(){this.#pt(t=>{t.disconnect()}),this.#at=void 0,this.#vt(),this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const t=this.#u,e=t.updateActualOptions();t.particles.setDensity(),this.#wt(),e&&await t.refresh()}#wt(){for(const t of this.#lt)t.resize?.()}#mt(){const t=this.#u,e=t.actualOptions.hdr.enable&&gt("(color-gamut: p3)")?.matches&&gt("(dynamic-range: high)")?.matches;t.hdrMode=T(Et,t.actualOptions.hdr.mode,Et.standard),t.peakNits=t.actualOptions.hdr.peakNits;const i=this.renderCanvas;if(!i)return void(t.hdr=e??!1);let s;this.render.setContextSettings({alpha:!0,desynchronized:!0,willReadFrequently:!1,...e?{colorSpace:"display-p3",colorType:"float16"}:{colorSpace:"srgb"}});try{s=i.getContext("2d",this.render.settings)}catch{s=null}if(e&&!s){const t={alpha:!0,desynchronized:!0,willReadFrequently:!1,colorSpace:"srgb"};this.render.setContextSettings(t);try{s=i.getContext("2d",t)}catch{s=null}}if(this.render.setContext(s),s){const e=(t=>{if(!t)return;const e=t;return e.getContextAttributes?.().colorSpace??void 0})(s);void 0!==e&&(t.hdr="display-p3"===e)}}#yt(){this.#vt();const t=gt("(color-gamut: p3)"),e=gt("(dynamic-range: high)"),i=()=>{this.#mt(),this.initBackground()},s=[];t&&(t.addEventListener("change",i),s.push({handler:i,mql:t})),e&&(e.addEventListener("change",i),s.push({handler:i,mql:e})),this.#nt=s}#gt(){const t=this.domElement,e=this.#u.actualOptions;if(t){this.#dt?this.#Pt():this.#ut();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}}#vt(){if(this.#nt){for(const{handler:t,mql:e}of this.#nt)e.removeEventListener("change",t);this.#nt=void 0}}#ft(){const t=this.domElement;if(!t)return;this.#pt(t=>{t.disconnect()}),this.#gt(),this.initBackground();const e=this.#ot;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this.#pt(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})}#ut(){const t=this.domElement,e=this.#rt;t&&e&&Gi(t,e,!0)}#pt(t){this.#at&&t(this.#at)}#Pt(){const t=this.domElement;t&&Gi(t,function(t){if(Mt!==t||!zt){Mt=t;const e=ft().createElement("div").style,i=10,s={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(i),"z-index":t.toString(i),top:"0",left:"0","pointer-events":"none"};for(const t in s){const i=s[t];void 0!==i&&e.setProperty(t,i)}zt=e}return zt}(this.#u.actualOptions.fullScreen.zIndex),!0)}}class Yi{#u;#bt;#xt;#Mt;constructor(t){this.#u=t,this.#bt={visibilityChange:()=>{this.#zt()},resize:()=>{this.#kt()}}}addListeners(){this.#Ct(!0)}removeListeners(){void 0!==this.#Mt&&(clearTimeout(this.#Mt),this.#Mt=void 0),this.#Ct(!1)}#zt(){const t=this.#u;t.actualOptions.pauseOnBlur&&(ft().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))}#kt(){this.#Mt&&(clearTimeout(this.#Mt),this.#Mt=void 0);const t=async()=>{await this.#u.canvas.windowResize()};this.#Mt=setTimeout(()=>{t()},this.#u.actualOptions.resize.delay*d)}#Ct(t){const e=this.#bt;this.#St(t),kt(document,"visibilitychange",e.visibilityChange,t,!1)}#St(t){const e=this.#bt,i=this.#u;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void kt(globalThis,"resize",e.resize,t);const s=i.canvas.domElement;this.#xt&&!t?(s&&this.#xt.unobserve(s),this.#xt.disconnect(),this.#xt=void 0):!this.#xt&&t&&s&&(this.#xt=new ResizeObserver(t=>{t.some(t=>t.target===s)&&this.#kt()}),this.#xt.observe(s))}}function Qi(t){if(e=t.outMode,i=t.checkModes,!(e===i||A(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}function Ki(t,e){const i=t%e;return i<0?i+e:i}function Zi(t,e,i,s){const n=De(i,e,e.actualOptions.particles),a=n.reduceDuplicates;t.effect=bt(n.effect.type,t.id,a),t.shape=bt(n.shape.type,t.id,a);const r=n.effect,o=n.shape;if(s){if(s.effect){const e=s.effect.type;if(e&&e!==t.effect){const i=bt(e,t.id,a);i&&(t.effect=i)}r.load(s.effect)}if(s.shape){const e=s.shape.type;if(e&&e!==t.shape){const i=bt(e,t.id,a);i&&(t.shape=i)}o.load(s.shape)}}if(t.effect===y){const i=[...e.effectDrawers.keys()];t.effect=i[Math.floor(W()*i.length)]}if(t.shape===y){const i=[...e.shapeDrawers.keys()];t.shape=i[Math.floor(W()*i.length)]}t.effectData=t.effect?function(t,e,i,s){const n=e.options[t];return wt({close:e.close},bt(n,i,s))}(t.effect,r,t.id,a):void 0,t.shapeData=t.shape?function(t,e,i,s){const n=e.options[t];return wt({close:e.close},bt(n,i,s))}(t.shape,o,t.id,a):void 0,n.load(s);const l=t.effectData,c=t.shapeData;return l&&n.load(l.particles),c&&n.load(c.particles),t.effectClose=l?.close??n.effect.close,t.shapeClose=c?.close??n.shape.close,n}class Ji{backColor;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#It={fillOpacity:1,opacity:1,strokeOpacity:1};#Ot=O.origin;#_t={sin:0,cos:0};#Lt={a:1,b:0,c:0,d:1};#u;#Dt=[];#p;constructor(t,e){this.#p=t,this.#u=e}addModifier(t){this.#Dt.push(t),this.#Dt.sort((t,e)=>t.priority-e.priority)}clearModifiers(){this.#Dt.length=0}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.clearModifiers();const e=this.#u,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this.#u.dispatchEvent(Ot.particleDestroyed,{particle:this})}draw(t){const e=this.#u.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this.#Et(this.#Rt(Ye(this.fillColor),t=>t.fillColor))}getMass(){return this.getRadius()**2*Math.PI*h}getModifier(t){return this.#Dt.find(e=>e.id===t)}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=G(this.opacity?.value??1),s=this.#Rt(void 0,t=>t.opacity)??i;return this.#It.fillOpacity=this.fillOpacity??1,this.#It.opacity=s*e,this.#It.strokeOpacity=this.strokeOpacity??1,this.#It}getPosition(){return this.#Ot.x=this.position.x+this.offset.x,this.#Ot.y=this.position.y+this.offset.y,this.#Ot.z=this.position.z,this.#Ot}getRadius(){return this.#Rt(this.size.value,t=>t.radius)}getRotateData(){const t=this.getAngle();return this.#_t.sin=Math.sin(t),this.#_t.cos=Math.cos(t),this.#_t}getStrokeColor(){return this.#Et(this.#Rt(Ye(this.strokeColor),t=>t.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this.#Lt.a=e.cos*(t.a??p),this.#Lt.b=i?e.sin*(t.b??1):t.b??f,this.#Lt.c=i?-e.sin*(t.c??1):t.c??g,this.#Lt.d=e.cos*(t.d??m),this.#Lt}init(t,e,i,s){const n=this.#u;!function(t,e,i){t.id=e,t.group=i,t.justWarped=!1,t.effectClose=!0,t.shapeClose=!0,t.pathRotation=!1,t.lastPathTime=0,t.destroyed=!1,t.unbreakable=!1,t.isRotating=!1,t.rotation=0,t.misplaced=!1,t.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},t.size={value:1,max:1,min:1,enable:!1},t.outType=Ut.normal,t.ignoresResizeRatio=!0}(this,t,s),this.options=Zi(this,n,this.#p,i),n.retina.initParticle(this),function(t,e){for(const i of t)i.preInit?.(e)}(n.particleUpdaters,this),this.#Tt(e),this.initialVelocity=this.#Bt(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,function(t,e){let i,s;t.effect&&(i=e.effectDrawers.get(t.effect)),i?.loadEffect&&i.loadEffect(t),t.shape&&(s=e.shapeDrawers.get(t.shape)),s?.loadShape&&s.loadShape(t);const n=s?.getSidesCount;n&&(t.sides=n(t))}(this,n),this.spawning=!1,function(t,e){for(const i of t)i.init(e)}(n.particleUpdaters,this),function(t,e){const i=e.shape?t.shapeDrawers.get(e.shape):void 0,s=e.effect?t.effectDrawers.get(e.effect):void 0;s?.particleInit?.(t,e),i?.particleInit?.(t,e)}(n,this),function(t,e){for(const i of t.particleCreatedPlugins)i.particleCreated?.(e)}(n,this)}isInsideCanvas(t){return this.#At({direction:t}).inside}isInsideCanvasForOutMode(t,e){return this.#At({direction:e,outMode:t}).inside}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=Ki(t,v);return e>=Math.PI*h&&e<3*Math.PI*h}if(this.roll.horizontal){const e=Ki(t+Math.PI*h,v);return e>=Math.PI&&e<2*Math.PI}if(this.roll.vertical){const e=Ki(t,v);return e>=Math.PI&&e<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}removeModifier(t){const e=this.#Dt.findIndex(e=>e.id===t);e>=0&&this.#Dt.splice(e,1)}reset(){for(const t of this.#u.particleUpdaters)t.reset?.(this)}#Rt(t,e){let i=t;for(const t of this.#Dt)if(t.enabled){const s=e(t);void 0!==s&&(i=s)}return i}#Ft(t,e){let i=0,s=t?O.create(t.x,t.y,e):void 0;const n=this.#u,a=n.particlePositionPlugins,r=this.options.move.outModes,o=this.getRadius(),l=n.canvas.size;for(;;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return O.create(i.x,i.y,e)}const t=tt({size:l,position:s}),c=O.create(t.x,t.y,e);this.#Ut(c,o,r.left??r.default),this.#Ut(c,o,r.right??r.default),this.#$t(c,o,r.top??r.default),this.#$t(c,o,r.bottom??r.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}}#Bt(){const t=this.options.move,e=function(t){const e=_.origin;return e.length=1,e.angle=t,e}(this.direction).copy();if(t.direction===a.inside||t.direction===a.outside)return e;const i=J(G(t.angle.value)),s=J(G(t.angle.offset)),n={left:s-i*h,right:s+i*h};return t.straight||(e.angle+=q(Q(n.left,n.right))),t.random&&"number"==typeof t.speed&&(e.length*=W()),e}#Ut(t,e,i){Qi({outMode:i,checkModes:[Tt.bounce],coord:t.x,maxCoord:this.#u.canvas.size.width,setCb:e=>t.x+=e,radius:e})}#$t(t,e,i){Qi({outMode:i,checkModes:[Tt.bounce],coord:t.y,maxCoord:this.#u.canvas.size.height,setCb:e=>t.y+=e,radius:e})}#Vt(t,e){const i=this.getRadius(),s=this.#u.canvas.size,n=this.position,a=e===Tt.bounce;return t===dt.bottom?{inside:a?n.y+i<s.height:n.y-i<s.height,reason:"default"}:t===dt.left?{inside:a?n.x-i>0:n.x+i>0,reason:"default"}:t===dt.right?{inside:a?n.x+i<s.width:n.x-i<s.width,reason:"default"}:t===dt.top?{inside:a?n.y-i>0:n.y+i>0,reason:"default"}:{inside:n.x>=-i&&n.y>=-i&&n.y<=s.height+i&&n.x<=s.width+i,reason:"default"}}#Nt(t,e){return{canvasSize:this.#u.canvas.size,direction:t,outMode:e,particle:this,radius:this.getRadius()}}#At(t){const e=this.#Vt(t.direction,t.outMode),i=this.#u,s=this.shape?i.shapeDrawers.get(this.shape):void 0,n=this.effect?i.effectDrawers.get(this.effect):void 0,a=s?.isInsideCanvas,r=n?.isInsideCanvas;if(!a&&!r)return e;const o=this.#Nt(t.direction,t.outMode),l=a?this.#Wt(a(o),"shape"):void 0,c=r?this.#Wt(r(o),"effect"):void 0;if(l&&c){const t=Math.max(l.margin??0,c.margin??0);return{inside:l.inside&&c.inside,margin:t>0?t:void 0,reason:"combined"}}return l??c??e}#Et(t){return t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===Bt.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t}#Tt(t){const e=this.#u,i=Math.floor(G(this.options.zIndex.value)),s=this.#Ft(t,j(i,0,e.zLayers));if(!s)throw new Error(ht(st));this.position=s,this.initialPosition=this.position.copy();const n=e.canvas.size;switch(this.moveCenter={...xt(this.options.move.center,n),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(E(t))return J(t);switch(t){case a.top:return-Math.PI*h;case a.topRight:return-Math.PI*C;case a.right:return 0;case a.bottomRight:return Math.PI*C;case a.bottom:return Math.PI*h;case a.bottomLeft:return.75*Math.PI;case a.left:return Math.PI;case a.topLeft:return.75*-Math.PI;case a.inside:return Math.atan2(i.y-e.y,i.x-e.x);case a.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return W()*v}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case a.inside:this.outType=Ut.inside;break;case a.outside:this.outType=Ut.outside}this.offset=_.origin}#Wt(t,e){return"boolean"==typeof t?{inside:t,reason:e}:{inside:t.inside,margin:t.margin,reason:t.reason??e}}}class ts{#Ht;#jt=new Map;#qt=[];#Gt;#Xt;#Yt=[];#Qt;constructor(t){this.#Ht=t,this.#Gt=0,this.#Qt=0}get cellSize(){return this.#Ht}set cellSize(t){this.#Xt=t}clear(){this.#jt.clear();const t=this.#Xt;t&&(this.#Ht=t),this.#Xt=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this.#Kt(e,i);this.#jt.has(s)||this.#jt.set(s,[]),this.#jt.get(s)?.push(t)}query(t,e,i=[]){const s=this.#Zt(t);if(!s)return i;const n=Math.floor(s.minX/this.#Ht),a=Math.floor(s.maxX/this.#Ht),r=Math.floor(s.minY/this.#Ht),o=Math.floor(s.maxY/this.#Ht);for(let s=n;s<=a;s++)for(let n=r;n<=o;n++)this.#Jt(s,n,t,e,i);return i}queryCircle(t,e,i,s=[]){const n=this.#te(t.x,t.y,e);try{return this.query(n,i,s)}finally{this.#Gt--}}queryRectangle(t,e,i,s=[]){const n=this.#ee(t.x,t.y,e.width,e.height);try{return this.query(n,i,s)}finally{this.#Qt--}}#te(t,e,i){const s=this.#Gt++;let n=this.#qt[s];return n||(n=new qt(t,e,i),this.#qt[s]=n),n.reset(t,e,i)}#ee(t,e,i,s){const n=this.#Qt++;let a=this.#Yt[n];return a||(a=new Gt(t,e,i,s),this.#Yt[n]=a),a.reset(t,e,i,s)}#Kt(t,e){return`${Math.floor(t/this.#Ht)}_${Math.floor(e/this.#Ht)}`}#Zt(t){if(t instanceof qt){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof Gt){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}#Jt(t,e,i,s,n){const a=this.#jt.get(`${t}_${e}`);if(a)for(const t of a)s&&!s(t)||i.contains(t.getPosition())&&n.push(t)}}class es{checkParticlePositionPlugins;#ie;#u;#se;#ne;#ae;#re;#oe;#le;#ce;#p;#he;#de;#ue;#pe;#fe;#ge;constructor(t,e){this.#p=t,this.#u=e,this.#re=0,this.#ie=[],this.#he=[],this.#ae=0,this.#ne=new Map,this.#oe=new Map,this.#ge=this.#me(this.#u.zLayers),this.#se=new ts(100),this.checkParticlePositionPlugins=[],this.#le=[],this.#ce=[],this.#ue=[],this.#de=[],this.#fe=[]}get count(){return this.#ie.length}get grid(){return this.#se}addParticle(t,e,i,s){if(!this.#ye(i,this.count))try{const n=this.#he.pop()??new Ji(this.#p,this.#u);n.init(this.#re,t,e,i);let a=!0;return s&&(a=s(n)),a?(this.#ie.push(n),this.#ve(n),this.#re++,this.#u.dispatchEvent(Ot.particleAdded,{particle:n}),n):void this.#he.push(n)}catch(t){n().warning(`error adding particle: ${t}`)}}clear(){this.#ie=[],this.#oe.clear(),this.#we(this.#u.zLayers)}destroy(){this.#ie=[],this.#he.length=0,this.#oe.clear(),this.#ge=[],this.checkParticlePositionPlugins=[],this.#le=[],this.#ce=[],this.#ue=[],this.#de=[],this.#fe=[]}drawParticles(t){for(let e=this.#ge.length-1;e>=0;e--){const i=this.#ge[e];if(i)for(const e of i)e.draw(t)}}filter(t){return this.#ie.filter(t)}find(t){return this.#ie.find(t)}get(t){return this.#ie[t]}async init(){const t=this.#u;this.checkParticlePositionPlugins=[],this.#fe=[],this.#ce=[],this.#ue=[],this.#le=[],this.#de=[],this.#oe.clear(),this.#we(t.zLayers),this.#se=new ts(100*t.retina.pixelRatio),this.#Pe(t.actualOptions.particles);const e=t.actualOptions.particles.groups;for(const t in e){const i=e[t];i&&this.#Pe(De(this.#p,this.#u,i),t,i)}await this.#be()}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this.#u.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this.#ie.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s,n=!0){if(t<0||t>this.count)return;let a=0;for(let r=t;a<e&&r<this.count;r++)this.#xe(r,i,s,n)&&(r--,a++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this.#u.actualOptions,e=t.particles.groups;let i=0;for(const t of this.#u.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=De(this.#p,this.#u,s);this.#Me(n,i,t)}this.#Me(t.particles,i)}setResizeFactor(t){this.#pe=t}update(t){this.#se.clear();for(const e of this.#fe)e.update?.(t);const e=this.#ze(t);for(const e of this.#ue)e.postUpdate?.(t);if(this.#ke(t,e),e.size)for(const t of e)this.remove(t,t.group);this.#pe=void 0}#Ce(...t){this.#he.push(...t)}#Me(t,e,i,s){const n=t.number;if(!n.density.enable)return void this.#Pe(t,i,s);const a=this.#Se(n.density),r=n.value,o=n.limit.value>0?n.limit.value:r,l=Math.min(r,o)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this.#ae=n.limit.value*a:this.#ne.set(i,{limit:n.limit.value*a,mode:T(Rt,n.limit.mode,Rt.delete)}),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}#Pe(t,e,i){if(void 0===e){this.#ae=t.number.limit.value;const e=this.#u.actualOptions.particles.groups;for(const t of this.#ne.keys())t in e||this.#ne.delete(t)}else{const s=i?.number?.limit?.value??t.number.limit.value;s>0?this.#ne.set(e,{limit:s,mode:T(Rt,i?.number?.limit?.mode??t.number.limit.mode,Rt.delete)}):this.#ne.delete(e)}}#ye(t,e){const i=this.#ae,s=this.#u.actualOptions.particles.number.limit.mode;if(i>0&&s===Rt.wait&&e>=i)return!0;const n=void 0===t?void 0:this.#ne.get(t);if(n&&n.limit>0&&n.mode===Rt.wait){if(this.filter(e=>e.group===t).length>=n.limit)return!0}if(n&&n.limit>0&&n.mode===Rt.delete){const e=this.filter(e=>e.group===t).length+1-n.limit;e>0&&this.removeQuantity(e,t)}if(i>0&&s===Rt.delete){const t=this.count+1-i;t>0&&this.#Ie(t)}return!1}#me(t){const e=Math.max(Math.floor(t),1);return Array.from({length:e},()=>[])}#Oe(t){const e=this.#ge.length-1;return e<=0?0:Math.min(Math.max(Math.floor(t),0),e)}#Se(t){const e=this.#u;if(!t.enable)return 1;const i=e.canvas.size,s=e.retina.pixelRatio;return i.width&&i.height?i.width*i.height/(t.height*t.width*s**2):1}async#_e(){const t=this.#u;await t.initDrawersAndUpdaters();for(const e of t.effectDrawers.values())await(e.init?.(t));for(const e of t.shapeDrawers.values())await(e.init?.(t))}async#be(){await this.#Le(),await this.#_e();let t=!1;const e=this.#u;for(const i of e.plugins)if(t=i.particlesInitialization?.()??t,t)break;if(t)return;const i=e.actualOptions.particles,s=i.groups;for(const t in s){const e=s[t];if(e)for(let s=this.count,n=0;n<e.number.value&&s<i.number.value;s++,n++)this.addParticle(void 0,e,t)}for(let t=this.count;t<i.number.value;t++)this.addParticle()}async#Le(){const t=this.#u;for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this.#fe.push(e),e.particleUpdate&&this.#ce.push(e),e.postUpdate&&this.#ue.push(e),e.particleReset&&this.#le.push(e),e.postParticleUpdate&&this.#de.push(e)}#ve(t){const e=this.#Oe(t.position.z),i=this.#ge[e];i&&(i.push(t),this.#oe.set(t.id,e))}#Ie(t){this.removeAt(0,t,void 0,void 0,!1)}#xe(t,e,i,s=!0){const n=this.#ie[t];return!!n&&((!s||n.group===e)&&(this.#ie.splice(t,1),this.#De(n),n.destroy(i),this.#u.dispatchEvent(Ot.particleRemoved,{particle:n}),this.#Ce(n),!0))}#De(t){const e=this.#oe.get(t.id)??this.#Oe(t.position.z),i=this.#ge[e];if(!i)return void this.#oe.delete(t.id);const s=i.findIndex(e=>e.id===t.id);s>=0&&i.splice(s,1),this.#oe.delete(t.id)}#we(t){const e=Math.max(Math.floor(t),1);if(this.#ge.length===e)for(const t of this.#ge)t.length=0;else this.#ge=this.#me(e)}#Ee(t){const e=this.#Oe(t.position.z),i=this.#oe.get(t.id);if(void 0===i)return void this.#ve(t);if(i===e)return;const s=this.#ge[i];if(s){const e=s.findIndex(e=>e.id===t.id);e>=0&&s.splice(e,1)}const n=this.#ge[e];if(n){if(n.push(t),n.length>=2){const e=n[n.length-2];e&&t.id<e.id&&n.sort((t,e)=>t.id-e.id)}this.#oe.set(t.id,e)}else this.#oe.set(t.id,e)}#ze(t){const e=new Set,i=this.#pe;for(const s of this.#ie){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this.#le)t.particleReset?.(s);for(const e of this.#ce){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.#se.insert(s)}return e}#ke(t,e){for(const i of this.#ie)if(i.destroyed)e.add(i);else{for(const e of this.#u.particleUpdaters)e.update(i,t);if(!i.spawning)for(const e of this.#de)e.postParticleUpdate?.(i,t);this.#Ee(i)}}}class is{pixelRatio;reduceFactor;#u;constructor(t){this.#u=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.#u,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas,n=s.domElement;n&&(s.size.width=n.offsetWidth*i,s.size.height=n.offsetHeight*i)}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=G(s.gravity.maxSpeed)*i,a.moveDrift=G(s.drift)*i,a.moveSpeed=G(s.speed)*i;const r=a.maxDistance;r.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,r.vertical=void 0===n.vertical?void 0:n.vertical*i}}function ss(t){return!t.destroyed}function ns(t,e,...i){const s=new Ee(t,e);return Jt(s,...i),s}var as=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;hdrMode;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;peakNits;plugins;retina;shapeDrawers;started;zLayers;#Re;#Te;#Be;#Ae={value:0,factor:0};#Fe;#Ue;#$e;#Ve;#Ne;#We;#He;#je;#qe;#Ge;#Xe;#p;#Ye;#Qe;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this.#p=i,this.#Fe=e,this.#qe=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,this.hdrMode=Et.standard,this.peakNits=400,this.#Ye=!1,this.#Re=0,this.#$e=0,this.#je=0,this.#Ne=!0,this.started=!1,this.destroyed=!1,this.#Xe=!0,this.#He=0,this.zLayers=100,this.pageHidden=!1,this.#Qe=a,this.#We=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new is(this),this.canvas=new Xi(this.#p,this),this.particles=new es(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#Ge=ns(this.#p,this),this.actualOptions=ns(this.#p,this),this.#Ve=new Yi(this),this.dispatchEvent(Ot.containerBuilt)}get animationStatus(){return!this.#Xe&&!this.pageHidden&&ss(this)}get options(){return this.#Ge}get sourceOptions(){return this.#Qe}addLifeTime(t){this.#je+=t}alive(){return!this.#$e||this.#je<=this.#$e}destroy(t=!0){if(ss(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this.destroyed=!0,this.#qe(t),this.dispatchEvent(Ot.containerDestroyed)}}dispatchEvent(t,e){this.#Fe(t,{container:this,data:e})}draw(t){if(!ss(this))return;let e=t;this.#Ue=V(t=>{e&&(this.#He=void 0,e=!1),this.#Ke(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}n().error(`Export plugin with type ${t} not found`)}async init(){if(!ss(this))return;const t=new Map;for(const e of this.#p.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this.#Ge=ns(this.#p,this,this.#We,this.sourceOptions),this.actualOptions=ns(this.#p,this,this.#Ge),this.#be(t),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,smooth:n,zLayers:a}=this.actualOptions,r=this.actualOptions.hdr;this.hdrMode=T(Et,r.mode,Et.standard),this.peakNits=r.peakNits,this.zLayers=a,this.#$e=G(i)*d,this.#Re=G(e)*d,this.#je=0,this.fpsLimit=s>0?s:120,this.#Ye=n;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(Ot.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(Ot.particlesSetup)}async initDrawersAndUpdaters(){const t=this.#p;this.effectDrawers=await Ct(this,t.initializers.effects),this.shapeDrawers=await Ct(this,t.initializers.shapes),this.particleUpdaters=await async function(t,e){return await Promise.all([...e.values()].map(e=>e(t)))}(this,t.initializers.updaters)}pause(){var t;if(ss(this)&&(void 0!==this.#Ue&&(t=this.#Ue,N(t),this.#Ue=void 0),!this.#Xe)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this.#Xe=!0),this.dispatchEvent(Ot.containerPaused)}}play(t){if(!ss(this))return;const e=this.#Xe||t;if(!this.#Ne||this.actualOptions.autoPlay){if(this.#Xe&&(this.#Xe=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(Ot.containerPlay),this.draw(e??!1)}else this.#Ne=!1}async refresh(){if(ss(this))return this.stop(),this.start()}async reset(t){if(ss(this))return this.#We=t,this.#Qe=t,this.#Ge=ns(this.#p,this,this.#We,this.sourceOptions),this.actualOptions=ns(this.#p,this,this.#Ge),this.refresh()}async start(){ss(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{this.#Te=t;const e=async()=>{this.#Be=void 0,this.#Te=void 0,this.#Ve.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(Ot.containerStarted),this.play(),t()};this.#Be=setTimeout(()=>{e()},this.#Re)}))}stop(){if(ss(this)&&this.started){void 0!==this.#Be&&(clearTimeout(this.#Be),this.#Be=void 0,this.#Te?.(),this.#Te=void 0),this.#Ne=!0,this.started=!1,this.#Ve.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this.#Qe=this.#Ge,this.dispatchEvent(Ot.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}#be(t){this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i))}#Ke(t){try{if(!this.#Ye&&void 0!==this.#He&&t<this.#He+d/this.fpsLimit)return void this.draw(!1);if(this.#He??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/d}(this.#Ae,t-this.#He,this.fpsLimit,this.#Ye),this.addLifeTime(this.#Ae.value),this.#He=t,this.#Ae.value>d)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#Ae),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){n().error("error in animation loop",t)}}}});var rs=Object.freeze({__proto__:null,BlendPluginInstance:class{layer=Nt.CanvasSetup;#u;#Ze;constructor(t){this.#u=t}drawParticleCleanup(t,e){e.options.blend?.enable&&(t.globalCompositeOperation=e.originalBlendMode??l,e.originalBlendMode=void 0)}drawParticleSetup(t,e){e.options.blend?.enable&&(e.originalBlendMode=t.globalCompositeOperation,t.globalCompositeOperation=e.options.blend.mode)}drawSettingsCleanup(t){this.#Ze&&(t.globalCompositeOperation=this.#Ze)}drawSettingsSetup(t){const e=t.globalCompositeOperation,i=this.#u.actualOptions.blend;this.#Ze=e,t.globalCompositeOperation=i?.enable?i.mode:e}}});function os(t,e,i,s,n,a,r){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=j(t.velocity.x,-1,1),t.velocity.y=j(t.velocity.y,-1,1));t.lastPathTime-=n}(t,r);const o=t.gravity,l=o?.enable&&o.inverse?-1:1;n&&i&&(t.velocity.x+=n*r.factor/(60*i)),o?.enable&&i&&(t.velocity.y+=l*(o.acceleration*r.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);o?.enable&&s>0&&(!o.inverse&&h.y>=0&&h.y>=s||o.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}function ls(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=e.getPosition(),r=(l=a,c=n,Math.sqrt(Z(l,c))),o=G(i.acceleration);var l,c;e.retina.spinAcceleration=o*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?Lt.clockwise:Lt.counterClockwise,angle:W()*v,radius:r,acceleration:e.retina.spinAcceleration}}var cs=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;#u;#p;constructor(t,e){this.#p=t,this.#u=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-G(e.decay),t.pathDelay=G(s.delay.value)*d,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:G(i.acceleration),inverse:i.inverse},ls(this.#u,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options.move;if(!i.enable)return;const s=this.#u,n=function(t){const e=t.getModifier("slow");return e?.enabled?e.speedFactor??1:1}(t),a=s.retina.reduceFactor,r=t.retina.moveSpeed,o=t.retina.moveDrift,l=t.size.max,c=r*(i.size?t.getRadius()/l:1)*n*(e.factor||1)*h,d=t.retina.maxSpeed;i.spin.enable?function(t,e,i,s){if(!e.spin)return;const n=e.spin.direction===Lt.clockwise,a={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*a.x(e.spin.angle)*s,e.position.y=e.spin.center.y+e.spin.radius*a.y(e.spin.angle)*s,e.spin.radius+=e.spin.acceleration*s;const r=Math.max(t.canvas.size.width,t.canvas.size.height),o=r*h;e.spin.radius>o?(e.spin.radius=o,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(s,t,c,a):os(t,i,c,d,o,a,e),function(t){const e=t.initialPosition,{dx:i,dy:s}=K(e,t.position),n=Math.abs(i),a=Math.abs(s),{maxDistance:r}=t.retina,o=r.horizontal,l=r.vertical;if(!o&&!l)return;if((o&&n>=o||l&&a>=l)&&!t.misplaced)t.misplaced=!!o&&n>o||!!l&&a>l,o&&(t.velocity.x=t.velocity.y*h-t.velocity.x),l&&(t.velocity.y=t.velocity.x*h-t.velocity.y);else if((!o||n<o)&&(!l||a<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;o&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-W()),l&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-W())}}(t)}preInit(){return this.#Je()}redrawInit(){return this.#Je()}update(){for(const t of this.pathGenerators.values())t.update()}async#Je(){const t=this.#p;if(t.initializers.pathGenerators){this.availablePathGenerators=await Ct(this.#u,t.initializers.pathGenerators),this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});t.loadAmbientPreset=Ni,t.tsParticles=ti}(t.__tsParticlesInternals.presets.ambient=t.__tsParticlesInternals.presets.ambient||{})}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),Object.assign(globalThis.window||globalThis,{loadAmbientPreset:(globalThis.__tsParticlesInternals.presets.ambient||{}).loadAmbientPreset});
@@ -1,10 +1,10 @@
1
- (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
- /* Preset v4.4.0 */
3
- (function (global, factory) {
4
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/basic'), require('@tsparticles/engine')) :
5
- typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/basic', '@tsparticles/engine'], factory) :
6
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.presets = global.__tsParticlesInternals.presets || {}, global.__tsParticlesInternals.presets.ambient = global.__tsParticlesInternals.presets.ambient || {}), global.__tsParticlesInternals.bundles.basic, global.__tsParticlesInternals.engine));
7
- })(this, (function (exports, basic, engine) { 'use strict';
1
+ (function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
2
+ (function (g) {
3
+ /* Preset v4.5.1 */
4
+ g.__tsParticlesInternals = g.__tsParticlesInternals || {};
5
+ g.__tsParticlesInternals.presets = g.__tsParticlesInternals.presets || {};
6
+ (function (exports, basic, engine) {
7
+ 'use strict';
8
8
 
9
9
  const options = {
10
10
  fpsLimit: 120,
@@ -122,6 +122,7 @@
122
122
 
123
123
  exports.loadAmbientPreset = loadAmbientPreset;
124
124
 
125
- }));
125
+ })(g.__tsParticlesInternals.presets.ambient = g.__tsParticlesInternals.presets.ambient || {}, g.__tsParticlesInternals.bundles.basic, g.__tsParticlesInternals.engine);
126
+ })(typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : self);
127
+
126
128
  Object.assign(globalThis.window || globalThis, { loadAmbientPreset: (globalThis.__tsParticlesInternals.presets.ambient || {}).loadAmbientPreset });
127
- delete (globalThis.window || globalThis).tsparticlesInternalExports;
@@ -1 +1 @@
1
- !function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports,require("@tsparticles/basic"),require("@tsparticles/engine")):"function"==typeof define&&define.amd?define(["exports","@tsparticles/basic","@tsparticles/engine"],s):s(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.ambient=t.__tsParticlesInternals.presets.ambient||{}),t.__tsParticlesInternals.bundles.basic,t.__tsParticlesInternals.engine)}(this,function(t,s,e){"use strict";const a={fpsLimit:120,background:{color:"#191d1e",image:"linear-gradient(0deg, #191d1e 50%,#283139 100%)"},particles:{number:{value:200,density:{enable:!0}},shape:{type:"circle",options:{circle:[{particles:{paint:{fill:{enable:!1},stroke:{width:1,color:{value:"#0cdbf3"}}},opacity:{value:{min:0,max:.8},animation:{enable:!0,speed:.1}},size:{value:{min:3,max:5}}}},{particles:{paint:{fill:{color:{value:"#6fd2f3"},enable:!0}},opacity:{value:{min:0,max:.6},animation:{enable:!0,speed:.1}},size:{value:{min:5,max:7}}}},{particles:{paint:{fill:{color:{value:"#93e9f3"},enable:!0}},opacity:{value:{min:0,max:.4},animation:{enable:!0,speed:.1}},size:{value:{min:10,max:20}}}}]}},move:{enable:!0,speed:{min:.1,max:.5},direction:e.MoveDirection.none,outModes:e.OutMode.bounce}},detectRetina:!0};async function n(t){await t.pluginManager.register(async t=>{await s.loadBasic(t),t.pluginManager.addPreset("ambient",a)})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadAmbientPreset=n,t.loadAmbientPreset=n}),Object.assign(globalThis.window||globalThis,{loadAmbientPreset:(globalThis.__tsParticlesInternals.presets.ambient||{}).loadAmbientPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
1
+ !function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.bundles=s.__tsParticlesInternals.bundles||{},s.__tsParticlesInternals.effects=s.__tsParticlesInternals.effects||{},s.__tsParticlesInternals.engine=s.__tsParticlesInternals.engine||{},s.__tsParticlesInternals.interactions=s.__tsParticlesInternals.interactions||{},s.__tsParticlesInternals.palettes=s.__tsParticlesInternals.palettes||{},s.__tsParticlesInternals.paths=s.__tsParticlesInternals.paths||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins=s.__tsParticlesInternals.plugins||{},s.__tsParticlesInternals.plugins.emittersShapes=s.__tsParticlesInternals.plugins.emittersShapes||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},s.__tsParticlesInternals.shapes=s.__tsParticlesInternals.shapes||{},s.__tsParticlesInternals.updaters=s.__tsParticlesInternals.updaters||{},s.__tsParticlesInternals.utils=s.__tsParticlesInternals.utils||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas=s.__tsParticlesInternals.canvas||{},s.__tsParticlesInternals.canvas.utils=s.__tsParticlesInternals.canvas.utils||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path=s.__tsParticlesInternals.path||{},s.__tsParticlesInternals.path.utils=s.__tsParticlesInternals.path.utils||{};var t="undefined"!=typeof Proxy?function(s){return new Proxy(s,{get:function(s,t){return t in s||(s[t]={}),s[t]}})}:function(s){return s};s.__tsParticlesInternals.bundles=t(s.__tsParticlesInternals.bundles),s.__tsParticlesInternals.effects=t(s.__tsParticlesInternals.effects),s.__tsParticlesInternals.interactions=t(s.__tsParticlesInternals.interactions),s.__tsParticlesInternals.palettes=t(s.__tsParticlesInternals.palettes),s.__tsParticlesInternals.paths=t(s.__tsParticlesInternals.paths),s.__tsParticlesInternals.plugins=t(s.__tsParticlesInternals.plugins),s.__tsParticlesInternals.plugins.emittersShapes=t(s.__tsParticlesInternals.plugins.emittersShapes),s.__tsParticlesInternals.presets=t(s.__tsParticlesInternals.presets),s.__tsParticlesInternals.shapes=t(s.__tsParticlesInternals.shapes),s.__tsParticlesInternals.updaters=t(s.__tsParticlesInternals.updaters),s.__tsParticlesInternals.utils=t(s.__tsParticlesInternals.utils),s.__tsParticlesInternals.canvas=t(s.__tsParticlesInternals.canvas),s.__tsParticlesInternals.path=t(s.__tsParticlesInternals.path)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(s){s.__tsParticlesInternals=s.__tsParticlesInternals||{},s.__tsParticlesInternals.presets=s.__tsParticlesInternals.presets||{},function(s,t,e){"use strict";const a={fpsLimit:120,background:{color:"#191d1e",image:"linear-gradient(0deg, #191d1e 50%,#283139 100%)"},particles:{number:{value:200,density:{enable:!0}},shape:{type:"circle",options:{circle:[{particles:{paint:{fill:{enable:!1},stroke:{width:1,color:{value:"#0cdbf3"}}},opacity:{value:{min:0,max:.8},animation:{enable:!0,speed:.1}},size:{value:{min:3,max:5}}}},{particles:{paint:{fill:{color:{value:"#6fd2f3"},enable:!0}},opacity:{value:{min:0,max:.6},animation:{enable:!0,speed:.1}},size:{value:{min:5,max:7}}}},{particles:{paint:{fill:{color:{value:"#93e9f3"},enable:!0}},opacity:{value:{min:0,max:.4},animation:{enable:!0,speed:.1}},size:{value:{min:10,max:20}}}}]}},move:{enable:!0,speed:{min:.1,max:.5},direction:e.MoveDirection.none,outModes:e.OutMode.bounce}},detectRetina:!0};async function n(s){await s.pluginManager.register(async s=>{await t.loadBasic(s),s.pluginManager.addPreset("ambient",a)})}const l=globalThis;l.__tsParticlesInternals=l.__tsParticlesInternals??{},l.loadAmbientPreset=n,s.loadAmbientPreset=n}(s.__tsParticlesInternals.presets.ambient=s.__tsParticlesInternals.presets.ambient||{},s.__tsParticlesInternals.bundles.basic,s.__tsParticlesInternals.engine)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),Object.assign(globalThis.window||globalThis,{loadAmbientPreset:(globalThis.__tsParticlesInternals.presets.ambient||{}).loadAmbientPreset});