iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
1 lines • 62.6 kB
JavaScript
export const __rspack_esm_id=51143;export const __rspack_esm_ids=[51143];export const __webpack_modules__={90500(t,e,i){i.d(e,{R1:()=>c,Ug:()=>r,bo:()=>a,eb:()=>n,nK:()=>o,yj:()=>s});const n="generated",s="source-over",o="visibilitychange",a={x:0,y:0,z:0},r={a:1,b:0,c:0,d:1},c=2*Math.PI},52531(t,e,i){var n,s;i.d(e,{jl:()=>r,M_:()=>c}),(s=n||(n={})).circle="circle",s.rectangle="rectangle";var o=i(65746);class a{_resetPosition(t,e){this.position.x=t,this.position.y=e}constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class r extends a{contains(t){return(0,o.gp)(t,this.position,this.radius)}intersects(t){const e=this.position,i=t.position,s=this.radius,o=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof r||t.type===n.circle){return s+t.radius>Math.hypot(o,a)}if(t instanceof c||t.type===n.rectangle){const e=t,{width:i,height:n}=e.size;return Math.pow(o-i,2)+Math.pow(a-n,2)<=s**2||o<=s+i&&a<=s+n||o<=i||a<=n}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}constructor(t,e,i){super(t,e,n.circle),this.radius=i}}class c extends a{contains(t){const e=this.size.width,i=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+i}intersects(t){if(t instanceof r)return t.intersects(this);if(!(t instanceof c))return!1;const e=this.size.width,i=this.size.height,n=this.position,s=t.position,o=t.size,a=o.width,l=o.height;return s.x<n.x+e&&s.x+a>n.x&&s.y<n.y+i&&s.y+l>n.y}reset(t,e,i,n){return this._resetPosition(t,e),this.size.width=i,this.size.height=n,this}constructor(t,e,i,s){super(t,e,n.rectangle),this.size={height:s,width:i}}}},23685(t,e,i){i.d(e,{M:()=>a,p:()=>o});var n=i(90500);function s(t){return"z"in t?t.z:n.bo.z}class o{static get origin(){return o.create(n.bo.x,n.bo.y,n.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return o.create(t.x,t.y,s(t))}static create(t,e,i){return"number"==typeof t?new o(t,e??n.bo.y,i??n.bo.z):new o(t.x,t.y,s(t))}add(t){return o.create(this.x+t.x,this.y+t.y,this.z+s(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=s(t)}copy(){return o.clone(this)}div(t){return o.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return 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),n.bo.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=s(t)}sub(t){return o.create(this.x-t.x,this.y-t.y,this.z-s(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=s(t)}_updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}constructor(t=n.bo.x,e=n.bo.y,i=n.bo.z){this.x=t,this.y=e,this.z=i}}class a extends o{static get origin(){return a.create(n.bo.x,n.bo.y)}static clone(t){return a.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new a(t,e??n.bo.y):new a(t.x,t.y)}constructor(t=n.bo.x,e=n.bo.y){super(t,e,n.bo.z)}}},63082(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.increasing="increasing",t.decreasing="decreasing"}(n||(n={}))},91519(t,e,i){var n;i.d(e,{F:()=>n}),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"}(n||(n={}))},54541(t,e,i){var n;i.d(e,{v:()=>n}),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(n||(n={}))},86496(t,e,i){var n;i.d(e,{g:()=>n}),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(n||(n={}))},24881(t,e,i){var n;i.d(e,{d:()=>n}),function(t){t.delete="delete",t.wait="wait"}(n||(n={}))},39814(t,e,i){var n;i.d(e,{Y:()=>n}),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(n||(n={}))},88366(t,e,i){var n;i.d(e,{q:()=>n}),function(t){t.precise="precise",t.percent="percent"}(n||(n={}))},4980(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.darken="darken",t.enlighten="enlighten"}(n||(n={}))},32122(t,e,i){var n;i.d(e,{V:()=>n}),function(t){t.none="none",t.max="max",t.min="min"}(n||(n={}))},33904(t,e,i){var n;i.d(e,{B:()=>n}),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"}(n||(n={}))},46398(t,e,i){var n;i.d(e,{x:()=>n}),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(n||(n={}))},15695(t,e,i){var n;i.d(e,{S:()=>n}),function(t){t.max="max",t.min="min",t.random="random"}(n||(n={}))},48702(t,e,i){i.d(e,{A:()=>a});var n=i(71784),s=i(64437),o=i(98451);class a extends o.O{static create(t,e){const i=new a;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),(0,n.kZ)(t))return;const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}constructor(){super(),this.animation=new s.i}}},56209(t,e,i){i.d(e,{Q:()=>c,p:()=>r});var n=i(86496),s=i(15695),o=i(71784),a=i(65746);class r{load(t){(0,o.kZ)(t)||(void 0!==t.count&&(this.count=(0,a.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,a.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,a.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,a.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}}class c extends r{load(t){super.load(t),(0,o.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}constructor(){super(),this.mode=n.g.auto,this.startValue=s.S.random}}},64574(t,e,i){i.d(e,{e:()=>a});var n=i(56209),s=i(71784),o=i(65746);class a extends n.p{load(t){super.load(t),(0,s.kZ)(t)||(void 0!==t.max&&(this.max=t.max),void 0!==t.min&&(this.min=t.min),void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset)))}constructor(t,e){super(),this.min=t,this.max=e,this.offset=0,this.sync=!0}}},64437(t,e,i){i.d(e,{i:()=>o});var n=i(64574),s=i(71784);class o{load(t){(0,s.kZ)(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}constructor(){this.h=new n.e(0,360),this.l=new n.e(0,100),this.s=new n.e(0,100)}}},46359(t,e,i){i.d(e,{J:()=>u});i(18111),i(7588);var n=i(35128),s=i(71784),o=i(98451);class a{load(t){(0,s.kZ)(t)||(void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}constructor(){this.color=new o.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}}class r{load(t){(0,s.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}constructor(){this.enable=!0,this.zIndex=0}}class c{load(t){(0,s.kZ)(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}constructor(){this.delay=.5,this.enable=!0}}var l=i(9310),d=i(65746);class u{load(t){if((0,s.kZ)(t))return;void 0!==t.preset&&(this.preset=t.preset,(0,n.wJ)(this.preset,t=>{this._importPreset(t)})),void 0!==t.palette&&(this.palette=t.palette,this._importPalette(this.palette)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,d.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,d.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.hdr&&(this.hdr=t.hdr),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const o=t.fullScreen;(0,s.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),this.particles.load(t.particles),this.resize.load(t.resize),this.style=(0,n.zw)(this.style,t.style),void 0!==t.smooth&&(this.smooth=t.smooth),this._pluginManager.plugins.forEach(e=>{e.loadOptions(this._container,this,t)})}constructor(t,e){this._importPalette=t=>{const e=this._pluginManager.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})},this._importPreset=t=>{this.load(this._pluginManager.getPreset(t))},this._pluginManager=t,this._container=e,this.autoPlay=!0,this.background=new a,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new r,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._pluginManager,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new c,this.smooth=!1,this.style={},this.zLayers=100}}},98451(t,e,i){i.d(e,{O:()=>s});var n=i(71784);class s{static create(t,e){const i=new s;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){(0,n.kZ)(t)||(0,n.kZ)(t.value)||(this.value=t.value)}constructor(){this.value=""}}},98898(t,e,i){i.d(e,{w:()=>o});var n=i(87662),s=i(71784);class o{load(t){(0,s.kZ)(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}constructor(){this.horizontal=new n.F,this.vertical=new n.F}}},87662(t,e,i){i.d(e,{F:()=>s});var n=i(14963);class s extends n.PV{constructor(){super(),this.value=1}}},16088(t,e,i){i.d(e,{S:()=>a});var n=i(48702),s=i(71784),o=i(65746);class a{load(t){(0,s.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=(0,o.DT)(t.opacity)))}constructor(){this.enable=!0,this.opacity=1}}},84634(t,e,i){i.d(e,{y:()=>h});var n=i(91519),s=i(71784),o=i(18155),a=i(99535),r=i(39722),c=i(66573),l=i(45935),d=i(72003),u=i(65746);class h{load(t){if((0,s.kZ)(t))return;this.angle.load((0,s.Et)(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,s.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,s.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}constructor(){this.angle=new o.h,this.center=new a.Z,this.decay=0,this.distance={},this.direction=n.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new c.v,this.outModes=new l.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new d.t,this.straight=!1,this.vibrate=!1,this.warp=!1}}},18155(t,e,i){i.d(e,{h:()=>o});var n=i(71784),s=i(65746);class o{load(t){(0,n.kZ)(t)||(void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset)),void 0!==t.value&&(this.value=(0,s.DT)(t.value)))}constructor(){this.offset=0,this.value=90}}},99535(t,e,i){i.d(e,{Z:()=>o});var n=i(88366),s=i(71784);class o{load(t){(0,s.kZ)(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}constructor(){this.x=50,this.y=50,this.mode=n.q.percent,this.radius=0}}},39722(t,e,i){i.d(e,{y:()=>o});var n=i(71784),s=i(65746);class o{load(t){(0,n.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,s.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,s.DT)(t.maxSpeed)))}constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}}},45935(t,e,i){i.d(e,{j:()=>o});var n=i(39814),s=i(71784);class o{load(t){(0,s.kZ)(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)}constructor(){this.default=n.Y.out}}},66573(t,e,i){i.d(e,{v:()=>a});var n=i(14963),s=i(35128),o=i(71784);class a{load(t){(0,o.kZ)(t)||(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.zw)(this.options,t.options)))}constructor(){this.clamp=!0,this.delay=new n.PV,this.enable=!1,this.options={}}}},72003(t,e,i){i.d(e,{t:()=>a});var n=i(35128),s=i(71784),o=i(65746);class a{load(t){(0,s.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,o.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,n.zw)({},t.position)))}constructor(){this.acceleration=0,this.enable=!1}}},18747(t,e,i){i.d(e,{N:()=>a});var n=i(71784);class s{load(t){if((0,n.kZ)(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}constructor(){this.enable=!1,this.width=1920,this.height=1080}}var o=i(86862);class a{load(t){(0,n.kZ)(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}constructor(){this.density=new s,this.limit=new o.A,this.value=0}}},86862(t,e,i){i.d(e,{A:()=>o});var n=i(24881),s=i(71784);class o{load(t){(0,s.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}constructor(){this.mode=n.d.delete,this.value=0}}},51638(t,e,i){i.d(e,{Y:()=>a});var n=i(31710),s=i(14963),o=i(71784);class a extends s.AI{load(t){if((0,o.kZ)(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}constructor(){super(),this.animation=new n.I,this.value=1}}},31710(t,e,i){i.d(e,{I:()=>a});var n=i(32122),s=i(56209),o=i(71784);class a extends s.Q{load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}constructor(){super(),this.destroy=n.V.none,this.speed=2}}},11349(t,e,i){i.d(e,{P:()=>r});var n=i(48702),s=i(16088),o=i(20357),a=i(71784);class r{load(t){(0,a.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.fill&&(this.fill??=new s.S,this.fill.load(t.fill)),void 0!==t.stroke&&(this.stroke??=new o.t,this.stroke.load(t.stroke)))}}},38947(t,e,i){i.d(e,{U:()=>g});i(18111),i(30531);var n=i(35128),s=i(71784),o=i(48702);class a{load(t){if((0,s.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.type&&(this.type=t.type)}constructor(){this.close=!0,this.options={},this.type=[]}}var r=i(16088),c=i(84634),l=i(51638),d=i(11349),u=i(98898),h=i(18747),p=i(70818),v=i(33122),f=i(66208);class g{load(t){if((0,s.kZ)(t))return;if(t.palette&&(this.palette=t.palette,this._importPalette(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]=(0,n.zw)(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),this.opacity.load(t.opacity);const e=t.paint;if(e&&((0,s.cy)(e)?this.paint=(0,n.wJ)(e,t=>{const e=new d.P;return e.load(t),e}):(0,s.cy)(this.paint)?(this.paint=new d.P,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.size.load(t.size),this.zIndex.load(t.zIndex),this._container){for(const e of this._pluginManager.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this._container,this,t);const e=this._pluginManager.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}constructor(t,e){this._importPalette=t=>{const e=this._pluginManager.getPalette(t);if(!e)return;const i=e.colors,n=((0,s.cy)(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,n=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:n,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:n}]}),o=n.length>1?n:n[0]??{};this.load({paint:o,blend:{enable:!0,mode:e.blendMode}})},this._pluginManager=t,this._container=e,this.bounce=new u.w,this.effect=new a,this.groups={},this.move=new c.y,this.number=new h.N,this.opacity=new l.Y,this.paint=new d.P,this.paint.color=new o.A,this.paint.color.value="#fff",this.paint.fill=new r.S,this.paint.fill.enable=!0,this.reduceDuplicates=!1,this.shape=new p.y,this.size=new v.o,this.zIndex=new f.P}}},70818(t,e,i){i.d(e,{y:()=>o});var n=i(35128),s=i(71784);class o{load(t){if((0,s.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.type&&(this.type=t.type)}constructor(){this.close=!0,this.options={},this.type="circle"}}},33122(t,e,i){i.d(e,{o:()=>a});var n=i(14963),s=i(96730),o=i(71784);class a extends n.AI{load(t){if(super.load(t),(0,o.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}constructor(){super(),this.animation=new s.q,this.value=3}}},96730(t,e,i){i.d(e,{q:()=>a});var n=i(32122),s=i(56209),o=i(71784);class a extends s.Q{load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}constructor(){super(),this.destroy=n.V.none,this.speed=5}}},20357(t,e,i){i.d(e,{t:()=>a});var n=i(48702),s=i(71784),o=i(65746);class a{load(t){(0,s.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,o.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,o.DT)(t.opacity)))}constructor(){this.width=0}}},66208(t,e,i){i.d(e,{P:()=>o});var n=i(14963),s=i(71784);class o extends n.PV{load(t){super.load(t),(0,s.kZ)(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}}},14963(t,e,i){i.d(e,{AI:()=>c,PV:()=>a});var n=i(56209),s=i(71784),o=i(65746);class a{load(t){(0,s.kZ)(t)||(0,s.kZ)(t.value)||(this.value=(0,o.DT)(t.value))}constructor(){this.value=0}}class r extends a{load(t){if(super.load(t),(0,s.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}constructor(...t){super(...t),this.animation=new n.p}}class c extends r{load(t){super.load(t)}constructor(){super(),this.animation=new n.Q}}},53461(t,e,i){i.d(e,{BN:()=>u,Jv:()=>S,LC:()=>x,O_:()=>M,PG:()=>k,R5:()=>p,YL:()=>f,_h:()=>w,ay:()=>g,pz:()=>z,xx:()=>m,yx:()=>O});i(18111),i(7588),i(45367),i(92731);var n=i(65746),s=i(71784),o=i(4980),a=i(63082),r=i(35128);const c=new Map;function l(t,e){let i=c.get(t);if(!i){if(i=e(),c.size>=1e3){[...c.keys()].slice(0,500).forEach(t=>c.delete(t))}c.set(t,i)}return i}function d(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}function u(t,e,i,n=!0){if(!e)return;const o=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(o.value))return h(t,o.value,i,n);if((0,s.cy)(o.value)){const e=(0,r.Vh)(o.value,i,n);if(!e)return;return u(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(o);if(t)return t}}function h(t,e,i,n=!0){if(!e)return;const o=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(o.value))return"random"===o.value?y():function(t,e){return d(t,e)}(t,o.value);if((0,s.cy)(o.value)){const e=(0,r.Vh)(o.value,i,n);if(!e)return;return h(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(o);if(t)return t}}function p(t,e,i,n=!0){const s=u(t,e,i,n);return s?v(s):void 0}function v(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),a={h:0,l:.5*(s+o),s:0};return s!==o&&(a.s=a.l<.5?(s-o)/(s+o):(s-o)/(2-s-o),a.h=e===s?(i-n)/(s-o):i===s?2+(n-e)/(s-o):4+(e-i)/(s-o)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function f(t){const e=(t.h%360+360)%360,i=Math.max(0,Math.min(100,t.s)),n=e/360,s=i/100,o=Math.max(0,Math.min(100,t.l))/100;if(0===i){const t=Math.round(255*o);return{r:t,g:t,b:t}}const a=(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},r=o<.5?o*(1+s):o+s-o*s,c=2*o-r,l=1/3,d=Math.min(255,255*a(c,r,n+l)),u=Math.min(255,255*a(c,r,n)),h=Math.min(255,255*a(c,r,n-l));return{r:Math.round(d),g:Math.round(u),b:Math.round(h)}}function g(t){const e=f(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function y(t){const e=t??0,i=()=>Math.floor((0,n.e4)(e,256));return{b:i(),g:i(),r:i()}}function m(t,e,i){const n=i??1;return l(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,()=>e?b(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function b(t,e){return`color(display-p3 ${(t.r/255).toString()} ${(t.g/255).toString()} ${(t.b/255).toString()} / ${(e??1).toString()})`}function x(t,e,i){const n=i??1;return l(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${n.toString()}`,()=>e?function(t,e){return b(f(t),e)}(t,i):function(t,e){return`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${(e??1).toString()})`}(t,i))}function w(t,e,i){if("random"===i)return y();if("mid"!==i)return i;{const i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return function(t,e,i,s){let o=t,a=e;return"r"in o||(o=f(t)),"r"in a||(a=f(e)),{b:(0,n.jh)(o.b,a.b,i,s),g:(0,n.jh)(o.g,a.g,i,s),r:(0,n.jh)(o.r,a.r,i,s)}}(i,s,t.getRadius(),e.getRadius());{const t=i??s;if(t)return f(t)}}}function k(t,e,i,n){const o=(0,s.Kg)(e)?e:e.value;return"random"===o?n?u(t,{value:o}):i?"random":"mid":"mid"===o?"mid":u(t,{value:o})}function M(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function z(t,e,i){const n={h:{enable:!1,value:t.h,min:0,max:360},s:{enable:!1,value:t.s,min:0,max:100},l:{enable:!1,value:t.l,min:0,max:100}};return e&&(_(n.h,e.h,i),_(n.s,e.s,i),_(n.l,e.l,i)),n}function _(t,e,i){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=(0,n.VG)(e.speed)/100*i,t.decay=1-(0,n.VG)(e.decay),t.status=a.H.increasing,t.loops=0,t.maxLoops=(0,n.VG)(e.count),t.time=0,t.delayTime=1e3*(0,n.VG)(e.delay),e.sync||(t.velocity*=(0,n.G0)(),t.value*=(0,n.G0)()),t.initialValue=t.value,t.offset=(0,n.DT)(e.offset)):t.velocity=0}function P(t,e,i){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 s=t.offset?(0,n.vE)(t.offset):0,o=(t.velocity??0)*i.factor+3.6*s,r=t.decay??1,c=t.max,l=t.min;e&&t.status!==a.H.increasing?(t.value-=o,t.value<l&&(t.loops??=0,t.loops++,t.status=a.H.increasing)):(t.value+=o,t.value>c&&(t.loops??=0,t.loops++,e?t.status=a.H.decreasing:t.value-=c)),t.velocity&&1!==r&&(t.velocity*=r),t.value=(0,n.qE)(t.value,l,c)}function S(t,e){if(!t)return;const{h:i,s:n,l:s}=t;P(i,!1,e),P(n,!0,e),P(s,!0,e)}function O(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===o.H.darken?-1:1)*i}}},13250(t,e,i){i.d(e,{t:()=>o});const n=t=>(...e)=>{t(...e)},s={debug:n(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:n(console.info),log:n(console.log),trace:n(console.trace),verbose:n(console.log),warning:n(console.warn)};function o(){return s}},65746(t,e,i){i.d(e,{$m:()=>S,DT:()=>x,G0:()=>d,JY:()=>P,M3:()=>I,Nx:()=>O,Sg:()=>m,VG:()=>y,W9:()=>b,Yf:()=>M,e4:()=>u,gp:()=>z,i0:()=>h,jh:()=>f,pu:()=>_,px:()=>p,qE:()=>v,vE:()=>g,vr:()=>w});var n=i(91519),s=i(90500),o=i(23685),a=i(71784);const r=Math.PI/180;let c=Math.random;const l={nextFrame:t=>requestAnimationFrame(t),cancel:t=>{cancelAnimationFrame(t)}};function d(){return v(c(),0,1-Number.EPSILON)}function u(t,e){return d()*(e-t)+t}function h(t){return l.nextFrame(t)}function p(t){l.cancel(t)}function v(t,e,i){return Math.min(Math.max(t,e),i)}function f(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function g(t){const e=b(t);let i=m(t);return e===i&&(i=0),u(i,e)}function y(t){return(0,a.Et)(t)?t:g(t)}function m(t){return(0,a.Et)(t)?t:t.min}function b(t){return(0,a.Et)(t)?t:t.max}function x(t,e){if(t===e||void 0===e&&(0,a.Et)(t))return t;const i=m(t),n=b(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:x(i,n)}function w(t,e){const i=t.x-e.x,n=t.y-e.y;return{dx:i,dy:n,distance:Math.hypot(i,n)}}function k(t,e){const i=t.x-e.x,n=t.y-e.y;return i*i+n*n}function M(t,e){return Math.sqrt(k(t,e))}function z(t,e,i){return k(t,e)<=i*i}function _(t){return t*r}function P(t,e,i){if((0,a.Et)(t))return _(t);switch(t){case n.F.top:return.5*-Math.PI;case n.F.topRight:return.25*-Math.PI;case n.F.right:return 0;case n.F.bottomRight:return.25*Math.PI;case n.F.bottom:return.5*Math.PI;case n.F.bottomLeft:return.75*Math.PI;case n.F.left:return Math.PI;case n.F.topLeft:return.75*-Math.PI;case n.F.inside:return Math.atan2(i.y-e.y,i.x-e.x);case n.F.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return d()*s.R1}}function S(t){const e=o.M.origin;return e.length=1,e.angle=t,e}function O(t){const{position:e,size:i}=t;return{x:e?.x??d()*i.width,y:e?.y??d()*i.height}}function I(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}},9310(t,e,i){i.d(e,{Z:()=>s,y:()=>o});var n=i(38947);function s(t,...e){for(const i of e)t.load(i)}function o(t,e,...i){const o=new n.U(t,e);return s(o,...i),o}},71784(t,e,i){function n(t){return"boolean"==typeof t}function s(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t&&null!==t}function r(t){return Array.isArray(t)}function c(t){return null==t}i.d(e,{Et:()=>o,Gv:()=>a,Kg:()=>s,Lm:()=>n,cy:()=>r,kZ:()=>c})},35128(t,e,i){i.d(e,{AE:()=>m,BR:()=>p,E9:()=>z,HQ:()=>I,Kp:()=>O,Ot:()=>E,T5:()=>u,TA:()=>w,Tj:()=>y,UC:()=>_,Vh:()=>g,Xs:()=>k,hJ:()=>S,hn:()=>f,lV:()=>h,tG:()=>v,td:()=>P,wJ:()=>x,zw:()=>b});i(74423),i(18111),i(20116),i(61701),i(13579),i(33110),i(45367),i(92731),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var n=i(65746),s=i(71784),o=i(86496),a=i(63082),r=i(32122),c=i(54541),l=i(88366),d=i(15695);i(23685);function u(){return globalThis.document}function h(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function p(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function v(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}function f(t,e){return t===e||(0,s.cy)(e)&&e.includes(t)}function g(t,e,i=!0){return t[void 0!==e&&i?e%t.length:function(t){return Math.floor((0,n.G0)()*t.length)}(t)]}function y(t,e,i,n,s){return function(t,e,i,n){let s=!0;n&&n!==c.v.bottom||(s=t.top<e.height+i.x);!s||n&&n!==c.v.left||(s=t.right>i.x);!s||n&&n!==c.v.right||(s=t.left<e.width+i.y);!s||n&&n!==c.v.top||(s=t.bottom>i.y);return s}(m(t,n??0),e,i,s)}function m(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function b(t,...e){for(const i of e){if((0,s.kZ)(i))continue;if(!(0,s.Gv)(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):(0,s.Gv)(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),n=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return(0,s.Gv)(e)||Array.isArray(e)})){const s=i,o=t;for(const t of e)if(!n.has(t)&&t in s){const e=s[t];void 0!==e&&(o[t]=e)}continue}for(const s of e){if(n.has(s))continue;const e=t,o=i[s];e[s]=Array.isArray(o)?o.map(t=>b(void 0,t)):b(e[s],o)}}return t}function x(t,e){return(0,s.cy)(t)?t.map((t,i)=>e(t,i)):e(t,0)}function w(t,e,i){return(0,s.cy)(t)?g(t,e,i):t}function k(t,e){const i=t.value,s=t.animation,r={delayTime:1e3*(0,n.VG)(s.delay),enable:s.enable,value:(0,n.VG)(t.value)*e,max:(0,n.W9)(i)*e,min:(0,n.Sg)(i)*e,loops:0,maxLoops:(0,n.VG)(s.count),time:0};if(s.enable){switch(r.decay=1-(0,n.VG)(s.decay),s.mode){case o.g.increase:r.status=a.H.increasing;break;case o.g.decrease:r.status=a.H.decreasing;break;case o.g.random:r.status=(0,n.G0)()>=.5?a.H.increasing:a.H.decreasing}const t=s.mode===o.g.auto;switch(s.startValue){case d.S.min:r.value=r.min,t&&(r.status=a.H.increasing);break;case d.S.max:r.value=r.max,t&&(r.status=a.H.decreasing);break;case d.S.random:default:r.value=(0,n.vE)(r),t&&(r.status=(0,n.G0)()>=.5?a.H.increasing:a.H.decreasing)}}return r.initialValue=r.value,r}function M(t,e){if(!(t.mode===l.q.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function z(t,e){return M(t,e)}function _(t,e,i,s,o){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const c=(e.velocity??0)*o.factor,l=e.min,d=e.max,u=e.decay??1;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=o.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case a.H.increasing:e.value+=c;break;case a.H.decreasing:e.value-=c}switch(e.velocity&&1!==u&&(e.velocity*=u),e.status){case a.H.increasing:e.value>=d&&(i?e.status=a.H.decreasing:e.value-=d,e.loops??=0,e.loops++);break;case a.H.decreasing:e.value<=l&&(i?e.status=a.H.increasing:e.value+=d,e.loops??=0,e.loops++)}!function(t,e,i,n,s){switch(e){case r.V.max:i>=s&&t.destroy();break;case r.V.min:i<=n&&t.destroy()}}(t,s,e.value,l,d),t.destroyed||(e.value=(0,n.qE)(e.value,l,d))}}function P(t){const e=u().createElement("div").style;for(const i in t){const n=t[i];if(!(i in t)||(0,s.kZ)(n))continue;const o=t.getPropertyValue?.(n);if(!o)continue;const a=t.getPropertyPriority?.(n);a?e.setProperty(n,o,a):e.setProperty(n,o)}return e}const S=function(t,e){const i=new Map,n=e?.maxSize,s=e?.ttlMs,o=e?.keyFn,a=(t,e=new WeakSet)=>{if(null===t)return"null";const i=typeof t;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(t);if("function"===i)try{return t.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return t.toString()}catch{return'"[Symbol]"'}if(Array.isArray(t))return`[${t.map(t=>a(t,e)).join(",")}]`;if(e.has(t))return'"[Circular]"';e.add(t);return`{${Object.keys(t).sort().map(i=>`${JSON.stringify(i)}:${a(t[i],e)}`).join(",")}}`},r=t=>o?o(t):(t=>a(t))(t);return(...e)=>{const o=r(e),a=Date.now(),c=i.get(o);if(void 0!==c){if(!(s&&a-c.ts>s))return i.delete(o),i.set(o,{value:c.value,ts:c.ts}),c.value;i.delete(o)}const l=t(...e);return i.set(o,{value:l,ts:a}),(()=>{if("number"==typeof n&&n>=0)for(;i.size>n;){const t=i.keys().next().value;if(void 0===t)break;i.delete(t)}})(),l}}(function(t){const e=u().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0","pointer-events":"none"};for(const t in i){const n=i[t];void 0!==n&&e.setProperty(t,n)}return e});function O(t,e,i,n,o){if(n){let n={passive:!0};(0,s.Lm)(o)?n.capture=o:void 0!==o&&(n=o),t.addEventListener(e,i,n)}else{const n=o;t.removeEventListener(e,i,n)}}async function I(t,e,i,n=!1){let s=e.get(t);return s&&!n||(s=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,s)),s}async function E(t,e,i,n=!1){let s=e.get(t);if(!s||n){const n=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));s=new Map(n),e.set(t,s)}return s}},61688(t,e,i){i.d(e,{A9e:()=>M.A,jlt:()=>v.jl,Oit:()=>z.O,Yzx:()=>b.Y,v5k:()=>m.v,x_I:()=>k.x,M_G:()=>v.M_,pTR:()=>h,Miz:()=>f.M,AEc:()=>s.AE,qE8:()=>l.qE,WH8:()=>1,zwS:()=>s.zw,yjn:()=>n.yj,puj:()=>l.pu,gdl:()=>2,R1e:()=>n.R1,wJ2:()=>s.wJ,YfF:()=>l.Yf,vrU:()=>l.vr,pzy:()=>_.pz,OtU:()=>s.Ot,HQK:()=>s.HQ,_hh:()=>_._h,PGG:()=>_.PG,G0i:()=>l.G0,W9e:()=>l.W9,VGA:()=>l.VG,xxz:()=>_.xx,MXx:()=>.5,YLU:()=>_.YL,ayx:()=>_.ay,XsS:()=>s.Xs,kZJ:()=>P.kZ,Gvm:()=>P.Gv,Tj8:()=>s.Tj,TA3:()=>s.TA,K3:()=>1,KpY:()=>s.Kp,XuV:()=>1e3,boI:()=>n.bo,M3Y:()=>l.M3,a56:()=>100,vEz:()=>l.vE,R5R:()=>_.R5,BN0:()=>_.BN,T5G:()=>s.T5,BRq:()=>s.BR,$k3:()=>S,UC0:()=>s.UC,JvX:()=>_.Jv,nKi:()=>n.nK});i(44114),i(18111),i(61701);var n=i(90500),s=i(35128);i(7588),i(45367),i(92731);class o{addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const n=i.length,s=i.indexOf(e);s<0||(1===n?this._listeners.delete(t):i.splice(s,1))}constructor(){this._listeners=new Map}}i(20116),i(17642),i(58004),i(33853),i(45876),i(32475),i(15024),i(31698);var a=i(33904);class r{get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._engine.dispatchEvent(a.B.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(0,s.Ot)(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(0,s.Ot)(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return(0,s.HQ)(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(const t of this._allLoadersSet)await this._runLoader(t,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}loadParticlesOptions(t,e,...i){const n=this.updaters.get(t);n&&n.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this._isRunningLoaders?await this._runLoader(e,this._executedSet,this._allLoadersSet):this._loadPromises.add(e)}async _runLoader(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this._engine))}constructor(t){this.colorManagers=new Map,this.easingFunctions=new Map,this.effectDrawers=new Map,this.initializers={effects:new Map,shapes:new Map,updaters:new Map},this.palettes=new Map,this.plugins=[],this.presets=new Map,this.shapeDrawers=new Map,this.updaters=new Map,this._allLoadersSet=new Set,this._configs=new Map,this._executedSet=new Set,this._initialized=!1,this._isRunningLoaders=!1,this._loadPromises=new Set,this._engine=t}}var c=i(13250),l=i(65746);const d="100%";class u{get items(){return this._domArray}get version(){return"4.0.5"}addEventListener(t,e){this._eventDispatcher.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._eventDispatcher.dispatchEvent(t,e)}async init(){this._initialized||(await this.pluginManager.init(),this._initialized=!0)}item(t){const{items:e}=this,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:o}=await i.e(39094).then(i.bind(i,63893)),a=t.id??e?.id??`tsparticles${Math.floor(1e4*(0,l.G0)()).toString()}`,{index:r,url:u}=t,h=u?await async function(t){const e=(0,s.TA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,c.t)().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:u,index:r}):t.options,p=(0,s.TA)(h,r),{items:v}=this,f=v.findIndex(t=>t.id.description===a),g=new o({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:a,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(g);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:p});if(f>=0){const t=this.item(f),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),v.splice(f,e,g)}else v.push(g);const y="undefined"!=typeof OffscreenCanvas&&t.element instanceof OffscreenCanvas?t.element:(t=>{const e=(0,s.T5)();let i;if(t instanceof HTMLCanvasElement||"canvas"===t.tagName.toLowerCase())i=t,i.dataset[n.eb]??="false","true"===i.dataset[n.eb]&&(i.style.width||=d,i.style.height||=d,i.style.pointerEvents="none",i.style.setProperty("pointer-events","none"));else{const s=t.getElementsByTagName("canvas").item(0);s?(i=s,i.dataset[n.eb]="false"):(i=e.createElement("canvas"),i.dataset[n.eb]="true",t.appendChild(i)),i.style.width||=d,i.style.height||=d,i.style.pointerEvents="none",i.style.setProperty("pointer-events","none")}return i})(((t,e)=>{const i=(0,s.T5)();let o=e??i.getElementById(t);return o||(o=i.createElement("canvas"),o.id=t,o.dataset[n.eb]="true",i.body.append(o),o)})(a,e));return g.canvas.loadCanvas(y),await g.start(),g}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}constructor(){this.pluginManager=new r(this),this._domArray=[],this._eventDispatcher=new o,this._initialized=!1}}var h,p,v=i(52531),f=i(23685);i(91519);(p=h||(h={})).clockwise="clockwise",p.counterClockwise="counter-clockwise",p.random="random";var g,y,m=i(54541),b=(i(86496),i(24881),i(39814));i(88366),i(4980),i(32122);(y=g||(g={})).linear="linear",y.radial="radial",y.random="random";var x,w,k=i(46398);i(15695);(w=x||(x={})).easeInBack="ease-in-back",w.easeInBounce="ease-in-bounce",w.easeInCirc="ease-in-circ",w.easeInCubic="ease-in-cubic",w.easeInElastic="ease-in-elastic",w.easeInExpo="ease-in-expo",w.easeInGaussian="ease-in-gaussian",w.easeInLinear="ease-in-linear",w.easeInQuad="ease-in-quad",w.easeInQuart="ease-in-quart",w.easeInQuint="ease-in-quint",w.easeInSigmoid="ease-in-sigmoid",w.easeInSine="ease-in-sine",w.easeInSmoothstep="ease-in-smoothstep",w.easeOutBack="ease-out-back",w.easeOutBounce="ease-out-bounce",w.easeOutCirc="ease-out-circ",w.easeOutCubic="ease-out-cubic",w.easeOutElastic="ease-out-elastic",w.easeOutExpo="ease-out-expo",w.easeOutGaussian="ease-out-gaussian",w.easeOutLinear="ease-out-linear",w.easeOutQuad="ease-out-quad",w.easeOutQuart="ease-out-quart",w.easeOutQuint="ease-out-quint",w.easeOutSigmoid="ease-out-sigmoid",w.easeOutSine="ease-out-sine",w.easeOutSmoothstep="ease-out-smoothstep",w.easeInOutBack="ease-in-out-back",w.easeInOutBounce="ease-in-out-bounce",w.easeInOutCirc="ease-in-out-circ",w.easeInOutCubic="ease-in-out-cubic",w.easeInOutElastic="ease-in-out-elastic",w.easeInOutExpo="ease-in-out-expo",w.easeInOutGaussian="ease-in-out-gaussian",w.easeInOutLinear="ease-in-out-linear",w.easeInOutQuad="ease-in-out-quad",w.easeInOutQuart="ease-in-out-quart",w.easeInOutQuint="ease-in-out-quint",w.easeInOutSigmoid="ease-in-out-sigmoid",w.easeInOutSine="ease-in-out-sine",w.easeInOutSmoothstep="ease-in-out-smoothstep";i(63082);var M=i(48702),z=(i(56209),i(64574),i(64437),i(46359),i(98451)),_=(i(98898),i(87662),i(38947),i(16088),i(11349),i(20357),i(84634),i(18155),i(99535),i(39722),i(45935),i(66573),i(72003),i(18747),i(86862),i(51638),i(31710),i(70818),i(33122),i(96730),i(66208),i(14963),i(53461)),P=(i(9310),i(71784));const S=new u},1526(t,e,i){var n;i.d(e,{Q:()=>n}),function(t){t.circle="circle",t.rectangle="rectangle"}(n||(n={}))},92773(t,e,i){var n;i.d(e,{h:()=>n}),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(n||(n={}))},57970(t,e,i){var n;i.d(e,{e:()=>n}),function(t){t.external="external",t.particles="particles"}(n||(n={}))},21677(t,e,i){i.d(e,{G:()=>o});var n=i(61688),s=i(1526);class o{load(t){(0,n.kZJ)(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=s.Q.circle}}},39121(t,e,i){i.d(e,{k:()=>d});var n=i(61688);class s{load(t){(0,n.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}constructor(){this.enable=!1,this.mode=[]}}var o=i(21677);class a{load(t){(0,n.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}constructor(){this.enable=!1,this.mode=[]}}class r{load(t){if((0,n.kZJ)(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,n.wJ2)(e,t=>{const e=new o.G;return e.load(t),e})),this.onHover.load(t.onHover)}constructor(){this.onClick=new s,this.onDiv=new o.G,this.onHover=new a}}var c=i(92773),l=i(10621);class d{load(t){if((0,n.kZJ)(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}constructor(t,e){this.detectsOn=c.h.window,this.events=new r,this.modes=new l.d(t,e)}}},10621(t,e,i){i.d(e,{d:()=>s});var n=i(61688);class s{load(t){if((0,n.kZJ)(t))return;if(!this._container)return;const e=this._pluginManager.interactors?.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}constructor(t,e){this._pluginManager=t,this._container=e}}},23546(t,e,i){i.d(e,{p:()=>X});var n=i(61688);class s{load(t){(0,n.kZJ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.enable&&(this.enable=t.enable))}constructor(){this.mode="destination-out",this.enable=!1}}class o{async getPlugin(t){const{BlendPluginInstance:e}=await i.e(99176).then(i.bind(i,155));return new e(t)}loadOptions(t,e,i){if(!this.needsPlugin(e)&&!this.needsPlugin(i))return;let n=e.blend;n?.load||(e.blend=n=new s),n.load(i?.blend)}loadParticlesOptions(t,e,i){e.blend??=new s,e.blend.load(i?.blend)}needsPlugin(t){return!!t?.blend?.enable||!!t?.particles?.blend?.enable}constructor(){this.id="blend"}}async function a(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new o)})}class r{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:n.R1e};const o=i.circleRange;e.arc(n.boI.x,n.boI.y,s,o.min,o.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=(0,n.Gvm)(s)?{min:(0,n.puj)(s.min),max:(0,n.puj)(s.max)}:{min:0,max:(0,n.puj)(s)}}}async function c(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new r))})}var l,d;(d=l||(l={}))[d.r=1]="r",d[d.g=2]="g",d[d.b=3]="b",d[d.a=4]="a";const u=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,h=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class p{accepts(t){return t.startsWith("#")}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(u,(t,e,i,n,s)=>e+e+i+i+n+n+(void 0===s?"":s+s)),i=h.exec(e);return i?{a:i[l.a]?Number.parseInt(i[l.a],16)/255:1,b:Number.parseInt(i[l.b]??"0",16),g:Number.parseInt(i[l.g]??"0",16),r:Number.parseInt(i[l.r]??"0",16)}:void 0}}async function v(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new p)})}var f,g;(g=f||(f={}))[g.h=1]="h",g[g.s=2]="s",g[g.l=3]="l",g[g.a=5]="a";const y=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class m{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(0,n.YLU)(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return(0,n.YLU)({h:(0,n.VGA)(e.h),l:(0,n.VGA)(e.l),s:(0,n.VGA)(e.s)})}parseString(t){if(!this.accepts(t))return;const e=y.exec(t);return e?(0,n.ayx)({a:e.length>4?(0,n.M3Y)(e[f.a]):1,h:Number.parseInt(e[f.h]??"0",10),l:Number.parseInt(e[f.l]??"0",10),s:Number.parseInt(e[f.s]??"0",10)}):void 0}}async function b(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new m)})}i(45367),i(92731);class x{async getPlugin(t){const{MovePluginInstance:e}=await i.e(77989).then(i.bind(i,51300));return new e(this._pluginManager,t)}loadOptions(){}needsPlugin(){return!0}constructor(t){this.id="move",this._pluginManager=t}}async function w(t){t.checkVersion("4.0.5"),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,(0,n.OtU)(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new x(t.pluginManager))})}class k{init(t){const e=t.options.opacity;t.opacity=(0,n.XsS)(e,1);const i=e.animation;i.enable&&(t.opacity.velocity=(0,n.VGA)(i.speed)/n.a56*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,n.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&(0,n.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}constructor(t){this.container=t}}async function M(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new k(t)))})}i(74423),i(18111),i(22489);class z{update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;let a=!1;for(const n of this._particleBouncePlugins)if(a=n.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const r=t.getPosition(),c=t.offset,l=t.getRadius(),d=(0,n.AEc)(r,l),u=o.canvas.size;!function(t){if(t.outMode!==n.Yzx.bounce&&t.outMode!==n.Yzx.split||t.direction!==n.v5k.left&&t.direction!==n.v5k.right)return;t.bounds.right<0&&t.direction===n.v5k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===n.v5k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.direction===n.v5k.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===n.v5k.left&&t.bounds.left<=0&&e<0){const e=(0,n.VGA)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===n.v5k.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===n.v5k.left&&(t.particle.position.x=s),t.outMode===n.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:d,canvasSize:u,offset:c,size:l}),function(t){if(t.outMode!==n.Yzx.bounce&&t.outMode!==n.Yzx.split||t.direction!==n.v5k.bottom&&t.direction!==n.v5k.top)return;t.bounds.bottom<0&&t.direction===n.v5k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===n.v5k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.direction===n.v5k.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===n.v5k.top&&t.bounds.top<=0&&e<0){const e=(0,n.VGA)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===n.v5k.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===n.v5k.top&&(t.particle.position.y=s),t.outMode===n.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:d,canvasSize:u,offset:c,size:l})}constructor(t){this.container=t,this.modes=[n.Yzx.bounce,n.Yzx.split],this._particleBouncePlugins=t.plugins.filter(t=>void 0!==t.particleBounce)}}class _{update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case n.x_I.normal:case n.x_I.outside:if((0,n.Tj8)(t.position,o.canvas.size,n.boI,t.getRadius(),e))return;break;case n.x_I.inside:{const{dx:e,dy:i}=(0,n.vrU)(t.position,t.moveCenter),{x:s,y:o}=t.velocity;if(s<0&&e>t.moveCenter.radius||o<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||o>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}constructor(t){this.container=t,this.modes=[n.Yzx.destroy]}}class P{update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===n.v5k.left||e===n.v5k.right))??(t.options.move.distance.vertical&&(e===n.v5k.top||e===n.v5k.bottom)))return;const o=t.options.move.gravity,a=this.container,r=a.canvas.size,c=t.getRadius();if(o.enable){const i=t.position;(!o.inverse&&i.y>r.height+c&&e===n.v5k.bottom||o.inverse&&i.y<-c&&e===n.v5k.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=r.height+c||t.velocity.y<0&&t.position.y>=-c||t.velocity.x>0&&t.position.x<=r.width+c||t.velocity.x<0&&t.position.x>=-c)return;(0,n.Tj8)(t.position,a.canvas.size,n.boI,c,e)||t.destroy()}}constructor(t){this.container=t,this.modes=[n.Yzx.none]}}const S=n.Miz.origin;class O{update(t,e,i,s){if(!this.modes.includes(s))return;const o=this.container;switch(t.outType){case n.x_I.inside:{const{x:e,y:i}=t.velocity;S.setTo(n.boI),S.length=t.moveCenter.radius,S.angle=t.velocity.angle+Math.PI,S.addTo(t.moveCenter);const{dx:s,dy:a}=(0,n.vrU)(t.position,S);if(e<=0&&s>=0||i<=0&&a>=0||e>=0&&s<=0||i>=0&&a<=0)return;t.position.x=Math.floor((0,n.vEz)({min:0,max:o.canvas.size.width})),t.position.y=Math.floor((0,n.vEz)({min:0,max:o.canvas.size.height}));const{dx:r,dy:c}=(0,n.vrU)(t.position,t.moveCenter);t.direction=Math.atan2(-c,-r),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if((0,n.Tj8)(t.position,o.canvas.size,n.boI,t.getRadius(),e))return;switch(t.outType){case n.x_I.outside:{t.position.x=Math.floor((0,n.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,n.vEz)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=(0,n.vrU)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case n.x_I.normal:{const i=t.options.move.warp,s=o.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(),c=(0,n.AEc)(t.position,r);e===n.v5k.right&&c.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,n.G0i)()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===n.v5k.left&&c.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,n.G0i)()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===n.v5k.bottom&&c.top>s.height+t.offset.y?(i||(t.position.x=(0,n.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===n.v5k.top&&c.bottom<-t.offset.y&&(i||(t.position.x=(0,n.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}constructor(t){this.container=t,this.modes=[n.Yzx.out]}}class I{init(t){this._addUpdaterIfMissing(t,n.Yzx.bounce,t=>new z(t)),this._addUpdaterIfMissing(t,n.Yzx.out,t=>new O(t)),this._addUpdaterIfMissing(t,n.Yzx.destroy,t=>new _(t)),this._addUpdaterIfMissing(t,n.Yzx.none,t=>new P(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this._updateOutMode(t,e,i.bottom??i.default,n.v5k.bottom),this._updateOutMode(t,e,i.left??i.default,n.v5k.left),this._updateOutMode(t,e,i.right??i.default,n.v5k.right),this._updateOutMode(t,e,i.top??i.default,n.v5k.top)}constructor(t){this._addUpdaterIfMissing=(t,e,i)=>{const n=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)(n,e)&&this.updaters.set(e,i(this.container))},this._updateOutMode=(t,e,i,n)=>{for(const s of this.updaters.values())s.update(t,n,e,i)},this.container=t,this.updaters=new Map}}async function E(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new I(t)))})}class C{init(t){const e=this._container,i=t.options,s=(0,n.TA3)(i.paint,t.id,i.reduceDuplicates),o=s?.color,a=o??void 0,r=s?.fill,c=s?.stroke;if(r){const i=n.A9e.create(void 0===a?void 0:n.A9e.create(void 0,a),r.color);t.fillEnabled=r.enable,t.fillOpacity=(0,n.VGA)(r.opacity),t.fillAnimation=i.animation;const s=(0,n.R5R)(this._pluginManager,i);s&&(t.fillColor=(0,n.pzy)(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(c){const i=n.A9e.create(void 0===a?void 0:n.A9e.create(void 0,a),c.color);t.strokeWidth=(0,n.VGA)(c.width)*e.retina.pixelRatio,t.strokeOpacity=(0,n.VGA)(c.opacity??1),t.strokeAnimation=i.animation;const s=(0,n.R5R)(this._pluginManager,i)??t.getFillColor();s&&(t.strokeColor=(0,n.pzy)(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:n,strokeColor:s}=t,o=!!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),a=!!n&&(void 0!==s?.h.value&&s.h.enable||void 0!==s?.s.value&&s.s.enable||void 0!==s?.l.value&&s.l.enable);return!t.destroyed&&!t.spawning&&(o||a)}update(t,e){this.isEnabled(t)&&((0,n.JvX)(t.fillColor,e),(0,n.JvX)(t.strokeColor,e))}constructor(t,e){this._container=e,this._pluginManager=t}}async function A(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new C(t.pluginManager,e)))})}var G;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(G||(G={}));const L=/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 T{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:(0,n.VGA)(e.r),g:(0,n.VGA)(e.g),b:(0,n.VGA)(e.b)}}parseString(t){if(!this.accepts(t))return;const e=L.exec(t);return e?{a:e.length>4?(0,n.M3Y)(e[G.a]):1,b:parseInt(e[G.b]??"0",10),g:parseInt(e[G.g]??"0",10),r:parseInt(e[G.r]??"0",10)}:void 0}}async function R(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new T)})}class V{init(t){const e=this._container,i=t.options.size.animation;i.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/n.a56*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,n.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&(0,n.UC0)(t,t.size,!0,t.options.size.animation.destroy,e)}constructor(t){this._container=t}}async function D(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new V(t)))})}async function Z(t){t.checkVersion("4.0.5"),await t.pluginManager.register(async t=>{await Promise.all([a(t),v(t),b(t),R(t),w(t),c(t),A(t),M(t),E(t),D(t)])})}i(7588);var F=i(39121);class j{async getPlugin(t){const{InteractivityPluginInstance:e}=await i.e(87510).then(i.bind(i,1973));return new e(this._pluginManager,t)}loadOptions(t,e,i){if(!this.needsPlugin())return;let n=e.interactivity;n?.load||(e.interactivity=n=new F.k(this._pluginManager,t)),n.load(i?.interactivity);const s=this._pluginManager.interactors?.get(t);if(s)for(const t of s)t.loadOptions&&t.loadOptions(e,i)}loadParticlesOptions(t,e,i){i?.interactivity&&(e.interactivity=(0,n.zwS)({},i.interactivity));const s=this._pluginManager.interactors?.get(t);if(s)for(const t of s)t.loadParticlesOptions?.(e,i)}needsPlugin(){return!0}constructor(t){this.id="interactivity",this._pluginManager=t}}var H=i(57970);class ${constructor(t){this.type=H.e.particles,this.container=t}}i(1526),i(92773),i(13579);i(21677),i(10621);i(44114);class q extends n.jlt{contains(t){if(super.contains(t))return!0;const{width:e,height:i}=this.canvasSize,{x:n,y:s}=t;return super.contains({x:n-e,y:s})||super.contains({x:n+e,y:s})||super.contains({x:n,y:s-i})||super.contains({x:n,y:s+i})||super.contains({x:n-e,y:s-i})||super.contains({x:n+e,y:s+i})||super.contains({x:n-e,y:s+i})||super.contains({x:n+e,y:s-i})}intersects(t){if(super.intersects(t))return!0;const{width:e,height:i}=this.canvasSize,s=t.position,o=[{x:-e,y:0},{x:e,y:0},{x:0,y:-i},{x:0,y:i},{x:-e,y:-i},{x:e,y:i},{x:-e,y:i},{x:e,y:-i}];for(const e of o){const i={x:s.x+e.x,y:s.y+e.y};let o;if(t instanceof n.jlt)o=new n.jlt(i.x,i.y,t.radius);else{const e=t;o=new n.M_G(i.x,i.y,e.size.width,e.size.height)}if(super.intersects(o))return!0}return!1}constructor(t,e,i,n){super(t,e,i),this.canvasSize=n}}class Y{load(t){(0,n.kZJ)(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=n.Oit.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}constructor(){this.blur=5,this.color=new n.Oit,this.color.value="#000",this.enable=!1}}class U{load(t){(0,n.kZJ)(t)||(void 0!==t.color&&(this.color=n.Oit.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}constructor(){this.enable=!1,this.frequency=1}}class B{load(t){(0,n.kZJ)(t)||(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=n.Oit.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}constructor(){this.blink=!1,this.color=new n.Oit,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Y,this.triangles=new U,this.width=1,this.warp=!1}}function J(t,e,i){const{dx:s,dy:o}=(0,n.vrU)(t,e),a={x:Math.abs(s),y:Math.abs(o)},r={x:Math.min(a.x,i.width-a.x),y:Math.min(a.y,i.height-a.y)};return Math.hypot(r.x,r.y)}class W extends ${get maxDistance(){return this._maxDistance}clear(){}init(){this.container.particles.linksColor=void 0,this.container.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[],t.linksDistance&&t.linksDistance>this._maxDistance&&(this._maxDistance=t.linksDistance);const e=t.getPosition(),i=this.container,s=i.canvas.size;if(e.x<n.boI.x||e.y<n.boI.y||e.x>s.width||e.y>s.height)return;const o=t.options.links,a=o.opacity,r=t.retina.linksDistance??0,c=o.warp,l=c?new q(e.x,e.y,r,s):new n.jlt(e.x,e.y,r),d=i.particles.grid.query(l);for(const i of d){const l=i.options.links;if(t===i||!l?.enable||o.id!==l.id||i.spawning||i.destroyed||!i.links||t.links.some(t=>t.destination===i)||i.links.some(e=>e.destination===t))continue;const d=i.getPosition();if(d.x<n.boI.x||d.y<n.boI.y||d.x>s.width||d.y>s.height)continue;const u=(0,n.vrU)(e,d).distance,h=c&&l.warp?J(e,d,s):u,p=Math.min(u,h);if(p>r)continue;const v=(1-p/r)*a;this._setColor(t),t.links.push({destination:i,opacity:v,color:this._getLinkColor(t,i),isWarped:h<u})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){t.links??=new B;for(const i of e)t.links.load(i?.links)}reset(){}_getLinkColor(t,e){const i=this.container,s=t.options.links;if(!s)return;const o=void 0!==s.id?i.particles.linksColors.get(s.id):i.particles.linksColor;return(0,n._hh)(t,e,o)}_setColor(t){if(!t.options.links)return;const e=this.container,i=t.options.links;let s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);s||(s=(0,n.PGG)(this._pluginManager,i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s))}constructor(t,e){super(e),this._pluginManager=t,this._maxDistance=0}}class Q{async getPlugin(t){const{LinkInstance:e}=await i.e(57252).then(i.bind(i,98927));return new e(this._pluginManager,t)}loadOptions(){}needsPlugin(){return!0}constructor(t){this.id="links",this._pluginManager=t}}async function N(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{const e=t.pluginManager;!function(t){if(!t.pluginManager.addInteractor)throw new Error("tsParticles Interactivity Plugin is not loaded")}(t),e.addPlugin(new Q(e)),e.addInteractor?.("particlesLinks",t=>Promise.resolve(new W(e,t)))})}const K={background:{color:"#000000"},particles:{number:{value:100},links:{distance:150,enable:!0},move:{enable:!0},paint:{fill:{color:{value:"#ffffff"}}},size:{value:1},shape:{type:"circle"}}};async function X(t){await t.pluginManager.register(async t=>{await Promise.all([Z(t),(async()=>{await async function(t){t.checkVersion("4.0.5"),await t.pluginManager.register(t=>{const e=t,i=e.pluginManager;i.addPlugin(new j(i)),i.initializers.interactors??=new Map,i.interactors??=new Map,i.addInteractor=(t,e)=>{i.initializers.interactors??=new Map,i.initializers.interactors.set(t,e)},i.getInteractors=async(t,e=!1)=>(i.interactors??=new Map,i.initializers.interactors??=new Map,(0,n.HQK)(t,i.interactors,i.initializers.interactors,e)),i.setOnClickHandler=t=>{const{items:i}=e;if(!i.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");i.forEach(e=>{const i=e;i.addClickHandler?.(t)})}})}(t),await N(t)})()]),t.pluginManager.addPreset("links",K)})}}};