tsparticles 1.41.1 → 1.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Core/Particle.js +2 -2
- package/browser/Core/Particle.js +2 -2
- package/esm/Core/Particle.js +2 -2
- package/package.json +1 -1
- package/report.html +2 -2
- package/report.slim.html +2 -2
- package/tsparticles.engine.js +2 -2
- package/tsparticles.engine.min.js +2 -2
- package/tsparticles.interaction.external.attract.js +2 -2
- package/tsparticles.interaction.external.attract.min.js +1 -1
- package/tsparticles.interaction.external.bounce.js +2 -2
- package/tsparticles.interaction.external.bounce.min.js +1 -1
- package/tsparticles.interaction.external.bubble.js +2 -2
- package/tsparticles.interaction.external.bubble.min.js +1 -1
- package/tsparticles.interaction.external.connect.js +2 -2
- package/tsparticles.interaction.external.connect.min.js +1 -1
- package/tsparticles.interaction.external.grab.js +2 -2
- package/tsparticles.interaction.external.grab.min.js +1 -1
- package/tsparticles.interaction.external.repulse.js +2 -2
- package/tsparticles.interaction.external.repulse.min.js +1 -1
- package/tsparticles.interaction.external.trail.js +2 -2
- package/tsparticles.interaction.external.trail.min.js +1 -1
- package/tsparticles.interaction.particles.attract.js +2 -2
- package/tsparticles.interaction.particles.attract.min.js +1 -1
- package/tsparticles.interaction.particles.collisions.js +2 -2
- package/tsparticles.interaction.particles.collisions.min.js +1 -1
- package/tsparticles.interaction.particles.links.js +2 -2
- package/tsparticles.interaction.particles.links.min.js +1 -1
- package/tsparticles.js +2 -2
- package/tsparticles.min.js +2 -2
- package/tsparticles.pathseg.min.js +1 -1
- package/tsparticles.plugins.absorbers.js +2 -2
- package/tsparticles.plugins.absorbers.min.js +1 -1
- package/tsparticles.plugins.emitters.js +2 -2
- package/tsparticles.plugins.emitters.min.js +1 -1
- package/tsparticles.plugins.polygonMask.js +2 -2
- package/tsparticles.plugins.polygonMask.min.js +1 -1
- package/tsparticles.shape.circle.min.js +1 -1
- package/tsparticles.shape.image.js +2 -2
- package/tsparticles.shape.image.min.js +1 -1
- package/tsparticles.shape.line.min.js +1 -1
- package/tsparticles.shape.polygon.min.js +1 -1
- package/tsparticles.shape.square.min.js +1 -1
- package/tsparticles.shape.star.min.js +1 -1
- package/tsparticles.shape.text.js +2 -2
- package/tsparticles.shape.text.min.js +1 -1
- package/tsparticles.slim.js +2 -2
- package/tsparticles.slim.min.js +2 -2
- package/tsparticles.updater.angle.js +2 -2
- package/tsparticles.updater.angle.min.js +1 -1
- package/tsparticles.updater.color.js +2 -2
- package/tsparticles.updater.color.min.js +1 -1
- package/tsparticles.updater.life.js +2 -2
- package/tsparticles.updater.life.min.js +1 -1
- package/tsparticles.updater.opacity.js +2 -2
- package/tsparticles.updater.opacity.min.js +1 -1
- package/tsparticles.updater.outModes.js +2 -2
- package/tsparticles.updater.outModes.min.js +1 -1
- package/tsparticles.updater.roll.js +2 -2
- package/tsparticles.updater.roll.min.js +1 -1
- package/tsparticles.updater.size.js +2 -2
- package/tsparticles.updater.size.min.js +1 -1
- package/tsparticles.updater.strokeColor.js +2 -2
- package/tsparticles.updater.strokeColor.min.js +1 -1
- package/tsparticles.updater.tilt.js +2 -2
- package/tsparticles.updater.tilt.min.js +1 -1
- package/tsparticles.updater.wobble.js +2 -2
- package/tsparticles.updater.wobble.min.js +1 -1
- package/umd/Core/Particle.js +2 -2
package/tsparticles.slim.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tsParticles v1.41.
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var o in i)t.o(i,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:i[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e,i){return Math.min(Math.max(t,e),i)}function o(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function s(t){const e=r(t);let i=a(t);return e===i&&(i=0),Math.random()*(e-i)+i}function n(t){return"number"==typeof t?t:s(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function l(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=a(t),o=r(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:l(i,o)}function c(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return n(i?l(t.value,o):t.value)}function d(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}function h(t,e){return d(t,e).distance}function u(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}function v(t){const e=$t.origin;return e.length=1,e.angle=t,e}function p(t,e,i,o){return $t.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function f(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function y(t,e,i,o,s,n){const a={bounced:!1};return e.min>=o.min&&e.min<=o.max&&e.max>=o.min&&e.max<=o.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function m(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function b(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function g(){return b()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function w(){return b()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function x(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function k(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function z(t){return Math.floor(Math.random()*t.length)}function M(t,e,i=!0){return t[void 0!==e&&i?e%t.length:z(t)]}function C(t,e,i,o){return P(T(t,null!=i?i:0),e,o)}function P(t,e,i){let o=!0;return i&&"bottom"!==i||(o=t.top<e.height),!o||i&&"left"!==i||(o=t.right>0),!o||i&&"right"!==i||(o=t.left<e.width),!o||i&&"top"!==i||(o=t.bottom>0),o}function T(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function S(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map((t=>S(n[e],t))):S(n[e],o)}}return t}function O(t,e){return e instanceof Array?!!e.find((e=>e.enable&&x(t,e.mode))):x(t,e.mode)}function R(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&x(t,e)&&E(o,i)}else{const o=e.mode;e.enable&&x(t,o)&&E(e,i)}}function E(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}function I(t,e){if(e&&t)return t instanceof Array?t.find((t=>m(e,t.selectors))):m(e,t.selectors)?t:void 0}function D(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:$t.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function A(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:a,dy:r}=d(n,s);if(i*a+o*r>=0){const i=-Math.atan2(r,a),o=t.mass,s=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,o,s),d=p(l,n,o,s),h=c.rotate(-i),u=d.rotate(-i);t.velocity.x=h.x*t.factor.x,t.velocity.y=h.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function L(t,e){const i=T(t.getPosition(),t.getRadius()),o=y({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,c(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=y({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,c(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}function q(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function H(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?$({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?Y({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function F(t,e,i=!0){var o,s,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===St.randomColorValue?K():B(a.value);else if(a.value instanceof Array){r=F({value:M(a.value,e,i)})}else{const t=a.value,e=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==e.r)r=e;else{const e=null!==(s=t.hsl)&&void 0!==s?s:a.value;if(void 0!==e.h&&void 0!==e.l)r=j(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=X(e))}}}return r}function V(t,e,i=!0){const o=F(t,e,i);return void 0!==o?W(o):void 0}function W(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:(s+n)/2,s:0};return s!=n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function _(t){var e;return null===(e=H(t))||void 0===e?void 0:e.a}function B(t){return H(t)}function j(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=q(o,t,i.h+1/3),e.g=q(o,t,i.h),e.b=q(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function $(t){const e=j(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function G(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),o=i?2*(1-e/i):0;return{h:t.h,s:100*o,v:100*i}}function U(t){const e=G(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function N(t){const e=t.v/100,i=e*(1-t.s/100/2),o=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*o}}function J(t){const e=N(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}function X(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function Y(t){const e=X(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Q(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),o=i-Math.min(e.r,e.g,e.b);let s=0;i===e.r?s=(e.g-e.b)/o*60:i===e.g?s=60*(2+(e.b-e.r)/o):i===e.b&&(s=60*(4+(e.r-e.g)/o));return{h:s,s:100*(i?o/i:0),v:100*i}}function Z(t){const e=Q(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function K(t){const e=null!=t?t:0;return{b:Math.floor(s(l(e,256))),g:Math.floor(s(l(e,256))),r:Math.floor(s(l(e,256)))}}function tt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function et(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function it(t,e){return et(N(t),e)}function ot(t,e,i,s){let n=t,a=e;return void 0===n.r&&(n=j(t)),void 0===a.r&&(a=j(e)),{b:o(n.b,a.b,i,s),g:o(n.g,a.g,i,s),r:o(n.r,a.r,i,s)}}function st(t,e,i){var o,s;if(i===St.randomColorValue)return K();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),n=null!==(s=null==e?void 0:e.getFillColor())&&void 0!==s?s:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return ot(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return j(t)}}}function nt(t,e,i){const o="string"==typeof t?t:t.value;return o===St.randomColorValue?i?F({value:o}):e?St.randomColorValue:St.midColorValue:F({value:o})}function at(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function rt(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(lt(o.h,e.h,i),lt(o.s,e.s,i),lt(o.l,e.l,i)),o}function lt(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function ct(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function dt(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}function ht(t,e){t.clearRect(0,0,e.width,e.height)}function ut(t,e,i,o,s,n,a,r,l,c,u,v){let p=!1;if(h(i,o)<=s)ct(t,i,o),p=!0;else if(a){let e,a;const r=d(i,{x:o.x-n.width,y:o.y});if(r.distance<=s){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=d(i,{x:o.x,y:o.y-n.height});if(t.distance<=s){const o=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:o,y:0},a={x:o,y:n.height}}else{const t=d(i,{x:o.x-n.width,y:o.y-n.height});if(t.distance<=s){const o=i.y-t.dy/t.dx*i.x;e={x:-o/(t.dy/t.dx),y:o},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(ct(t,i,e),ct(t,o,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=tt(c,u),v.enable){const e=F(v.color);e&&(t.shadowBlur=v.blur,t.shadowColor=tt(e))}t.stroke()}}function vt(t,e,i,o,s,n,a,r){!function(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}(t,e,i,o),s&&(t.globalCompositeOperation=n),t.fillStyle=tt(a,r),t.fill()}function pt(t,e,i,o,s){t.save(),ct(t,o,s),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function ft(t,e,i,o){const s=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=ot(n,a,e.getRadius(),i.getRadius()),d=t.createLinearGradient(r.x,r.y,l.x,l.y);return d.addColorStop(0,et(n,o)),d.addColorStop(s>1?1:s,tt(c,o)),d.addColorStop(1,et(a,o)),d}function yt(t,e,i,o,s,n){t.save(),ct(t,i,o),t.strokeStyle=tt(s,n),t.lineWidth=e,t.stroke(),t.restore()}function mt(t,e,i,o,s,n,a,r,l,c,d,h){var u,v,p,f,y,m;const b=i.getPosition(),g=i.options.tilt,w=i.options.roll;if(e.save(),g.enable||w.enable){const t=w.enable&&i.roll,o=g.enable&&i.tilt,s=t&&("horizontal"===w.mode||"both"===w.mode),n=t&&("vertical"===w.mode||"both"===w.mode);e.setTransform(s?Math.cos(i.roll.angle):1,o?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,o?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,b.x,b.y)}else e.translate(b.x,b.y);e.beginPath();const x=(null!==(v=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==v?v:0)+(i.options.rotate.path?i.velocity.angle:0);0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r);const k=i.shadowColor;if(d.enable&&k&&(e.shadowBlur=d.blur,e.shadowColor=tt(k),e.shadowOffsetX=d.offset.x,e.shadowOffsetY=d.offset.y),h){const t=h.angle.value,i="radial"===h.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of h.colors)i.addColorStop(t.stop,et({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(f=null===(p=t.opacity)||void 0===p?void 0:p.value)&&void 0!==f?f:c));e.fillStyle=i}else s&&(e.fillStyle=s);const z=i.stroke;e.lineWidth=null!==(y=i.strokeWidth)&&void 0!==y?y:0,n&&(e.strokeStyle=n),bt(t,e,i,l,c,o),(null!==(m=null==z?void 0:z.width)&&void 0!==m?m:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),g.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,b.x,b.y):e.translate(b.x,b.y),0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r),gt(t,e,i,l,c,o),e.restore()}function bt(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,o,s,n,t.retina.pixelRatio)}function gt(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,o,s,n,t.retina.pixelRatio)}function wt(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function xt(t,e,i,o){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,o),t.restore())}function kt(t,e,i,o,s,n,a,r,l){const c=e.getPosition();if(i&&(t.strokeStyle=et(i,s)),0===n)return;t.lineWidth=n;const d=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,o/2,2*o,d,r,l),t.stroke()}function zt(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}t.r(e),t.d(e,{Canvas:function(){return Ut},Circle:function(){return Ct},CircleWarp:function(){return Tt},Constants:function(){return St},Container:function(){return to},Engine:function(){return co},EventListeners:function(){return Rt},ExternalInteractorBase:function(){return Et},FrameManager:function(){return It},InteractionManager:function(){return qt},Loader:function(){return so},Main:function(){return co},Particle:function(){return Gi},Particles:function(){return Xi},ParticlesInteractorBase:function(){return Ht},ParticlesMover:function(){return Ft},Plugins:function(){return _t},Point:function(){return Bt},QuadTree:function(){return jt},Range:function(){return Mt},Rectangle:function(){return Pt},Retina:function(){return Yi},Vector:function(){return $t},Vector3d:function(){return Gt},alterHsl:function(){return zt},animate:function(){return g},areBoundsInside:function(){return P},arrayRandomIndex:function(){return z},calcEasing:function(){return f},calculateBounds:function(){return T},cancelAnimation:function(){return w},circleBounce:function(){return A},circleBounceDataFromParticle:function(){return D},clamp:function(){return i},clear:function(){return ht},collisionVelocity:function(){return p},colorMix:function(){return ot},colorToHsl:function(){return V},colorToRgb:function(){return F},deepExtend:function(){return S},divMode:function(){return I},divModeExecute:function(){return R},drawConnectLine:function(){return pt},drawEllipse:function(){return kt},drawGrabLine:function(){return yt},drawLinkLine:function(){return ut},drawLinkTriangle:function(){return vt},drawParticle:function(){return mt},drawParticlePlugin:function(){return xt},drawPlugin:function(){return wt},drawShape:function(){return bt},drawShapeAfterEffect:function(){return gt},getDistance:function(){return h},getDistances:function(){return d},getHslAnimationFromHsl:function(){return rt},getHslFromAnimation:function(){return at},getLinkColor:function(){return st},getLinkRandomColor:function(){return nt},getParticleBaseVelocity:function(){return v},getParticleDirectionAngle:function(){return u},getRandomRgbColor:function(){return K},getRangeMax:function(){return r},getRangeMin:function(){return a},getRangeValue:function(){return n},getStyleFromHsl:function(){return et},getStyleFromHsv:function(){return it},getStyleFromRgb:function(){return tt},getValue:function(){return c},gradient:function(){return ft},hslToHsv:function(){return G},hslToRgb:function(){return j},hslaToHsva:function(){return U},hslaToRgba:function(){return $},hsvToHsl:function(){return N},hsvToRgb:function(){return X},hsvaToHsla:function(){return J},hsvaToRgba:function(){return Y},isDivModeEnabled:function(){return O},isInArray:function(){return x},isPointInside:function(){return C},isSsr:function(){return b},itemFromArray:function(){return M},loadFont:function(){return k},mix:function(){return o},pJSDom:function(){return is},paintBase:function(){return dt},particlesJS:function(){return es},randomInRange:function(){return s},rectBounce:function(){return L},rgbToHsl:function(){return W},rgbToHsv:function(){return Q},rgbaToHsva:function(){return Z},setRangeValue:function(){return l},singleDivModeExecute:function(){return E},stringToAlpha:function(){return _},stringToRgb:function(){return B},tsParticles:function(){return ts}});class Mt{constructor(t,e){this.position={x:t,y:e}}}class Ct extends Mt{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return h(t,this.position)<=this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||o<=r*r)}return!1}}class Pt extends Mt{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.x<n.x+o&&a.x+i>n.x&&a.y<n.y+s&&a.y+r>n.y}return!1}}class Tt extends Ct{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Ct(o.x,o.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Pt(o.x,o.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class St{}function Ot(t,e,i,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}St.generatedAttribute="generated",St.randomColorValue="random",St.midColorValue="mid",St.touchEndEvent="touchend",St.mouseDownEvent="mousedown",St.mouseUpEvent="mouseup",St.mouseMoveEvent="mousemove",St.touchStartEvent="touchstart",St.touchMoveEvent="touchmove",St.mouseLeaveEvent="mouseleave",St.mouseOutEvent="mouseout",St.touchCancelEvent="touchcancel",St.resizeEvent="resize",St.visibilityChangeEvent="visibilitychange",St.noPolygonDataLoaded="No polygon data loaded.",St.noPolygonFound="No polygon found, you need to specify SVG url in config.";class Rt{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,o=i.actualOptions,s=o.interactivity.detectsOn;let n=St.mouseLeaveEvent;if("window"===s)i.interactivity.element=window,n=St.mouseOutEvent;else if("parent"===s&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!b()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?Ot(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(Ot(r,St.mouseMoveEvent,this.mouseMoveHandler,t),Ot(r,St.touchStartEvent,this.touchStartHandler,t),Ot(r,St.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(Ot(r,St.touchEndEvent,this.touchEndClickHandler,t),Ot(r,St.mouseUpEvent,this.mouseUpHandler,t),Ot(r,St.mouseDownEvent,this.mouseDownHandler,t)):Ot(r,St.touchEndEvent,this.touchEndHandler,t),Ot(r,n,this.mouseLeaveHandler,t),Ot(r,St.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===i.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(i.canvas.element)):Ot(window,St.resizeEvent,this.resizeHandler,t)),document&&Ot(document,St.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())}),500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,o,s,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let d;l.interactivity.mouse.inside=!0;const h=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(h){const t=h.getBoundingClientRect();d={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,s=e.currentTarget,n=l.canvas.element;if(t&&s&&n){const i=t.getBoundingClientRect(),o=s.getBoundingClientRect(),a=n.getBoundingClientRect();d={x:e.offsetX+2*i.left-(o.left+a.left),y:e.offsetY+2*i.top-(o.top+a.top)}}else d={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(o=e.offsetY)&&void 0!==o?o:e.clientY}}else e.target===l.canvas.element&&(d={x:null!==(s=e.offsetX)&&void 0!==s?s:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],o=null==h?void 0:h.getBoundingClientRect();d={x:i.clientX-(null!==(a=null==o?void 0:o.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;d&&(d.x*=u,d.y*=u),l.interactivity.mouse.position=d,l.interactivity.status=St.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=St.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,o=e.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const o=i.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find((t=>t.name===e));i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,o=i.interactivity.modes.push.quantity,s=i.interactivity.modes.remove.quantity;switch(t){case"push":if(o>0){const t=M([void 0,...i.interactivity.modes.push.groups]),s=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(o,e.interactivity.mouse,s,t)}break;case"remove":e.particles.removeQuantity(s);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout((()=>{e.destroyed||(e.repulse.clicking=!1)}),1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout((()=>{e.destroyed||(e.attract.clicking=!1)}),1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class Et{constructor(t){this.container=t,this.type=0}}class It{constructor(t){this.container=t}async nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t<i.lastFrameTime+1e3/i.fpsLimit)return void i.draw(!1);null!==(e=i.lastFrameTime)&&void 0!==e||(i.lastFrameTime=t);const o=t-i.lastFrameTime,s={value:o,factor:60*o/1e3};if(i.lifeTime+=s.value,i.lastFrameTime=t,o>1e3)return void i.draw(!1);if(await i.particles.draw(s),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var Dt,At=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Lt=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class qt{constructor(t,e){this.container=e,Dt.set(this,void 0),At(this,Dt,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=Lt(this,Dt,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}async externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&await e.interact(t)}async particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}}Dt=new WeakMap;class Ht{constructor(t){this.container=t,this.type=1}}class Ft{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,o,s,a,l;const c=t.options,h=c.move;if(!h.enable)return;const u=this.container,v=this.getProximitySpeedFactor(t),p=(null!==(i=(a=t.retina).moveSpeed)&&void 0!==i?i:a.moveSpeed=n(h.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,f=null!==(o=(l=t.retina).moveDrift)&&void 0!==o?o:l.moveDrift=n(t.options.move.drift)*u.retina.pixelRatio,y=r(c.size.value)*u.retina.pixelRatio,m=p*((h.size?t.getRadius()/y:1)*v*(e.factor||1)/2);this.applyPath(t,e);const b=h.gravity,g=b.enable&&b.inverse?-1:1;b.enable&&m&&(t.velocity.y+=g*(b.acceleration*e.factor)/(60*m)),f&&m&&(t.velocity.x+=f*e.factor/(60*m));const w=t.moveDecay;1!=w&&t.velocity.multTo(w);const x=t.velocity.mult(m),k=null!==(s=t.retina.maxSpeed)&&void 0!==s?s:u.retina.maxSpeed;b.enable&&b.maxSpeed>0&&(!b.inverse&&x.y>=0&&x.y>=k||b.inverse&&x.y<=0&&x.y<=-k)&&(x.y=g*k,m&&(t.velocity.y=x.y/m));const z=t.options.zIndex,M=(1-t.zIndexFactor)**z.velocityRate;h.spin.enable?this.spin(t,m):(1!=M&&x.multTo(M),t.position.addTo(x),h.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:o}=d(e,t.position),s=Math.abs(i),n=Math.abs(o),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||s<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,o=t.velocity;a&&(i.x<e.x&&o.x<0||i.x>e.x&&o.x>0)&&(o.x*=-Math.random()),r&&(i.y<e.y&&o.y<0||i.y>e.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const o={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/s)}applyPath(t,e){const o=t.options.move.path;if(!o.enable)return;const s=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=s.pathGenerator.generate(t);t.velocity.addTo(n),o.clamp&&(t.velocity.x=i(t.velocity.x,-1,1),t.velocity.y=i(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(b()||!i.interactivity.events.onHover.parallax.enable)return;const o=i.interactivity.events.onHover.parallax.force,s=e.interactivity.mouse.position;if(!s)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,d=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(d-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!x("slow",i.interactivity.events.onHover.mode))return 1;const o=this.container.interactivity.mouse.position;if(!o)return 1;const s=h(o,t.getPosition()),n=e.retina.slowModeRadius;if(s>n)return 1;return(s/n||0)/i.interactivity.modes.slow.factor}}var Vt,Wt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};class _t{constructor(t){Vt.set(this,void 0),Wt(this,Vt,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find((e=>e.id===t))}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map((e=>e(t))),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map((e=>e(t))),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}Vt=new WeakMap;class Bt{constructor(t,e){this.position=t,this.particle=e}}class jt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new jt(new Pt(t,e,i/2,o/2),s),this.northWest=new jt(new Pt(t+i/2,e,i/2,o/2),s),this.southEast=new jt(new Pt(t,e+o/2,i/2,o/2),s),this.southWest=new jt(new Pt(t+i/2,e+o/2,i/2,o/2),s),this.divided=!0}insert(t){var e,i,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(e=this.northEast)||void 0===e?void 0:e.insert(t))||(null===(i=this.northWest)||void 0===i?void 0:i.insert(t))||(null===(o=this.southEast)||void 0===o?void 0:o.insert(t))||(null===(s=this.southWest)||void 0===s?void 0:s.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new Ct(t.x,t.y,e))}queryCircleWarp(t,e,i){const o=i,s=i;return this.query(new Tt(t.x,t.y,e,void 0!==o.canvas?o.canvas.size:s))}queryRectangle(t,e){return this.query(new Pt(t.x,t.y,e.width,e.height))}query(t,e){var i,o,s,n;const a=null!=e?e:[];if(!t.intersects(this.rectangle))return[];for(const e of this.points)!t.contains(e.position)&&h(t.position,e.position)>e.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class $t{constructor(t,e){let i,o;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,o]=[e.x,e.y]}else[i,o]=[t,e];this.x=i,this.y=o}static clone(t){return $t.create(t.x,t.y)}static create(t,e){return new $t(t,e)}static get origin(){return $t.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return $t.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return $t.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return $t.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return $t.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return $t.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return $t.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class Gt extends $t{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return Gt.create(t.x,t.y,t.z)}static create(t,e,i){return new Gt(t,e,i)}add(t){return t instanceof Gt?Gt.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof Gt&&(this.z+=t.z)}sub(t){return t instanceof Gt?Gt.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof Gt&&(this.z-=t.z)}mult(t){return Gt.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return Gt.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return Gt.clone(this)}setTo(t){super.setTo(t),t instanceof Gt&&(this.z=t.z)}}class Ut{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&St.generatedAttribute in t.dataset?"true"===t.dataset[St.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=S({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{ht(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?(ht(e,this.size),this.paintBase(tt(this.coverColor,this.coverColor.a))):this.paintBase()}))}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(tt(this.trailFillColor,1/e.length)):this.draw((t=>{ht(t,this.size)}))}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,o=i.width,s=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/o,height:i.height/s})}drawConnectLine(t,e){this.draw((i=>{var o;const s=this.lineStyle(t,e);if(!s)return;const n=t.getPosition(),a=e.getPosition();pt(i,null!==(o=t.retina.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)}))}drawGrabLine(t,e,i,o){const s=this.container;this.draw((n=>{var a;const r=t.getPosition();yt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,e,i)}))}drawParticle(t,e){var i,o,s,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[d,h]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,v=u.enable&&Math.random()<u.frequency;if(!d||!h){const t=V(u.color);d||(d=v&&void 0!==t?t:l||void 0),h||(h=v&&void 0!==t?t:c||void 0)}const p=this.container.actualOptions,f=t.options.zIndex,y=(1-t.zIndexFactor)**f.opacityRate,m=t.getRadius(),b=v?u.opacity:null!==(n=null!==(o=t.bubble.opacity)&&void 0!==o?o:null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,g=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:b,w=b*y,x=d?et(d,w):void 0;(x||h)&&this.draw((i=>{const o=(1-t.zIndexFactor)**f.sizeRate,s=h?et(h,g*y):x;if(m<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);mt(this.container,i,t,e,x,s,p.backgroundMask.enable,p.backgroundMask.composite,m*o,w,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{wt(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((o=>{xt(o,t,e,i)}))}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=F(t.color);i.backgroundColor=e?tt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=F(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=F(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,o]of this.container.plugins)if(!e&&o.particleFillColor&&(e=V(o.particleFillColor(t))),!i&&o.particleStrokeColor&&(i=V(o.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=S({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const o=e.style[i];o&&t.style.setProperty(i,o,"important")}}paintBase(t){this.draw((e=>{dt(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const o=this.container.actualOptions.interactivity.modes.connect;return ft(i,t,e,o.links.opacity)}))}}class Nt{constructor(){this.value="#fff"}static create(t,e){const i=new Nt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class Jt{constructor(){this.color=new Nt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Xt{constructor(){this.color=new Nt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Yt{constructor(){this.composite="destination-out",this.cover=new Xt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Qt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Zt{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class Kt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){var e,i;if(void 0===t)return;const o=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==o&&(this.ids=o),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class te{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class ee{constructor(){this.enable=!1,this.mode=[],this.parallax=new te}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class ie{constructor(){this.onClick=new Zt,this.onDiv=new Kt,this.onHover=new ee,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,o;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const s=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map((t=>{const e=new Kt;return e.load(t),e})):(this.onDiv=new Kt,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class oe{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class se{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class ne{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map((t=>Nt.create(void 0,t))):(this.color instanceof Array&&(this.color=new Nt),this.color=Nt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class ae extends ne{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class re extends ne{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ae;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ae),this.divs.load(t.divs)))}}class le{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class ce{constructor(){this.distance=80,this.links=new le,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class de{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class he{constructor(){this.distance=100,this.links=new de}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class ue{constructor(){this.start=new Nt,this.stop=new Nt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=Nt.create(this.start,t.start),this.stop=Nt.create(this.stop,t.stop))}}class ve{constructor(){this.gradient=new ue,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class pe{constructor(){this.color=new Nt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=Nt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class fe{constructor(){this.area=new ve,this.shadow=new pe}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class ye{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class me{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class be{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ge extends be{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((()=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class we extends be{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ge;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ge),this.divs.load(t.divs)))}}class xe{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class ke{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class ze{constructor(){this.attract=new oe,this.bounce=new se,this.bubble=new re,this.connect=new ce,this.grab=new he,this.light=new fe,this.push=new ye,this.remove=new me,this.repulse=new we,this.slow=new xe,this.trail=new ke}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class Me{constructor(){this.detectsOn="window",this.events=new ie,this.modes=new ze}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Ce{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=S({},t.options)))}}class Pe{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Te{constructor(){this.disable=!1,this.reduce=new Pe}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Se{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=l(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Oe{constructor(){this.h=new Se,this.s=new Se,this.l=new Se}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Re extends Nt{constructor(){super(),this.animation=new Oe}static create(t,e){const i=new Re;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class Ee{constructor(){this.angle=new Ie,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const e=new Ae;return e.load(t),e}))),void 0!==t.type&&(this.type=t.type))}}class Ie{constructor(){this.value=0,this.animation=new Le,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class De{constructor(){this.value=0,this.animation=new qe}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=l(t.value)))}}class Ae{constructor(){this.stop=0,this.value=new Re}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=Re.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new De,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class Le{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class qe{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class He{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class Fe{constructor(){this.random=new He,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=l(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class Ve extends Fe{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class We{constructor(){this.horizontal=new Ve,this.vertical=new Ve}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class _e{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Be{constructor(){this.bounce=new We,this.enable=!1,this.mode="bounce",this.overlap=new _e}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class je extends Fe{constructor(){super(),this.value=3}}class $e extends Fe{constructor(){super(),this.value={min:4,max:9}}}class Ge{constructor(){this.count=1,this.factor=new je,this.rate=new $e,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class Ue{constructor(){this.mode="none",this.split=new Ge}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class Ne extends Fe{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Je extends Fe{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Xe{constructor(){this.count=0,this.delay=new Ne,this.duration=new Je}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Ye{constructor(){this.blur=5,this.color=new Nt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Qe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ze{constructor(){this.blink=!1,this.color=new Nt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ye,this.triangles=new Qe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=Nt.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))}}class Ke{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,o,s;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class ti{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class ei{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ii{constructor(){this.default="out"}load(t){var e,i,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class oi extends Fe{constructor(){super()}}class si{constructor(){this.clamp=!0,this.delay=new oi,this.enable=!1,this.options={}}load(t){void 0!==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=S(this.options,t.options)))}}class ni{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=l(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?S({},t.position):void 0)}}class ai{constructor(){this.enable=!1,this.length=10,this.fillColor=new Nt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=Nt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ri{constructor(){this.angle=new ti,this.attract=new Ke,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new ei,this.path=new si,this.outModes=new ii,this.random=!1,this.size=!1,this.speed=2,this.spin=new ni,this.straight=!1,this.trail=new ai,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:S({},t.distance)),void 0!==t.drift&&(this.drift=l(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=l(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class li{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class ci extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class di extends Fe{constructor(){super(),this.animation=new ci,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class hi extends Fe{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class ui{constructor(){this.animation=new li,this.enable=!1,this.opacity=1,this.rotation=new hi,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)))}}class vi{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class pi{constructor(){this.density=new vi,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class fi extends Fe{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class yi{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class mi{constructor(){this.darken=new yi,this.enable=!1,this.enlighten=new yi,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=Nt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=l(t.speed)))}}class bi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class gi extends Fe{constructor(){super(),this.animation=new bi,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class wi{constructor(){this.blur=0,this.color=new Nt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class xi{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==s)for(const t in s){const e=s[t];void 0!==e&&(this.options[t]=S(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=S(null!==(s=this.options[e])&&void 0!==s?s:[],t),this.options[i]&&!o||(this.options[i]=S(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=S(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=S(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class ki extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class zi extends Fe{constructor(){super(),this.animation=new ki,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Mi{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Re.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ci{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Pi extends Fe{constructor(){super(),this.animation=new Ci,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ti{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Si{constructor(){this.lines=new Ti,this.particles=new Ti}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class Oi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=l(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=l(t.speed)))}}class Ri extends Fe{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class Ei{constructor(){this.bounce=new We,this.collisions=new Be,this.color=new Re,this.destroy=new Ue,this.gradient=[],this.groups={},this.life=new Xe,this.links=new Ze,this.move=new ri,this.number=new pi,this.opacity=new di,this.orbit=new ui,this.reduceDuplicates=!1,this.repulse=new fi,this.roll=new mi,this.rotate=new gi,this.shadow=new wi,this.shape=new xi,this.size=new zi,this.stroke=new Mi,this.tilt=new Pi,this.twinkle=new Si,this.wobble=new Oi,this.zIndex=new Ri}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(Re.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=S(null!==(o=this.groups[e])&&void 0!==o?o:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const d=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==d&&(this.collisions.enable=d),this.collisions.load(t.collisions);const h=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;h&&(h instanceof Array?this.stroke=h.map((t=>{const e=new Mi;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new Mi),this.stroke.load(h)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const e=new Ee;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new Ee),this.gradient.load(u)))}}class Ii{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=S({},t.options)))}}class Di{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Ai{constructor(){this.name="",this.default=new Di}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=S({},t.options)))}}var Li,qi,Hi,Fi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Vi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Wi{constructor(t){Li.add(this),qi.set(this,void 0),Fi(this,qi,t,"f"),this.autoPlay=!0,this.background=new Jt,this.backgroundMask=new Yt,this.fullScreen=new Qt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me,this.manualParticles=[],this.motion=new Te,this.particles=new Ei,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o,s,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),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 l=null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Ce;return e.load(t),e}))),this.motion.load(t.motion),this.particles.load(t.particles),this.style=S(this.style,t.style),Vi(this,qi,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new Ii;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=new Ai;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(s=Vi(this,Li,"m",Hi).call(this,"dark"))||void 0===s?void 0:s.name,this.defaultLightTheme=null===(n=Vi(this,Li,"m",Hi).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=Vi(this,Li,"m",Hi).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==o?void 0:o.options),null==o?void 0:o.maxWidth}importPreset(t){this.load(Vi(this,qi,"f").plugins.getPreset(t))}}qi=new WeakMap,Li=new WeakSet,Hi=function(t){var e;return null!==(e=this.themes.find((e=>e.default.value&&e.default.mode===t)))&&void 0!==e?e:this.themes.find((t=>t.default.value&&"any"===t.default.mode))};var _i,Bi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},ji=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const $i=t=>{(x(t.outMode,t.checkModes)||x(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class Gi{constructor(t,e,o,l,d,v){var p,f,y,m,b,g,w,x,k;this.id=e,this.container=o,this.group=v,_i.set(this,void 0),Bi(this,_i,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const z=o.retina.pixelRatio,C=o.actualOptions,P=new Ei;P.load(C.particles);const T=P.shape.type,S=P.reduceDuplicates;if(this.shape=T instanceof Array?M(T,this.id,S):T,null==d?void 0:d.shape){if(d.shape.type){const t=d.shape.type;this.shape=t instanceof Array?M(t,this.id,S):t}const t=new xi;t.load(d.shape),this.shape&&(this.shapeData=this.loadShapeData(t,S))}else this.shapeData=this.loadShapeData(P.shape,S);void 0!==d&&P.load(d),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&P.load(null===(f=this.shapeData)||void 0===f?void 0:f.particles),this.fill=null!==(m=null===(y=this.shapeData)||void 0===y?void 0:y.fill)&&void 0!==m?m:this.fill,this.close=null!==(g=null===(b=this.shapeData)||void 0===b?void 0:b.close)&&void 0!==g?g:this.close,this.options=P,this.pathDelay=1e3*c(this.options.move.path.delay);const O=n(this.options.zIndex.value);o.retina.initParticle(this);const R=this.options.size,E=R.value;this.size={enable:R.animation.enable,value:c(R)*o.retina.pixelRatio,max:r(E)*z,min:a(E)*z,loops:0,maxLoops:R.animation.count};const I=R.animation;if(I.enable){switch(this.size.status=0,I.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=s(this.size)*z,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(w=this.retina.sizeAnimationSpeed)&&void 0!==w?w:o.retina.sizeAnimationSpeed)/100*o.retina.reduceFactor,I.sync||(this.size.velocity*=Math.random())}this.direction=u(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-n(this.options.move.decay),this.position=this.calcPosition(o,l,i(O,0,o.zLayers)),this.initialPosition=this.position.copy(),this.offset=$t.origin;const D=o.particles;D.needsSort=D.needsSort||D.lastZIndex<this.position.z,D.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let A=o.drawers.get(this.shape);A||(A=ji(this,_i,"f").plugins.getShapeDrawer(this.shape),A&&o.drawers.set(this.shape,A)),(null==A?void 0:A.loadShape)&&(null==A||A.loadShape(this));const L=null==A?void 0:A.getSidesCount;if(L&&(this.sides=L(this)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.options.move.spin.enable){const t=null!==(x=this.options.move.spin.position)&&void 0!==x?x:{x:50,y:50},e={x:t.x/100*o.canvas.size.width,y:t.y/100*o.canvas.size.height},i=h(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:i,acceleration:null!==(k=this.retina.spinAcceleration)&&void 0!==k?k:n(this.options.move.spin.acceleration)}}this.shadowColor=F(this.options.shadow.color);for(const t of o.particles.updaters)t.init&&t.init(this);A&&A.particleInit&&A.particleInit(o,this);for(const[,t]of o.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e,i;const o=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.color);if(o&&this.roll&&(this.backColor||this.roll.alter)){if(Math.floor((null!==(i=null===(e=this.roll)||void 0===e?void 0:e.angle)&&void 0!==i?i:0)/(Math.PI/2))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return zt(o,this.roll.alter.type,this.roll.alter.value)}}return o}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=n(t.rate.value);for(let t=0;t<e;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,e,i,o=0){var s,n,a,r,l,c;for(const[,o]of t.plugins){const t=void 0!==o.particlePosition?o.particlePosition(e,this):void 0;if(void 0!==t)return Gt.create(t.x,t.y,i)}const d=t.canvas.size,h=Gt.create(null!==(s=null==e?void 0:e.x)&&void 0!==s?s:Math.random()*d.width,null!==(n=null==e?void 0:e.y)&&void 0!==n?n:Math.random()*d.height,i),u=this.getRadius(),v=this.options.move.outModes,p=e=>{$i({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:h.x,maxCoord:t.canvas.size.width,setCb:t=>h.x+=t,radius:u})},f=e=>{$i({outMode:e,checkModes:["bounce","bounce-vertical"],coord:h.y,maxCoord:t.canvas.size.height,setCb:t=>h.y+=t,radius:u})};return p(null!==(a=v.left)&&void 0!==a?a:v.default),p(null!==(r=v.right)&&void 0!==r?r:v.default),f(null!==(l=v.top)&&void 0!==l?l:v.default),f(null!==(c=v.bottom)&&void 0!==c?c:v.default),this.checkOverlap(h,o)?this.calcPosition(t,void 0,i,o+1):h}checkOverlap(t,e=0){const i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;const s=i.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(h(t,e.position)<o+e.getRadius()){a=!0;break}return a}calculateVelocity(){const t=v(this.direction).copy(),e=this.options.move,i=Math.PI/180*e.angle.value,o=Math.PI/180*e.angle.offset,n={left:o-i/2,right:o+i/2};return e.straight||(t.angle+=s(l(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=Math.random()),t}loadShapeData(t,e){const i=t.options[this.shape];if(i)return S({},i instanceof Array?M(i,this.id,e):i)}loadLife(){const t=this.container,e=this.options,i=e.life,o={delay:t.retina.reduceFactor?n(i.delay.value)*(i.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?n(i.duration.value)*(i.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:e.life.count};return o.duration<=0&&(o.duration=-1),o.count<=0&&(o.count=-1),o}}_i=new WeakMap;var Ui,Ni=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ji=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Xi{constructor(t,e){this.container=e,Ui.set(this,void 0),Ni(this,Ui,t,"f"),this.nextId=0,this.array=[],this.zArray=[],this.mover=new Ft(e),this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.freqs={links:new Map,triangles:new Map},this.interactionManager=new qt(Ji(this,Ui,"f"),e);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new jt(new Pt(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.updaters=Ji(this,Ui,"f").plugins.getUpdaters(e,!0)}get count(){return this.array.length}init(){var t;const e=this.container,i=e.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.freqs.links=new Map,this.freqs.triangles=new Map;let o=!1;this.updaters=Ji(this,Ui,"f").plugins.getUpdaters(e,!0),this.interactionManager.init();for(const[,t]of e.plugins)if(void 0!==t.particlesInitialization&&(o=t.particlesInitialization()),o)break;if(this.addManualParticles(),!o){for(const e in i.particles.groups){const o=i.particles.groups[e];for(let s=this.count,n=0;n<(null===(t=o.number)||void 0===t?void 0:t.value)&&s<i.particles.number.value;s++,n++)this.addParticle(void 0,o,e)}for(let t=this.count;t<i.particles.number.value;t++)this.addParticle()}e.pathGenerator.init(e)}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}removeAt(t,e=1,i,o){if(!(t>=0&&t<=this.count))return;let s=0;for(let n=t;s<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(o),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),s++}}remove(t,e,i){this.removeAt(this.array.indexOf(t),void 0,e,i)}async update(t){const e=this.container,i=[];e.pathGenerator.update();for(const[,i]of e.plugins)void 0!==i.update&&i.update(t);for(const o of this.array){const s=e.canvas.resizeFactor;s&&(o.position.x*=s.width,o.position.y*=s.height),o.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(o.destroyed)break;e.particleUpdate&&e.particleUpdate(o,t)}this.mover.move(o,t),o.destroyed?i.push(o):this.quadTree.insert(new Bt(o.getPosition(),o))}for(const t of i)this.remove(t);await this.interactionManager.externalInteract(t);for(const i of e.particles.array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||await this.interactionManager.particlesInteract(i,t)}delete e.canvas.resizeFactor}async draw(t){const e=this.container;e.canvas.clear();const i=this.container.canvas.size;this.quadTree=new jt(new Pt(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),await this.update(t),this.needsSort&&(this.zArray.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,o){this.pushing=!0;for(let s=0;s<t;s++)this.addParticle(null==e?void 0:e.position,i,o);this.pushing=!1}addParticle(t,e,i){const o=this.container,s=o.actualOptions.particles.number.limit*o.density;if(s>0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new Ei;i.load(t.options);const o=n(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=o:(i.size.value.min/=o,i.size.value.max/=o),i.load(e.particles);const a=e.sizeOffset?l(-t.size.value,t.size.value):0,r={x:t.position.x+s(a),y:t.position.y+s(a)};return this.pushParticle(r,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=s(l(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout((()=>{e.unbreakable=!1}),500),!0)))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=l(t.id,e.id),o=`${a(i)}_${r(i)}`;let s=this.freqs.links.get(o);return void 0===s&&(s=Math.random(),this.freqs.links.set(o,s)),s}getTriangleFrequency(t,e,i){let[o,s,n]=[t.id,e.id,i.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=s.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,o=e.retina.pixelRatio;return i.width*i.height/(t.factor*o**2*t.area)}pushParticle(t,e,i,o){try{const s=new Gi(Ji(this,Ui,"f"),this.nextId,this.container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Ui=new WeakMap;class Yi{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||b()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(b()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch((()=>{}))};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*o,t.canvas.size.height=e.offsetHeight*o}const s=e.particles;this.attractDistance=s.move.attract.distance*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=s.size.animation.speed*o,this.maxSpeed=s.move.gravity.maxSpeed*o,void 0!==s.orbit.radius&&(this.orbitRadius=s.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const e=t.options,i=this.pixelRatio,o=e.move.distance,s=t.retina;s.attractDistance=e.move.attract.distance*i,s.linksDistance=e.links.distance*i,s.linksWidth=e.links.width*i,s.moveDrift=n(e.move.drift)*i,s.moveSpeed=n(e.move.speed)*i,s.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(s.spinAcceleration=n(e.move.spin.acceleration)*i);const a=s.maxDistance;a.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,a.vertical=void 0!==o.vertical?o.vertical*i:void 0,s.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Qi,Zi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ki=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class to{constructor(t,e,i,...o){this.id=e,Qi.set(this,void 0),Zi(this,Qi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Yi(this),this.canvas=new Ut(this),this.particles=new Xi(Ki(this,Qi,"f"),this),this.drawer=new It(this),this.presets=o,this.pathGenerator={generate:()=>{const t=$t.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new Wi(Ki(this,Qi,"f")),this.actualOptions=new Wi(Ki(this,Qi,"f")),this.eventListeners=new Rt(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((t=>this.intersectionManager(t))))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(w()(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=g()((async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){var o,s,n;if(t)if("function"==typeof t)this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i);else{const e=this.pathGenerator;this.pathGenerator=t,(o=this.pathGenerator).generate||(o.generate=e.generate),(s=this.pathGenerator).init||(s.init=e.init),(n=this.pathGenerator).update||(n.update=e.update)}}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new Wi(Ki(this,Qi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:i.x*s,y:i.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(e,a)};let o=!1,s=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(o=!0,s=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(s=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(o=!1,s=!1)}))}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new Wi(Ki(this,Qi,"f"));for(const t of this.presets)this._options.load(Ki(this,Qi,"f").plugins.getPreset(t));const t=Ki(this,Qi,"f").plugins.getSupportedShapes();for(const e of t){const t=Ki(this,Qi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new Wi(Ki(this,Qi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=n(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=Ki(this,Qi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;i.generator&&this.setPath(Ki(this,Qi,"f").plugins.getPathGenerator(i.generator)),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Qi=new WeakMap;var eo,io=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},oo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class so{constructor(t){eo.set(this,void 0),io(this,eo,t,"f")}dom(){return oo(this,eo,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,o;const s=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(s);r||(r=document.createElement("div"),r.id=s,null===(o=document.querySelector("body"))||void 0===o||o.append(r));const l=n instanceof Array?M(n,a):n,c=this.dom(),d=c.findIndex((t=>t.id===s));if(d>=0){const t=this.domItem(d);t&&!t.destroyed&&(t.destroy(),c.splice(d,1))}let h;if("canvas"===r.tagName.toLowerCase())h=r,h.dataset[St.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(h=t[0],h.dataset[St.generatedAttribute]="false"):(h=document.createElement("canvas"),h.dataset[St.generatedAttribute]="true",h.style.width="100%",h.style.height="100%",r.appendChild(h))}const u=new to(oo(this,eo,"f"),s,l);return d>=0?c.splice(d,0,u):c.push(u),u.canvas.loadCanvas(h),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,o=e instanceof Array?M(e,i):e;if(!o)return;const s=await fetch(o);if(!s.ok)return n=s.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await s.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const o={index:i};return"string"==typeof t?o.tagId=t:o.options=t,"number"==typeof e?o.index=null!=e?e:o.index:o.options=null!=e?e:o.options,this.loadOptions(o)}async set(t,e,i,o){const s={index:o};return"string"==typeof t?s.tagId=t:s.element=t,e instanceof HTMLElement?s.element=e:s.options=e,"number"==typeof i?s.index=i:s.options=null!=i?i:s.options,this.loadOptions(s)}async loadJSON(t,e,i){let o,s;return"number"==typeof e||void 0===e?o=t:(s=t,o=e),this.loadRemoteOptions({tagId:s,url:o,index:i})}async setJSON(t,e,i,o){let s,n,a,r;return t instanceof HTMLElement?(r=t,s=e,a=i):(n=t,r=e,s=i,a=o),this.loadRemoteOptions({tagId:n,url:s,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}eo=new WeakMap;var no,ao,ro=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},lo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class co{constructor(){no.set(this,void 0),ao.set(this,void 0),ro(this,no,!1,"f"),this.domArray=[],ro(this,ao,new so(this),"f"),this.plugins=new _t(this)}init(){lo(this,no,"f")||ro(this,no,!0,"f")}async loadFromArray(t,e,i){return lo(this,ao,"f").load(t,e,i)}async load(t,e){return lo(this,ao,"f").load(t,e)}async set(t,e,i){return lo(this,ao,"f").set(t,e,i)}async loadJSON(t,e,i){return lo(this,ao,"f").loadJSON(t,e,i)}async setJSON(t,e,i,o){return lo(this,ao,"f").setJSON(t,e,i,o)}setOnClickHandler(t){lo(this,ao,"f").setOnClickHandler(t)}dom(){return lo(this,ao,"f").dom()}domItem(t){return lo(this,ao,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,o,s){let n;n="function"==typeof e?{afterEffect:o,destroy:s,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}}no=new WeakMap,ao=new WeakMap;class ho{constructor(t){this.container=t}init(t){const e=t.options.rotate;t.rotate={enable:e.animation.enable,value:n(e.value)*Math.PI/180};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status=1;break;case"clockwise":t.rotate.status=0}const o=t.options.rotate.animation;o.enable&&(t.rotate.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=Math.random()))}isEnabled(t){const e=t.options.rotate,i=e.animation;return!t.destroyed&&!t.spawning&&!e.path&&i.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;const o=t.rotate;if(!o)return;const s=t.options.rotate.animation,n=(null!==(i=o.velocity)&&void 0!==i?i:0)*e.factor,a=2*Math.PI;if(s.enable)switch(o.status){case 0:o.value+=n,o.value>a&&(o.value-=a);break;case 1:default:o.value-=n,o.value<0&&(o.value+=a)}}(t,e)}}class uo{getSidesCount(){return 12}draw(t,e,i){t.arc(0,0,i,0,2*Math.PI,!1)}}function vo(t,e,i,o,n){var a;const r=e;if(!r||!i.enable)return;const l=s(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;n&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,n&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class po{constructor(t){this.container=t}init(t){const e=V(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=rt(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){var e,i,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(e=t.color)||void 0===e?void 0:e.h.value)&&s.h.enable||void 0!==(null===(i=t.color)||void 0===i?void 0:i.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,e){!function(t,e){var i,o,s;const n=t.options.color.animation;void 0!==(null===(i=t.color)||void 0===i?void 0:i.h)&&vo(e,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&vo(e,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&vo(e,t.color.l,n.l,100,!0)}(t,e)}}class fo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events;if(!(i.position&&o.onHover.enable||i.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return x("attract",s)||x("attract",n)}reset(){}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===St.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode;i&&s&&x("attract",n)?this.hoverAttract():a&&x("attract",r)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new Ct(e.x,e.y,i))}processAttract(t,e,o){const s=this.container,n=s.actualOptions.interactivity.modes.attract,a=s.particles.quadTree.query(o);for(const o of a){const{dx:s,dy:a,distance:r}=d(o.position,t),l=n.speed*n.factor,c=i(f(1-r/e,n.easing)*l,0,n.maxSpeed),h=$t.create(0===r?l:s/r*c,0===r?l:a/r*c);o.position.subFrom(h)}}clickAttract(){const t=this.container;if(t.attract.finish||(t.attract.count||(t.attract.count=0),t.attract.count++,t.attract.count===t.particles.count&&(t.attract.finish=!0)),t.attract.clicking){const e=t.interactivity.mouse.clickPosition;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new Ct(e.x,e.y,i))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class yo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=o.onDiv;return i.position&&o.onHover.enable&&x("bounce",o.onHover.mode)||O("bounce",s)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===St.mouseMoveEvent,o=e.onHover.enable,s=e.onHover.mode,n=e.onDiv;i&&o&&x("bounce",s)?this.processMouseBounce():R("bounce",n,((t,e)=>this.singleSelectorBounce(t,e)))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;i&&this.processBounce(i,o,new Ct(i.x,i.y,o+e))}singleSelectorBounce(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l="circle"===e.type?new Ct(n.x,n.y,a+r):new Pt(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)}))}processBounce(t,e,i){const o=this.container.particles.quadTree.query(i);for(const s of o)i instanceof Ct?A(D(s),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:$t.origin,factor:$t.origin}):i instanceof Pt&&L(s,T(t,e))}}function mo(t,e,o,s){if(e>=o){return i(t+(e-o)*s,t,e)}if(e<o){return i(t-(o-e)*s,e,t)}}class bo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=O("bubble",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return x("bubble",n)||x("bubble",a)||s}reset(t,e){t.bubble.inRange&&!e||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}async interact(){const t=this.container.actualOptions.interactivity.events,e=t.onHover,i=t.onClick,o=e.enable,s=e.mode,n=i.enable,a=i.mode,r=t.onDiv;o&&x("bubble",s)?this.hoverBubble():n&&x("bubble",a)?this.clickBubble():R("bubble",r,((t,e)=>this.singleSelectorHover(t,e)))}singleSelectorHover(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new Ct(n.x,n.y,a):new Pt(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=i.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const e=I(i.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,e),this.hoverBubbleOpacity(t,1,e),this.hoverBubbleColor(t,1,e)}}))}process(t,e,i,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,d=o.particlesObj.value||0,h=o.type;if(n!==l)if(s.bubble.durationEnd)c&&("size"===h&&delete t.bubble.radius,"opacity"===h&&delete t.bubble.opacity);else if(e<=r){if((null!=c?c:d)!==n){const e=d-i*(d-n)/a;"size"===h&&(t.bubble.radius=e),"opacity"===h&&(t.bubble.opacity=e)}}else"size"===h&&delete t.bubble.radius,"opacity"===h&&delete t.bubble.opacity}clickBubble(){var t,e;const i=this.container,o=i.actualOptions,s=i.interactivity.mouse.clickPosition;if(!s)return;const n=i.retina.bubbleModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const n of a){if(!i.bubble.clicking)continue;n.bubble.inRange=!i.bubble.durationEnd;const a=h(n.getPosition(),s),l=((new Date).getTime()-(i.interactivity.mouse.clickTime||0))/1e3;l>o.interactivity.modes.bubble.duration&&(i.bubble.durationEnd=!0),l>2*o.interactivity.modes.bubble.duration&&(i.bubble.clicking=!1,i.bubble.durationEnd=!1);const c={bubbleObj:{optValue:i.retina.bubbleModeSize,value:n.bubble.radius},particlesObj:{optValue:r(n.options.size.value)*i.retina.pixelRatio,value:n.size.value},type:"size"};this.process(n,a,l,c);const d={bubbleObj:{optValue:o.interactivity.modes.bubble.opacity,value:n.bubble.opacity},particlesObj:{optValue:r(n.options.opacity.value),value:null!==(e=null===(t=n.opacity)||void 0===t?void 0:t.value)&&void 0!==e?e:1},type:"opacity"};this.process(n,a,l,d),i.bubble.durationEnd?delete n.bubble.color:a<=i.retina.bubbleModeDistance?this.hoverBubbleColor(n,a):delete n.bubble.color}}hoverBubble(){const t=this.container,e=t.interactivity.mouse.position;if(void 0===e)return;const i=t.retina.bubbleModeDistance,o=t.particles.quadTree.queryCircle(e,i);for(const s of o){s.bubble.inRange=!0;const o=h(s.getPosition(),e),n=1-o/i;o<=i?n>=0&&t.interactivity.status===St.mouseMoveEvent&&(this.hoverBubbleSize(s,n),this.hoverBubbleOpacity(s,n),this.hoverBubbleColor(s,n)):this.reset(s),t.interactivity.status===St.mouseLeaveEvent&&this.reset(s)}}hoverBubbleSize(t,e,i){const o=this.container,s=(null==i?void 0:i.size)?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=r(t.options.size.value)*o.retina.pixelRatio,a=mo(t.size.value,s,n,e);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,e,i){var o,s,n;const a=this.container.actualOptions,l=null!==(o=null==i?void 0:i.opacity)&&void 0!==o?o:a.interactivity.modes.bubble.opacity;if(!l)return;const c=t.options.opacity.value,d=mo(null!==(n=null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,l,r(c),e);void 0!==d&&(t.bubble.opacity=d)}hoverBubbleColor(t,e,i){const o=this.container.actualOptions,s=null!=i?i:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const e=s.color;if(!e)return;const i=e instanceof Array?M(e):e;t.bubble.finalColor=V(i)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?W(ot(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class go extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return!(!i.onHover.enable||!e.position)&&x("connect",i.onHover.mode)}reset(){}async interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const e=t.interactivity.mouse.position;if(!e)return;const i=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,i);let s=0;for(const e of o){const i=e.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-o.x),r=Math.abs(i.y-o.y);a<s&&r<s&&t.canvas.drawConnectLine(e,n)}++s}}}}class wo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return i.onHover.enable&&!!e.position&&x("grab",i.onHover.mode)}reset(){}async interact(){var t;const e=this.container,i=e.actualOptions,o=i.interactivity;if(o.events.onHover.enable&&e.interactivity.status===St.mouseMoveEvent){const s=e.interactivity.mouse.position;if(!s)return;const n=e.retina.grabModeDistance,a=e.particles.quadTree.queryCircle(s,n);for(const r of a){const a=h(r.getPosition(),s);if(a<=n){const l=o.modes.grab.links,c=l.opacity,d=c-a*c/n;if(d<=0)continue;const h=null!==(t=l.color)&&void 0!==t?t:r.options.links.color;if(!e.particles.grabLineColor){const t=i.interactivity.modes.grab.links;e.particles.grabLineColor=nt(h,t.blink,t.consent)}const u=st(r,void 0,e.particles.grabLineColor);if(!u)return;e.canvas.drawGrabLine(r,u,d,s)}}}}}class xo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=O("repulse",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return x("repulse",n)||x("repulse",a)||s}reset(){}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===St.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode,l=o.onDiv;i&&s&&x("repulse",n)?this.hoverRepulse():a&&x("repulse",r)?this.clickRepulse():R("repulse",l,((t,e)=>this.singleSelectorRepulse(t,e)))}singleSelectorRepulse(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new Ct(n.x,n.y,a):new Pt(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=I(i.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)}))}hoverRepulse(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.repulseModeDistance;this.processRepulse(e,i,new Ct(e.x,e.y,i))}processRepulse(t,e,o,s){var n;const a=this.container,r=a.particles.quadTree.query(o),l=a.actualOptions.interactivity.modes.repulse;for(const o of r){const{dx:a,dy:r,distance:c}=d(o.position,t),h=(null!==(n=null==s?void 0:s.speed)&&void 0!==n?n:l.speed)*l.factor,u=i(f(1-c/e,l.easing)*h,0,l.maxSpeed),v=$t.create(0===c?h:a/c*u,0===c?h:r/c*u);o.position.addTo(v)}}clickRepulse(){const t=this.container;if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const e=t.retina.repulseModeDistance,i=Math.pow(e/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;const s=new Ct(o.x,o.y,i),n=t.particles.quadTree.query(s);for(const e of n){const{dx:s,dy:n,distance:a}=d(o,e.position),r=a**2,l=t.actualOptions.interactivity.modes.repulse.speed,c=-i*l/r;if(r<=i){t.repulse.particles.push(e);const i=$t.create(s,n);i.length=c,e.velocity.setTo(i)}}}else if(!1===t.repulse.clicking){for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[]}}}const ko=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function zo(t){return new Promise((e=>{t.loading=!0;const i=new Image;i.addEventListener("load",(()=>{t.element=i,t.loading=!1,e()})),i.addEventListener("error",(()=>{t.error=!0,t.loading=!1,console.error(`Error tsParticles - loading image: ${t.source}`),e()})),i.src=t.source}))}async function Mo(t){if("svg"!==t.type)return void await zo(t);t.loading=!0;const e=await fetch(t.source);t.loading=!1,e.ok||(console.error("Error tsParticles - Image not found"),t.error=!0),t.error||(t.svgData=await e.text())}function Co(t,e,i,o){var s,n,a;const r=function(t,e,i){const{svgData:o}=t;if(!o)return"";const s=et(e,i);if(o.includes("fill"))return o.replace(ko,(()=>s));const n=o.indexOf(">");return`${o.substring(0,n)} fill="${s}"${o.substring(n)}`}(t,i,null!==(n=null===(s=o.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1),l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(l),h=new Image,u={data:Object.assign(Object.assign({},t),{svgData:r}),ratio:e.width/e.height,replaceColor:null!==(a=e.replaceColor)&&void 0!==a?a:e.replace_color,source:e.src};return h.addEventListener("load",(()=>{const e=o.image;e&&(e.loaded=!0,t.element=h),c.revokeObjectURL(d)})),h.addEventListener("error",(()=>{c.revokeObjectURL(d);const e=Object.assign(Object.assign({},t),{error:!1,loading:!0});zo(e).then((()=>{const i=o.image;i&&(t.element=e.element,i.loaded=!0)}))})),h.src=d,u}var Po,To=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},So=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Oo{constructor(){Po.set(this,void 0),To(this,Po,[],"f")}getSidesCount(){return 12}getImages(t){const e=So(this,Po,"f").find((e=>e.id===t.id));return e||(So(this,Po,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,e){const i=this.getImages(t);null==i||i.images.push(e)}destroy(){To(this,Po,[],"f")}async loadImageShape(t,e){const i=e.src;if(!i)throw new Error("Error tsParticles - No image.src");try{const o={source:i,type:i.substr(i.length-3),error:!1,loading:!0};this.addImage(t,o);const s=e.replaceColor?Mo:zo;await s(o)}catch(t){throw new Error(`tsParticles error - ${e.src} not found`)}}draw(t,e,i,o){var s,n;const a=e.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-i,y:-i};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*i,2*i/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var e,i,o;if("image"!==t.shape&&"images"!==t.shape)return;const s=this.getImages(t.container).images,n=t.shapeData,a=s.find((t=>t.source===n.src));let r;if(!a)return void this.loadImageShape(t.container,n).then((()=>{this.loadShape(t)}));if(a.error)return;const l=t.getFillColor();r=a.svgData&&n.replaceColor&&l?Co(a,n,l,t):{data:a,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(e=n.replaceColor)&&void 0!==e?e:n.replace_color,source:n.src},r.ratio||(r.ratio=1);const c={image:r,fill:null!==(i=n.fill)&&void 0!==i?i:t.fill,close:null!==(o=n.close)&&void 0!==o?o:t.close};t.image=c.image,t.fill=c.fill,t.close=c.close}}Po=new WeakMap;class Ro{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed}update(t,e){if(!this.isEnabled(t))return;const i=t.life;let o=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(o?i.time=0:i.time+=e.value,i.time<i.duration)return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const a=this.container.canvas.size,r=l(0,a.width),c=l(0,a.width);t.position.x=s(r),t.position.y=s(c),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const d=t.options.life;i.delay=1e3*n(d.delay.value),i.duration=1e3*n(d.duration.value)}}class Eo{getSidesCount(){return 1}draw(t,e,i){t.moveTo(-i/2,0),t.lineTo(i/2,0)}}class Io{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity={enable:e.animation.enable,max:r(e.value),min:a(e.value),value:n(e.value),loops:0,maxLoops:e.animation.count};const i=e.animation;if(i.enable){t.opacity.status=0;const o=e.value;switch(t.opacity.min=a(o),t.opacity.max=r(o),i.startValue){case"min":t.opacity.value=t.opacity.min,t.opacity.status=0;break;case"random":t.opacity.value=s(t.opacity),t.opacity.status=Math.random()>=.5?0:1;break;case"max":default:t.opacity.value=t.opacity.max,t.opacity.status=1}t.opacity.velocity=i.speed/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=Math.random())}}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.opacity.loops)&&void 0!==i?i:0)<(null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var o,s,n,a,r;if(!t.opacity)return;const l=t.opacity.min,c=t.opacity.max;if(!t.destroyed&&t.opacity.enable&&((null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0)<=0||(null!==(s=t.opacity.loops)&&void 0!==s?s:0)<(null!==(n=t.opacity.maxLoops)&&void 0!==n?n:0))){switch(t.opacity.status){case 0:t.opacity.value>=c?(t.opacity.status=1,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*e.factor;break;case 1:t.opacity.value<=l?(t.opacity.status=0,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(r=t.opacity.velocity)&&void 0!==r?r:0)*e.factor}!function(t,e,i,o){switch(t.options.opacity.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.opacity.value,l,c),t.destroyed||(t.opacity.value=i(t.opacity.value,l,c))}}(t,e)}}class Do{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){var i,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,e,null!==(i=a.bottom)&&void 0!==i?i:a.default,"bottom"),this.updateOutMode(t,e,null!==(o=a.left)&&void 0!==o?o:a.default,"left"),this.updateOutMode(t,e,null!==(s=a.right)&&void 0!==s?s:a.default,"right"),this.updateOutMode(t,e,null!==(n=a.top)&&void 0!==n?n:a.default,"top")}updateOutMode(t,e,i,o){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,e,o,i);break;case"destroy":this.destroy(t,o);break;case"out":this.out(t,o);break;case"none":default:this.none(t,o)}}destroy(t,e){const i=this.container;C(t.position,i.canvas.size,t.getRadius(),e)||i.particles.remove(t,void 0,!0)}out(t,e){const i=this.container;if(C(t.position,i.canvas.size,t.getRadius(),e))return;const o=t.options.move.warp,s=i.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=T(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,e,i,o){const s=this.container;let a=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(a=o.particleBounce(t,e,i)),a)break;if(a)return;const r=t.getPosition(),l=t.offset,c=t.getRadius(),d=T(r,c),h=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=n(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:h,offset:l,size:c}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=n(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:h,offset:l,size:c})}none(t,e){if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const i=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(i.enable){const a=t.position;(!i.inverse&&a.y>s.height+n&&"bottom"===e||i.inverse&&a.y<-n&&"top"===e)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;C(t.position,o.canvas.size,n,e)||o.particles.remove(t)}}}class Ao extends Ht{constructor(t){super(t)}async interact(t){var e;const i=this.container,o=null!==(e=t.retina.attractDistance)&&void 0!==e?e:i.retina.attractDistance,s=t.getPosition(),n=i.particles.quadTree.queryCircle(s,o);for(const e of n){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=d(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=e.size.value/t.size.value,h=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,e.velocity.x+=r*h,e.velocity.y+=l*h}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function Lo(t,e){A(D(t),D(e))}class qo extends Ht{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}async interact(t){const e=this.container,i=t.getPosition(),o=t.getRadius(),s=e.particles.quadTree.queryCircle(i,2*o);for(const e of s){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const s=e.getPosition();if(Math.round(i.z)!==Math.round(s.z))continue;h(i,s)<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":Lo(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||Lo(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const o=this.container,s=o.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const n=i(t.getRadius()/e.getRadius(),0,e.getRadius())*s;t.size.value+=n,e.size.value-=n,e.getRadius()<=o.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=i(e.getRadius()/t.getRadius(),0,t.getRadius())*s;t.size.value-=n,e.size.value+=n,t.getRadius()<=o.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function Ho(t,e,i,o,s){let n=h(t,e);if(!s||n<=i)return n;if(n=h(t,{x:e.x-o.width,y:e.y}),n<=i)return n;if(n=h(t,{x:e.x-o.width,y:e.y-o.height}),n<=i)return n;return n=h(t,{x:e.x,y:e.y-o.height}),n}class Fo extends Ht{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}async interact(t){var e;t.links=[];const i=t.getPosition(),o=this.container,s=o.canvas.size;if(i.x<0||i.y<0||i.x>s.width||i.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(e=t.retina.linksDistance)&&void 0!==e?e:o.retina.linksDistance,l=n.warp,c=l?new Tt(i.x,i.y,r,s):new Ct(i.x,i.y,r),d=o.particles.quadTree.query(c);for(const e of d){const o=e.options.links;if(t===e||!o.enable||n.id!==o.id||e.spawning||e.destroyed||-1!==t.links.map((t=>t.destination)).indexOf(e)||-1!==e.links.map((t=>t.destination)).indexOf(t))continue;const c=e.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const d=Ho(i,c,r,s,l&&o.warp);if(d>r)return;const h=(1-d/r)*a;this.setColor(t),t.links.push({destination:e,opacity:h})}}setColor(t){const e=this.container,i=t.options.links;let o=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(!o){o=nt(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=o:e.particles.linksColors.set(i.id,o)}}}class Vo{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,e){const i=e,o=this.container,s=o.particles,n=e.options;if(i.links.length>0){t.save();const e=i.links.filter((t=>o.particles.getLinkFrequency(i,t.destination)<=n.links.frequency));for(const t of e){const a=t.destination;if(n.links.triangles.enable){const r=e.map((t=>t.destination)),l=a.links.filter((t=>o.particles.getLinkFrequency(a,t.destination)<=a.options.links.frequency&&r.indexOf(t.destination)>=0));if(l.length)for(const e of l){const o=e.destination;s.getTriangleFrequency(i,a,o)>n.links.triangles.frequency||this.drawLinkTriangle(i,t,e)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}}drawLinkTriangle(t,e,i){var o;const s=this.container,n=s.actualOptions,a=e.destination,r=i.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(e.opacity+i.opacity)/2;if(c<=0)return;const d=t.getPosition(),u=a.getPosition(),v=r.getPosition();s.canvas.draw((e=>{if(h(d,u)>s.retina.linksDistance||h(v,u)>s.retina.linksDistance||h(v,d)>s.retina.linksDistance)return;let i=F(l.color);if(!i){const e=t.options.links,o=void 0!==e.id?s.particles.linksColors.get(e.id):s.particles.linksColor;i=st(t,a,o)}i&&vt(e,d,u,v,n.backgroundMask.enable,n.backgroundMask.composite,i,c)}))}drawLinkLine(t,e){const i=this.container,o=i.actualOptions,s=e.destination;let n=e.opacity;const a=t.getPosition(),r=s.getPosition();i.canvas.draw((e=>{var l,c;let d;const h=t.options.twinkle.lines;if(h.enable){const t=h.frequency,e=F(h.color);Math.random()<t&&void 0!==e&&(d=e,n=h.opacity)}if(!d){const e=t.options.links,o=void 0!==e.id?i.particles.linksColors.get(e.id):i.particles.linksColor;d=st(t,s,o)}if(!d)return;const u=null!==(l=t.retina.linksWidth)&&void 0!==l?l:i.retina.linksWidth,v=null!==(c=t.retina.linksDistance)&&void 0!==c?c:i.retina.linksDistance;ut(e,u,a,r,v,i.canvas.size,t.options.links.warp,o.backgroundMask.enable,o.backgroundMask.composite,d,n,t.options.links.shadow)}))}}class Wo{constructor(){this.id="links"}getPlugin(t){return new Vo(t)}needsPlugin(){return!0}loadOptions(){}}async function _o(t){await async function(t){await t.addInteractor("particlesLinks",(t=>new Fo(t)))}(t),await async function(t){const e=new Wo;await t.addPlugin(e)}(t)}class Bo{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e<n;e++)t.lineTo(s.length,0),t.translate(s.length,0),t.rotate(l)}}}class jo extends Bo{getSidesData(t,e){var i,o;const s=t.shapeData,n=null!==(o=null!==(i=null==s?void 0:s.sides)&&void 0!==i?i:null==s?void 0:s.nb_sides)&&void 0!==o?o:5;return{count:{denominator:1,numerator:n},length:2.66*e/(n/3)}}getCenter(t,e){return{x:-e/(this.getSidesCount(t)/3.5),y:-e/.76}}}class $o extends Bo{getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}getCenter(t,e){return{x:-e,y:e/1.66}}}async function Go(t){await async function(t){await t.addShape("polygon",new jo)}(t),await async function(t){await t.addShape("triangle",new $o)}(t)}class Uo{init(){}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&t.size.enable&&((null!==(e=t.size.loops)&&void 0!==e?e:0)<=0||(null!==(i=t.size.loops)&&void 0!==i?i:0)<(null!==(o=t.size.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var o,s,n,a;const r=(null!==(o=t.size.velocity)&&void 0!==o?o:0)*e.factor,l=t.size.min,c=t.size.max;if(!t.destroyed&&t.size.enable&&((null!==(s=t.size.loops)&&void 0!==s?s:0)<=0||(null!==(n=t.size.loops)&&void 0!==n?n:0)<(null!==(a=t.size.maxLoops)&&void 0!==a?a:0))){switch(t.size.status){case 0:t.size.value>=c?(t.size.status=1,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=r;break;case 1:t.size.value<=l?(t.size.status=0,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=r}!function(t,e,i,o){switch(t.options.size.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.size.value,l,c),t.destroyed||(t.size.value=i(t.size.value,l,c))}}(t,e)}}const No=Math.sqrt(2);class Jo{getSidesCount(){return 4}draw(t,e,i){t.rect(-i/No,-i/No,2*i/No,2*i/No)}}class Xo{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){var o;const s=e.shapeData,n=this.getSidesCount(e),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-i);for(let e=0;e<n;e++)t.rotate(Math.PI/n),t.lineTo(0,0-i*a),t.rotate(Math.PI/n),t.lineTo(0,0-i)}}function Yo(t,e,i,o,n){var a;const r=e;if(!r||!r.enable)return;const l=s(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;n&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,n&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class Qo{constructor(t){this.container=t}init(t){var e,i;const o=this.container;t.stroke=t.options.stroke instanceof Array?M(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*o.retina.pixelRatio;const s=null!==(e=V(t.stroke.color))&&void 0!==e?e:t.getFillColor();s&&(t.strokeColor=rt(s,null===(i=t.stroke.color)||void 0===i?void 0:i.animation,o.retina.reduceFactor))}isEnabled(t){var e,i,o,s;const n=null===(e=t.stroke)||void 0===e?void 0:e.color;return!t.destroyed&&!t.spawning&&!!n&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.s.value)&&n.animation.s.enable||void 0!==(null===(s=t.strokeColor)||void 0===s?void 0:s.l.value)&&n.animation.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,s,n,a,r,l,c,d,h;if(!(null===(i=t.stroke)||void 0===i?void 0:i.color))return;const u=t.stroke.color.animation,v=null!==(s=null===(o=t.strokeColor)||void 0===o?void 0:o.h)&&void 0!==s?s:null===(n=t.color)||void 0===n?void 0:n.h;v&&Yo(e,v,u.h,360,!1);const p=null!==(r=null===(a=t.strokeColor)||void 0===a?void 0:a.s)&&void 0!==r?r:null===(l=t.color)||void 0===l?void 0:l.s;p&&Yo(e,p,u.s,100,!0);const f=null!==(d=null===(c=t.strokeColor)||void 0===c?void 0:c.l)&&void 0!==d?d:null===(h=t.color)||void 0===h?void 0:h.l;f&&Yo(e,f,u.l,100,!0)}(t,e)}}const Zo=["text","character","char"];class Ko{getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(Zo.find((t=>x(t,e.particles.shape.type)))){const t=Zo.map((t=>e.particles.shape.options[t])).find((t=>!!t));if(t instanceof Array){const e=[];for(const i of t)e.push(k(i));await Promise.allSettled(e)}else void 0!==t&&await k(t)}}draw(t,e,i,o){var s,n,a;const r=e.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=e;void 0===c.text&&(c.text=l instanceof Array?M(l,e.randomIndexData):l);const d=c.text,h=null!==(s=r.style)&&void 0!==s?s:"",u=null!==(n=r.weight)&&void 0!==n?n:"400",v=2*Math.round(i),p=null!==(a=r.font)&&void 0!==a?a:"Verdana",f=e.fill,y=d.length*i/2;t.font=`${h} ${u} ${v}px "${p}"`;const m={x:-y,y:i/2};t.globalAlpha=o,f?t.fillText(d,m.x,m.y):t.strokeText(d,m.x,m.y),t.globalAlpha=1}}const ts=new co;ts.init();const{particlesJS:es,pJSDom:is}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,o)=>{t.loadJSON(e,i).then((t=>{t&&o(t)})).catch((()=>{o(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(ts);return async function(t){await async function(t){await t.addInteractor("externalAttract",(t=>new fo(t)))}(t),await async function(t){await t.addInteractor("externalBounce",(t=>new yo(t)))}(t),await async function(t){await t.addInteractor("externalBubble",(t=>new bo(t)))}(t),await async function(t){await t.addInteractor("externalConnect",(t=>new go(t)))}(t),await async function(t){await t.addInteractor("externalGrab",(t=>new wo(t)))}(t),await async function(t){await t.addInteractor("externalRepulse",(t=>new xo(t)))}(t),await async function(t){await t.addInteractor("particlesAttract",(t=>new Ao(t)))}(t),await async function(t){await t.addInteractor("particlesCollisions",(t=>new qo(t)))}(t),await _o(t),await async function(t){await t.addShape("circle",new uo)}(t),await async function(t){const e=new Oo;await t.addShape("image",e),await t.addShape("images",e)}(t),await async function(t){await t.addShape("line",new Eo)}(t),await Go(t),await async function(t){const e=new Jo;await t.addShape("edge",e),await t.addShape("square",e)}(t),await async function(t){await t.addShape("star",new Xo)}(t),await async function(t){const e=new Ko;for(const i of Zo)await t.addShape(i,e)}(t),await async function(t){await t.addParticleUpdater("life",(t=>new Ro(t)))}(t),await async function(t){await t.addParticleUpdater("opacity",(t=>new Io(t)))}(t),await async function(t){await t.addParticleUpdater("size",(()=>new Uo))}(t),await async function(t){await t.addParticleUpdater("angle",(t=>new ho(t)))}(t),await async function(t){await t.addParticleUpdater("color",(t=>new po(t)))}(t),await async function(t){await t.addParticleUpdater("strokeColor",(t=>new Qo(t)))}(t),await async function(t){await t.addParticleUpdater("outModes",(t=>new Do(t)))}(t)}(ts),e}()}));
|
|
1
|
+
/*! tsParticles v1.41.2 by Matteo Bruni */
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var o in i)("object"==typeof exports?exports:t)[o]=i[o]}}(window,(function(){return function(){"use strict";var t={d:function(e,i){for(var o in i)t.o(i,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:i[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t,e,i){return Math.min(Math.max(t,e),i)}function o(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function s(t){const e=r(t);let i=a(t);return e===i&&(i=0),Math.random()*(e-i)+i}function n(t){return"number"==typeof t?t:s(t)}function a(t){return"number"==typeof t?t:t.min}function r(t){return"number"==typeof t?t:t.max}function l(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=a(t),o=r(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:l(i,o)}function c(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return n(i?l(t.value,o):t.value)}function d(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}function h(t,e){return d(t,e).distance}function u(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}function v(t){const e=$t.origin;return e.length=1,e.angle=t,e}function p(t,e,i,o){return $t.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function f(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function y(t,e,i,o,s,n){const a={bounced:!1};return e.min>=o.min&&e.min<=o.max&&e.max>=o.min&&e.max<=o.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function m(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function b(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function g(){return b()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t)}function w(){return b()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t)}function x(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function k(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function z(t){return Math.floor(Math.random()*t.length)}function M(t,e,i=!0){return t[void 0!==e&&i?e%t.length:z(t)]}function C(t,e,i,o){return P(T(t,null!=i?i:0),e,o)}function P(t,e,i){let o=!0;return i&&"bottom"!==i||(o=t.top<e.height),!o||i&&"left"!==i||(o=t.right>0),!o||i&&"right"!==i||(o=t.left<e.width),!o||i&&"top"!==i||(o=t.bottom>0),o}function T(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function S(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map((t=>S(n[e],t))):S(n[e],o)}}return t}function O(t,e){return e instanceof Array?!!e.find((e=>e.enable&&x(t,e.mode))):x(t,e.mode)}function R(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&x(t,e)&&E(o,i)}else{const o=e.mode;e.enable&&x(t,o)&&E(e,i)}}function E(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}function I(t,e){if(e&&t)return t instanceof Array?t.find((t=>m(e,t.selectors))):m(e,t.selectors)?t:void 0}function D(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:$t.create(c(t.options.bounce.horizontal),c(t.options.bounce.vertical))}}function A(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:a,dy:r}=d(n,s);if(i*a+o*r>=0){const i=-Math.atan2(r,a),o=t.mass,s=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,o,s),d=p(l,n,o,s),h=c.rotate(-i),u=d.rotate(-i);t.velocity.x=h.x*t.factor.x,t.velocity.y=h.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function L(t,e){const i=T(t.getPosition(),t.getRadius()),o=y({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,c(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=y({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,c(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}function q(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function H(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?$({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?Y({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,((t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:""))),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function F(t,e,i=!0){var o,s,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===St.randomColorValue?K():B(a.value);else if(a.value instanceof Array){r=F({value:M(a.value,e,i)})}else{const t=a.value,e=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==e.r)r=e;else{const e=null!==(s=t.hsl)&&void 0!==s?s:a.value;if(void 0!==e.h&&void 0!==e.l)r=j(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=X(e))}}}return r}function V(t,e,i=!0){const o=F(t,e,i);return void 0!==o?W(o):void 0}function W(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:(s+n)/2,s:0};return s!=n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function _(t){var e;return null===(e=H(t))||void 0===e?void 0:e.a}function B(t){return H(t)}function j(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=q(o,t,i.h+1/3),e.g=q(o,t,i.h),e.b=q(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function $(t){const e=j(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function G(t){const e=t.l/100,i=e+t.s/100*Math.min(e,1-e),o=i?2*(1-e/i):0;return{h:t.h,s:100*o,v:100*i}}function U(t){const e=G(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function N(t){const e=t.v/100,i=e*(1-t.s/100/2),o=0===i||1===i?0:(e-i)/Math.min(i,1-i);return{h:t.h,l:100*i,s:100*o}}function J(t){const e=N(t);return{a:t.a,h:e.h,l:e.l,s:e.s}}function X(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function Y(t){const e=X(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Q(t){const e={r:t.r/255,g:t.g/255,b:t.b/255},i=Math.max(e.r,e.g,e.b),o=i-Math.min(e.r,e.g,e.b);let s=0;i===e.r?s=(e.g-e.b)/o*60:i===e.g?s=60*(2+(e.b-e.r)/o):i===e.b&&(s=60*(4+(e.r-e.g)/o));return{h:s,s:100*(i?o/i:0),v:100*i}}function Z(t){const e=Q(t);return{a:t.a,h:e.h,s:e.s,v:e.v}}function K(t){const e=null!=t?t:0;return{b:Math.floor(s(l(e,256))),g:Math.floor(s(l(e,256))),r:Math.floor(s(l(e,256)))}}function tt(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function et(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function it(t,e){return et(N(t),e)}function ot(t,e,i,s){let n=t,a=e;return void 0===n.r&&(n=j(t)),void 0===a.r&&(a=j(e)),{b:o(n.b,a.b,i,s),g:o(n.g,a.g,i,s),r:o(n.r,a.r,i,s)}}function st(t,e,i){var o,s;if(i===St.randomColorValue)return K();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),n=null!==(s=null==e?void 0:e.getFillColor())&&void 0!==s?s:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return ot(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return j(t)}}}function nt(t,e,i){const o="string"==typeof t?t:t.value;return o===St.randomColorValue?i?F({value:o}):e?St.randomColorValue:St.midColorValue:F({value:o})}function at(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function rt(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(lt(o.h,e.h,i),lt(o.s,e.s,i),lt(o.l,e.l,i)),o}function lt(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function ct(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function dt(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}function ht(t,e){t.clearRect(0,0,e.width,e.height)}function ut(t,e,i,o,s,n,a,r,l,c,u,v){let p=!1;if(h(i,o)<=s)ct(t,i,o),p=!0;else if(a){let e,a;const r=d(i,{x:o.x-n.width,y:o.y});if(r.distance<=s){const t=i.y-r.dy/r.dx*i.x;e={x:0,y:t},a={x:n.width,y:t}}else{const t=d(i,{x:o.x,y:o.y-n.height});if(t.distance<=s){const o=-(i.y-t.dy/t.dx*i.x)/(t.dy/t.dx);e={x:o,y:0},a={x:o,y:n.height}}else{const t=d(i,{x:o.x-n.width,y:o.y-n.height});if(t.distance<=s){const o=i.y-t.dy/t.dx*i.x;e={x:-o/(t.dy/t.dx),y:o},a={x:e.x+n.width,y:e.y+n.height}}}}e&&a&&(ct(t,i,e),ct(t,o,a),p=!0)}if(p){if(t.lineWidth=e,r&&(t.globalCompositeOperation=l),t.strokeStyle=tt(c,u),v.enable){const e=F(v.color);e&&(t.shadowBlur=v.blur,t.shadowColor=tt(e))}t.stroke()}}function vt(t,e,i,o,s,n,a,r){!function(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}(t,e,i,o),s&&(t.globalCompositeOperation=n),t.fillStyle=tt(a,r),t.fill()}function pt(t,e,i,o,s){t.save(),ct(t,o,s),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}function ft(t,e,i,o){const s=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=ot(n,a,e.getRadius(),i.getRadius()),d=t.createLinearGradient(r.x,r.y,l.x,l.y);return d.addColorStop(0,et(n,o)),d.addColorStop(s>1?1:s,tt(c,o)),d.addColorStop(1,et(a,o)),d}function yt(t,e,i,o,s,n){t.save(),ct(t,i,o),t.strokeStyle=tt(s,n),t.lineWidth=e,t.stroke(),t.restore()}function mt(t,e,i,o,s,n,a,r,l,c,d,h){var u,v,p,f,y,m;const b=i.getPosition(),g=i.options.tilt,w=i.options.roll;if(e.save(),g.enable||w.enable){const t=w.enable&&i.roll,o=g.enable&&i.tilt,s=t&&("horizontal"===w.mode||"both"===w.mode),n=t&&("vertical"===w.mode||"both"===w.mode);e.setTransform(s?Math.cos(i.roll.angle):1,o?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,o?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,b.x,b.y)}else e.translate(b.x,b.y);e.beginPath();const x=(null!==(v=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==v?v:0)+(i.options.rotate.path?i.velocity.angle:0);0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r);const k=i.shadowColor;if(d.enable&&k&&(e.shadowBlur=d.blur,e.shadowColor=tt(k),e.shadowOffsetX=d.offset.x,e.shadowOffsetY=d.offset.y),h){const t=h.angle.value,i="radial"===h.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of h.colors)i.addColorStop(t.stop,et({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(f=null===(p=t.opacity)||void 0===p?void 0:p.value)&&void 0!==f?f:c));e.fillStyle=i}else s&&(e.fillStyle=s);const z=i.stroke;e.lineWidth=null!==(y=i.strokeWidth)&&void 0!==y?y:0,n&&(e.strokeStyle=n),bt(t,e,i,l,c,o),(null!==(m=null==z?void 0:z.width)&&void 0!==m?m:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),g.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,b.x,b.y):e.translate(b.x,b.y),0!==x&&e.rotate(x),a&&(e.globalCompositeOperation=r),gt(t,e,i,l,c,o),e.restore()}function bt(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);a&&a.draw(e,i,o,s,n,t.retina.pixelRatio)}function gt(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);(null==a?void 0:a.afterEffect)&&a.afterEffect(e,i,o,s,n,t.retina.pixelRatio)}function wt(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}function xt(t,e,i,o){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,o),t.restore())}function kt(t,e,i,o,s,n,a,r,l){const c=e.getPosition();if(i&&(t.strokeStyle=et(i,s)),0===n)return;t.lineWidth=n;const d=a*Math.PI/180;t.beginPath(),t.ellipse(c.x,c.y,o/2,2*o,d,r,l),t.stroke()}function zt(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}t.r(e),t.d(e,{Canvas:function(){return Ut},Circle:function(){return Ct},CircleWarp:function(){return Tt},Constants:function(){return St},Container:function(){return to},Engine:function(){return co},EventListeners:function(){return Rt},ExternalInteractorBase:function(){return Et},FrameManager:function(){return It},InteractionManager:function(){return qt},Loader:function(){return so},Main:function(){return co},Particle:function(){return Gi},Particles:function(){return Xi},ParticlesInteractorBase:function(){return Ht},ParticlesMover:function(){return Ft},Plugins:function(){return _t},Point:function(){return Bt},QuadTree:function(){return jt},Range:function(){return Mt},Rectangle:function(){return Pt},Retina:function(){return Yi},Vector:function(){return $t},Vector3d:function(){return Gt},alterHsl:function(){return zt},animate:function(){return g},areBoundsInside:function(){return P},arrayRandomIndex:function(){return z},calcEasing:function(){return f},calculateBounds:function(){return T},cancelAnimation:function(){return w},circleBounce:function(){return A},circleBounceDataFromParticle:function(){return D},clamp:function(){return i},clear:function(){return ht},collisionVelocity:function(){return p},colorMix:function(){return ot},colorToHsl:function(){return V},colorToRgb:function(){return F},deepExtend:function(){return S},divMode:function(){return I},divModeExecute:function(){return R},drawConnectLine:function(){return pt},drawEllipse:function(){return kt},drawGrabLine:function(){return yt},drawLinkLine:function(){return ut},drawLinkTriangle:function(){return vt},drawParticle:function(){return mt},drawParticlePlugin:function(){return xt},drawPlugin:function(){return wt},drawShape:function(){return bt},drawShapeAfterEffect:function(){return gt},getDistance:function(){return h},getDistances:function(){return d},getHslAnimationFromHsl:function(){return rt},getHslFromAnimation:function(){return at},getLinkColor:function(){return st},getLinkRandomColor:function(){return nt},getParticleBaseVelocity:function(){return v},getParticleDirectionAngle:function(){return u},getRandomRgbColor:function(){return K},getRangeMax:function(){return r},getRangeMin:function(){return a},getRangeValue:function(){return n},getStyleFromHsl:function(){return et},getStyleFromHsv:function(){return it},getStyleFromRgb:function(){return tt},getValue:function(){return c},gradient:function(){return ft},hslToHsv:function(){return G},hslToRgb:function(){return j},hslaToHsva:function(){return U},hslaToRgba:function(){return $},hsvToHsl:function(){return N},hsvToRgb:function(){return X},hsvaToHsla:function(){return J},hsvaToRgba:function(){return Y},isDivModeEnabled:function(){return O},isInArray:function(){return x},isPointInside:function(){return C},isSsr:function(){return b},itemFromArray:function(){return M},loadFont:function(){return k},mix:function(){return o},pJSDom:function(){return is},paintBase:function(){return dt},particlesJS:function(){return es},randomInRange:function(){return s},rectBounce:function(){return L},rgbToHsl:function(){return W},rgbToHsv:function(){return Q},rgbaToHsva:function(){return Z},setRangeValue:function(){return l},singleDivModeExecute:function(){return E},stringToAlpha:function(){return _},stringToRgb:function(){return B},tsParticles:function(){return ts}});class Mt{constructor(t,e){this.position={x:t,y:e}}}class Ct extends Mt{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return h(t,this.position)<=this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||o<=r*r)}return!1}}class Pt extends Mt{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.x<n.x+o&&a.x+i>n.x&&a.y<n.y+s&&a.y+r>n.y}return!1}}class Tt extends Ct{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new Ct(o.x,o.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new Pt(o.x,o.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class St{}function Ot(t,e,i,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}St.generatedAttribute="generated",St.randomColorValue="random",St.midColorValue="mid",St.touchEndEvent="touchend",St.mouseDownEvent="mousedown",St.mouseUpEvent="mouseup",St.mouseMoveEvent="mousemove",St.touchStartEvent="touchstart",St.touchMoveEvent="touchmove",St.mouseLeaveEvent="mouseleave",St.mouseOutEvent="mouseout",St.touchCancelEvent="touchcancel",St.resizeEvent="resize",St.visibilityChangeEvent="visibilitychange",St.noPolygonDataLoaded="No polygon data loaded.",St.noPolygonFound="No polygon found, you need to specify SVG url in config.";class Rt{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,o=i.actualOptions,s=o.interactivity.detectsOn;let n=St.mouseLeaveEvent;if("window"===s)i.interactivity.element=window,n=St.mouseOutEvent;else if("parent"===s&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!b()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?Ot(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(Ot(r,St.mouseMoveEvent,this.mouseMoveHandler,t),Ot(r,St.touchStartEvent,this.touchStartHandler,t),Ot(r,St.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(Ot(r,St.touchEndEvent,this.touchEndClickHandler,t),Ot(r,St.mouseUpEvent,this.mouseUpHandler,t),Ot(r,St.mouseDownEvent,this.mouseDownHandler,t)):Ot(r,St.touchEndEvent,this.touchEndHandler,t),Ot(r,n,this.mouseLeaveHandler,t),Ot(r,St.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===i.canvas.element))&&this.handleWindowResize()})),this.resizeObserver.observe(i.canvas.element)):Ot(window,St.resizeEvent,this.resizeHandler,t)),document&&Ot(document,St.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout((async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())}),500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,o,s,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let d;l.interactivity.mouse.inside=!0;const h=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(h){const t=h.getBoundingClientRect();d={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,s=e.currentTarget,n=l.canvas.element;if(t&&s&&n){const i=t.getBoundingClientRect(),o=s.getBoundingClientRect(),a=n.getBoundingClientRect();d={x:e.offsetX+2*i.left-(o.left+a.left),y:e.offsetY+2*i.top-(o.top+a.top)}}else d={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(o=e.offsetY)&&void 0!==o?o:e.clientY}}else e.target===l.canvas.element&&(d={x:null!==(s=e.offsetX)&&void 0!==s?s:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],o=null==h?void 0:h.getBoundingClientRect();d={x:i.clientX-(null!==(a=null==o?void 0:o.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;d&&(d.x*=u,d.y*=u),l.interactivity.mouse.position=d,l.interactivity.status=St.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=St.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,o=e.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const o=i.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout((()=>this.mouseTouchFinish()),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find((t=>t.name===e));i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,o=i.interactivity.modes.push.quantity,s=i.interactivity.modes.remove.quantity;switch(t){case"push":if(o>0){const t=M([void 0,...i.interactivity.modes.push.groups]),s=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(o,e.interactivity.mouse,s,t)}break;case"remove":e.particles.removeQuantity(s);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout((()=>{e.destroyed||(e.repulse.clicking=!1)}),1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout((()=>{e.destroyed||(e.attract.clicking=!1)}),1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class Et{constructor(t){this.container=t,this.type=0}}class It{constructor(t){this.container=t}async nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t<i.lastFrameTime+1e3/i.fpsLimit)return void i.draw(!1);null!==(e=i.lastFrameTime)&&void 0!==e||(i.lastFrameTime=t);const o=t-i.lastFrameTime,s={value:o,factor:60*o/1e3};if(i.lifeTime+=s.value,i.lastFrameTime=t,o>1e3)return void i.draw(!1);if(await i.particles.draw(s),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var Dt,At=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Lt=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class qt{constructor(t,e){this.container=e,Dt.set(this,void 0),At(this,Dt,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=Lt(this,Dt,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}async externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&await e.interact(t)}async particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}}Dt=new WeakMap;class Ht{constructor(t){this.container=t,this.type=1}}class Ft{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,o,s,a,l;const c=t.options,h=c.move;if(!h.enable)return;const u=this.container,v=this.getProximitySpeedFactor(t),p=(null!==(i=(a=t.retina).moveSpeed)&&void 0!==i?i:a.moveSpeed=n(h.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,f=null!==(o=(l=t.retina).moveDrift)&&void 0!==o?o:l.moveDrift=n(t.options.move.drift)*u.retina.pixelRatio,y=r(c.size.value)*u.retina.pixelRatio,m=p*((h.size?t.getRadius()/y:1)*v*(e.factor||1)/2);this.applyPath(t,e);const b=h.gravity,g=b.enable&&b.inverse?-1:1;b.enable&&m&&(t.velocity.y+=g*(b.acceleration*e.factor)/(60*m)),f&&m&&(t.velocity.x+=f*e.factor/(60*m));const w=t.moveDecay;1!=w&&t.velocity.multTo(w);const x=t.velocity.mult(m),k=null!==(s=t.retina.maxSpeed)&&void 0!==s?s:u.retina.maxSpeed;b.enable&&b.maxSpeed>0&&(!b.inverse&&x.y>=0&&x.y>=k||b.inverse&&x.y<=0&&x.y<=-k)&&(x.y=g*k,m&&(t.velocity.y=x.y/m));const z=t.options.zIndex,M=(1-t.zIndexFactor)**z.velocityRate;h.spin.enable?this.spin(t,m):(1!=M&&x.multTo(M),t.position.addTo(x),h.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:o}=d(e,t.position),s=Math.abs(i),n=Math.abs(o),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||s<a)&&(!r||n<r)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,o=t.velocity;a&&(i.x<e.x&&o.x<0||i.x>e.x&&o.x>0)&&(o.x*=-Math.random()),r&&(i.y<e.y&&o.y<0||i.y>e.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const o={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/s)}applyPath(t,e){const o=t.options.move.path;if(!o.enable)return;const s=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=s.pathGenerator.generate(t);t.velocity.addTo(n),o.clamp&&(t.velocity.x=i(t.velocity.x,-1,1),t.velocity.y=i(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(b()||!i.interactivity.events.onHover.parallax.enable)return;const o=i.interactivity.events.onHover.parallax.force,s=e.interactivity.mouse.position;if(!s)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,d=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(d-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!x("slow",i.interactivity.events.onHover.mode))return 1;const o=this.container.interactivity.mouse.position;if(!o)return 1;const s=h(o,t.getPosition()),n=e.retina.slowModeRadius;if(s>n)return 1;return(s/n||0)/i.interactivity.modes.slow.factor}}var Vt,Wt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};class _t{constructor(t){Vt.set(this,void 0),Wt(this,Vt,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find((e=>e.id===t))}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map((e=>e(t))),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map((e=>e(t))),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}Vt=new WeakMap;class Bt{constructor(t,e){this.position=t,this.particle=e}}class jt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new jt(new Pt(t,e,i/2,o/2),s),this.northWest=new jt(new Pt(t+i/2,e,i/2,o/2),s),this.southEast=new jt(new Pt(t,e+o/2,i/2,o/2),s),this.southWest=new jt(new Pt(t+i/2,e+o/2,i/2,o/2),s),this.divided=!0}insert(t){var e,i,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.length<this.capacity?(this.points.push(t),!0):(this.divided||this.subdivide(),null!==(n=(null===(e=this.northEast)||void 0===e?void 0:e.insert(t))||(null===(i=this.northWest)||void 0===i?void 0:i.insert(t))||(null===(o=this.southEast)||void 0===o?void 0:o.insert(t))||(null===(s=this.southWest)||void 0===s?void 0:s.insert(t)))&&void 0!==n&&n))}queryCircle(t,e){return this.query(new Ct(t.x,t.y,e))}queryCircleWarp(t,e,i){const o=i,s=i;return this.query(new Tt(t.x,t.y,e,void 0!==o.canvas?o.canvas.size:s))}queryRectangle(t,e){return this.query(new Pt(t.x,t.y,e.width,e.height))}query(t,e){var i,o,s,n;const a=null!=e?e:[];if(!t.intersects(this.rectangle))return[];for(const e of this.points)!t.contains(e.position)&&h(t.position,e.position)>e.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class $t{constructor(t,e){let i,o;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,o]=[e.x,e.y]}else[i,o]=[t,e];this.x=i,this.y=o}static clone(t){return $t.create(t.x,t.y)}static create(t,e){return new $t(t,e)}static get origin(){return $t.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return $t.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return $t.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return $t.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return $t.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return $t.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return $t.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class Gt extends $t{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return Gt.create(t.x,t.y,t.z)}static create(t,e,i){return new Gt(t,e,i)}add(t){return t instanceof Gt?Gt.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof Gt&&(this.z+=t.z)}sub(t){return t instanceof Gt?Gt.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof Gt&&(this.z-=t.z)}mult(t){return Gt.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return Gt.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return Gt.clone(this)}setTo(t){super.setTo(t),t instanceof Gt&&(this.z=t.z)}}class Ut{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&St.generatedAttribute in t.dataset?"true"===t.dataset[St.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=S({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw((t=>{ht(t,this.size)}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?(ht(e,this.size),this.paintBase(tt(this.coverColor,this.coverColor.a))):this.paintBase()}))}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(tt(this.trailFillColor,1/e.length)):this.draw((t=>{ht(t,this.size)}))}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,o=i.width,s=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/o,height:i.height/s})}drawConnectLine(t,e){this.draw((i=>{var o;const s=this.lineStyle(t,e);if(!s)return;const n=t.getPosition(),a=e.getPosition();pt(i,null!==(o=t.retina.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)}))}drawGrabLine(t,e,i,o){const s=this.container;this.draw((n=>{var a;const r=t.getPosition();yt(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,e,i)}))}drawParticle(t,e){var i,o,s,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[d,h]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,v=u.enable&&Math.random()<u.frequency;if(!d||!h){const t=V(u.color);d||(d=v&&void 0!==t?t:l||void 0),h||(h=v&&void 0!==t?t:c||void 0)}const p=this.container.actualOptions,f=t.options.zIndex,y=(1-t.zIndexFactor)**f.opacityRate,m=t.getRadius(),b=v?u.opacity:null!==(n=null!==(o=t.bubble.opacity)&&void 0!==o?o:null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,g=null!==(r=null===(a=t.stroke)||void 0===a?void 0:a.opacity)&&void 0!==r?r:b,w=b*y,x=d?et(d,w):void 0;(x||h)&&this.draw((i=>{const o=(1-t.zIndexFactor)**f.sizeRate,s=h?et(h,g*y):x;if(m<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);mt(this.container,i,t,e,x,s,p.backgroundMask.enable,p.backgroundMask.composite,m*o,w,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)}))}drawPlugin(t,e){this.draw((i=>{wt(i,t,e)}))}drawParticlePlugin(t,e,i){this.draw((o=>{xt(o,t,e,i)}))}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=F(t.color);i.backgroundColor=e?tt(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=F(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=F(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,o]of this.container.plugins)if(!e&&o.particleFillColor&&(e=V(o.particleFillColor(t))),!i&&o.particleStrokeColor&&(i=V(o.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=S({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const o=e.style[i];o&&t.style.setProperty(i,o,"important")}}paintBase(t){this.draw((e=>{dt(e,this.size,t)}))}lineStyle(t,e){return this.draw((i=>{const o=this.container.actualOptions.interactivity.modes.connect;return ft(i,t,e,o.links.opacity)}))}}class Nt{constructor(){this.value="#fff"}static create(t,e){const i=new Nt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class Jt{constructor(){this.color=new Nt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Xt{constructor(){this.color=new Nt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Yt{constructor(){this.composite="destination-out",this.cover=new Xt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Qt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class Zt{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class Kt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){var e,i;if(void 0===t)return;const o=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==o&&(this.ids=o),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class te{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class ee{constructor(){this.enable=!1,this.mode=[],this.parallax=new te}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class ie{constructor(){this.onClick=new Zt,this.onDiv=new Kt,this.onHover=new ee,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,o;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const s=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map((t=>{const e=new Kt;return e.load(t),e})):(this.onDiv=new Kt,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class oe{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class se{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class ne{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map((t=>Nt.create(void 0,t))):(this.color instanceof Array&&(this.color=new Nt),this.color=Nt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class ae extends ne{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((t=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class re extends ne{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ae;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ae),this.divs.load(t.divs)))}}class le{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class ce{constructor(){this.distance=80,this.links=new le,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class de{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class he{constructor(){this.distance=100,this.links=new de}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class ue{constructor(){this.start=new Nt,this.stop=new Nt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=Nt.create(this.start,t.start),this.stop=Nt.create(this.stop,t.stop))}}class ve{constructor(){this.gradient=new ue,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class pe{constructor(){this.color=new Nt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=Nt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class fe{constructor(){this.area=new ve,this.shadow=new pe}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class ye{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map((t=>t))),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class me{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class be{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ge extends be{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map((t=>t.replace("#",""))):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map((()=>`#${t}`)):`#${t}`}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class we extends be{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map((t=>{const e=new ge;return e.load(t),e})):((this.divs instanceof Array||!this.divs)&&(this.divs=new ge),this.divs.load(t.divs)))}}class xe{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class ke{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class ze{constructor(){this.attract=new oe,this.bounce=new se,this.bubble=new re,this.connect=new ce,this.grab=new he,this.light=new fe,this.push=new ye,this.remove=new me,this.repulse=new we,this.slow=new xe,this.trail=new ke}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class Me{constructor(){this.detectsOn="window",this.events=new ie,this.modes=new ze}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Ce{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=S({},t.options)))}}class Pe{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Te{constructor(){this.disable=!1,this.reduce=new Pe}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Se{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=l(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Oe{constructor(){this.h=new Se,this.s=new Se,this.l=new Se}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Re extends Nt{constructor(){super(),this.animation=new Oe}static create(t,e){const i=new Re;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class Ee{constructor(){this.angle=new Ie,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map((t=>{const e=new Ae;return e.load(t),e}))),void 0!==t.type&&(this.type=t.type))}}class Ie{constructor(){this.value=0,this.animation=new Le,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class De{constructor(){this.value=0,this.animation=new qe}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=l(t.value)))}}class Ae{constructor(){this.stop=0,this.value=new Re}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=Re.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new De,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class Le{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class qe{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class He{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class Fe{constructor(){this.random=new He,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=l(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class Ve extends Fe{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class We{constructor(){this.horizontal=new Ve,this.vertical=new Ve}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class _e{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Be{constructor(){this.bounce=new We,this.enable=!1,this.mode="bounce",this.overlap=new _e}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class je extends Fe{constructor(){super(),this.value=3}}class $e extends Fe{constructor(){super(),this.value={min:4,max:9}}}class Ge{constructor(){this.count=1,this.factor=new je,this.rate=new $e,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=S({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class Ue{constructor(){this.mode="none",this.split=new Ge}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class Ne extends Fe{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Je extends Fe{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class Xe{constructor(){this.count=0,this.delay=new Ne,this.duration=new Je}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Ye{constructor(){this.blur=5,this.color=new Nt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Qe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ze{constructor(){this.blink=!1,this.color=new Nt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ye,this.triangles=new Qe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=Nt.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))}}class Ke{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,o,s;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class ti{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class ei{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class ii{constructor(){this.default="out"}load(t){var e,i,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class oi extends Fe{constructor(){super()}}class si{constructor(){this.clamp=!0,this.delay=new oi,this.enable=!1,this.options={}}load(t){void 0!==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=S(this.options,t.options)))}}class ni{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=l(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?S({},t.position):void 0)}}class ai{constructor(){this.enable=!1,this.length=10,this.fillColor=new Nt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=Nt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ri{constructor(){this.angle=new ti,this.attract=new Ke,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new ei,this.path=new si,this.outModes=new ii,this.random=!1,this.size=!1,this.speed=2,this.spin=new ni,this.straight=!1,this.trail=new ai,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:S({},t.distance)),void 0!==t.drift&&(this.drift=l(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=l(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class li{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class ci extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class di extends Fe{constructor(){super(),this.animation=new ci,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class hi extends Fe{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class ui{constructor(){this.animation=new li,this.enable=!1,this.opacity=1,this.rotation=new hi,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=Nt.create(this.color,t.color)))}}class vi{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class pi{constructor(){this.density=new vi,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class fi extends Fe{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class yi{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class mi{constructor(){this.darken=new yi,this.enable=!1,this.enlighten=new yi,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=Nt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=l(t.speed)))}}class bi{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class gi extends Fe{constructor(){super(),this.animation=new bi,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class wi{constructor(){this.blur=0,this.color=new Nt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=Nt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class xi{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==s)for(const t in s){const e=s[t];void 0!==e&&(this.options[t]=S(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=S(null!==(s=this.options[e])&&void 0!==s?s:[],t),this.options[i]&&!o||(this.options[i]=S(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=S(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=S(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class ki extends li{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class zi extends Fe{constructor(){super(),this.animation=new ki,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=l(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Mi{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Re.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ci{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Pi extends Fe{constructor(){super(),this.animation=new Ci,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ti{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=Nt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Si{constructor(){this.lines=new Ti,this.particles=new Ti}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class Oi{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=l(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=l(t.speed)))}}class Ri extends Fe{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class Ei{constructor(){this.bounce=new We,this.collisions=new Be,this.color=new Re,this.destroy=new Ue,this.gradient=[],this.groups={},this.life=new Xe,this.links=new Ze,this.move=new ri,this.number=new pi,this.opacity=new di,this.orbit=new ui,this.reduceDuplicates=!1,this.repulse=new fi,this.roll=new mi,this.rotate=new gi,this.shadow=new wi,this.shape=new xi,this.size=new zi,this.stroke=new Mi,this.tilt=new Pi,this.twinkle=new Si,this.wobble=new Oi,this.zIndex=new Ri}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(Re.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=S(null!==(o=this.groups[e])&&void 0!==o?o:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const d=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==d&&(this.collisions.enable=d),this.collisions.load(t.collisions);const h=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;h&&(h instanceof Array?this.stroke=h.map((t=>{const e=new Mi;return e.load(t),e})):(this.stroke instanceof Array&&(this.stroke=new Mi),this.stroke.load(h)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map((t=>{const e=new Ee;return e.load(t),e})):(this.gradient instanceof Array&&(this.gradient=new Ee),this.gradient.load(u)))}}class Ii{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=S({},t.options)))}}class Di{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Ai{constructor(){this.name="",this.default=new Di}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=S({},t.options)))}}var Li,qi,Hi,Fi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Vi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Wi{constructor(t){Li.add(this),qi.set(this,void 0),Fi(this,qi,t,"f"),this.autoPlay=!0,this.background=new Jt,this.backgroundMask=new Yt,this.fullScreen=new Qt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Me,this.manualParticles=[],this.motion=new Te,this.particles=new Ei,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o,s,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),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 l=null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new Ce;return e.load(t),e}))),this.motion.load(t.motion),this.particles.load(t.particles),this.style=S(this.style,t.style),Vi(this,qi,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new Ii;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=new Ai;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(s=Vi(this,Li,"m",Hi).call(this,"dark"))||void 0===s?void 0:s.name,this.defaultLightTheme=null===(n=Vi(this,Li,"m",Hi).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=Vi(this,Li,"m",Hi).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const o=this.responsive.find((i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t));return this.load(null==o?void 0:o.options),null==o?void 0:o.maxWidth}importPreset(t){this.load(Vi(this,qi,"f").plugins.getPreset(t))}}qi=new WeakMap,Li=new WeakSet,Hi=function(t){var e;return null!==(e=this.themes.find((e=>e.default.value&&e.default.mode===t)))&&void 0!==e?e:this.themes.find((t=>t.default.value&&"any"===t.default.mode))};var _i,Bi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},ji=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const $i=t=>{(x(t.outMode,t.checkModes)||x(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class Gi{constructor(t,e,o,l,d,v){var p,f,y,m,b,g,w,x,k;this.id=e,this.container=o,this.group=v,_i.set(this,void 0),Bi(this,_i,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const z=o.retina.pixelRatio,C=o.actualOptions,P=new Ei;P.load(C.particles);const T=P.shape.type,S=P.reduceDuplicates;if(this.shape=T instanceof Array?M(T,this.id,S):T,null==d?void 0:d.shape){if(d.shape.type){const t=d.shape.type;this.shape=t instanceof Array?M(t,this.id,S):t}const t=new xi;t.load(d.shape),this.shape&&(this.shapeData=this.loadShapeData(t,S))}else this.shapeData=this.loadShapeData(P.shape,S);void 0!==d&&P.load(d),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&P.load(null===(f=this.shapeData)||void 0===f?void 0:f.particles),this.fill=null!==(m=null===(y=this.shapeData)||void 0===y?void 0:y.fill)&&void 0!==m?m:this.fill,this.close=null!==(g=null===(b=this.shapeData)||void 0===b?void 0:b.close)&&void 0!==g?g:this.close,this.options=P,this.pathDelay=1e3*c(this.options.move.path.delay);const O=n(this.options.zIndex.value);o.retina.initParticle(this);const R=this.options.size,E=R.value;this.size={enable:R.animation.enable,value:c(R)*o.retina.pixelRatio,max:r(E)*z,min:a(E)*z,loops:0,maxLoops:R.animation.count};const I=R.animation;if(I.enable){switch(this.size.status=0,I.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=s(this.size)*z,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(w=this.retina.sizeAnimationSpeed)&&void 0!==w?w:o.retina.sizeAnimationSpeed)/100*o.retina.reduceFactor,I.sync||(this.size.velocity*=Math.random())}this.direction=u(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-n(this.options.move.decay),this.position=this.calcPosition(o,l,i(O,0,o.zLayers)),this.initialPosition=this.position.copy(),this.offset=$t.origin;const D=o.particles;D.needsSort=D.needsSort||D.lastZIndex<this.position.z,D.lastZIndex=this.position.z,this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let A=o.drawers.get(this.shape);A||(A=ji(this,_i,"f").plugins.getShapeDrawer(this.shape),A&&o.drawers.set(this.shape,A)),(null==A?void 0:A.loadShape)&&(null==A||A.loadShape(this));const L=null==A?void 0:A.getSidesCount;if(L&&(this.sides=L(this)),this.life=this.loadLife(),this.spawning=this.life.delay>0,this.options.move.spin.enable){const t=null!==(x=this.options.move.spin.position)&&void 0!==x?x:{x:50,y:50},e={x:t.x/100*o.canvas.size.width,y:t.y/100*o.canvas.size.height},i=h(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:i,acceleration:null!==(k=this.retina.spinAcceleration)&&void 0!==k?k:n(this.options.move.spin.acceleration)}}this.shadowColor=F(this.options.shadow.color);for(const t of o.particles.updaters)t.init&&t.init(this);A&&A.particleInit&&A.particleInit(o,this);for(const[,t]of o.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e;const i=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.color);if(i&&this.roll&&(this.backColor||this.roll.alter)){const t="both"===this.options.roll.mode?2:1,o="horizontal"===this.options.roll.mode?Math.PI/2:0;if(Math.floor(((null!==(e=this.roll.angle)&&void 0!==e?e:0)+o)/(Math.PI/t))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return zt(i,this.roll.alter.type,this.roll.alter.value)}}return i}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:at(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=n(t.rate.value);for(let t=0;t<e;t++)this.container.particles.addSplitParticle(this)}calcPosition(t,e,i,o=0){var s,n,a,r,l,c;for(const[,o]of t.plugins){const t=void 0!==o.particlePosition?o.particlePosition(e,this):void 0;if(void 0!==t)return Gt.create(t.x,t.y,i)}const d=t.canvas.size,h=Gt.create(null!==(s=null==e?void 0:e.x)&&void 0!==s?s:Math.random()*d.width,null!==(n=null==e?void 0:e.y)&&void 0!==n?n:Math.random()*d.height,i),u=this.getRadius(),v=this.options.move.outModes,p=e=>{$i({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:h.x,maxCoord:t.canvas.size.width,setCb:t=>h.x+=t,radius:u})},f=e=>{$i({outMode:e,checkModes:["bounce","bounce-vertical"],coord:h.y,maxCoord:t.canvas.size.height,setCb:t=>h.y+=t,radius:u})};return p(null!==(a=v.left)&&void 0!==a?a:v.default),p(null!==(r=v.right)&&void 0!==r?r:v.default),f(null!==(l=v.top)&&void 0!==l?l:v.default),f(null!==(c=v.bottom)&&void 0!==c?c:v.default),this.checkOverlap(h,o)?this.calcPosition(t,void 0,i,o+1):h}checkOverlap(t,e=0){const i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;const s=i.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(h(t,e.position)<o+e.getRadius()){a=!0;break}return a}calculateVelocity(){const t=v(this.direction).copy(),e=this.options.move,i=Math.PI/180*e.angle.value,o=Math.PI/180*e.angle.offset,n={left:o-i/2,right:o+i/2};return e.straight||(t.angle+=s(l(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=Math.random()),t}loadShapeData(t,e){const i=t.options[this.shape];if(i)return S({},i instanceof Array?M(i,this.id,e):i)}loadLife(){const t=this.container,e=this.options,i=e.life,o={delay:t.retina.reduceFactor?n(i.delay.value)*(i.delay.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,delayTime:0,duration:t.retina.reduceFactor?n(i.duration.value)*(i.duration.sync?1:Math.random())/t.retina.reduceFactor*1e3:0,time:0,count:e.life.count};return o.duration<=0&&(o.duration=-1),o.count<=0&&(o.count=-1),o}}_i=new WeakMap;var Ui,Ni=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ji=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Xi{constructor(t,e){this.container=e,Ui.set(this,void 0),Ni(this,Ui,t,"f"),this.nextId=0,this.array=[],this.zArray=[],this.mover=new Ft(e),this.limit=0,this.needsSort=!1,this.lastZIndex=0,this.freqs={links:new Map,triangles:new Map},this.interactionManager=new qt(Ji(this,Ui,"f"),e);const i=this.container.canvas.size;this.linksColors=new Map,this.quadTree=new jt(new Pt(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),this.updaters=Ji(this,Ui,"f").plugins.getUpdaters(e,!0)}get count(){return this.array.length}init(){var t;const e=this.container,i=e.actualOptions;this.lastZIndex=0,this.needsSort=!1,this.freqs.links=new Map,this.freqs.triangles=new Map;let o=!1;this.updaters=Ji(this,Ui,"f").plugins.getUpdaters(e,!0),this.interactionManager.init();for(const[,t]of e.plugins)if(void 0!==t.particlesInitialization&&(o=t.particlesInitialization()),o)break;if(this.addManualParticles(),!o){for(const e in i.particles.groups){const o=i.particles.groups[e];for(let s=this.count,n=0;n<(null===(t=o.number)||void 0===t?void 0:t.value)&&s<i.particles.number.value;s++,n++)this.addParticle(void 0,o,e)}for(let t=this.count;t<i.particles.number.value;t++)this.addParticle()}e.pathGenerator.init(e)}async redraw(){this.clear(),this.init(),await this.draw({value:0,factor:0})}removeAt(t,e=1,i,o){if(!(t>=0&&t<=this.count))return;let s=0;for(let n=t;s<e&&n<this.count;n++){const t=this.array[n];if(!t||t.group!==i)continue;t.destroy(o),this.array.splice(n--,1);const e=this.zArray.indexOf(t);this.zArray.splice(e,1),s++}}remove(t,e,i){this.removeAt(this.array.indexOf(t),void 0,e,i)}async update(t){const e=this.container,i=[];e.pathGenerator.update();for(const[,i]of e.plugins)void 0!==i.update&&i.update(t);for(const o of this.array){const s=e.canvas.resizeFactor;s&&(o.position.x*=s.width,o.position.y*=s.height),o.bubble.inRange=!1;for(const[,e]of this.container.plugins){if(o.destroyed)break;e.particleUpdate&&e.particleUpdate(o,t)}this.mover.move(o,t),o.destroyed?i.push(o):this.quadTree.insert(new Bt(o.getPosition(),o))}for(const t of i)this.remove(t);await this.interactionManager.externalInteract(t);for(const i of e.particles.array){for(const e of this.updaters)e.update(i,t);i.destroyed||i.spawning||await this.interactionManager.particlesInteract(i,t)}delete e.canvas.resizeFactor}async draw(t){const e=this.container;e.canvas.clear();const i=this.container.canvas.size;this.quadTree=new jt(new Pt(-i.width/4,-i.height/4,3*i.width/2,3*i.height/2),4),await this.update(t),this.needsSort&&(this.zArray.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,o){this.pushing=!0;for(let s=0;s<t;s++)this.addParticle(null==e?void 0:e.position,i,o);this.pushing=!1}addParticle(t,e,i){const o=this.container,s=o.actualOptions.particles.number.limit*o.density;if(s>0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new Ei;i.load(t.options);const o=n(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=o:(i.size.value.min/=o,i.size.value.max/=o),i.load(e.particles);const a=e.sizeOffset?l(-t.size.value,t.size.value):0,r={x:t.position.x+s(a),y:t.position.y+s(a)};return this.pushParticle(r,i,t.group,(e=>!(e.size.value<.5)&&(e.velocity.length=s(l(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout((()=>{e.unbreakable=!1}),500),!0)))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=l(t.id,e.id),o=`${a(i)}_${r(i)}`;let s=this.freqs.links.get(o);return void 0===s&&(s=Math.random(),this.freqs.links.set(o,s)),s}getTriangleFrequency(t,e,i){let[o,s,n]=[t.id,e.id,i.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter((t=>t.group===i)).length);this.limit=s.limit*n,c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,o=e.retina.pixelRatio;return i.width*i.height/(t.factor*o**2*t.area)}pushParticle(t,e,i,o){try{const s=new Gi(Ji(this,Ui,"f"),this.nextId,this.container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn(`error adding particle: ${t}`)}}}Ui=new WeakMap;class Yi{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||b()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(b()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch((()=>{}))};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*o,t.canvas.size.height=e.offsetHeight*o}const s=e.particles;this.attractDistance=s.move.attract.distance*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=s.size.animation.speed*o,this.maxSpeed=s.move.gravity.maxSpeed*o,void 0!==s.orbit.radius&&(this.orbitRadius=s.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const e=t.options,i=this.pixelRatio,o=e.move.distance,s=t.retina;s.attractDistance=e.move.attract.distance*i,s.linksDistance=e.links.distance*i,s.linksWidth=e.links.width*i,s.moveDrift=n(e.move.drift)*i,s.moveSpeed=n(e.move.speed)*i,s.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(s.spinAcceleration=n(e.move.spin.acceleration)*i);const a=s.maxDistance;a.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,a.vertical=void 0!==o.vertical?o.vertical*i:void 0,s.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Qi,Zi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Ki=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class to{constructor(t,e,i,...o){this.id=e,Qi.set(this,void 0),Zi(this,Qi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Yi(this),this.canvas=new Ut(this),this.particles=new Xi(Ki(this,Qi,"f"),this),this.drawer=new It(this),this.presets=o,this.pathGenerator={generate:()=>{const t=$t.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new Wi(Ki(this,Qi,"f")),this.actualOptions=new Wi(Ki(this,Qi,"f")),this.eventListeners=new Rt(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver((t=>this.intersectionManager(t))))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&(w()(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=g()((async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this.drawer.nextFrame(t)}))}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){var o,s,n;if(t)if("function"==typeof t)this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i);else{const e=this.pathGenerator;this.pathGenerator=t,(o=this.pathGenerator).generate||(o.generate=e.generate),(s=this.pathGenerator).init||(s.init=e.init),(n=this.pathGenerator).update||(n.update=e.update)}}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new Wi(Ki(this,Qi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:i.x*s,y:i.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(e,a)};let o=!1,s=!1;e.addEventListener("click",(t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o,1)})),e.addEventListener("touchstart",(()=>{this.destroyed||(o=!0,s=!1)})),e.addEventListener("touchmove",(()=>{this.destroyed||(s=!0)})),e.addEventListener("touchend",(t=>{var e,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}})),e.addEventListener("touchcancel",(()=>{this.destroyed||(o=!1,s=!1)}))}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new Wi(Ki(this,Qi,"f"));for(const t of this.presets)this._options.load(Ki(this,Qi,"f").plugins.getPreset(t));const t=Ki(this,Qi,"f").plugins.getSupportedShapes();for(const e of t){const t=Ki(this,Qi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new Wi(Ki(this,Qi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=n(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=Ki(this,Qi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;i.generator&&this.setPath(Ki(this,Qi,"f").plugins.getPathGenerator(i.generator)),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Qi=new WeakMap;var eo,io=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},oo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class so{constructor(t){eo.set(this,void 0),io(this,eo,t,"f")}dom(){return oo(this,eo,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,o;const s=null!==(e=t.tagId)&&void 0!==e?e:`tsparticles${Math.floor(1e4*Math.random())}`,{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(s);r||(r=document.createElement("div"),r.id=s,null===(o=document.querySelector("body"))||void 0===o||o.append(r));const l=n instanceof Array?M(n,a):n,c=this.dom(),d=c.findIndex((t=>t.id===s));if(d>=0){const t=this.domItem(d);t&&!t.destroyed&&(t.destroy(),c.splice(d,1))}let h;if("canvas"===r.tagName.toLowerCase())h=r,h.dataset[St.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(h=t[0],h.dataset[St.generatedAttribute]="false"):(h=document.createElement("canvas"),h.dataset[St.generatedAttribute]="true",h.style.width="100%",h.style.height="100%",r.appendChild(h))}const u=new to(oo(this,eo,"f"),s,l);return d>=0?c.splice(d,0,u):c.push(u),u.canvas.loadCanvas(h),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,o=e instanceof Array?M(e,i):e;if(!o)return;const s=await fetch(o);if(!s.ok)return n=s.status,console.error(`Error tsParticles - fetch status: ${n}`),void console.error("Error tsParticles - File config not found");var n;const a=await s.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const o={index:i};return"string"==typeof t?o.tagId=t:o.options=t,"number"==typeof e?o.index=null!=e?e:o.index:o.options=null!=e?e:o.options,this.loadOptions(o)}async set(t,e,i,o){const s={index:o};return"string"==typeof t?s.tagId=t:s.element=t,e instanceof HTMLElement?s.element=e:s.options=e,"number"==typeof i?s.index=i:s.options=null!=i?i:s.options,this.loadOptions(s)}async loadJSON(t,e,i){let o,s;return"number"==typeof e||void 0===e?o=t:(s=t,o=e),this.loadRemoteOptions({tagId:s,url:o,index:i})}async setJSON(t,e,i,o){let s,n,a,r;return t instanceof HTMLElement?(r=t,s=e,a=i):(n=t,r=e,s=i,a=o),this.loadRemoteOptions({tagId:n,url:s,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}eo=new WeakMap;var no,ao,ro=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},lo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class co{constructor(){no.set(this,void 0),ao.set(this,void 0),ro(this,no,!1,"f"),this.domArray=[],ro(this,ao,new so(this),"f"),this.plugins=new _t(this)}init(){lo(this,no,"f")||ro(this,no,!0,"f")}async loadFromArray(t,e,i){return lo(this,ao,"f").load(t,e,i)}async load(t,e){return lo(this,ao,"f").load(t,e)}async set(t,e,i){return lo(this,ao,"f").set(t,e,i)}async loadJSON(t,e,i){return lo(this,ao,"f").loadJSON(t,e,i)}async setJSON(t,e,i,o){return lo(this,ao,"f").setJSON(t,e,i,o)}setOnClickHandler(t){lo(this,ao,"f").setOnClickHandler(t)}dom(){return lo(this,ao,"f").dom()}domItem(t){return lo(this,ao,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,o,s){let n;n="function"==typeof e?{afterEffect:o,destroy:s,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}}no=new WeakMap,ao=new WeakMap;class ho{constructor(t){this.container=t}init(t){const e=t.options.rotate;t.rotate={enable:e.animation.enable,value:n(e.value)*Math.PI/180};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status=1;break;case"clockwise":t.rotate.status=0}const o=t.options.rotate.animation;o.enable&&(t.rotate.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=Math.random()))}isEnabled(t){const e=t.options.rotate,i=e.animation;return!t.destroyed&&!t.spawning&&!e.path&&i.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;const o=t.rotate;if(!o)return;const s=t.options.rotate.animation,n=(null!==(i=o.velocity)&&void 0!==i?i:0)*e.factor,a=2*Math.PI;if(s.enable)switch(o.status){case 0:o.value+=n,o.value>a&&(o.value-=a);break;case 1:default:o.value-=n,o.value<0&&(o.value+=a)}}(t,e)}}class uo{getSidesCount(){return 12}draw(t,e,i){t.arc(0,0,i,0,2*Math.PI,!1)}}function vo(t,e,i,o,n){var a;const r=e;if(!r||!i.enable)return;const l=s(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;n&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,n&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class po{constructor(t){this.container=t}init(t){const e=V(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=rt(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){var e,i,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(e=t.color)||void 0===e?void 0:e.h.value)&&s.h.enable||void 0!==(null===(i=t.color)||void 0===i?void 0:i.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,e){!function(t,e){var i,o,s;const n=t.options.color.animation;void 0!==(null===(i=t.color)||void 0===i?void 0:i.h)&&vo(e,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&vo(e,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&vo(e,t.color.l,n.l,100,!0)}(t,e)}}class fo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events;if(!(i.position&&o.onHover.enable||i.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return x("attract",s)||x("attract",n)}reset(){}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===St.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode;i&&s&&x("attract",n)?this.hoverAttract():a&&x("attract",r)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new Ct(e.x,e.y,i))}processAttract(t,e,o){const s=this.container,n=s.actualOptions.interactivity.modes.attract,a=s.particles.quadTree.query(o);for(const o of a){const{dx:s,dy:a,distance:r}=d(o.position,t),l=n.speed*n.factor,c=i(f(1-r/e,n.easing)*l,0,n.maxSpeed),h=$t.create(0===r?l:s/r*c,0===r?l:a/r*c);o.position.subFrom(h)}}clickAttract(){const t=this.container;if(t.attract.finish||(t.attract.count||(t.attract.count=0),t.attract.count++,t.attract.count===t.particles.count&&(t.attract.finish=!0)),t.attract.clicking){const e=t.interactivity.mouse.clickPosition;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new Ct(e.x,e.y,i))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class yo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=o.onDiv;return i.position&&o.onHover.enable&&x("bounce",o.onHover.mode)||O("bounce",s)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===St.mouseMoveEvent,o=e.onHover.enable,s=e.onHover.mode,n=e.onDiv;i&&o&&x("bounce",s)?this.processMouseBounce():R("bounce",n,((t,e)=>this.singleSelectorBounce(t,e)))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;i&&this.processBounce(i,o,new Ct(i.x,i.y,o+e))}singleSelectorBounce(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l="circle"===e.type?new Ct(n.x,n.y,a+r):new Pt(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)}))}processBounce(t,e,i){const o=this.container.particles.quadTree.query(i);for(const s of o)i instanceof Ct?A(D(s),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:$t.origin,factor:$t.origin}):i instanceof Pt&&L(s,T(t,e))}}function mo(t,e,o,s){if(e>=o){return i(t+(e-o)*s,t,e)}if(e<o){return i(t-(o-e)*s,e,t)}}class bo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=O("bubble",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return x("bubble",n)||x("bubble",a)||s}reset(t,e){t.bubble.inRange&&!e||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}async interact(){const t=this.container.actualOptions.interactivity.events,e=t.onHover,i=t.onClick,o=e.enable,s=e.mode,n=i.enable,a=i.mode,r=t.onDiv;o&&x("bubble",s)?this.hoverBubble():n&&x("bubble",a)?this.clickBubble():R("bubble",r,((t,e)=>this.singleSelectorHover(t,e)))}singleSelectorHover(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new Ct(n.x,n.y,a):new Pt(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=i.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const e=I(i.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,e),this.hoverBubbleOpacity(t,1,e),this.hoverBubbleColor(t,1,e)}}))}process(t,e,i,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,d=o.particlesObj.value||0,h=o.type;if(n!==l)if(s.bubble.durationEnd)c&&("size"===h&&delete t.bubble.radius,"opacity"===h&&delete t.bubble.opacity);else if(e<=r){if((null!=c?c:d)!==n){const e=d-i*(d-n)/a;"size"===h&&(t.bubble.radius=e),"opacity"===h&&(t.bubble.opacity=e)}}else"size"===h&&delete t.bubble.radius,"opacity"===h&&delete t.bubble.opacity}clickBubble(){var t,e;const i=this.container,o=i.actualOptions,s=i.interactivity.mouse.clickPosition;if(!s)return;const n=i.retina.bubbleModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const n of a){if(!i.bubble.clicking)continue;n.bubble.inRange=!i.bubble.durationEnd;const a=h(n.getPosition(),s),l=((new Date).getTime()-(i.interactivity.mouse.clickTime||0))/1e3;l>o.interactivity.modes.bubble.duration&&(i.bubble.durationEnd=!0),l>2*o.interactivity.modes.bubble.duration&&(i.bubble.clicking=!1,i.bubble.durationEnd=!1);const c={bubbleObj:{optValue:i.retina.bubbleModeSize,value:n.bubble.radius},particlesObj:{optValue:r(n.options.size.value)*i.retina.pixelRatio,value:n.size.value},type:"size"};this.process(n,a,l,c);const d={bubbleObj:{optValue:o.interactivity.modes.bubble.opacity,value:n.bubble.opacity},particlesObj:{optValue:r(n.options.opacity.value),value:null!==(e=null===(t=n.opacity)||void 0===t?void 0:t.value)&&void 0!==e?e:1},type:"opacity"};this.process(n,a,l,d),i.bubble.durationEnd?delete n.bubble.color:a<=i.retina.bubbleModeDistance?this.hoverBubbleColor(n,a):delete n.bubble.color}}hoverBubble(){const t=this.container,e=t.interactivity.mouse.position;if(void 0===e)return;const i=t.retina.bubbleModeDistance,o=t.particles.quadTree.queryCircle(e,i);for(const s of o){s.bubble.inRange=!0;const o=h(s.getPosition(),e),n=1-o/i;o<=i?n>=0&&t.interactivity.status===St.mouseMoveEvent&&(this.hoverBubbleSize(s,n),this.hoverBubbleOpacity(s,n),this.hoverBubbleColor(s,n)):this.reset(s),t.interactivity.status===St.mouseLeaveEvent&&this.reset(s)}}hoverBubbleSize(t,e,i){const o=this.container,s=(null==i?void 0:i.size)?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=r(t.options.size.value)*o.retina.pixelRatio,a=mo(t.size.value,s,n,e);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,e,i){var o,s,n;const a=this.container.actualOptions,l=null!==(o=null==i?void 0:i.opacity)&&void 0!==o?o:a.interactivity.modes.bubble.opacity;if(!l)return;const c=t.options.opacity.value,d=mo(null!==(n=null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,l,r(c),e);void 0!==d&&(t.bubble.opacity=d)}hoverBubbleColor(t,e,i){const o=this.container.actualOptions,s=null!=i?i:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const e=s.color;if(!e)return;const i=e instanceof Array?M(e):e;t.bubble.finalColor=V(i)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?W(ot(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class go extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return!(!i.onHover.enable||!e.position)&&x("connect",i.onHover.mode)}reset(){}async interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const e=t.interactivity.mouse.position;if(!e)return;const i=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,i);let s=0;for(const e of o){const i=e.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-o.x),r=Math.abs(i.y-o.y);a<s&&r<s&&t.canvas.drawConnectLine(e,n)}++s}}}}class wo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return i.onHover.enable&&!!e.position&&x("grab",i.onHover.mode)}reset(){}async interact(){var t;const e=this.container,i=e.actualOptions,o=i.interactivity;if(o.events.onHover.enable&&e.interactivity.status===St.mouseMoveEvent){const s=e.interactivity.mouse.position;if(!s)return;const n=e.retina.grabModeDistance,a=e.particles.quadTree.queryCircle(s,n);for(const r of a){const a=h(r.getPosition(),s);if(a<=n){const l=o.modes.grab.links,c=l.opacity,d=c-a*c/n;if(d<=0)continue;const h=null!==(t=l.color)&&void 0!==t?t:r.options.links.color;if(!e.particles.grabLineColor){const t=i.interactivity.modes.grab.links;e.particles.grabLineColor=nt(h,t.blink,t.consent)}const u=st(r,void 0,e.particles.grabLineColor);if(!u)return;e.canvas.drawGrabLine(r,u,d,s)}}}}}class xo extends Et{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=O("repulse",o.onDiv);if(!(s||o.onHover.enable&&i.position||o.onClick.enable&&i.clickPosition))return!1;const n=o.onHover.mode,a=o.onClick.mode;return x("repulse",n)||x("repulse",a)||s}reset(){}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===St.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode,l=o.onDiv;i&&s&&x("repulse",n)?this.hoverRepulse():a&&x("repulse",r)?this.clickRepulse():R("repulse",l,((t,e)=>this.singleSelectorRepulse(t,e)))}singleSelectorRepulse(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach((t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new Ct(n.x,n.y,a):new Pt(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=I(i.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)}))}hoverRepulse(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.repulseModeDistance;this.processRepulse(e,i,new Ct(e.x,e.y,i))}processRepulse(t,e,o,s){var n;const a=this.container,r=a.particles.quadTree.query(o),l=a.actualOptions.interactivity.modes.repulse;for(const o of r){const{dx:a,dy:r,distance:c}=d(o.position,t),h=(null!==(n=null==s?void 0:s.speed)&&void 0!==n?n:l.speed)*l.factor,u=i(f(1-c/e,l.easing)*h,0,l.maxSpeed),v=$t.create(0===c?h:a/c*u,0===c?h:r/c*u);o.position.addTo(v)}}clickRepulse(){const t=this.container;if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const e=t.retina.repulseModeDistance,i=Math.pow(e/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;const s=new Ct(o.x,o.y,i),n=t.particles.quadTree.query(s);for(const e of n){const{dx:s,dy:n,distance:a}=d(o,e.position),r=a**2,l=t.actualOptions.interactivity.modes.repulse.speed,c=-i*l/r;if(r<=i){t.repulse.particles.push(e);const i=$t.create(s,n);i.length=c,e.velocity.setTo(i)}}}else if(!1===t.repulse.clicking){for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[]}}}const ko=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function zo(t){return new Promise((e=>{t.loading=!0;const i=new Image;i.addEventListener("load",(()=>{t.element=i,t.loading=!1,e()})),i.addEventListener("error",(()=>{t.error=!0,t.loading=!1,console.error(`Error tsParticles - loading image: ${t.source}`),e()})),i.src=t.source}))}async function Mo(t){if("svg"!==t.type)return void await zo(t);t.loading=!0;const e=await fetch(t.source);t.loading=!1,e.ok||(console.error("Error tsParticles - Image not found"),t.error=!0),t.error||(t.svgData=await e.text())}function Co(t,e,i,o){var s,n,a;const r=function(t,e,i){const{svgData:o}=t;if(!o)return"";const s=et(e,i);if(o.includes("fill"))return o.replace(ko,(()=>s));const n=o.indexOf(">");return`${o.substring(0,n)} fill="${s}"${o.substring(n)}`}(t,i,null!==(n=null===(s=o.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1),l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,d=c.createObjectURL(l),h=new Image,u={data:Object.assign(Object.assign({},t),{svgData:r}),ratio:e.width/e.height,replaceColor:null!==(a=e.replaceColor)&&void 0!==a?a:e.replace_color,source:e.src};return h.addEventListener("load",(()=>{const e=o.image;e&&(e.loaded=!0,t.element=h),c.revokeObjectURL(d)})),h.addEventListener("error",(()=>{c.revokeObjectURL(d);const e=Object.assign(Object.assign({},t),{error:!1,loading:!0});zo(e).then((()=>{const i=o.image;i&&(t.element=e.element,i.loaded=!0)}))})),h.src=d,u}var Po,To=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},So=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Oo{constructor(){Po.set(this,void 0),To(this,Po,[],"f")}getSidesCount(){return 12}getImages(t){const e=So(this,Po,"f").find((e=>e.id===t.id));return e||(So(this,Po,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,e){const i=this.getImages(t);null==i||i.images.push(e)}destroy(){To(this,Po,[],"f")}async loadImageShape(t,e){const i=e.src;if(!i)throw new Error("Error tsParticles - No image.src");try{const o={source:i,type:i.substr(i.length-3),error:!1,loading:!0};this.addImage(t,o);const s=e.replaceColor?Mo:zo;await s(o)}catch(t){throw new Error(`tsParticles error - ${e.src} not found`)}}draw(t,e,i,o){var s,n;const a=e.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-i,y:-i};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*i,2*i/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var e,i,o;if("image"!==t.shape&&"images"!==t.shape)return;const s=this.getImages(t.container).images,n=t.shapeData,a=s.find((t=>t.source===n.src));let r;if(!a)return void this.loadImageShape(t.container,n).then((()=>{this.loadShape(t)}));if(a.error)return;const l=t.getFillColor();r=a.svgData&&n.replaceColor&&l?Co(a,n,l,t):{data:a,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(e=n.replaceColor)&&void 0!==e?e:n.replace_color,source:n.src},r.ratio||(r.ratio=1);const c={image:r,fill:null!==(i=n.fill)&&void 0!==i?i:t.fill,close:null!==(o=n.close)&&void 0!==o?o:t.close};t.image=c.image,t.fill=c.fill,t.close=c.close}}Po=new WeakMap;class Ro{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed}update(t,e){if(!this.isEnabled(t))return;const i=t.life;let o=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(o?i.time=0:i.time+=e.value,i.time<i.duration)return;if(i.time=0,t.life.count>0&&t.life.count--,0===t.life.count)return void t.destroy();const a=this.container.canvas.size,r=l(0,a.width),c=l(0,a.width);t.position.x=s(r),t.position.y=s(c),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const d=t.options.life;i.delay=1e3*n(d.delay.value),i.duration=1e3*n(d.duration.value)}}class Eo{getSidesCount(){return 1}draw(t,e,i){t.moveTo(-i/2,0),t.lineTo(i/2,0)}}class Io{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity={enable:e.animation.enable,max:r(e.value),min:a(e.value),value:n(e.value),loops:0,maxLoops:e.animation.count};const i=e.animation;if(i.enable){t.opacity.status=0;const o=e.value;switch(t.opacity.min=a(o),t.opacity.max=r(o),i.startValue){case"min":t.opacity.value=t.opacity.min,t.opacity.status=0;break;case"random":t.opacity.value=s(t.opacity),t.opacity.status=Math.random()>=.5?0:1;break;case"max":default:t.opacity.value=t.opacity.max,t.opacity.status=1}t.opacity.velocity=i.speed/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=Math.random())}}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.opacity.loops)&&void 0!==i?i:0)<(null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var o,s,n,a,r;if(!t.opacity)return;const l=t.opacity.min,c=t.opacity.max;if(!t.destroyed&&t.opacity.enable&&((null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0)<=0||(null!==(s=t.opacity.loops)&&void 0!==s?s:0)<(null!==(n=t.opacity.maxLoops)&&void 0!==n?n:0))){switch(t.opacity.status){case 0:t.opacity.value>=c?(t.opacity.status=1,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*e.factor;break;case 1:t.opacity.value<=l?(t.opacity.status=0,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(r=t.opacity.velocity)&&void 0!==r?r:0)*e.factor}!function(t,e,i,o){switch(t.options.opacity.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.opacity.value,l,c),t.destroyed||(t.opacity.value=i(t.opacity.value,l,c))}}(t,e)}}class Do{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){var i,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,e,null!==(i=a.bottom)&&void 0!==i?i:a.default,"bottom"),this.updateOutMode(t,e,null!==(o=a.left)&&void 0!==o?o:a.default,"left"),this.updateOutMode(t,e,null!==(s=a.right)&&void 0!==s?s:a.default,"right"),this.updateOutMode(t,e,null!==(n=a.top)&&void 0!==n?n:a.default,"top")}updateOutMode(t,e,i,o){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,e,o,i);break;case"destroy":this.destroy(t,o);break;case"out":this.out(t,o);break;case"none":default:this.none(t,o)}}destroy(t,e){const i=this.container;C(t.position,i.canvas.size,t.getRadius(),e)||i.particles.remove(t,void 0,!0)}out(t,e){const i=this.container;if(C(t.position,i.canvas.size,t.getRadius(),e))return;const o=t.options.move.warp,s=i.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=T(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,e,i,o){const s=this.container;let a=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(a=o.particleBounce(t,e,i)),a)break;if(a)return;const r=t.getPosition(),l=t.offset,c=t.getRadius(),d=T(r,c),h=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=n(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:h,offset:l,size:c}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=n(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:o,direction:i,bounds:d,canvasSize:h,offset:l,size:c})}none(t,e){if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const i=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(i.enable){const a=t.position;(!i.inverse&&a.y>s.height+n&&"bottom"===e||i.inverse&&a.y<-n&&"top"===e)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;C(t.position,o.canvas.size,n,e)||o.particles.remove(t)}}}class Ao extends Ht{constructor(t){super(t)}async interact(t){var e;const i=this.container,o=null!==(e=t.retina.attractDistance)&&void 0!==e?e:i.retina.attractDistance,s=t.getPosition(),n=i.particles.quadTree.queryCircle(s,o);for(const e of n){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=d(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=e.size.value/t.size.value,h=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,e.velocity.x+=r*h,e.velocity.y+=l*h}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function Lo(t,e){A(D(t),D(e))}class qo extends Ht{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}async interact(t){const e=this.container,i=t.getPosition(),o=t.getRadius(),s=e.particles.quadTree.queryCircle(i,2*o);for(const e of s){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const s=e.getPosition();if(Math.round(i.z)!==Math.round(s.z))continue;h(i,s)<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":Lo(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||Lo(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const o=this.container,s=o.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const n=i(t.getRadius()/e.getRadius(),0,e.getRadius())*s;t.size.value+=n,e.size.value-=n,e.getRadius()<=o.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=i(e.getRadius()/t.getRadius(),0,t.getRadius())*s;t.size.value-=n,e.size.value+=n,t.getRadius()<=o.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function Ho(t,e,i,o,s){let n=h(t,e);if(!s||n<=i)return n;if(n=h(t,{x:e.x-o.width,y:e.y}),n<=i)return n;if(n=h(t,{x:e.x-o.width,y:e.y-o.height}),n<=i)return n;return n=h(t,{x:e.x,y:e.y-o.height}),n}class Fo extends Ht{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}async interact(t){var e;t.links=[];const i=t.getPosition(),o=this.container,s=o.canvas.size;if(i.x<0||i.y<0||i.x>s.width||i.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(e=t.retina.linksDistance)&&void 0!==e?e:o.retina.linksDistance,l=n.warp,c=l?new Tt(i.x,i.y,r,s):new Ct(i.x,i.y,r),d=o.particles.quadTree.query(c);for(const e of d){const o=e.options.links;if(t===e||!o.enable||n.id!==o.id||e.spawning||e.destroyed||-1!==t.links.map((t=>t.destination)).indexOf(e)||-1!==e.links.map((t=>t.destination)).indexOf(t))continue;const c=e.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const d=Ho(i,c,r,s,l&&o.warp);if(d>r)return;const h=(1-d/r)*a;this.setColor(t),t.links.push({destination:e,opacity:h})}}setColor(t){const e=this.container,i=t.options.links;let o=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(!o){o=nt(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=o:e.particles.linksColors.set(i.id,o)}}}class Vo{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,e){const i=e,o=this.container,s=o.particles,n=e.options;if(i.links.length>0){t.save();const e=i.links.filter((t=>o.particles.getLinkFrequency(i,t.destination)<=n.links.frequency));for(const t of e){const a=t.destination;if(n.links.triangles.enable){const r=e.map((t=>t.destination)),l=a.links.filter((t=>o.particles.getLinkFrequency(a,t.destination)<=a.options.links.frequency&&r.indexOf(t.destination)>=0));if(l.length)for(const e of l){const o=e.destination;s.getTriangleFrequency(i,a,o)>n.links.triangles.frequency||this.drawLinkTriangle(i,t,e)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}}drawLinkTriangle(t,e,i){var o;const s=this.container,n=s.actualOptions,a=e.destination,r=i.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(e.opacity+i.opacity)/2;if(c<=0)return;const d=t.getPosition(),u=a.getPosition(),v=r.getPosition();s.canvas.draw((e=>{if(h(d,u)>s.retina.linksDistance||h(v,u)>s.retina.linksDistance||h(v,d)>s.retina.linksDistance)return;let i=F(l.color);if(!i){const e=t.options.links,o=void 0!==e.id?s.particles.linksColors.get(e.id):s.particles.linksColor;i=st(t,a,o)}i&&vt(e,d,u,v,n.backgroundMask.enable,n.backgroundMask.composite,i,c)}))}drawLinkLine(t,e){const i=this.container,o=i.actualOptions,s=e.destination;let n=e.opacity;const a=t.getPosition(),r=s.getPosition();i.canvas.draw((e=>{var l,c;let d;const h=t.options.twinkle.lines;if(h.enable){const t=h.frequency,e=F(h.color);Math.random()<t&&void 0!==e&&(d=e,n=h.opacity)}if(!d){const e=t.options.links,o=void 0!==e.id?i.particles.linksColors.get(e.id):i.particles.linksColor;d=st(t,s,o)}if(!d)return;const u=null!==(l=t.retina.linksWidth)&&void 0!==l?l:i.retina.linksWidth,v=null!==(c=t.retina.linksDistance)&&void 0!==c?c:i.retina.linksDistance;ut(e,u,a,r,v,i.canvas.size,t.options.links.warp,o.backgroundMask.enable,o.backgroundMask.composite,d,n,t.options.links.shadow)}))}}class Wo{constructor(){this.id="links"}getPlugin(t){return new Vo(t)}needsPlugin(){return!0}loadOptions(){}}async function _o(t){await async function(t){await t.addInteractor("particlesLinks",(t=>new Fo(t)))}(t),await async function(t){const e=new Wo;await t.addPlugin(e)}(t)}class Bo{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e<n;e++)t.lineTo(s.length,0),t.translate(s.length,0),t.rotate(l)}}}class jo extends Bo{getSidesData(t,e){var i,o;const s=t.shapeData,n=null!==(o=null!==(i=null==s?void 0:s.sides)&&void 0!==i?i:null==s?void 0:s.nb_sides)&&void 0!==o?o:5;return{count:{denominator:1,numerator:n},length:2.66*e/(n/3)}}getCenter(t,e){return{x:-e/(this.getSidesCount(t)/3.5),y:-e/.76}}}class $o extends Bo{getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}getCenter(t,e){return{x:-e,y:e/1.66}}}async function Go(t){await async function(t){await t.addShape("polygon",new jo)}(t),await async function(t){await t.addShape("triangle",new $o)}(t)}class Uo{init(){}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&t.size.enable&&((null!==(e=t.size.loops)&&void 0!==e?e:0)<=0||(null!==(i=t.size.loops)&&void 0!==i?i:0)<(null!==(o=t.size.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var o,s,n,a;const r=(null!==(o=t.size.velocity)&&void 0!==o?o:0)*e.factor,l=t.size.min,c=t.size.max;if(!t.destroyed&&t.size.enable&&((null!==(s=t.size.loops)&&void 0!==s?s:0)<=0||(null!==(n=t.size.loops)&&void 0!==n?n:0)<(null!==(a=t.size.maxLoops)&&void 0!==a?a:0))){switch(t.size.status){case 0:t.size.value>=c?(t.size.status=1,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=r;break;case 1:t.size.value<=l?(t.size.status=0,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=r}!function(t,e,i,o){switch(t.options.size.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.size.value,l,c),t.destroyed||(t.size.value=i(t.size.value,l,c))}}(t,e)}}const No=Math.sqrt(2);class Jo{getSidesCount(){return 4}draw(t,e,i){t.rect(-i/No,-i/No,2*i/No,2*i/No)}}class Xo{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){var o;const s=e.shapeData,n=this.getSidesCount(e),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-i);for(let e=0;e<n;e++)t.rotate(Math.PI/n),t.lineTo(0,0-i*a),t.rotate(Math.PI/n),t.lineTo(0,0-i)}}function Yo(t,e,i,o,n){var a;const r=e;if(!r||!r.enable)return;const l=s(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;n&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,n&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class Qo{constructor(t){this.container=t}init(t){var e,i;const o=this.container;t.stroke=t.options.stroke instanceof Array?M(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*o.retina.pixelRatio;const s=null!==(e=V(t.stroke.color))&&void 0!==e?e:t.getFillColor();s&&(t.strokeColor=rt(s,null===(i=t.stroke.color)||void 0===i?void 0:i.animation,o.retina.reduceFactor))}isEnabled(t){var e,i,o,s;const n=null===(e=t.stroke)||void 0===e?void 0:e.color;return!t.destroyed&&!t.spawning&&!!n&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.s.value)&&n.animation.s.enable||void 0!==(null===(s=t.strokeColor)||void 0===s?void 0:s.l.value)&&n.animation.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,s,n,a,r,l,c,d,h;if(!(null===(i=t.stroke)||void 0===i?void 0:i.color))return;const u=t.stroke.color.animation,v=null!==(s=null===(o=t.strokeColor)||void 0===o?void 0:o.h)&&void 0!==s?s:null===(n=t.color)||void 0===n?void 0:n.h;v&&Yo(e,v,u.h,360,!1);const p=null!==(r=null===(a=t.strokeColor)||void 0===a?void 0:a.s)&&void 0!==r?r:null===(l=t.color)||void 0===l?void 0:l.s;p&&Yo(e,p,u.s,100,!0);const f=null!==(d=null===(c=t.strokeColor)||void 0===c?void 0:c.l)&&void 0!==d?d:null===(h=t.color)||void 0===h?void 0:h.l;f&&Yo(e,f,u.l,100,!0)}(t,e)}}const Zo=["text","character","char"];class Ko{getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(Zo.find((t=>x(t,e.particles.shape.type)))){const t=Zo.map((t=>e.particles.shape.options[t])).find((t=>!!t));if(t instanceof Array){const e=[];for(const i of t)e.push(k(i));await Promise.allSettled(e)}else void 0!==t&&await k(t)}}draw(t,e,i,o){var s,n,a;const r=e.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=e;void 0===c.text&&(c.text=l instanceof Array?M(l,e.randomIndexData):l);const d=c.text,h=null!==(s=r.style)&&void 0!==s?s:"",u=null!==(n=r.weight)&&void 0!==n?n:"400",v=2*Math.round(i),p=null!==(a=r.font)&&void 0!==a?a:"Verdana",f=e.fill,y=d.length*i/2;t.font=`${h} ${u} ${v}px "${p}"`;const m={x:-y,y:i/2};t.globalAlpha=o,f?t.fillText(d,m.x,m.y):t.strokeText(d,m.x,m.y),t.globalAlpha=1}}const ts=new co;ts.init();const{particlesJS:es,pJSDom:is}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,o)=>{t.loadJSON(e,i).then((t=>{t&&o(t)})).catch((()=>{o(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(ts);return async function(t){await async function(t){await t.addInteractor("externalAttract",(t=>new fo(t)))}(t),await async function(t){await t.addInteractor("externalBounce",(t=>new yo(t)))}(t),await async function(t){await t.addInteractor("externalBubble",(t=>new bo(t)))}(t),await async function(t){await t.addInteractor("externalConnect",(t=>new go(t)))}(t),await async function(t){await t.addInteractor("externalGrab",(t=>new wo(t)))}(t),await async function(t){await t.addInteractor("externalRepulse",(t=>new xo(t)))}(t),await async function(t){await t.addInteractor("particlesAttract",(t=>new Ao(t)))}(t),await async function(t){await t.addInteractor("particlesCollisions",(t=>new qo(t)))}(t),await _o(t),await async function(t){await t.addShape("circle",new uo)}(t),await async function(t){const e=new Oo;await t.addShape("image",e),await t.addShape("images",e)}(t),await async function(t){await t.addShape("line",new Eo)}(t),await Go(t),await async function(t){const e=new Jo;await t.addShape("edge",e),await t.addShape("square",e)}(t),await async function(t){await t.addShape("star",new Xo)}(t),await async function(t){const e=new Ko;for(const i of Zo)await t.addShape(i,e)}(t),await async function(t){await t.addParticleUpdater("life",(t=>new Ro(t)))}(t),await async function(t){await t.addParticleUpdater("opacity",(t=>new Io(t)))}(t),await async function(t){await t.addParticleUpdater("size",(()=>new Uo))}(t),await async function(t){await t.addParticleUpdater("angle",(t=>new ho(t)))}(t),await async function(t){await t.addParticleUpdater("color",(t=>new po(t)))}(t),await async function(t){await t.addParticleUpdater("strokeColor",(t=>new Qo(t)))}(t),await async function(t){await t.addParticleUpdater("outModes",(t=>new Do(t)))}(t)}(ts),e}()}));
|