PageSourceSearch

https://static-assets.monzo.com/monzo-com/e2dd208e37221e4c19d9aaeb…/static/chunks/7014-88967f02c888abee.js

js monzo.com collected 2026-09-24 08:29:26 UTC 411,776 bytes, 33 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7014],{86814:function(t,e,i){"use strict";i.d(e,{useDrag:function(){return a}});var n=i(45439),s=i(2784),o=i(4634);function a(t,e){return(0,n.r)(n.e),function(t,e={},i,n){let a=s.useMemo(()=>new o.Q(t),[]);if(a.applyHandlers(t,void 0),a.applyConfig(e,i),s.useEffect(a.effect.bind(a)),s.useEffect(()=>a.clean.bind(a),[]),void 0===e.target)return a.bind.bind(a)}({drag:t},e||{},"drag")}},28826:function(t,e){"use strict";var i,n,s={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},o={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},a=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],r={},l={};function h(t,e,i){return Math.min(Math.max(t,e),i)}function c(t,e){return t.indexOf(e)>-1}function u(t,e){return t.apply(null,e)}var d={arr:function(t){return Array.isArray(t)},obj:function(t){return c(Object.prototype.toString.call(t),"Object")},pth:function(t){return d.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||d.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return d.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return d.hex(t)||d.rgb(t)||d.hsl(t)},key:function(t){return!s.hasOwnProperty(t)&&!o.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function p(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map(function(t){return parseFloat(t)}):[]}function f(t,e){var i=p(t),n=h(d.und(i[0])?1:i[0],.1,100),s=h(d.und(i[1])?100:i[1],.1,100),o=h(d.und(i[2])?10:i[2],.1,100),a=h(d.und(i[3])?0:i[3],.1,100),r=Math.sqrt(s/n),c=o/(2*Math.sqrt(s*n)),u=c<1?r*Math.sqrt(1-c*c):0,f=c<1?(c*r+-a)/u:-a+r;function g(t){var i=e?e*t/1e3:t;return(i=c<1?Math.exp(-i*c*r)*(1*Math.cos(u*i)+f*Math.sin(u*i)):(1+f*i)*Math.exp(-i*r),0===t||1===t)?t:1-i}return e?g:function(){var e=l[t];if(e)return e;for(var i=1/6,n=0,s=0;;)if(1===g(n+=i)){if(++s>=16)break}else s=0;var o=n*i*1e3;return l[t]=o,o}}function g(t){return void 0===t&&(t=10),function(e){return Math.ceil(h(e,1e-6,1)*t)*(1/t)}}var y=function(){function t(t,e,i){return(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t}function e(t,e,i){return 3*(1-3*i+3*e)*t*t+2*(3*i-6*e)*t+3*e}return function(i,n,s,o){if(0<=i&&i<=1&&0<=s&&s<=1){var a=new Float32Array(11);if(i!==n||s!==o)for(var r=0;r<11;++r)a[r]=t(.1*r,i,s);return function(r){return i===n&&s===o||0===r||1===r?r:t(function(n){for(var o=0,r=1;10!==r&&a[r]<=n;++r)o+=.1;var l=o+(n-a[--r])/(a[r+1]-a[r])*.1,h=e(l,i,s);return h>=.001?function(i,n,s,o){for(var a=0;a<4;++a){var r=e(n,s,o);if(0===r)break;var l=t(n,s,o)-i;n-=l/r}return n}(n,l,i,s):0===h?l:function(e,i,n,s,o){var a,r,l=0;do(a=t(r=i+(n-i)/2,s,o)-e)>0?n=r:i=r;while(Math.abs(a)>1e-7&&++l<10);return r}(n,o,o+.1,i,s)}(r),n,o)}}}}(),m=(i={linear:function(){return function(t){return t}}},n={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var i=h(t,1,10),n=h(e,.1,2);return function(t){return 0===t||1===t?t:-i*Math.pow(2,10*(t-1))*Math.sin(2*Math.PI*(t-1-n/(2*Math.PI)*Math.asin(1/i))/n)}}},["Quad","Cubic","Quart","Quint"].forEach(function(t,e){n[t]=function(){return function(t){return Math.pow(t,e+2)}}}),Object.keys(n).forEach(function(t){var e=n[t];i["easeIn"+t]=e,i["easeOut"+t]=function(t,i){return function(n){return 1-e(t,
1i)(1-n)}},i["easeInOut"+t]=function(t,i){return function(n){return n<.5?e(t,i)(2*n)/2:1-e(t,i)(-2*n+2)/2}},i["easeOutIn"+t]=function(t,i){return function(n){return n<.5?(1-e(t,i)(1-2*n))/2:(e(t,i)(2*n-1)+1)/2}}}),i);function v(t,e){if(d.fnc(t))return t;var i=t.split("(")[0],n=m[i],s=p(t);switch(i){case"spring":return f(t,e);case"cubicBezier":return u(y,s);case"steps":return u(g,s);default:return u(n,s)}}function w(t){try{return document.querySelectorAll(t)}catch(t){return}}function b(t,e){for(var i=t.length,n=arguments.length>=2?arguments[1]:void 0,s=[],o=0;o<i;o++)if(o in t){var a=t[o];e.call(n,a,o,t)&&s.push(a)}return s}function _(t){return t.reduce(function(t,e){return t.concat(d.arr(e)?_(e):e)},[])}function x(t){return d.arr(t)?t:(d.str(t)&&(t=w(t)||t),t instanceof NodeList||t instanceof HTMLCollection)?[].slice.call(t):[t]}function S(t,e){return t.some(function(t){return t===e})}function P(t){var e={};for(var i in t)e[i]=t[i];return e}function C(t,e){var i=P(t);for(var n in t)i[n]=e.hasOwnProperty(n)?e[n]:t[n];return i}function O(t,e){var i=P(t);for(var n in e)i[n]=d.und(t[n])?e[n]:t[n];return i}function T(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function k(t,e){return d.fnc(t)?t(e.target,e.id,e.total):t}function z(t,e){return t.getAttribute(e)}function A(t,e,i){if(S([i,"deg","rad","turn"],T(e)))return e;var n=r[e+i];if(!d.und(n))return n;var s=document.createElement(t.tagName),o=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;o.appendChild(s),s.style.position="absolute",s.style.width=100+i;var a=100/s.offsetWidth;o.removeChild(s);var l=a*parseFloat(e);return r[e+i]=l,l}function E(t,e,i){if(e in t.style){var n=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=t.style[e]||getComputedStyle(t).getPropertyValue(n)||"0";return i?A(t,s,i):s}}function M(t,e){return d.dom(t)&&!d.inp(t)&&(!d.nil(z(t,e))||d.svg(t)&&t[e])?"attribute":d.dom(t)&&S(a,e)?"transform":d.dom(t)&&"transform"!==e&&E(t,e)?"css":null!=t[e]?"object":void 0}function G(t){if(d.dom(t)){for(var e,i=t.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;e=n.exec(i);)s.set(e[1],e[2]);return s}}function V(t,e,i,n){switch(M(t,e)){case"transform":var s,o;return s=c(e,"scale")?1:0+(c(e,"translate")||"perspective"===e?"px":c(e,"rotate")||c(e,"skew")?"deg":void 0),o=G(t).get(e)||s,n&&(n.transforms.list.set(e,o),n.transforms.last=e),i?A(t,o,i):o;case"css":return E(t,e,i);case"attribute":return z(t,e);default:return t[e]||0}}function R(t,e){var i=/^(\*=|\+=|-=)/.exec(t);if(!i)return t;var n=T(t)||0,s=parseFloat(e),o=parseFloat(t.replace(i[0],""));switch(i[0][0]){case"+":return s+o+n;case"-":return s-o+n;case"*":return s*o+n}}function I(t,e){if(d.col(t)){var i,n,s,o;return i=t,d.rgb(i)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i))?"rgba("+n[1]+",1)":i:d.hex(i)?(s=i.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,n){return e+e+i+i+n+n}),"rgba("+parseInt((o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(s))[1],16)+","+parseInt(o[2],16)+","+parseInt(o[3],16)+",1)"):d.hsl(i)?function(t){var e,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),o=parseInt(s[1],10)/360,a=parseInt(s[2],10)/100,r=parseInt(s[3],10)/100,l=s[4]||1;function h(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}if(0==a)e=i=n=r;else{var c=r<.5?r*(1+a):r+a-r*a,u=2*r-c;e=h(u,c,o+1/3),i=h(u,c,o),n=h(u,c,o-1/3)}return"rgba("+255*e+","+255*i+","+255*n+","+l+")"}(i):void 0}if(/\s/g.test(t))return t;var a=T(t),r=a?t.substr(0,t.length-a.length):t;return e?r+e:r}function L(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function D(t){for(var e,i=t.points,n=0,s=0;s<i.numberOfItems;s++){var o=i.getItem(s);s>0&&(n+=L(e,o)),e=o}return n}function F(t){var e;if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return 2*Math.PI*z(t,"r");case"rect":return 2*z(t,"width")+2*z(t,"height");case"line":return L({x:z(t,"x1"),y:z(t,"y1")},{x:z(t,"x2"),y:z(t,"y2")});case"polyline":return D(t);case"polygon":return e=t.points,D(t)+L(e.getItem(e.numberOfItems-1),e.getItem(0))}}function j(t,e){var i=e||{},n=i.el||function(t){for(var e=t.parentNode;d.svg(e)&&d.svg(e.parentNode);)e=e.parentNode;return e}(t),s=n.getBoundingClientRect(),o=z(n,"viewBox"),a=s.width,r=s.height,l=i.viewBox||(o?o.split(" "):[0,0,a,r]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:r,vW:l[2],vH:l[3]}}function H(t,e){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=I(d.pth(t)?t.totalLength:t,e)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:d.str(t)||e?n.split(i):[]}}function B(t){return b(t?_(d.arr(t)?t.map(x):x(t)):[],function(t,e,
1i){return i.indexOf(t)===e})}function N(t){var e=B(t);return e.map(function(t,i){return{target:t,id:i,total:e.length,transforms:{list:G(t)}}})}var $={css:function(t,e,i){return t.style[e]=i},attribute:function(t,e,i){return t.setAttribute(e,i)},object:function(t,e,i){return t[e]=i},transform:function(t,e,i,n,s){if(n.list.set(e,i),e===n.last||s){var o="";n.list.forEach(function(t,e){o+=e+"("+t+") "}),t.style.transform=o}}};function U(t,e){N(t).forEach(function(t){for(var i in e){var n=k(e[i],t),s=t.target,o=T(n),a=V(s,i,o,t),r=R(I(n,o||T(a)),a);$[M(s,i)](s,i,r,t.transforms,!0)}})}function q(t,e){var i=t.length,n=function(t){return t.timelineOffset?t.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,t.map(function(t){return n(t)+t.duration})):e.duration,s.delay=i?Math.min.apply(Math,t.map(function(t){return n(t)+t.delay})):e.delay,s.endDelay=i?s.duration-Math.max.apply(Math,t.map(function(t){return n(t)+t.duration-t.endDelay})):e.endDelay,s}var W=0,Z=[],Q=function(){var t;function e(i){for(var n=Z.length,s=0;s<n;){var o=Z[s];o.paused?(Z.splice(s,1),n--):(o.tick(i),s++)}t=s>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){K.suspendWhenDocumentHidden&&(Y()?t=cancelAnimationFrame(t):(Z.forEach(function(t){return t._onDocumentVisibility()}),Q()))}),function(){t||Y()&&K.suspendWhenDocumentHidden||!(Z.length>0)||(t=requestAnimationFrame(e))}}();function Y(){return!!document&&document.hidden}function K(t){void 0===t&&(t={});var e,i,n,a,r,l,c,u,p,g=0,y=0,m=0,w=0,x=null;function S(t){var e=window.Promise&&new Promise(function(t){return x=t});return t.finished=e,e}var z=(i=C(s,e=t),a=function(t,e){var i=[],n=e.keyframes;for(var s in n&&(e=O(function(t){for(var e=b(_(t.map(function(t){return Object.keys(t)})),function(t){return d.key(t)}).reduce(function(t,e){return 0>t.indexOf(e)&&t.push(e),t},[]),i={},n=0;n<e.length;n++)!function(n){var s=e[n];i[s]=t.map(function(t){var e={};for(var i in t)d.key(i)?i==s&&(e.value=t[i]):e[i]=t[i];return e})}(n);return i}(n),e)),e)d.key(s)&&i.push({name:s,tweens:function(t,e){var i=P(e);if(/^spring/.test(i.easing)&&(i.duration=f(i.easing)),d.arr(t)){var n=t.length;2!==n||d.obj(t[0])?d.fnc(e.duration)||(i.duration=e.duration/n):t={value:t}}var s=d.arr(t)?t:[t];return s.map(function(t,i){var n=d.obj(t)&&!d.pth(t)?t:{value:t};return d.und(n.delay)&&(n.delay=i?0:e.delay),d.und(n.endDelay)&&(n.endDelay=i===s.length-1?e.endDelay:0),n}).map(function(t){return O(t,i)})}(e[s],t)});return i}(n=C(o,e),e),c=q(l=b(_((r=N(e.targets)).map(function(t){return a.map(function(e){return function(t,e){var i=M(t.target,e.name);if(i){var n,s=e.tweens.map(function(i){var s=function(t,e){var i={};for(var n in t){var s=k(t[n],e);d.arr(s)&&1===(s=s.map(function(t){return k(t,e)})).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(i,t),o=s.value,a=d.arr(o)?o[1]:o,r=T(a),l=V(t.target,e.name,r,t),h=n?n.to.original:l,c=d.arr(o)?o[0]:h,u=T(c)||T(l),p=r||u;return d.und(a)&&(a=h),s.from=H(c,p),s.to=H(R(a,c),p),s.start=n?n.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=v(s.easing,s.duration),s.isPath=d.pth(o),s.isPathTargetInsideSVG=s.isPath&&d.svg(t.target),s.isColor=d.col(s.from.original),s.isColor&&(s.round=1),n=s,s}),o=s[s.length-1];return{type:i,property:e.name,animatable:t,tweens:s,duration:o.end,delay:s[0].delay,endDelay:o.endDelay}}}(t,e)})})),function(t){return!d.und(t)}),n),u=W,W++,O(i,{id:u,children:[],animatables:r,animations:l,duration:c.duration,delay:c.delay,endDelay:c.endDelay}));function A(){var t=z.direction;"alternate"!==t&&(z.direction="normal"!==t?"normal":"reverse"),z.reversed=!z.reversed,p.forEach(function(t){return t.reversed=z.reversed})}function E(t){return z.reversed?z.duration-t:t}function G(){g=0,y=E(z.currentTime)*(1/K.speed)}function I(t,e){e&&e.seek(t-e.timelineOffset)}function L(t){for(var e=0,i=z.animations,n=i.length;e<n;){var s=i[e],o=s.animatable,a=s.tweens,r=a.length-1,l=a[r];r&&(l=b(a,function(e){return t<e.end})[0]||l);for(var c=h(t-l.start-l.delay,0,l.duration)/l.duration,u=isNaN(c)?1:l.easing(c),d=l.to.strings,p=l.round,f=[],g=l.to.numbers.length,y=void 0,m=0;m<g;m++){var v=void 0,w=l.to.numbers[m],_=l.from.numbers[m]||0;
1v=l.isPath?function(t,e,i){function n(i){void 0===i&&(i=0);var n=e+i>=1?e+i:0;return t.el.getPointAtLength(n)}var s=j(t.el,t.svg),o=n(),a=n(-1),r=n(1),l=i?1:s.w/s.vW,h=i?1:s.h/s.vH;switch(t.property){case"x":return(o.x-s.x)*l;case"y":return(o.y-s.y)*h;case"angle":return 180*Math.atan2(r.y-a.y,r.x-a.x)/Math.PI}}(l.value,u*w,l.isPathTargetInsideSVG):_+u*(w-_),p&&!(l.isColor&&m>2)&&(v=Math.round(v*p)/p),f.push(v)}var x=d.length;if(x){y=d[0];for(var S=0;S<x;S++){d[S];var P=d[S+1],C=f[S];isNaN(C)||(P?y+=C+P:y+=C+" ")}}else y=f[0];$[s.type](o.target,s.property,y,o.transforms),s.currentValue=y,e++}}function D(t){z[t]&&!z.passThrough&&z[t](z)}function F(t){var e=z.duration,i=z.delay,n=e-z.endDelay,s=E(t);z.progress=h(s/e*100,0,100),z.reversePlayback=s<z.currentTime,p&&function(t){if(z.reversePlayback)for(var e=w;e--;)I(t,p[e]);else for(var i=0;i<w;i++)I(t,p[i])}(s),!z.began&&z.currentTime>0&&(z.began=!0,D("begin")),!z.loopBegan&&z.currentTime>0&&(z.loopBegan=!0,D("loopBegin")),s<=i&&0!==z.currentTime&&L(0),(s>=n&&z.currentTime!==e||!e)&&L(e),s>i&&s<n?(z.changeBegan||(z.changeBegan=!0,z.changeCompleted=!1,D("changeBegin")),D("change"),L(s)):z.changeBegan&&(z.changeCompleted=!0,z.changeBegan=!1,D("changeComplete")),z.currentTime=h(s,0,e),z.began&&D("update"),t>=e&&(y=0,z.remaining&&!0!==z.remaining&&z.remaining--,z.remaining?(g=m,D("loopComplete"),z.loopBegan=!1,"alternate"===z.direction&&A()):(z.paused=!0,!z.completed&&(z.completed=!0,D("loopComplete"),D("complete"),!z.passThrough&&"Promise"in window&&(x(),S(z)))))}return S(z),z.reset=function(){var t=z.direction;z.passThrough=!1,z.currentTime=0,z.progress=0,z.paused=!0,z.began=!1,z.loopBegan=!1,z.changeBegan=!1,z.completed=!1,z.changeCompleted=!1,z.reversePlayback=!1,z.reversed="reverse"===t,z.remaining=z.loop,w=(p=z.children).length;for(var e=w;e--;)z.children[e].reset();(z.reversed&&!0!==z.loop||"alternate"===t&&1===z.loop)&&z.remaining++,L(z.reversed?z.duration:0)},z._onDocumentVisibility=G,z.set=function(t,e){return U(t,e),z},z.tick=function(t){m=t,g||(g=m),F((m+(y-g))*K.speed)},z.seek=function(t){F(E(t))},z.pause=function(){z.paused=!0,G()},z.play=function(){z.paused&&(z.completed&&z.reset(),z.paused=!1,Z.push(z),G(),Q())},z.reverse=function(){A(),z.completed=!z.reversed,G()},z.restart=function(){z.reset(),z.play()},z.remove=function(t){J(B(t),z)},z.reset(),z.autoplay&&z.play(),z}function X(t,e){for(var i=e.length;i--;)S(t,e[i].animatable.target)&&e.splice(i,1)}function J(t,e){var i=e.animations,n=e.children;X(t,i);for(var s=n.length;s--;){var o=n[s],a=o.animations;X(t,a),a.length||o.children.length||n.splice(s,1)}i.length||n.length||e.pause()}K.version="3.2.1",K.speed=1,K.suspendWhenDocumentHidden=!0,K.running=Z,K.remove=function(t){for(var e=B(t),i=Z.length;i--;)J(e,Z[i])},K.get=V,K.set=U,K.convertPx=A,K.path=function(t,e){var i=d.str(t)?w(t)[0]:t,n=e||100;return function(t){return{property:t,el:i,svg:j(i),totalLength:F(i)*(n/100)}}},K.setDashoffset=function(t){var e=F(t);return t.setAttribute("stroke-dasharray",e),e},K.stagger=function(t,e){void 0===e&&(e={});var i=e.direction||"normal",n=e.easing?v(e.easing):null,s=e.grid,o=e.axis,a=e.from||0,r="first"===a,l="center"===a,h="last"===a,c=d.arr(t),u=c?parseFloat(t[0]):parseFloat(t),p=c?parseFloat(t[1]):0,f=T(c?t[1]:t)||0,g=e.start||0+(c?u:0),y=[],m=0;return function(t,e,d){if(r&&(a=0),l&&(a=(d-1)/2),h&&(a=d-1),!y.length){for(var v=0;v<d;v++){if(s){var w=l?(s[0]-1)/2:a%s[0],b=l?(s[1]-1)/2:Math.floor(a/s[0]),_=v%s[0],x=Math.floor(v/s[0]),S=w-_,P=b-x,C=Math.sqrt(S*S+P*P);"x"===o&&(C=-S),"y"===o&&(C=-P),y.push(C)}else y.push(Math.abs(a-v));m=Math.max.apply(Math,y)}n&&(y=y.map(function(t){return n(t/m)*m})),"reverse"===i&&(y=y.map(function(t){return o?t<0?-1*t:-t:Math.abs(m-t)}))}var O=c?(p-u)/m:u;return g+Math.round(100*y[e])/100*O+f}},K.timeline=function(t){void 0===t&&(t={});var e=K(t);return e.duration=0,e.add=function(i,n){var s=Z.indexOf(e),a=e.children;function r(t){t.passThrough=!0}s>-1&&Z.splice(s,1);for(var l=0;l<a.length;l++)r(a[l]);var h=O(i,C(o,t));h.targets=h.targets||t.targets;var c=e.duration;h.autoplay=!1,h.direction=e.direction,h.timelineOffset=d.und(n)?c:R(n,c),r(e),e.seek(h.timelineOffset);var u=K(h);r(u),a.push(u);var p=q(a,t);return e.delay=p.delay,e.endDelay=p.endDelay,e.duration=p.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},K.easing=v,K.penner=m,K.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},e.Z=K},15554:function(t){"use strict";var e="%[a-f0-9]{2}",i=RegExp("("+e+")|([^%]+?)","gi"),n=RegExp("("+e+")+","gi");t.exports=function(t){if("string"!=typeof t)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},s=n.exec(t);s;){try{e[s[0]]=decodeURIComponent(s[0])}catch(t){var o=function(t){try{return decodeURIComponent(t)}catch(s){for(var e=t.match(i)||[],n=1;n<e.length;n++)e=(t=(function t(e,i){try{return[decodeURIComponent(e.join(""))]}catch(t){}if(1===e.length)return e;i=i||1;var n=e.slice(0,i),s=e.slice(i);return Array.prototype.concat.call([],t(n),t(s))})(e,n).join("")).match(i)||[];return t}}(s[0]);o!==s[0]&&(e[s[0]]=o)}s=n.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),r=0;r<a.length;r++){var l=a[r];t=t.replace(RegExp(l,"g"),e[l])}return t}(t)}}},4079:function(t){"use strict";var e=Object.assign.bind(Object);t.exports=e,t.exports.default=t.exports}
1,41291:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=i(4895),s=i(4254);function o(t,e){(0,n.Z)(1,arguments);var i,o,f,g=(0,s.Z)(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==g&&1!==g&&0!==g)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof t||"[object String]"===Object.prototype.toString.call(t)))return new Date(NaN);var y=function(t){var e,i={},n=t.split(a.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?e=n[0]:(i.date=n[0],e=n[1],a.timeZoneDelimiter.test(i.date)&&(i.date=t.split(a.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var s=a.timezone.exec(e);s?(i.time=e.replace(s[1],""),i.timezone=s[1]):i.time=e}return i}(t);if(y.date){var m=function(t,e){var i=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(i);if(!n)return{year:NaN,restDateString:""};var s=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?s:100*o,restDateString:t.slice((n[1]||n[2]).length)}}(y.date,g);o=function(t,e){if(null===e)return new Date(NaN);var i,n,s=t.match(r);if(!s)return new Date(NaN);var o=!!s[4],a=c(s[1]),l=c(s[2])-1,h=c(s[3]),u=c(s[4]),f=c(s[5])-1;if(o)return u>=1&&u<=53&&f>=0&&f<=6?((i=new Date(0)).setUTCFullYear(e,0,4),n=i.getUTCDay()||7,i.setUTCDate(i.getUTCDate()+((u-1)*7+f+1-n)),i):new Date(NaN);var g=new Date(0);return l>=0&&l<=11&&h>=1&&h<=(d[l]||(p(e)?29:28))&&a>=1&&a<=(p(e)?366:365)?(g.setUTCFullYear(e,l,Math.max(a,h)),g):new Date(NaN)}(m.restDateString,m.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var v=o.getTime(),w=0;if(y.time&&isNaN(w=function(t){var e=t.match(l);if(!e)return NaN;var i=u(e[1]),n=u(e[2]),s=u(e[3]);return(24===i?0===n&&0===s:s>=0&&s<60&&n>=0&&n<60&&i>=0&&i<25)?36e5*i+6e4*n+1e3*s:NaN}(y.time)))return new Date(NaN);if(y.timezone){if(isNaN(f=function(t){if("Z"===t)return 0;var e=t.match(h);if(!e)return 0;var i="+"===e[1]?-1:1,n=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return s>=0&&s<=59?i*(36e5*n+6e4*s):NaN}(y.timezone)))return new Date(NaN)}else{var b=new Date(v+w),_=new Date(0);return _.setFullYear(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()),_.setHours(b.getUTCHours(),b.getUTCMinutes(),b.getUTCSeconds(),b.getUTCMilliseconds()),_}return new Date(v+w+f)}var a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},r=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c(t){return t?parseInt(t):1}function u(t){return t&&parseFloat(t.replace(",","."))||0}var d=[31,null,31,30,31,30,31,31,30,31,30,31];function p(t){return t%400==0||t%4==0&&t%100!=0}},34126:function(t,e,i){"use strict";var n=i(57785),s=i(4079);function o(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}i(15554),e.Pz=function(t,e){!1===(e=s({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var i=function(t){switch(t.arrayFormat){case"index":return function(e,i,n){return null===i?[o(e,t),"[",n,"]"].join(""):[o(e,t),"[",o(n,t),"]=",o(i,t)].join("")};case"bracket":return function(e,i){return null===i?o(e,t):[o(e,t),"[]=",o(i,t)].join("")};default:return function(e,i){return null===i?o(e,t):[o(e,t),"=",o(i,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map(function(n){var s=t[n];if(void 0===s)return"";if(null===s)return o(n,e);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(t){void 0!==t&&a.push(i(n,t,a.length))}),a.join("&")}return o(n,e)+"="+o(s,e)}).filter(function(t){return t.length>0}).join("&"):""}},28:function(t,e,i){"use strict";var n,s=i(2784),o=i(34126),a=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},l=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)0>e.indexOf(n[s])&&(i[n[s]]=t[n[s]]);return i},h=function(t){function e(e){var i=t.call(this,e)||this;
1return i.request=null,i.cancel=function(){i.request&&i.request.cancel()},i.handleFetchSuccess=function(t){i.props.onSuccess&&i.props.onSuccess(t),i.setState({html:t.html},function(){window.instgrm.Embeds.process(),i.props.onAfterRender&&i.props.onAfterRender()})},i.handleFetchFailure=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];clearTimeout(i.timer),i.props.onFailure&&i.props.onFailure(t)},i.createRequestPromise=function(t){var e={};return e.promise=new Promise(function(i,n){var s=fetch(t).then(function(t){return t.json()}).then(function(t){return i(t)}).catch(function(t){return n(t)});return e.cancel=function(){return n(Error("Cancelled"))},s}),e},i.state={html:null},i}return a(e,t),e.prototype.componentDidMount=function(){var t=this;window.instgrm?this.fetchEmbed(this.getQueryParams(this.props)):(this.props.injectScript&&!document.getElementById("react-instagram-embed-script")&&this.injectScript(),this.checkAPI().then(function(){t.fetchEmbed(t.getQueryParams(t.props))}))},e.prototype.componentDidUpdate=function(t){var e=this.props,i=e.url,n=e.hideCaption,s=e.maxWidth,o=e.containerTagName;(t.url!==i||t.hideCaption!==n||t.maxWidth!==s||t.containerTagName!==o)&&(this.request.cancel(),this.fetchEmbed(this.getQueryParams(this.props)))},e.prototype.componentWillUnmount=function(){this.cancel()},e.prototype.render=function(){var t=this.props.containerTagName;return s.createElement(t,r({},this.omitComponentProps(),{dangerouslySetInnerHTML:{__html:this.state.html||""}}))},e.prototype.fetchEmbed=function(t){this.request=this.createRequestPromise("https://api.instagram.com/oembed/?"+t),this.props.onLoading&&this.props.onLoading(),this.request.promise.then(this.handleFetchSuccess).catch(this.handleFetchFailure)},e.prototype.omitComponentProps=function(){var t=this.props;return t.url,t.hideCaption,t.maxWidth,t.containerTagName,t.onLoading,t.onSuccess,t.onAfterRender,t.onFailure,t.protocol,t.injectScript,l(t,["url","hideCaption","maxWidth","containerTagName","onLoading","onSuccess","onAfterRender","onFailure","protocol","injectScript"])},e.prototype.injectScript=function(){var t=0===window.location.protocol.indexOf("file")?this.props.protocol:"",e=document.createElement("script");e.async=e.defer=!0,e.src=t+"//platform.instagram.com/en_US/embeds.js",e.id="react-instagram-embed-script";var i=document.body;i&&i.appendChild(e)},e.prototype.checkAPI=function(){var t=this;return new Promise(function(e){!function t(i){i.timer=window.setTimeout(function(){window.instgrm?(clearTimeout(i.timer),e()):t(i)},20)}(t)})},e.prototype.getQueryParams=function(t){var e=t.url,i=t.hideCaption,n=t.maxWidth;return o.Pz({url:e,hidecaption:i,maxwidth:"number"==typeof n&&n>=320?n:void 0,omitscript:!0})},e.defaultProps={hideCaption:!1,containerTagName:"div",protocol:"https:",injectScript:!0},e}(s.PureComponent);e.Z=h},66866:function(t,e){"use strict";var i=60103,n=60106,s=60107,o=60108,a=60114,r=60109,l=60110,h=60112,c=60113,u=60120,d=60115,p=60116,f=60121,g=60122,y=60117,m=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;i=w("react.element"),n=w("react.portal"),s=w("react.fragment"),o=w("react.strict_mode"),a=w("react.profiler"),r=w("react.provider"),l=w("react.context"),h=w("react.forward_ref"),c=w("react.suspense"),u=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),f=w("react.block"),g=w("react.server.block"),y=w("react.fundamental"),m=w("react.debug_trace_mode"),v=w("react.legacy_hidden")}function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case s:case a:case o:case c:case u:return t;default:switch(t=t&&t.$$typeof){case l:case h:case p:case d:case r:return t;default:return e}}case n:return e}}}var _=r,x=i,S=h,P=s,C=p,O=d,T=n,k=a,z=o,A=c;e.ContextConsumer=l,e.ContextProvider=_,e.Element=x,e.ForwardRef=S,e.Fragment=P,e.Lazy=C,e.Memo=O,e.Portal=T,e.Profiler=k,e.StrictMode=z,e.Suspense=A,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(t){return b(t)===l},e.isContextProvider=function(t){return b(t)===r},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return b(t)===h},e.isFragment=function(t){return b(t)===s},e.isLazy=function(t){return b(t)===p},e.isMemo=function(t){return b(t)===d},e.isPortal=function(t){return b(t)===n},e.isProfiler=function(t){return b(t)===a},e.isStrictMode=function(t){return b(t)===o},e.isSuspense=function(t){return b(t)===c},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===a||t===m||t===o||t===c||t===u||t===v||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===r||t.$$typeof===l||t.$$typeof===h||t.$$typeof===y||t.$$typeof===f||t[0]===g)},e.typeOf=b}
1,48570:function(t,e,i){"use strict";t.exports=i(66866)},13629:function(t,e,i){"use strict";i.d(e,{iD:function(){return o}});var n=i(2784),s="createTweet",o=function(t){var e=n.useRef(null),o=n.useState(!0),a=o[0],r=o[1];return n.useEffect(function(){var n=!0;return i(88391)("https://platform.twitter.com/widgets.js","twitter-embed",function(){if(!window.twttr){console.error("Failure to load window.twttr, aborting load");return}if(n){if(!window.twttr.widgets[s]){console.error("Method "+s+" is not present anymore in twttr.widget api");return}window.twttr.widgets[s](t.tweetId,null==e?void 0:e.current,t.options).then(function(e){r(!1),t.onLoad&&t.onLoad(e)})}}),function(){n=!1}},[]),n.createElement(n.Fragment,null,a&&n.createElement(n.Fragment,null,t.placeholder),n.createElement("div",{ref:e}))}},88391:function(t,e,i){var n,s;s=function(){var t,e,i=document,n=i.getElementsByTagName("head")[0],s="push",o="readyState",a="onreadystatechange",r={},l={},h={},c={};function u(t,e){for(var i=0,n=t.length;i<n;++i)if(!e(t[i]))return!1;return 1}function d(t,e){u(t,function(t){return e(t),1})}function p(e,i,n){e=e[s]?e:[e];var o=i&&i.call,a=o?i:n,g=o?e.join(""):i,y=e.length;function m(t){return t.call?t():r[t]}function v(){if(!--y)for(var t in r[g]=1,a&&a(),h)u(t.split("|"),m)&&!d(h[t],m)&&(h[t]=[])}return setTimeout(function(){d(e,function e(i,n){return null===i?v():(n||/^https?:\/\//.test(i)||!t||(i=-1===i.indexOf(".js")?t+i+".js":t+i),c[i])?(g&&(l[g]=1),2==c[i]?v():setTimeout(function(){e(i,!0)},0)):void(c[i]=1,g&&(l[g]=1),f(i,v))})},0),p}function f(t,s){var r,l=i.createElement("script");l.onload=l.onerror=l[a]=function(){(!l[o]||/^c|loade/.test(l[o]))&&!r&&(l.onload=l[a]=null,r=1,c[t]=2,s())},l.async=1,l.src=e?t+(-1===t.indexOf("?")?"?":"&")+e:t,n.insertBefore(l,n.lastChild)}return p.get=f,p.order=function(t,e,i){!function n(s){s=t.shift(),t.length?p(s,n):p(s,e,i)}()},p.path=function(e){t=e},p.urlArgs=function(t){e=t},p.ready=function(t,e,i){t=t[s]?t:[t];var n,o=[];return!d(t,function(t){r[t]||o[s](t)})&&u(t,function(t){return r[t]})?e():(h[n=t.join("|")]=h[n]||[],h[n][s](e),i&&i(o)),p},p.done=function(t){p([null],t)},p},t.exports?t.exports=s():void 0===(n=s.call(e,i,e,t))||(t.exports=n)},57785:function(t){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},47086:function(t,e,i){"use strict";i.d(e,{q:function(){return ic},YD:function(){return e1},q_:function(){return eJ}});var n,s,o,a=x(),r=t=>v(t,a),l=x();r.write=t=>v(t,l);var h=x();r.onStart=t=>v(t,h);var c=x();r.onFrame=t=>v(t,c);var u=x();r.onFinish=t=>v(t,u);var d=[];r.setTimeout=(t,e)=>{let i=r.now()+e,n=()=>{let t=d.findIndex(t=>t.cancel==n);~t&&d.splice(t,1),y-=~t?1:0},s={time:i,handler:t,cancel:n};return d.splice(p(i),0,s),y+=1,w(),s};var p=t=>~(~d.findIndex(e=>e.time>t)||~d.length);r.cancel=t=>{h.delete(t),c.delete(t),u.delete(t),a.delete(t),l.delete(t)},r.sync=t=>{m=!0,r.batchedUpdates(t),m=!1},r.throttle=t=>{let e;function i(){try{t(...e)}finally{e=null}}function n(...t){e=t,r.onStart(i)}return n.handler=t,n.cancel=()=>{h.delete(i),e=null},n};var f="undefined"!=typeof window?window.requestAnimationFrame:()=>{};r.use=t=>f=t,r.now="undefined"!=typeof performance?()=>performance.now():Date.now,r.batchedUpdates=t=>t(),r.catch=console.error,r.frameLoop="always",r.advance=()=>{"demand"!==r.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_()};var g=-1,y=0,m=!1;function v(t,e){m?(e.delete(t),t(0)):(e.add(t),w())}function w(){g<0&&(g=0,"demand"!==r.frameLoop&&f(b))}function b(){~g&&(f(b),r.batchedUpdates(_))}function _(){let t=g,e=p(g=r.now());if(e&&(S(d.splice(0,e),t=>t.handler()),y-=e),!y){g=-1;return}h.flush(),a.flush(t?Math.min(64,g-t):16.667),c.flush(),l.flush(),u.flush()}function x(){let t=new Set,e=t;return{add(i){y+=e!=t||t.has(i)?0:1,t.add(i)},delete:i=>(y-=e==t&&t.has(i)?1:0,t.delete(i)),flush(i){e.size&&(t=new Set,y-=e.size,S(e,e=>e(i)&&t.add(e)),y+=t.size,e=t)}}}function S(t,e){t.forEach(t=>{try{e(t)}catch(t){r.catch(t)}})}var P=i(2784),C=Object.defineProperty,O={};function T(){}((t,e)=>{for(var i in e)C(t,i,{get:e[i],enumerable:!0})})(O,{assign:()=>j,colors:()=>L,createStringInterpolator:()=>n,skipAnimation:()=>D,to:()=>s,willAdvance:()=>F});
1var k=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),z={arr:Array.isArray,obj:t=>!!t&&"Object"===t.constructor.name,fun:t=>"function"==typeof t,str:t=>"string"==typeof t,num:t=>"number"==typeof t,und:t=>void 0===t};function A(t,e){if(z.arr(t)){if(!z.arr(e)||t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}return t===e}var E=(t,e)=>t.forEach(e);function M(t,e,i){if(z.arr(t)){for(let n=0;n<t.length;n++)e.call(i,t[n],`${n}`);return}for(let n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n)}var G=t=>z.und(t)?[]:z.arr(t)?t:[t];function V(t,e){if(t.size){let i=Array.from(t);t.clear(),E(i,e)}}var R=(t,...e)=>V(t,t=>t(...e)),I=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,D=!1,F=T,j=t=>{t.to&&(s=t.to),t.now&&(r.now=t.now),void 0!==t.colors&&(L=t.colors),null!=t.skipAnimation&&(D=t.skipAnimation),t.createStringInterpolator&&(n=t.createStringInterpolator),t.requestAnimationFrame&&r.use(t.requestAnimationFrame),t.batchedUpdates&&(r.batchedUpdates=t.batchedUpdates),t.willAdvance&&(F=t.willAdvance),t.frameLoop&&(r.frameLoop=t.frameLoop)},H=new Set,B=[],N=[],$=0,U={get idle(){return!H.size&&!B.length},start(t){$>t.priority?(H.add(t),r.onStart(q)):(W(t),r(Q))},advance:Q,sort(t){if($)r.onFrame(()=>U.sort(t));else{let e=B.indexOf(t);~e&&(B.splice(e,1),Z(t))}},clear(){B=[],H.clear()}};function q(){H.forEach(W),H.clear(),r(Q)}function W(t){B.includes(t)||Z(t)}function Z(t){B.splice(function(t,e){let i=t.findIndex(e);return i<0?t.length:i}(B,e=>e.priority>t.priority),0,t)}function Q(t){let e=N;for(let i=0;i<B.length;i++){let n=B[i];$=n.priority,n.idle||(F(n),n.advance(t),n.idle||e.push(n))}return $=0,(N=B).length=0,(B=e).length>0}var Y="[-+]?\\d*\\.?\\d+",K=Y+"%";function X(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var J=RegExp("rgb"+X(Y,Y,Y)),tt=RegExp("rgba"+X(Y,Y,Y,Y)),te=RegExp("hsl"+X(Y,K,K)),ti=RegExp("hsla"+X(Y,K,K,Y)),tn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ts=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,to=/^#([0-9a-fA-F]{6})$/,ta=/^#([0-9a-fA-F]{8})$/;function tr(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function tl(t,e,i){let n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;return Math.round(255*tr(s,n,t+1/3))<<24|Math.round(255*tr(s,n,t))<<16|Math.round(255*tr(s,n,t-1/3))<<8}function th(t){let e=parseInt(t,10);return e<0?0:e>255?255:e}function tc(t){return(parseFloat(t)%360+360)%360/360}function tu(t){let e=parseFloat(t);return e<0?0:e>1?255:Math.round(255*e)}function td(t){let e=parseFloat(t);return e<0?0:e>100?1:e/100}function tp(t){let e;let i="number"==typeof t?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=to.exec(t))?parseInt(e[1]+"ff",16)>>>0:L&&void 0!==L[t]?L[t]:(e=J.exec(t))?(th(e[1])<<24|th(e[2])<<16|th(e[3])<<8|255)>>>0:(e=tt.exec(t))?(th(e[1])<<24|th(e[2])<<16|th(e[3])<<8|tu(e[4]))>>>0:(e=tn.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=ta.exec(t))?parseInt(e[1],16)>>>0:(e=ts.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=te.exec(t))?(255|tl(tc(e[1]),td(e[2]),td(e[3])))>>>0:(e=ti.exec(t))?(tl(tc(e[1]),td(e[2]),td(e[3]))|tu(e[4]))>>>0:null;if(null===i)return t;let n=(4278190080&(i=i||0))>>>24,s=(16711680&i)>>>16,o=(65280&i)>>>8,a=(255&i)/255;return`rgba(${n}, ${s}, ${o}, ${a})`}var tf=(t,e,i)=>{if(z.fun(t))return t;if(z.arr(t))return tf({range:t,output:e,extrapolate:i});if(z.str(t.output[0]))return n(t);let s=t.output,o=t.range||[0,1],a=t.extrapolateLeft||t.extrapolate||"extend",r=t.extrapolateRight||t.extrapolate||"extend",l=t.easing||(t=>t);return e=>{let i=function(t,e){for(var i=1;i<e.length-1&&!(e[i]>=t);++i);return i-1}(e,o);return function(t,e,i,n,s,o,a,r,l){let h=l?l(t):t;if(h<e){if("identity"===a)return h;"clamp"===a&&(h=e)}if(h>i){if("identity"===r)return h;"clamp"===r&&(h=i)}return n===s?n:e===i?t<=e?n:s:(e===-1/0?h=-h:i===1/0?h-=e:h=(h-e)/(i-e),h=o(h),n===-1/0?h=-h:s===1/0?h+=n:h=h*(s-n)+n,h)}(e,o[i],o[i+1],s[i],s[i+1],l,a,r,t.map)}},tg=Symbol.for("FluidValue.get"),ty=Symbol.for("FluidValue.observers"),tm=t=>!!(t&&t[tg]),tv=t=>t&&t[tg]?t[tg]():t,tw=t=>t[ty]||null;function tb(t,e){let i=t[ty];
1i&&i.forEach(t=>{t.eventObserved?t.eventObserved(e):t(e)})}var t_=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");tx(this,t)}},tx=(t,e)=>tC(t,tg,e);function tS(t,e){if(t[tg]){let i=t[ty];i||tC(t,ty,i=new Set),!i.has(e)&&(i.add(e),t.observerAdded&&t.observerAdded(i.size,e))}return e}function tP(t,e){let i=t[ty];if(i&&i.has(e)){let n=i.size-1;n?i.delete(e):t[ty]=null,t.observerRemoved&&t.observerRemoved(n,e)}}var tC=(t,e,i)=>Object.defineProperty(t,e,{value:i,writable:!0,configurable:!0}),tO=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,tT=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,tk=RegExp(`(${tO.source})(%|[a-z]+)`,"i"),tz=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tA=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,tE=t=>{let[e,i]=tM(t);if(!e||I())return t;let n=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(n)return n.trim();if(i&&i.startsWith("--")){let t=window.getComputedStyle(document.documentElement).getPropertyValue(i);if(t)return t}else if(i&&tA.test(i))return tE(i);else if(i)return i;return t},tM=t=>{let e=tA.exec(t);if(!e)return[,];let[,i,n]=e;return[i,n]},tG=(t,e,i,n,s)=>`rgba(${Math.round(e)}, ${Math.round(i)}, ${Math.round(n)}, ${s})`,tV=t=>{o||(o=L?RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);let e=t.output.map(t=>tv(t).replace(tA,tE).replace(tT,tp).replace(o,tp)),i=e.map(t=>t.match(tO).map(Number)),n=i[0].map((t,e)=>i.map(t=>{if(!(e in t))throw Error('The arity of each "output" value must be equal');return t[e]})).map(e=>tf({...t,output:e}));return t=>{let i=!tk.test(e[0])&&e.find(t=>tk.test(t))?.replace(tO,""),s=0;return e[0].replace(tO,()=>`${n[s++](t)}${i||""}`).replace(tz,tG)}},tR="react-spring: ",tI=t=>{let e=!1;if("function"!=typeof t)throw TypeError(`${tR}once requires a function parameter`);return(...i)=>{e||(t(...i),e=!0)}},tL=tI(console.warn),tD=tI(console.warn);function tF(t){return z.str(t)&&("#"==t[0]||/\d/.test(t)||!I()&&tA.test(t)||t in(L||{}))}var tj=I()?P.useEffect:P.useLayoutEffect,tH=()=>{let t=(0,P.useRef)(!1);return tj(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function tB(){let t=(0,P.useState)()[1],e=tH();return()=>{e.current&&t(Math.random())}}var tN=t=>(0,P.useEffect)(t,t$),t$=[];function tU(t){let e=(0,P.useRef)(void 0);return(0,P.useEffect)(()=>{e.current=t}),e.current}var tq=Symbol.for("Animated:node"),tW=t=>!!t&&t[tq]===t,tZ=t=>t&&t[tq],tQ=(t,e)=>k(t,tq,e),tY=t=>t&&t[tq]&&t[tq].getPayload(),tK=class{constructor(){tQ(this,this)}getPayload(){return this.payload||[]}},tX=class t extends tK{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,z.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new t(e)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return z.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value!==t&&(this._value=t,!0)}reset(){let{done:t}=this;this.done=!1,z.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},tJ=class t extends tX{constructor(t){super(0),this._string=null,this._toString=tf({output:[t,t]})}static create(e){return new t(e)}getValue(){let t=this._string;return null==t?this._string=this._toString(this._value):t}setValue(t){if(z.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else{if(!super.setValue(t))return!1;this._string=null}return!0}reset(t){t&&(this._toString=tf({output:[this.getValue(),t]})),this._value=0,super.reset()}},t0={dependencies:null},t1=class extends tK{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){let e={};return M(this.source,(i,n)=>{tW(i)?e[n]=i.getValue(t):tm(i)?e[n]=tv(i):t||(e[n]=i)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&E(this.payload,t=>t.reset())}_makePayload(t){if(t){let e=new Set;return M(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){t0.dependencies&&tm(t)&&t0.dependencies.add(t);let e=tY(t);e&&E(e,t=>this.add(t))}},t2=class t extends t1{constructor(t){super(t)}static create(e){return new t(e)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){let e=this.getPayload();return t.length==e.length?e.map((e,i)=>e.setValue(t[i])).some(Boolean):(super.setValue(t.map(t5)),!0)}};function t5(t){return(tF(t)?tJ:tX).create(t)}function t3(t){let e=tZ(t);return e?e.constructor:z.arr(t)?t2:tF(t)?tJ:tX}var t4=(t,e)=>{let i=!z.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,P.forwardRef)((n,s)=>{let o=(0,P.useRef)(null),a=i&&(0,P.useCallback)(t=>{o.current=(s&&(z.fun(s)?s(t):s.current=t),t)},[s]),[l,h]=function(t,e){let i=new Set;return t0.dependencies=i,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new t1(t),t0.dependencies=null,[t,i]}(n,e),c=tB(),u=()=>
1{let t=o.current;(!i||t)&&!1===(!!t&&e.applyAnimatedValues(t,l.getValue(!0)))&&c()},d=new t9(u,h),p=(0,P.useRef)(void 0);tj(()=>(p.current=d,E(h,t=>tS(t,d)),()=>{p.current&&(E(p.current.deps,t=>tP(t,p.current)),r.cancel(p.current.update))})),(0,P.useEffect)(u,[]),tN(()=>()=>{let t=p.current;E(t.deps,e=>tP(e,t))});let f=e.getComponentProps(l.getValue());return P.createElement(t,{...f,ref:a})})},t9=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){"change"==t.type&&r.write(this.update)}},t7=Symbol.for("AnimatedComponent"),t6=t=>z.str(t)?t:t&&z.str(t.displayName)?t.displayName:z.fun(t)&&t.name||null;function t8(t,...e){return z.fun(t)?t(...e):t}var et=(t,e)=>!0===t||!!(e&&t&&(z.fun(t)?t(e):G(t).includes(e))),ee=(t,e)=>z.obj(t)?e&&t[e]:t,ei=(t,e)=>!0===t.default?t[e]:t.default?t.default[e]:void 0,en=t=>t,es=(t,e=en)=>{let i=eo;t.default&&!0!==t.default&&(i=Object.keys(t=t.default));let n={};for(let s of i){let i=e(t[s],s);z.und(i)||(n[s]=i)}return n},eo=["config","onProps","onStart","onChange","onPause","onResume","onRest"],ea={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function er(t){let e=function(t){let e={},i=0;if(M(t,(t,n)=>{!ea[n]&&(e[n]=t,i++)}),i)return e}(t);if(e){let i={to:e};return M(t,(t,n)=>n in e||(i[n]=t)),i}return{...t}}function el(t){return t=tv(t),z.arr(t)?t.map(el):tF(t)?O.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function eh(t){return z.fun(t)||z.arr(t)&&z.obj(t[0])}var ec={tension:170,friction:26,mass:1,damping:1,easing:t=>t,clamp:!1},eu=class{constructor(){this.velocity=0,Object.assign(this,ec)}};function ed(t,e){if(z.und(e.decay)){let i=!z.und(e.tension)||!z.und(e.friction);!i&&z.und(e.frequency)&&z.und(e.damping)&&z.und(e.mass)||(t.duration=void 0,t.decay=void 0),i&&(t.frequency=void 0)}else t.duration=void 0}var ep=[],ef=class{constructor(){this.changed=!1,this.values=ep,this.toValues=null,this.fromValues=ep,this.config=new eu,this.immediate=!1}};function eg(t,{key:e,props:i,defaultProps:n,state:s,actions:o}){return new Promise((a,l)=>{let h,c;let u=et(i.cancel??n?.cancel,e);if(u)f();else{z.und(i.pause)||(s.paused=et(i.pause,e));let t=n?.pause;!0!==t&&(t=s.paused||et(t,e)),h=t8(i.delay||0,e),t?(s.resumeQueue.add(p),o.pause()):(o.resume(),p())}function d(){s.resumeQueue.add(p),s.timeouts.delete(c),c.cancel(),h=c.time-r.now()}function p(){h>0&&!O.skipAnimation?(s.delayed=!0,c=r.setTimeout(f,h),s.pauseQueue.add(d),s.timeouts.add(c)):f()}function f(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(c),t<=(s.cancelId||0)&&(u=!0);try{o.start({...i,callId:t,cancel:u},a)}catch(t){l(t)}}})}var ey=(t,e)=>1==e.length?e[0]:e.some(t=>t.cancelled)?ew(t.get()):e.every(t=>t.noop)?em(t.get()):ev(t.get(),e.every(t=>t.finished)),em=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),ev=(t,e,i=!1)=>({value:t,finished:e,cancelled:i}),ew=t=>({value:t,cancelled:!0,finished:!1});function eb(t,e,i,n){let{callId:s,parentId:o,onRest:a}=e,{asyncTo:l,promise:h}=i;return o||t!==l||e.reset?i.promise=(async()=>{let c,u,d;i.asyncId=s,i.asyncTo=t;let p=es(e,(t,e)=>"onRest"===e?void 0:t),f=new Promise((t,e)=>(c=t,u=e)),g=t=>{let e=s<=(i.cancelId||0)&&ew(n)||s!==i.asyncId&&ev(n,!1);if(e)throw t.result=e,u(t),t},y=(t,e)=>{let o=new ex,a=new eS;return(async()=>{if(O.skipAnimation)throw e_(i),a.result=ev(n,!1),u(a),a;g(o);let r=z.obj(t)?{...t}:{...e,to:t};r.parentId=s,M(p,(t,e)=>{z.und(r[e])&&(r[e]=t)});let l=await n.start(r);return g(o),i.paused&&await new Promise(t=>{i.resumeQueue.add(t)}),l})()};if(O.skipAnimation)return e_(i),ev(n,!1);try{let e;e=z.arr(t)?(async t=>{for(let e of t)await y(e)})(t):Promise.resolve(t(y,n.stop.bind(n))),await Promise.all([e.then(c),f]),d=ev(n.get(),!0,!1)}catch(t){if(t instanceof ex)d=t.result;else if(t instanceof eS)d=t.result;else throw t}finally{s==i.asyncId&&(i.asyncId=o,i.asyncTo=o?l:void 0,i.promise=o?h:void 0)}return z.fun(a)&&r.batchedUpdates(()=>{a(d,n,n.item)}),d})():h}function e_(t,e){V(t.timeouts,t=>t.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}
1var ex=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},eS=class extends Error{constructor(){super("SkipAnimationSignal")}},eP=t=>t instanceof eO,eC=1,eO=class extends t_{constructor(){super(...arguments),this.id=eC++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){let t=tZ(this);return t&&t.getValue()}to(...t){return O.to(this,t)}interpolate(...t){return tL(`${tR}The "interpolate" function is deprecated in v9 (use "to" instead)`),O.to(this,t)}toJSON(){return this.get()}observerAdded(t){1==t&&this._attach()}observerRemoved(t){0==t&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){tb(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||U.sort(this),tb(this,{type:"priority",parent:this,priority:t})}},eT=Symbol.for("SpringPhase"),ek=t=>(1&t[eT])>0,ez=t=>(2&t[eT])>0,eA=t=>(4&t[eT])>0,eE=(t,e)=>e?t[eT]|=3:t[eT]&=-3,eM=(t,e)=>e?t[eT]|=4:t[eT]&=-5,eG=class extends eO{constructor(t,e){if(super(),this.animation=new ef,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!z.und(t)||!z.und(e)){let i=z.obj(t)?{...t}:{...e,from:t};z.und(i.default)&&(i.default=!0),this.start(i)}}get idle(){return!(ez(this)||this._state.asyncTo)||eA(this)}get goal(){return tv(this.animation.to)}get velocity(){let t=tZ(this);return t instanceof tX?t.lastVelocity||0:t.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return ek(this)}get isAnimating(){return ez(this)}get isPaused(){return eA(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,i=!1,n=this.animation,{toValues:s}=n,{config:o}=n,a=tY(n.to);!a&&tm(n.to)&&(s=G(tv(n.to))),n.values.forEach((r,l)=>{if(r.done)return;let h=r.constructor==tJ?1:a?a[l].lastPosition:s[l],c=n.immediate,u=h;if(!c){let e;if(u=r.lastPosition,o.tension<=0){r.done=!0;return}let i=r.elapsedTime+=t,s=n.fromValues[l],a=null!=r.v0?r.v0:r.v0=z.arr(o.velocity)?o.velocity[l]:o.velocity,d=o.precision||(s==h?.005:Math.min(1,.001*Math.abs(h-s)));if(z.und(o.duration)){if(o.decay){let t=!0===o.decay?.998:o.decay,n=Math.exp(-(1-t)*i);u=s+a/(1-t)*(1-n),c=Math.abs(r.lastPosition-u)<=d,e=a*n}else{e=null==r.lastVelocity?a:r.lastVelocity;let i=o.restVelocity||d/10,n=o.clamp?0:o.bounce,l=!z.und(n),p=s==h?r.v0>0:s<h,f=Math.ceil(t/1);for(let t=0;t<f&&!(!(Math.abs(e)>i)&&(c=Math.abs(h-u)<=d));++t){l&&(u==h||u>h==p)&&(e=-e*n,u=h);let t=(-(1e-6*o.tension)*(u-h)+-(.001*o.friction)*e)/o.mass;e+=1*t,u+=1*e}}}else{let n=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,r.durationProgress>0&&(r.elapsedTime=o.duration*r.durationProgress,i=r.elapsedTime+=t)),n=(n=(o.progress||0)+i/this._memoizedDuration)>1?1:n<0?0:n,r.durationProgress=n),e=((u=s+o.easing(n)*(h-s))-r.lastPosition)/t,c=1==n}r.lastVelocity=e,Number.isNaN(u)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?r.done=!0:e=!1,r.setValue(u,o.round)&&(i=!0)});let r=tZ(this),l=r.getValue();if(e){let t=tv(n.to);(l!==t||i)&&!o.decay?(r.setValue(t),this._onChange(t)):i&&o.decay&&this._onChange(l),this._stop()}else i&&this._onChange(l)}set(t){return r.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ez(this)){let{to:t,config:e}=this.animation;r.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let i;return z.und(t)?(i=this.queue||[],this.queue=[]):i=[z.obj(t)?t:{...e,to:t}],Promise.all(i.map(t=>this._update(t))).then(t=>ey(this,t))}stop(t){let{to:e}=this.animation;return this._focus(this.get()),e_(this._state,t&&this._lastCallId),r.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){"change"==t.type?this._start():"priority"==t.type&&(this.priority=t.priority+1)}_prepareNode(t){let e=this.key||"",{to:i,from:n}=t;(null==(i=z.obj(i)?i[e]:i)||eh(i))&&(i=void 0),null==(n=z.obj(n)?n[e]:n)&&(n=void 0);let s={to:i,from:n};return ek(this)||(t.reverse&&([i,n]=[n,i]),n=tv(n),z.und(n)?tZ(this)||this._set(i):this._set(n)),s}_update({...t},e){let{key:i,defaultProps:n}=this;t.default&&Object.assign(n,es(t,(t,e)=>/^on/.test(e)?ee(t,i):t)),eF(this,t,"onProps"),ej(this,"onProps",t,this);let s=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did 
1you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return eg(++this._lastCallId,{key:i,props:t,defaultProps:n,state:o,actions:{pause:()=>{eA(this)||(eM(this,!0),R(o.pauseQueue),ej(this,"onPause",ev(this,eV(this,this.animation.to)),this))},resume:()=>{eA(this)&&(eM(this,!1),ez(this)&&this._resume(),R(o.resumeQueue),ej(this,"onResume",ev(this,eV(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(i=>{if(t.loop&&i.finished&&!(e&&i.noop)){let e=eR(t);if(e)return this._update(e,!0)}return i})}_merge(t,e,i){if(e.cancel)return this.stop(!0),i(ew(this));let n=!z.und(t.to),s=!z.und(t.from);if(n||s){if(!(e.callId>this._lastToId))return i(ew(this));this._lastToId=e.callId}let{key:o,defaultProps:a,animation:l}=this,{to:h,from:c}=l,{to:u=h,from:d=c}=t;s&&!n&&(!e.default||z.und(u))&&(u=d),e.reverse&&([u,d]=[d,u]);let p=!A(d,c);p&&(l.from=d),d=tv(d);let f=!A(u,h);f&&this._focus(u);let g=eh(e.to),{config:y}=l,{decay:m,velocity:v}=y;(n||s)&&(y.velocity=0),e.config&&!g&&function(t,e,i){for(let n in i&&(ed(i={...i},e),e={...i,...e}),ed(t,e),Object.assign(t,e),ec)null==t[n]&&(t[n]=ec[n]);let{frequency:n,damping:s}=t,{mass:o}=t;z.und(n)||(n<.01&&(n=.01),s<0&&(s=0),t.tension=Math.pow(2*Math.PI/n,2)*o,t.friction=4*Math.PI*s*o/n)}(y,t8(e.config,o),e.config!==a.config?t8(a.config,o):void 0);let w=tZ(this);if(!w||z.und(u))return i(ev(this,!0));let b=z.und(e.reset)?s&&!e.default:!z.und(d)&&et(e.reset,o),_=b?d:this.get(),x=el(u),S=z.num(x)||z.arr(x)||tF(x),P=!g&&(!S||et(a.immediate||e.immediate,o));if(f){let t=t3(u);if(t!==w.constructor){if(P)w=this._set(x);else throw Error(`Cannot animate between ${w.constructor.name} and ${t.name}, as the "to" prop suggests`)}}let C=w.constructor,O=tm(u),T=!1;if(!O){let t=b||!ek(this)&&p;(f||t)&&(O=!(T=A(el(_),x))),(A(l.immediate,P)||P)&&A(y.decay,m)&&A(y.velocity,v)||(O=!0)}if(T&&ez(this)&&(l.changed&&!b?O=!0:O||this._stop(h)),!g&&((O||tm(h))&&(l.values=w.getPayload(),l.toValues=tm(u)?null:C==tJ?[1]:G(x)),l.immediate==P||(l.immediate=P,P||b||this._set(h)),O)){let{onRest:t}=l;E(eD,t=>eF(this,e,t));let n=ev(this,eV(this,h));R(this._pendingCalls,n),this._pendingCalls.add(i),l.changed&&r.batchedUpdates(()=>{l.changed=!b,t?.(n,this),b?t8(a.onRest,n):l.onStart?.(n,this)})}b&&this._set(_),g?i(eb(e.to,e,this._state,this)):O?this._start():ez(this)&&!f?this._pendingCalls.add(i):i(em(_))}_focus(t){let e=this.animation;t!==e.to&&(tw(this)&&this._detach(),e.to=t,tw(this)&&this._attach())}_attach(){let t=0,{to:e}=this.animation;tm(e)&&(tS(e,this),eP(e)&&(t=e.priority+1)),this.priority=t}_detach(){let{to:t}=this.animation;tm(t)&&tP(t,this)}_set(t,e=!0){let i=tv(t);if(!z.und(i)){let t=tZ(this);if(!t||!A(i,t.getValue())){let n=t3(i);t&&t.constructor==n?t.setValue(i):tQ(this,n.create(i)),t&&r.batchedUpdates(()=>{this._onChange(i,e)})}}return tZ(this)}_onStart(){let t=this.animation;t.changed||(t.changed=!0,ej(this,"onStart",ev(this,eV(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),t8(this.animation.onChange,t,this)),t8(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){let t=this.animation;tZ(this).reset(tv(t.to)),t.immediate||(t.fromValues=t.values.map(t=>t.lastPosition)),ez(this)||(eE(this,!0),eA(this)||this._resume())}_resume(){O.skipAnimation?this.finish():U.start(this)}_stop(t,e){if(ez(this)){eE(this,!1);let i=this.animation;E(i.values,t=>{t.done=!0}),i.toValues&&(i.onChange=i.onPause=i.onResume=void 0),tb(this,{type:"idle",parent:this});let n=e?ew(this.get()):ev(this.get(),eV(this,t??i.to));R(this._pendingCalls,n),i.changed&&(i.changed=!1,ej(this,"onRest",n,this))}}};function eV(t,e){let i=el(e);return A(el(t.get()),i)}function eR(t,e=t.loop,i=t.to){let n=t8(e);if(n){let s=!0!==n&&er(n),o=(s||t).reverse,a=!s||s.reset;return eI({...t,loop:e,default:!1,pause:void 0,to:!o||eh(i)?i:void 0,from:a?t.from:void 0,reset:a,...s})}}function eI(t){let{to:e,from:i}=t=er(t),n=new Set;return z.obj(e)&&eL(e,n),z.obj(i)&&eL(i,n),t.keys=n.size?Array.from(n):null,t}function eL(t,e){M(t,(t,i)=>null!=t&&e.add(i))}var eD=["onStart","onRest","onChange","onPause","onResume"];function eF(t,e,i){t.animation[i]=e[i]!==ei(e,i)?ee(e[i],t.key):void 0}function ej(t,e,...i){t.animation[e]?.(...i),t.defaultProps[e]?.(...i)}var eH=["onStart","onChange","onRest"],eB=1,eN=class{constructor(t,e){this.id=eB++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>
1t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){let t={};return this.each((e,i)=>t[i]=e.get()),t}set(t){for(let e in t){let i=t[e];z.und(i)||this.springs[e].set(i)}}update(t){return t&&this.queue.push(eI(t)),this}start(t){let{queue:e}=this;return(t?e=G(t).map(eI):this.queue=[],this._flush)?this._flush(this,e):(eY(this,e),e$(this,e))}stop(t,e){if(!!t!==t&&(e=t),e){let i=this.springs;E(G(e),e=>i[e].stop(!!t))}else e_(this._state,this._lastAsyncId),this.each(e=>e.stop(!!t));return this}pause(t){if(z.und(t))this.start({pause:!0});else{let e=this.springs;E(G(t),t=>e[t].pause())}return this}resume(t){if(z.und(t))this.start({pause:!1});else{let e=this.springs;E(G(t),t=>e[t].resume())}return this}each(t){M(this.springs,t)}_onFrame(){let{onStart:t,onChange:e,onRest:i}=this._events,n=this._active.size>0,s=this._changed.size>0;(n&&!this._started||s&&!this._started)&&(this._started=!0,V(t,([t,e])=>{e.value=this.get(),t(e,this,this._item)}));let o=!n&&this._started,a=s||o&&i.size?this.get():null;s&&e.size&&V(e,([t,e])=>{e.value=a,t(e,this,this._item)}),o&&(this._started=!1,V(i,([t,e])=>{e.value=a,t(e,this,this._item)}))}eventObserved(t){if("change"==t.type)this._changed.add(t.parent),t.idle||this._active.add(t.parent);else{if("idle"!=t.type)return;this._active.delete(t.parent)}r.onFrame(this._onFrame)}};function e$(t,e){return Promise.all(e.map(e=>eU(t,e))).then(e=>ey(t,e))}async function eU(t,e,i){let{keys:n,to:s,from:o,loop:a,onRest:l,onResolve:h}=e,c=z.obj(e.default)&&e.default;a&&(e.loop=!1),!1===s&&(e.to=null),!1===o&&(e.from=null);let u=z.arr(s)||z.fun(s)?s:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):E(eH,i=>{let n=e[i];if(z.fun(n)){let s=t._events[i];e[i]=({finished:t,cancelled:e})=>{let i=s.get(n);i?(t||(i.finished=!1),e&&(i.cancelled=!0)):s.set(n,{value:null,finished:t||!1,cancelled:e||!1})},c&&(c[i]=e[i])}});let d=t._state;!d.paused===e.pause?(d.paused=e.pause,R(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);let p=(n||Object.keys(t.springs)).map(i=>t.springs[i].start(e)),f=!0===e.cancel||!0===ei(e,"cancel");(u||f&&d.asyncId)&&p.push(eg(++t._lastAsyncId,{props:e,state:d,actions:{pause:T,resume:T,start(e,i){f?(e_(d,t._lastAsyncId),i(ew(t))):(e.onRest=l,i(eb(u,e,d,t)))}}})),d.paused&&await new Promise(t=>{d.resumeQueue.add(t)});let g=ey(t,await Promise.all(p));if(a&&g.finished&&!(i&&g.noop)){let i=eR(e,a,s);if(i)return eY(t,[i]),eU(t,i,!0)}return h&&r.batchedUpdates(()=>h(g,t,t.item)),g}function eq(t,e){let i={...t.springs};return e&&E(G(e),t=>{z.und(t.keys)&&(t=eI(t)),z.obj(t.to)||(t={...t,to:void 0}),eQ(i,t,t=>eZ(t))}),eW(t,i),i}function eW(t,e){M(e,(e,i)=>{t.springs[i]||(t.springs[i]=e,tS(e,t))})}function eZ(t,e){let i=new eG;return i.key=t,e&&tS(i,e),i}function eQ(t,e,i){e.keys&&E(e.keys,n=>{(t[n]||(t[n]=i(n)))._prepareNode(e)})}function eY(t,e){E(e,e=>{eQ(t.springs,e,e=>eZ(e,t))})}var eK=P.createContext({pause:!1,immediate:!1}),eX=()=>{let t=[],e=function(e){tD(`${tR}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let n=[];return E(t,(t,s)=>{if(z.und(e))n.push(t.start());else{let o=i(e,t,s);o&&n.push(t.start(o))}}),n};e.current=t,e.add=function(e){t.includes(e)||t.push(e)},e.delete=function(e){let i=t.indexOf(e);~i&&t.splice(i,1)},e.pause=function(){return E(t,t=>t.pause(...arguments)),this},e.resume=function(){return E(t,t=>t.resume(...arguments)),this},e.set=function(e){E(t,(t,i)=>{let n=z.fun(e)?e(i,t):e;n&&t.set(n)})},e.start=function(e){let i=[];return E(t,(t,n)=>{if(z.und(e))i.push(t.start());else{let s=this._getProps(e,t,n);s&&i.push(t.start(s))}}),i},e.stop=function(){return E(t,t=>t.stop(...arguments)),this},e.update=function(e){return E(t,(t,i)=>t.update(this._getProps(e,t,i))),this};let i=function(t,e,i){return z.fun(t)?t(i,e):t};return e._getProps=i,e};function eJ(t,e){let i=z.fun(t),[[n],s]=function(t,e,i){let n=z.fun(e)&&e;n&&!i&&(i=[]);let s=(0,P.useMemo)(()=>n||3==arguments.length?eX():void 0,[]),o=(0,P.useRef)(0),a=tB(),r=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(t,e){let i=eq(t,e);return!(o.current>0)||r.queue.length||Object.keys(i).some(e=>!t.springs[e])?new Promise(n=>{eW(t,i),r.queue.push(()=>{n(e$(t,e))}),a()}):e$(t,e)}}),[]),l=(0,P.useRef)([...r.ctrls]),h=(0,P.useRef)([]),c=tU(t)||0;function u(t,i){for(let s=t;s<i;s++){let t=l.current[s]||(l.current[s]=new eN(null,r.flush)),i=n?n(s,t):e[s];i&&(h.current[s]=function(t){let e=eI(t);return z.und(e.default)&&(e.default=es(e)),e}(i))}}(0,P.useMemo)(()=>{E(l.current.slice(t,c),t=>{t.ref?.delete(t),s?.delete(t),t.stop(!0)}),l.current.length=t,u(c,t)},[t]),(0,P.useMemo)(()=>{u(0,Math.min(c,t))},i);let d=l.current.map((t,e)=>eq(t,h.current[e])),p=(0,P.useContext)(eK),f=tU(p),g=p!==f&&function(t){for(let e in t)return!0;return!1}(p);tj(()=>{o.current++,r.ctrls=l.current;let{queue:t}=r;t.length&&(r.queue=[],E(t,t=>t())),E(l.current,(t,e)=>{s?.add(t),g&&t.start({default:p});let i=h.current[e];if(i){var n;(n=i.ref)&&t.ref!==n&&(t.ref?.delete(t),n.add(t),t.ref=n),t.ref?t.queue.push(i):t.start(i)}})}),tN(()=>()=>{E(r.ctrls,t=>
1t.stop(!0))});let y=d.map(t=>({...t}));return s?[y,s]:y}(1,i?t:[t],i?e||[]:e);return i||2==arguments.length?[n,s]:n}var e0={any:0,all:1};function e1(t,e){let[i,n]=(0,P.useState)(!1),s=(0,P.useRef)(void 0),o=z.fun(t)&&t,{to:a={},from:r={},...l}=o?o():{},h=o?e:t,[c,u]=eJ(()=>({from:r,...l}),[]);return(tj(()=>{let t=s.current,{root:e,once:o,amount:l="any",...c}=h??{};if(!t||o&&i||"undefined"==typeof IntersectionObserver)return;let d=new WeakMap,p=()=>(a&&u.start(a),n(!0),o?void 0:()=>{r&&u.start(r),n(!1)}),f=new IntersectionObserver(t=>{t.forEach(t=>{let e=d.get(t.target);if(!!e!==t.isIntersecting){if(t.isIntersecting){let e=p();z.fun(e)?d.set(t.target,e):f.unobserve(t.target)}else e&&(e(),d.delete(t.target))}})},{root:e&&e.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e0[l],...c});return f.observe(t),()=>f.unobserve(t)},[h]),o)?[s,c]:[s,i]}var e2=class extends eO{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=tf(...e);let i=this._get();tQ(this,t3(i).create(i))}advance(t){let e=this._get();A(e,this.get())||(tZ(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&e3(this._active)&&e4(this)}_get(){let t=z.arr(this.source)?this.source.map(tv):G(tv(this.source));return this.calc(...t)}_start(){this.idle&&!e3(this._active)&&(this.idle=!1,E(tY(this),t=>{t.done=!1}),O.skipAnimation?(r.batchedUpdates(()=>this.advance()),e4(this)):U.start(this))}_attach(){let t=1;E(G(this.source),e=>{tm(e)&&tS(e,this),eP(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){E(G(this.source),t=>{tm(t)&&tP(t,this)}),this._active.clear(),e4(this)}eventObserved(t){"change"==t.type?t.idle?this.advance():(this._active.add(t.parent),this._start()):"idle"==t.type?this._active.delete(t.parent):"priority"==t.type&&(this.priority=G(this.source).reduce((t,e)=>Math.max(t,(eP(e)?e.priority:0)+1),0))}};function e5(t){return!1!==t.idle}function e3(t){return!t.size||Array.from(t).every(e5)}function e4(t){t.idle||(t.idle=!0,E(tY(t),t=>{t.done=!0}),tb(t,{type:"idle",parent:t}))}O.assign({createStringInterpolator:tV,to:(t,e)=>new e2(t,e)}),U.advance;var e9=i(28316),e7=/^--/,e6={},e8={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),ie=["Webkit","Ms","Moz","O"];e8=Object.keys(e8).reduce((t,e)=>(ie.forEach(i=>t[it(i,e)]=t[e]),t),e8);var ii=/^(matrix|translate|scale|rotate|skew)/,is=/^(translate)/,io=/^(rotate|skew)/,ia=(t,e)=>z.num(t)&&0!==t?t+e:t,ir=(t,e)=>z.arr(t)?t.every(t=>ir(t,e)):z.num(t)?t===e:parseFloat(t)===e,il=class extends t1{constructor({x:t,y:e,z:i,...n}){let s=[],o=[];(t||e||i)&&(s.push([t||0,e||0,i||0]),o.push(t=>[`translate3d(${t.map(t=>ia(t,"px")).join(",")})`,ir(t,0)])),M(n,(t,e)=>{if("transform"===e)s.push([t||""]),o.push(t=>[t,""===t]);else if(ii.test(e)){if(delete n[e],z.und(t))return;let i=is.test(e)?"px":io.test(e)?"deg":"";s.push(G(t)),o.push("rotate3d"===e?([t,e,n,s])=>[`rotate3d(${t},${e},${n},${ia(s,i)})`,ir(s,0)]:t=>[`${e}(${t.map(t=>ia(t,i)).join(",")})`,ir(t,e.startsWith("scale")?1:0)])}}),s.length&&(n.transform=new ih(s,o)),super(n)}},ih=class extends t_{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return E(this.inputs,(i,n)=>{let s=tv(i[0]),[o,a]=this.transforms[n](z.arr(s)?s:i.map(tv));t+=" "+o,e=e&&a}),e?"none":t}observerAdded(t){1==t&&E(this.inputs,t=>E(t,t=>tm(t)&&tS(t,this)))}observerRemoved(t){0==t&&E(this.inputs,t=>E(t,t=>tm(t)&&tP(t,this)))}eventObserved(t){"change"==t.type&&(this._value=null),tb(this,t)}};O.assign({batchedUpdates:e9.unstable_batchedUpdates,createStringInterpolator:tV,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,dar
1kgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var ic=((t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:i=t=>new t1(t),getComponentProps:n=t=>t}={})=>{let s={applyAnimatedValues:e,createAnimatedStyle:i,getComponentProps:n},o=t=>{let e=t6(t)||"Anonymous";return(t=z.str(t)?o[t]||(o[t]=t4(t,s)):t[t7]||(t[t7]=t4(t,s))).displayName=`Animated(${e})`,t};return M(t,(e,i)=>{z.arr(t)&&(i=t6(e)),o[i]=o(e)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(t,e){if(!t.nodeType||!t.setAttribute)return!1;let i="filter"===t.nodeName||t.parentNode&&"filter"===t.parentNode.nodeName,{className:n,style:s,children:o,scrollTop:a,scrollLeft:r,viewBox:l,...h}=e,c=Object.values(h),u=Object.keys(h).map(e=>i||t.hasAttribute(e)?e:e6[e]||(e6[e]=e.replace(/([A-Z])/g,t=>"-"+t.toLowerCase())));for(let e in void 0!==o&&(t.textContent=o),s)if(s.hasOwnProperty(e)){var d;let i=null==(d=s[e])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||e7.test(e)||e8.hasOwnProperty(e)&&e8[e]?(""+d).trim():d+"px";e7.test(e)?t.style.setProperty(e,i):t.style[e]=i}u.forEach((e,i)=>{t.setAttribute(e,c[i])}),void 0!==n&&(t.className=n),void 0!==a&&(t.scrollTop=a),void 0!==r&&(t.scrollLeft=r),void 0!==l&&t.setAttribute("viewBox",l)},createAnimatedStyle:t=>new il(t),getComponentProps:({scrollTop:t,scrollLeft:e,...i})=>i}).animated}
1,65914:function(t,e,i){"use strict";i.d(e,{G:function(){return aS}});var n,s,o,a,r,l,h,c,u,d,p,f,g,y,m,v,w,b,_,x,S,P,C,O,T,k,z,A,E,M,G,V,R,I,L,D,F,j,H=i(48876);class B{static init(t){let e=new B,i=t.selector;if(!i)throw Error("No selector provided");let n=document.querySelector(i);if(!n)throw Error("No element found for selector");return H.S6T.load({element:n,id:i.replace(".","").replace("!",""),options:{fullScreen:{enable:!1},particles:{color:{value:t.color??"!000000"},links:{color:"random",distance:t.minDistance??120,enable:t.connectParticles??!1},move:{enable:!0,speed:t.speed??.5},number:{value:t.maxParticles??100},size:{value:{min:1,max:t.sizeVariations??3}}},responsive:t.responsive?.map(e=>({maxWidth:e.breakpoint,options:{particles:{color:{value:e.options?.color},links:{distance:e.options?.minDistance,enable:e.options?.connectParticles},number:{value:t.maxParticles},move:{enable:!0,speed:e.options?.speed},size:{value:e.options?.sizeVariations}}}}))}}).then(t=>{e._container=t}),e}destroy(){let t=this._container;t?.destroy()}pauseAnimation(){let t=this._container;t?.pause()}resumeAnimation(){let t=this._container;t?.play()}}let N={particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1},$=t=>{let e=(e,i)=>{let n=(0,H.ZBL)(N,i);return t.load({id:e,options:{fullScreen:{enable:!1},detectRetina:n.retina_detect,smooth:!0,interactivity:{detectsOn:n.interactivity.detect_on,events:{onHover:{enable:n.interactivity.events.onhover.enable,mode:n.interactivity.events.onhover.mode},onClick:{enable:n.interactivity.events.onclick.enable,mode:n.interactivity.events.onclick.mode},resize:{enable:n.interactivity.events.resize}},modes:{grab:{distance:n.interactivity.modes.grab.distance,links:{opacity:n.interactivity.modes.grab.line_linked.opacity}},bubble:{distance:n.interactivity.modes.bubble.distance,size:n.interactivity.modes.bubble.size,duration:n.interactivity.modes.bubble.duration,opacity:n.interactivity.modes.bubble.opacity,speed:n.interactivity.modes.bubble.speed},repulse:{distance:n.interactivity.modes.repulse.distance,duration:n.interactivity.modes.repulse.duration},push:{quantity:n.interactivity.modes.push.particles_nb},remove:{quantity:n.interactivity.modes.remove.particles_nb}}},particles:{collisions:{enable:n.particles.move.bounce},number:{value:n.particles.number.value,density:{enable:n.particles.number.density.enable,width:n.particles.number.density.value_area}},color:{value:n.particles.color.value},stroke:{width:n.particles.shape.stroke.width,color:{value:n.particles.shape.stroke.color}},shape:{type:n.particles.shape.type,options:{polygon:{sides:n.particles.shape.polygon.nb_sides},image:{src:n.particles.shape.image.src,width:n.particles.shape.image.width,height:n.particles.shape.image.height}}},opacity:{value:n.particles.opacity.random?{min:n.particles.opacity.anim.enable?n.particles.opacity.anim.opacity_min:0,max:n.particles.opacity.value}:n.particles.opacity.value,animation:{enable:n.particles.opacity.anim.enable,speed:n.particles.opacity.anim.speed,sync:n.particles.opacity.anim.sync}},size:{value:n.particles.size.random?{min:n.particles.size.anim.enable?n.particles.size.anim.size_min:0,max:n.particles.size.value}:n.particles.size.value,animation:{enable:n.particles.size.anim.enable,speed:n.particles.size.anim.speed,sync:n.particles.size.anim.sync}},links:{enable:n.particles.line_linked.enable,distance:n.particles.line_linked.distance,color:n.particles.line_linked.color,opacity:n.particles.line_linked.opacity,width:n.particles.line_linked.width}
1,move:{enable:n.particles.move.enable,speed:n.particles.move.speed/3,direction:n.particles.move.direction,random:n.particles.move.random,straight:n.particles.move.straight,outModes:n.particles.move.out_mode,attract:{enable:n.particles.move.attract.enable,rotate:{x:n.particles.move.attract.rotateX,y:n.particles.move.attract.rotateY}}}}}})};return e.load=(e,i,n)=>{t.load({id:e,url:i}).then(t=>{t&&n(t)}).catch(()=>{n(void 0)})},e.setOnClickHandler=e=>{t.setOnClickHandler(e)},{particlesJS:e,pJSDom:t.dom()}},U=t=>{(0,H.j2P)(t,"3.7.1");let{particlesJS:e,pJSDom:i}=$(t);return window.particlesJS=e,window.pJSDom=i,window.Particles=B,{particlesJS:e,pJSDom:i,Particles:B}};class q{constructor(){this.validTypes=["arrow"]}draw(t){!function(t){let{context:e,particle:i,radius:n}=t,s=2*n,o=i.heightFactor??.5,a=i.headWidthFactor??.2,r=i.bodyHeightFactor??.5,l=s*o,h=s*a,c=l*r;e.moveTo(-(.5*s),0),e.lineTo(-(.5*s),-(.5*c)),e.lineTo(.5*s-h,-(.5*c)),e.lineTo(.5*s-h,-(.5*l)),e.lineTo(.5*s+h,0),e.lineTo(.5*s-h,.5*l),e.lineTo(.5*s-h,.5*c),e.lineTo(-(.5*s),.5*c),e.lineTo(-(.5*s),0)}(t)}particleInit(t,e){let i=e.shapeData;e.heightFactor=(0,H.Gu7)(i?.heightFactor??.5),e.headWidthFactor=(0,H.Gu7)(i?.headWidthFactor??.2),e.bodyHeightFactor=(0,H.Gu7)(i?.bodyHeightFactor??.5)}}async function W(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new q,e)}let Z=2*Math.PI;class Q{draw(t){let{context:e,radius:i}=t,n=i/3;e.beginPath(),e.arc(n,-n,n,0,Z,!1),e.closePath(),e.fillStyle="#fff9",e.fill()}}async function Y(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEffect("bubble",new Q,e)}class K{constructor(){this.color=!0,this.opacity=!1}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=t.color),void 0===t.opacity||(this.opacity=t.opacity))}}class X{constructor(){this.filter=t=>t.a>0,this.offset=4}load(t){if(!(0,H.Ft)(t)){if(void 0!==t.filter){if((0,H.HD0)(t.filter)){if(Object.hasOwn(window,t.filter)){let e=window[t.filter];(0,H.mf2)(e)&&(this.filter=e)}}else this.filter=t.filter}void 0!==t.offset&&(this.offset=t.offset)}}}class J{constructor(){this.src=""}load(t){(0,H.Ft)(t)||void 0===t.src||(this.src=t.src)}}class tt{constructor(){this.family="sans-serif",this.size=100}load(t){(0,H.Ft)(t)||(void 0!==t.family&&(this.family=t.family),void 0!==t.size&&(this.size=t.size),void 0!==t.style&&(this.style=t.style),void 0!==t.variant&&(this.variant=t.variant),void 0===t.weight||(this.weight=t.weight))}}class te{constructor(){this.separator="\n",this.spacing=10}load(t){(0,H.Ft)(t)||(void 0!==t.separator&&(this.separator=t.separator),void 0===t.spacing||(this.spacing=t.spacing))}}class ti{constructor(){this.color="#000000",this.font=new tt,this.lines=new te,this.text=""}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=t.color),this.font.load(t.font),this.lines.load(t.lines),void 0===t.text||(this.text=t.text))}}class tn{constructor(){this.enable=!1,this.override=new K,this.pixels=new X,this.position={x:50,y:50},this.scale=1}load(t){!(0,H.Ft)(t)&&(void 0!==t.element&&t.element instanceof HTMLCanvasElement&&(this.element=t.element),void 0!==t.enable&&(this.enable=t.enable),t.image&&(this.image||(this.image=new J),this.image.load(t.image)),this.pixels.load(t.pixels),t.position&&(this.position={x:t.position.x??this.position.x,y:t.position.y??this.position.y}),this.override.load(t.override),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.selector&&(this.selector=t.selector),t.text&&(this.text||(this.text=new ti),this.text.load(t.text)))}}let ts={x:0,y:0};function to(t,e,i,n=!0){let s=t.getImageData(ts.x,ts.y,e.width,e.height).data;n&&t.clearRect(ts.x,ts.y,e.width,e.height);let o=[];for(let t=0;t<s.length;t+=i){let n=t/i,a={x:n%e.width,y:Math.floor(n/e.width)};o[a.y]||(o[a.y]=[]);let r={r:0,g:1,b:2,a:3};o[a.y][a.x]={r:s[t+r.r],g:s[t+r.g],b:s[t+r.b],a:s[t+r.a]/255}}return{pixels:o,width:Math.min(...o.map(t=>t.length)),height:o.length}}let ta=t=>[...Array(t).keys()];class tr{constructor(t){this._container=t}async init(){let t=this._container,e=t.actualOptions.canvasMask;if(!e?.enable)return;let i={pixels:[],height:0,width:0},n=e.pixels.offset;if(e.image){let t=e.image.src;if(!t)return;i=await function(t,e){let i=new Image;i.crossOrigin="Anonymous";let n=new Promise((t,n)=>{i.onerror=n,i.onload=()=>{let s=document.createElement("canvas");s.width=i.width,s.height=i.height;let o=s.getContext("2d");if(!o)return n(Error(`${H.gK4} Could not get canvas context`));o.drawImage(i,ts.x,ts.y,i.width,i.height,ts.x,ts.y,s.width,s.height),t(to(o,s,e))}});return i.src=t,n}(t,n)}else if(e.text){let t=function(t,e){let i=document.createElement("canvas"),n=i.getContext("2d"),{font:s,text:o,lines:a,color:r}=t;if(!o||!n)return;let l=o.split(a.separator),h=(0,H.hj$)(s.size)?`${s.size}px`:s.size,c=[],u=0,d=0;for(let t of l){n.font=`${s.style??""} ${s.variant??""} ${s.weight??""} ${h} ${s.family}`;let e=n.measureText(t),i={measure:e,text:t,height:e.actualBoundingBoxAscent+e.actualBoundingBoxDescent,width:e.width};u=Math.max(u||0,i.width),d+=i.height+a.spacing,c.push(i)}i.width=u,i.height=d;let p=0;for(let t of c)n.font=`${s.style??""} ${s.variant??""} ${s.weight??""} ${h} ${s.family}`,n.fillStyle=r,n.fillText(t.text,ts.x,p+t.measure.actualBoundingBoxAscent),p+=t.height+a.spacing;return to(n,i,e)}(e.text,n);if((0,H.Ft)(t))return;i=t}else if(e.element??e.selector){let t=e.element??(e.selector&&document.querySelector(e.selector));if(!t)return;let s=t.getContext("2d");if(!s)return;i=to(s,t,n)}
1!function(t,e,i,n,s,o){let{height:a,width:r}=e,l=a*r,h=function(t){for(let e=t.length-1;e>=0;e--){let i=Math.floor((0,H.sZz)()*e);[t[e],t[i]]=[t[i],t[e]]}return t}(ta(l)),c=Math.min(l,t.actualOptions.particles.number.value),u=t.canvas.size,d=0,p={x:u.width*i.x/H.tZy-r*n*.5,y:u.height*i.y/H.tZy-a*n*.5};for(;d<c&&h.length;){let i=h.pop()??0,a={x:i%r,y:Math.floor(i/r)},l=e.pixels[a.y][a.x];if(!o(l))continue;let c={x:a.x*n+p.x,y:a.y*n+p.y},u={};s.color&&(u.color={value:l}),s.opacity&&(u.opacity={value:l.a}),t.particles.addParticle(c,u),d++}}(t,i,e.position,e.scale,e.override,e.pixels.filter)}}class tl{constructor(){this.id="canvasMask"}getPlugin(t){return Promise.resolve(new tr(t))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.canvasMask;i?.load===void 0&&(t.canvasMask=i=new tn),i.load(e?.canvasMask)}needsPlugin(t){return t?.canvasMask?.enable??!1}}async function th(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new tl,e)}function tc(t,e){if(!e.segments.length||!e.segments[0].values.length)return;let{context:i,radius:n}=t;for(let t of(i.moveTo(e.segments[0].values[0].x*n,e.segments[0].values[0].y*n),e.segments))i.bezierCurveTo(t.values[1].x*n,t.values[1].y*n,t.values[2].x*n,t.values[2].y*n,t.values[3].x*n,t.values[3].y*n);for(let t=e.segments.length-1;t>=0;t--){let s=e.segments[t];i.bezierCurveTo(-s.values[2].x*n,s.values[2].y*n,-s.values[1].x*n,s.values[1].y*n,-s.values[0].x*n,s.values[0].y*n)}}let tu={heart:{segments:[{values:[{x:0,y:.5},{x:0,y:.5},{x:.5,y:0},{x:.5,y:-.5/2}]},{values:[{x:.5,y:-.5/2},{x:.5,y:-.5/2},{x:.5,y:-.5},{x:.25,y:-.5}]},{values:[{x:.25,y:-.5},{x:.25,y:-.5},{x:0,y:-.5},{x:0,y:-.5/2}]}]},diamond:{segments:[{values:[{x:0,y:.5},{x:0,y:.5},{x:.375,y:0},{x:.375,y:0}]},{values:[{x:.375,y:0},{x:.375,y:0},{x:0,y:-.5},{x:0,y:-.5}]}]},club:{segments:[{values:[{x:0,y:-.5},{x:0,y:-.5},{x:.25,y:-.5},{x:.25,y:-.5/2}]},{values:[{x:.25,y:-.5/2},{x:.25,y:-.5/2},{x:.5,y:-.5/2},{x:.5,y:0}]},{values:[{x:.5,y:0},{x:.5,y:0},{x:.5,y:.25},{x:.25,y:.25}]},{values:[{x:.25,y:.25},{x:.25,y:.25},{x:.0625,y:.25},{x:.0625,y:.0625}]},{values:[{x:.0625,y:.0625},{x:.0625,y:.25},{x:.25,y:.5},{x:.25,y:.5}]},{values:[{x:.25,y:.5},{x:.25,y:.5},{x:0,y:.5},{x:0,y:.5}]}]},spade:{segments:[{values:[{x:0,y:-.5},{x:0,y:-.5},{x:.5,y:-.5/2},{x:.5,y:0}]},{values:[{x:.5,y:0},{x:.5,y:0},{x:.5,y:.25},{x:.25,y:.25}]},{values:[{x:.25,y:.25},{x:.25,y:.25},{x:.0625,y:.25},{x:.0625,y:.0625}]},{values:[{x:.0625,y:.0625},{x:.0625,y:.25},{x:.25,y:.5},{x:.25,y:.5}]},{values:[{x:.25,y:.5},{x:.25,y:.5},{x:0,y:.5},{x:0,y:.5}]}]}};class td{constructor(){this.validTypes=["club","clubs"]}draw(t){tc(t,tu.club)}}class tp{constructor(){this.validTypes=["diamond","diamonds"]}draw(t){tc(t,tu.diamond)}}class tf{constructor(){this.validTypes=["heart","hearts"]}draw(t){tc(t,tu.heart)}}class tg{constructor(){this.validTypes=["spade","spades"]}draw(t){tc(t,tu.spade)}}async function ty(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new tg,e),await t.addShape(new tf,e),await t.addShape(new tp,e),await t.addShape(new td,e)}let tm=2*Math.PI;class tv{constructor(){this.validTypes=["cog"]}afterDraw(t){!function(t){let{context:e,particle:i,radius:n}=t;if(void 0===i.cogHoleRadius||void 0===i.cogInnerRadius||void 0===i.cogInnerTaper||void 0===i.cogNotches||void 0===i.cogOuterTaper)return;let s=n*i.cogHoleRadius/H.tZy;e.globalCompositeOperation="destination-out",e.beginPath(),e.moveTo(s,0),e.arc(0,0,s,0,tm),e.closePath(),e.fill(),e.globalCompositeOperation="source-over"}(t)}draw(t){!function(t){let{context:e,particle:i,radius:n}=t;if(void 0===i.cogHoleRadius||void 0===i.cogInnerRadius||void 0===i.cogInnerTaper||void 0===i.cogNotches||void 0===i.cogOuterTaper)return;let s=tm/(2*i.cogNotches),o=s*i.cogInnerTaper*.005,a=s*i.cogOuterTaper*.005,r=n*i.cogInnerRadius/H.tZy,l=s,h=!1;for(e.moveTo(n*Math.cos(a),n*Math.sin(a));l<=tm;l+=s)h?(e.lineTo(r*Math.cos(l-o),r*Math.sin(l-o)),e.lineTo(n*Math.cos(l+a),n*Math.sin(l+a))):(e.lineTo(n*Math.cos(l-a),n*Math.sin(l-a)),e.lineTo(r*Math.cos(l+o),r*Math.sin(l+o))),h=!h}(t)}particleInit(t,e){let i=e.shapeData;e.cogHoleRadius=(0,H.Gu7)(i?.holeRadius??44),e.cogInnerRadius=(0,H.Gu7)(i?.innerRadius??72),e.cogInnerTaper=(0,H.Gu7)(i?.innerTaper??35),e.cogNotches=(0,H.Gu7)(i?.notches??7),e.cogOuterTaper=(0,H.Gu7)(i?.outerTaper??50)}}async function tw(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new tv,e)}function tb(t){let e=new Uint32Array(1);return e[0]=1664525*t[0]+1013904223,e}class t_{constructor(){this._NORM_2D=1/47,this._SQUISH_2D=(Math.sqrt(3)-1)/2,this._STRETCH_2D=(1/Math.sqrt(3)-1)/2,this._base2D=[[1,1,0,1,0,1,0,0,0],[1,1,0,1,0,1,2,1,1]],this._gradients2D=[5,2,2,5,-5,2,-2,5,5,-2,2,-5,-5,-2,-2,-5],this._lookup=[],this._lookupPairs2D=[0,1,1,0,4,1,17,0,20,2,21,2,22,5,23,5,26,4,39,3,42,4,43,3],this._p2D=[0,0,1,-1,0,0,-1,1,0,2,1,1,1,2,2,0,1,2,0,2,1,0,0,0],this._perm=new Uint8Array(256),this._perm2D=new Uint8Array(256)}noise(t,e){let{_gradients2D:i,_NORM_2D:n,_SQUISH_2D:s,_STRETCH_2D:o,_lookup:a,_perm:r,_perm2D:l}=this,h=(t+e)*o,c=t+h,u=e+h,d=Math.floor(c),p=Math.floor(u),f=(d+p)*s,g=t-(d+f),y=e-(p+f),m=c-d,v=u-p,w=m+v,b=0;for(let t=a[m-v+1|w<<1|w+v<<2|w+m<<4];void 0!==t;t=t.next){let e=g+t.dx,n=y+t.dy,s=2-e*e-n*n;if(s>0){let o=d+t.xsb,a=p+t.ysb,h=l[r[255&o]+a&255];b+=s*s*s*s*(i[h]*e+i[h+1]*n)}}return b*n}seed(t){let{_p2D:e,_base2D:i,_lookupPairs2D:n}=this,s=[];for(let t=0;t<e.length;t+=4){let n=i[e[t]],o=null,a=null;for(let e=0;e<n.length;e+=3)a=this._contribution2D(n[e],n[e+1],n[e+2]),null===o?s[t/4]=a:o.next=a,o=a;a&&(a.next=this._contribution2D(e[t+1],e[t+2],e[t+3]))}this._lookup=[];for(let t=0;t<n.length;t+=2)this._lookup[n[t]]=s[n[t+1]];this._perm=new Uint8Array(256),this._perm2D=new Uint8Array(256);let o=new Uint8Array(256);for(let t=0;t<256;t++)o[t]=t;let a=new Uint32Array(1);a[0]=t,a=tb(tb(tb(a)));for(let t=255;t>=0;t--){a=tb(a);let e=new Uint32Array(1);e[0]=(a[0]+31)%(t+1),e[0]<0&&(e[0]+=t+1),this._perm[t]=o[e[0]],this._perm2D[t]=14&this._perm[t],o[e[0]]=o[t]}}
1_contribution2D(t,e,i){let{_SQUISH_2D:n}=this;return{dx:-e-t*n,dy:-i-t*n,xsb:e,ysb:i}}}class tx{constructor(){this._NORM_3D=1/103,this._SQUISH_3D=(Math.sqrt(4)-1)/3,this._STRETCH_3D=(1/Math.sqrt(4)-1)/3,this._base3D=[[0,0,0,0,1,1,0,0,1,0,1,0,1,0,0,1],[2,1,1,0,2,1,0,1,2,0,1,1,3,1,1,1],[1,1,0,0,1,0,1,0,1,0,0,1,2,1,1,0,2,1,0,1,2,0,1,1]],this._gradients3D=[-11,4,4,-4,11,4,-4,4,11,11,4,4,4,11,4,4,4,11,-11,-4,4,-4,-11,4,-4,-4,11,11,-4,4,4,-11,4,4,-4,11,-11,4,-4,-4,11,-4,-4,4,-11,11,4,-4,4,11,-4,4,4,-11,-11,-4,-4,-4,-11,-4,-4,-4,-11,11,-4,-4,4,-11,-4,4,-4,-11],this._lookup=[],this._lookupPairs3D=[0,2,1,1,2,2,5,1,6,0,7,0,32,2,34,2,129,1,133,1,160,5,161,5,518,0,519,0,546,4,550,4,645,3,647,3,672,5,673,5,674,4,677,3,678,4,679,3,680,13,681,13,682,12,685,14,686,12,687,14,712,20,714,18,809,21,813,23,840,20,841,21,1198,19,1199,22,1226,18,1230,19,1325,23,1327,22,1352,15,1353,17,1354,15,1357,17,1358,16,1359,16,1360,11,1361,10,1362,11,1365,10,1366,9,1367,9,1392,11,1394,11,1489,10,1493,10,1520,8,1521,8,1878,9,1879,9,1906,7,1910,7,2005,6,2007,6,2032,8,2033,8,2034,7,2037,6,2038,7,2039,6],this._p3D=[0,0,1,-1,0,0,1,0,-1,0,0,-1,1,0,0,0,1,-1,0,0,-1,0,1,0,0,-1,1,0,2,1,1,0,1,1,1,-1,0,2,1,0,1,1,1,-1,1,0,2,0,1,1,1,-1,1,1,1,3,2,1,0,3,1,2,0,1,3,2,0,1,3,1,0,2,1,3,0,2,1,3,0,1,2,1,1,1,0,0,2,2,0,0,1,1,0,1,0,2,0,2,0,1,1,0,0,1,2,0,0,2,2,0,0,0,0,1,1,-1,1,2,0,0,0,0,1,-1,1,1,2,0,0,0,0,1,1,1,-1,2,3,1,1,1,2,0,0,2,2,3,1,1,1,2,2,0,0,2,3,1,1,1,2,0,2,0,2,1,1,-1,1,2,0,0,2,2,1,1,-1,1,2,2,0,0,2,1,-1,1,1,2,0,0,2,2,1,-1,1,1,2,0,2,0,2,1,1,1,-1,2,2,0,0,2,1,1,1,-1,2,0,2,0],this._perm=new Uint8Array(256),this._perm3D=new Uint8Array(256)}noise(t,e,i){let{_STRETCH_3D:n,_NORM_3D:s,_SQUISH_3D:o,_lookup:a,_perm:r,_perm3D:l,_gradients3D:h}=this,c=(t+e+i)*n,u=t+c,d=e+c,p=i+c,f=Math.floor(u),g=Math.floor(d),y=Math.floor(p),m=(f+g+y)*o,v=t-(f+m),w=e-(g+m),b=i-(y+m),_=u-f,x=d-g,S=p-y,P=_+x+S,C=0;for(let t=a[x-S+1|_-x+1<<1|_-S+1<<2|P<<3|P+S<<5|P+x<<7|P+_<<9];void 0!==t;t=t.next){let e=v+t.dx,i=w+t.dy,n=b+t.dz,s=2-e*e-i*i-n*n;if(s>0){let o=f+t.xsb,a=g+t.ysb,c=y+t.zsb,u=r[255&o],d=l[r[u+a&255]+c&255];C+=s*s*s*s*(h[d]*e+h[d+1]*i+h[d+2]*n)}}return C*s}seed(t){let{_base3D:e,_lookupPairs3D:i,_p3D:n}=this,s=[];for(let t=0;t<n.length;t+=9){let i=e[n[t]],o=null,a=null;for(let e=0;e<i.length;e+=4)a=this._contribution3D(i[e],i[e+1],i[e+2],i[e+3]),null===o?s[t/9]=a:o.next=a,o=a;a&&(a.next=this._contribution3D(n[t+1],n[t+2],n[t+3],n[t+4]),a.next.next=this._contribution3D(n[t+5],n[t+6],n[t+7],n[t+8]))}this._lookup=[];for(let t=0;t<i.length;t+=2)this._lookup[i[t]]=s[i[t+1]];this._perm=new Uint8Array(256),this._perm3D=new Uint8Array(256);let o=new Uint8Array(256);for(let t=0;t<256;t++)o[t]=t;let a=new Uint32Array(1);a[0]=t,a=tb(tb(tb(a)));for(let t=255;t>=0;t--){a=tb(a);let e=new Uint32Array(1);e[0]=(a[0]+31)%(t+1),e[0]<0&&(e[0]+=t+1),this._perm[t]=o[e[0]],this._perm3D[t]=this._perm[t]%24*3,o[e[0]]=o[t]}}_contribution3D(t,e,i,n){let{_SQUISH_3D:s}=this;return{dx:-e-t*s,dy:-i-t*s,dz:-n-t*s,xsb:e,ysb:i,zsb:n}}}class tS{constructor(){this._NORM_4D=1/30,this._SQUISH_4D=(Math.sqrt(5)-1)*.25,this._STRETCH_4D=(1/Math.sqrt(5)-1)*.25,this._lookup=[],this._perm=new Uint8Array(0),this._perm4D=new Uint8Array(0),this._base4D=[[0,0,0,0,0,1,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1],[3,1,1,1,0,3,1,1,0,1,3,1,0,1,1,3,0,1,1,1,4,1,1,1,1],[1,1,0,0,0,1,0,1,0,0,1,0,0,1,0,1,0,0,0,1,2,1,1,0,0,2,1,0,1,0,2,1,0,0,1,2,0,1,1,0,2,0,1,0,1,2,0,0,1,1],[3,1,1,1,0,3,1,1,0,1,3,1,0,1,1,3,0,1,1,1,2,1,1,0,0,2,1,0,1,0,2,1,0,0,1,2,0,1,1,0,2,0,1,0,1,2,0,0,1,1]],this._gradients4D=[3,1,1,1,1,3,1,1,1,1,3,1,1,1,1,3,-3,1,1,1,-1,3,1,1,-1,1,3,1,-1,1,1,3,3,-1,1,1,1,-3,1,1,1,-1,3,1,1,-1,1,3,-3,-1,1,1,-1,-3,1,1,-1,-1,3,1,-1,-1,1,3,3,1,-1,1,1,3,-1,1,1,1,-3,1,1,1,-1,3,-3,1,-1,1,-1,3,-1,1,-1,1,-3,1,-1,1,-1,3,3,-1,-1,1,1,-3,-1,1,1,-1,-3,1,1,-1,-1,3,-3,-1,-1,1,-1,-3,-1,1,-1,-1,-3,1,-1,-1,-1,3,3,1,1,-1,1,3,1,-1,1,1,3,-1,1,1,1,-3,-3,1,1,-1,-1,3,1,-1,-1,1,3,-1,-1,1,1,-3,3,-1,1,-1,1,-3,1,-1,1,-1,3,-1,1,-1,1,-3,-3,-1,1,-1,-1,-3,1,-1,-1,-1,3,-1,-1,-1,1,-3,3,1,-1,-1,1,3,-1,-1,1,1,-3,-1,1,1,-1,-3,-3,1,-1,-1,-1,3,-1,-1,-1,1,-3,-1,-1,1,-1,-3,3,-1,-1,-1,1,-3,-1,-1,1,-1,-3,-1,1,-1,-1,-3,-3,-1,-1,-1,-1,-3,-1,-1,-1,-1,-3,-1,-1,-1,-1,-3],this._lookupPairs4D=[0,3,1,2,2,3,5,2,6,1,7,1,8,3,9,2,10,3,13,2,16,3,18,3,22,1,23,1,24,3,26,3,33,2,37,2,38,1,39,1,41,2,45,2,54,1,55,1,56,0,57,0,58,0,59,0,60,0,61,0,62,0,63,0,256,3,258,3,264,3,266,3,272,3,274,3,280,3,282,3,2049,2,2053,2,2057,2,2061,2,2081,2,2085,2,2089,2,2093,2,2304,9,2305,9,2312,9,2313,9,16390,1,16391,1,16406,1,16407,1,16422,1,16423,1,16438,1,16439,1,16642,8,16646,8,16658,8,16662,8,18437,6,18439,6,18469,6,18471,6,18688,9,18689,9,18690,8,18693,6,18694,8,18695,6,18696,9,18697,9,18706,8,18710,8,18725,6,18727,6,131128,0,131129,0,131130,0,131131,0,131132,0,131133,0,131134,0,131135,0,131352,7,131354,7,131384,7,131386,7,133161,5,133165,5,133177,5,133181,5,133376,9,133377,9,133384,9,133385,9,133400,7,133402,7,133417,5,133421,5,133432,7,133433,5,
1133434,7,133437,5,147510,4,147511,4,147518,4,147519,4,147714,8,147718,8,147730,8,147734,8,147736,7,147738,7,147766,4,147767,4,147768,7,147770,7,147774,4,147775,4,149509,6,149511,6,149541,6,149543,6,149545,5,149549,5,149558,4,149559,4,149561,5,149565,5,149566,4,149567,4,149760,9,149761,9,149762,8,149765,6,149766,8,149767,6,149768,9,149769,9,149778,8,149782,8,149784,7,149786,7,149797,6,149799,6,149801,5,149805,5,149814,4,149815,4,149816,7,149817,5,149818,7,149821,5,149822,4,149823,4,149824,37,149825,37,149826,36,149829,34,149830,36,149831,34,149832,37,149833,37,149842,36,149846,36,149848,35,149850,35,149861,34,149863,34,149865,33,149869,33,149878,32,149879,32,149880,35,149881,33,149882,35,149885,33,149886,32,149887,32,150080,49,150082,48,150088,49,150098,48,150104,47,150106,47,151873,46,151877,45,151881,46,151909,45,151913,44,151917,44,152128,49,152129,46,152136,49,152137,46,166214,43,166215,42,166230,43,166247,42,166262,41,166263,41,166466,48,166470,43,166482,48,166486,43,168261,45,168263,42,168293,45,168295,42,168512,31,168513,28,168514,31,168517,28,168518,25,168519,25,280952,40,280953,39,280954,40,280957,39,280958,38,280959,38,281176,47,281178,47,281208,40,281210,40,282985,44,282989,44,283001,39,283005,39,283208,30,283209,27,283224,30,283241,27,283256,22,283257,22,297334,41,297335,41,297342,38,297343,38,297554,29,297558,24,297562,29,297590,24,297594,21,297598,21,299365,26,299367,23,299373,26,299383,23,299389,20,299391,20,299584,31,299585,28,299586,31,299589,28,299590,25,299591,25,299592,30,299593,27,299602,29,299606,24,299608,30,299610,29,299621,26,299623,23,299625,27,299629,26,299638,24,299639,23,299640,22,299641,22,299642,21,299645,20,299646,21,299647,20,299648,61,299649,60,299650,61,299653,60,299654,59,299655,59,299656,58,299657,57,299666,55,299670,54,299672,58,299674,55,299685,52,299687,51,299689,57,299693,52,299702,54,299703,51,299704,56,299705,56,299706,53,299709,50,299710,53,299711,50,299904,61,299906,61,299912,58,299922,55,299928,58,299930,55,301697,60,301701,60,301705,57,301733,52,301737,57,301741,52,301952,79,301953,79,301960,76,301961,76,316038,59,316039,59,316054,54,316071,51,316086,54,316087,51,316290,78,316294,78,316306,73,316310,73,318085,77,318087,77,318117,70,318119,70,318336,79,318337,79,318338,78,318341,77,318342,78,318343,77,430776,56,430777,56,430778,53,430781,50,430782,53,430783,50,431e3,75,431002,72,431032,75,431034,72,432809,74,432813,69,432825,74,432829,69,433032,76,433033,76,433048,75,433065,74,433080,75,433081,74,447158,71,447159,68,447166,71,447167,68,447378,73,447382,73,447386,72,447414,71,447418,72,447422,71,449189,70,449191,70,449197,69,449207,68,449213,69,449215,68,449408,67,449409,67,449410,66,449413,64,449414,66,449415,64,449416,67,449417,67,449426,66,449430,66,449432,65,449434,65,449445,64,449447,64,449449,63,449453,63,449462,62,449463,62,449464,65,449465,63,449466,65,449469,63,449470,62,449471,62,449472,19,449473,19,449474,18,449477,16,449478,18,449479,16,449480,19,449481,19,449490,18,449494,18,449496,17,449498,17,449509,16,449511,16,449513,15,449517,15,449526,14,449527,14,449528,17,449529,15,449530,17,449533,15,449534,14,449535,14,449728,19,449729,19,449730,18,449734,18,449736,19,449737,19,449746,18,449750,18,449752,17,449754,17,449784,17,449786,17,451520,19,451521,19,451525,16,451527,16,451528,19,451529,19,451557,16,451559,16,451561,15,451565,15,451577,15,451581,15,451776,19,451777,19,451784,19,451785,19,465858,18,465861,16,465862,18,465863,16,465874,18,465878,18,465893,16,465895,16,465910,14,465911,14,465918,14,465919,14,466114,18,466118,18,466130,18,466134,18,467909,16,467911,16,467941,16,467943,16,468160,13,468161,13,468162,13,468163,13,468164,13,468165,13,468166,13,468167,13,580568,17,580570,17,580585,15,580589,15,580598,14,580599,14,580600,17,580601,15,580602,17,580605,15,580606,14,580607,14,580824,17,580826,17,580856,17,580858,17,582633,15,582637,15,582649,15,582653,15,582856,12,582857,12,582872,12,582873,12,582888,12,582889,12,582904,12,582905,12,596982,14,596983,14,596990,14,596991,14,597202,11,597206,11,597210,11,597214,11,597234,11,597238,11,597242,11,597246,11,599013,10,599015,10,599021,10,599023,10,599029,10,599031,10,599037,10,599039,10,599232,13,599233,13,599234,13,599235,13,599236,13,599237,13,599238,13,599239,13,599240,12,599241,12,599250,11,599254,11,599256,12,599257,12,599258,11,599262,11,599269,10,599271,10,599272,12,599273,12,599277,10,599279,10,599282,11,599285,10,599286,11,599287,10,599288,12,599289,12,599290,11,599293,10,599294,11,599295,10],this._p4D=[0,0,1,-1,0,0,0,1,0,-1,0,0,1,0,0,-1,0,0,-1,1,0,0,0,0,1,-1,0,0,0,1,0,-1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,-1,0,0,-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,2,1,1,0,0,1,1,1,-1,0,1,1,1,0,-1,0,2,1,0,1,0,1,1,-1,1,0,1,1,0,1,-1,0,2,0,1,1,0,1,-1,1,1,0,1,0,1,1,-1,0,2,1,0,0,1,1,1,-1,0,1,1,1,0,-1,1,0,2,0,1,0,1,1,-1,1,0,1,1,0,1,-1,1,0,2,0,0,1,1,1,-1,0,1,1,1,0,-1,1,1,1,4,2,1,1,0,4,1,2,1,0,4,1,1,2,0,1,4,2,1,0,1,4,1,2,0,1,4,1,1,0,2,1,4,2,0,1,1,4,1,0,2,1,4,1,0,1,2,1,4,0,2,1,1,4,0,1,2,1,4,0,1,1,2,1,2,1,1,0,0,3,2,1,0,0,3,1,2,0,0,1,2,1,0,1,0,3,2,0,1,0,3,1,0,2,0,1,2,0,1,1,0,3,0,2,1,0,3,0,1,2,0,1,2,1,0,0,1,3,2,0,0,1,3,1,0,0,2,1,2,0,1,0,1,3,0,2,0,1,3,0,1,0,2,1,2,0,0,1,1,3,0,0,2,1,3,0,0,1,2,2,3,1,1,1,0,2,1,1,1,-1,2,2,0,0,0,2,3,1,1,0,1,2,1,1,-1,1,2,2,0,0,0,2,3,1,0,1,1,2,1,-1,1,1,2,2,0,0,0,2,3,1,1,1,0,2,1,1,1,-1,2,0,2,0,0,2,3,1,1,0,1,2,1,1,-1,1,2,0,2,0,0,2,3,0,1,1,1,2,-1,1,1,1,2,0,2,0,0,2,3,1,1,1,0,2,1,1,1,-1,2,0,0,2,0,2,3,1,0,1,1,2,1,-1,1,1,2,0,0,2,0,2,3,0,1,1,1,2,-1,1,1,1,2,0,0,2,0,2,3,1,1,0,1,2,1,1,-1,1,2,0,0,0,2,2,3,1,0,1,1,2,1,-1,1,1,2,0,0,0,2,2,3,0,1,1,1,2,-1,1,1,1,2,0,0,0,2,2,1,1,1,-1,0,1,1,1,0,-1,0,0,0,0,0,2,1,1,-1,1,0,1,1,0,1,-1,0,0,0,0,0,2,1,-1,1,1,0,1,0,1,1,-1,0,0,0,0,0,2,1,1,-1,0,1,1,1,0,-1,1,0,0,0,0,0,2,1,-1,1,0,1,1,0,1,-1,1,0,0,0,0,0,2,1,-1,0,1,1,1,0,-1,1,1,0,0,0,0,0,2,1,1,1,-1,0,1,1,1,0,-1,2,2,0,0,0,2,1,1,-1,1,0,1,1,0,1,-1,2,2,0,0,0,2,1,1,-1,0,1,1,1,0,-1,1,2,2,0,0,0,2,1,1,1,-1,0,1,1,1,0,-1,2,0,2,0,0,2,1,-1,1,1,0,1,0,1,1,-1,2,0,2,0,0,2,1,-1,1,0,1,1,0,1,-1,1,2,0,2,0,0,2,1,1,-1,1,0,1,1,0,1,-1,2,0,0,2,0,2,1,-1,1,1,0,1,0,1,1,-1,2,0,0,2,0,2,1,-1,0,1,1,1,0,-1,1,1,2,0,0,2,0,2,1,1,-1,0,1,1,1,0,-1,1,2,0,0,0,2,2,1,-1,1,0,1,1,0,1,-1,1,2,0,0,0,2,2,1,-1,0,1,1,1,0,-1,1,1,2,0,0,0,2,3,1,1,0,0,0,2,2,0,0,0,2,1,1,1,-1,3,1,0,1,0,0,2,0,2,0,0,2,1,1,1,-1,3,1,0,0,1,0,2,0,0,2,0,2,1,1,1,-1,3,1,1,0,0,0,2,2,0,0,0,2,1,1,-1,1,3,1,0,1,0,0,2,0,2,0,0,2,1,1,-1,1,3,1,0,0,0,1,2,0,0,0,2,2,1,1,-1,1,3,1,1,0,0,0,2,2,0,0,0,2,1,-1,1,1,3,1,0,0,1,0,2,0,0,2,0,2,1,-1,1,1,3,1,0,0,0,1,2,0,0,0,2,2,1,-1,1,1,3,1,0,1,0,0,2,0,2,0,0,2,-1,1,1,1,3,1,0,0,1,0,2,0,0,2,0,2,-1,1,1,1,3,1,0,0,0,1,2,0,0,0,2,2,
1-1,1,1,1,3,3,2,1,0,0,3,1,2,0,0,4,1,1,1,1,3,3,2,0,1,0,3,1,0,2,0,4,1,1,1,1,3,3,0,2,1,0,3,0,1,2,0,4,1,1,1,1,3,3,2,0,0,1,3,1,0,0,2,4,1,1,1,1,3,3,0,2,0,1,3,0,1,0,2,4,1,1,1,1,3,3,0,0,2,1,3,0,0,1,2,4,1,1,1,1,3,3,2,1,0,0,3,1,2,0,0,2,1,1,1,-1,3,3,2,0,1,0,3,1,0,2,0,2,1,1,1,-1,3,3,0,2,1,0,3,0,1,2,0,2,1,1,1,-1,3,3,2,1,0,0,3,1,2,0,0,2,1,1,-1,1,3,3,2,0,0,1,3,1,0,0,2,2,1,1,-1,1,3,3,0,2,0,1,3,0,1,0,2,2,1,1,-1,1,3,3,2,0,1,0,3,1,0,2,0,2,1,-1,1,1,3,3,2,0,0,1,3,1,0,0,2,2,1,-1,1,1,3,3,0,0,2,1,3,0,0,1,2,2,1,-1,1,1,3,3,0,2,1,0,3,0,1,2,0,2,-1,1,1,1,3,3,0,2,0,1,3,0,1,0,2,2,-1,1,1,1,3,3,0,0,2,1,3,0,0,1,2,2,-1,1,1,1]}noise(t,e,i,n){let{_perm:s,_perm4D:o,_lookup:a,_STRETCH_4D:r,_SQUISH_4D:l,_gradients4D:h,_NORM_4D:c}=this,u=(t+e+i+n)*r,d=t+u,p=e+u,f=i+u,g=n+u,y=Math.floor(d),m=Math.floor(p),v=Math.floor(f),w=Math.floor(g),b=(y+m+v+w)*l,_=t-(y+b),x=e-(m+b),S=i-(v+b),P=n-(w+b),C=d-y,O=p-m,T=f-v,k=g-w,z=C+O+T+k,A=0;for(let t=a[T-k+1|O-T+1<<1|O-k+1<<2|C-O+1<<3|C-T+1<<4|C-k+1<<5|z<<6|z+k<<8|z+T<<11|z+O<<14|z+C<<17];void 0!==t;t=t.next){let e=_+t.dx,i=x+t.dy,n=S+t.dz,a=P+t.dw,r=2-e*e-i*i-n*n-a*a;if(r>0){let l=y+t.xsb,c=m+t.ysb,u=v+t.zsb,d=w+t.wsb,p=s[255&l],f=s[p+c&255],g=o[s[f+u&255]+d&255];A+=r*r*r*r*(h[g]*e+h[g+1]*i+h[g+2]*n+h[g+3]*a)}}return A*c}seed(t){let{_p4D:e,_base4D:i,_lookupPairs4D:n}=this,s=[];for(let t=0;t<e.length;t+=16){let n=i[e[t]],o=null,a=null;for(let e=0;e<n.length;e+=5)a=this._contribution4D(n[e],n[e+1],n[e+2],n[e+3],n[e+4]),null===o?s[t/16]=a:o.next=a,o=a;a&&(a.next=this._contribution4D(e[t+1],e[t+2],e[t+3],e[t+4],e[t+5]),a.next.next=this._contribution4D(e[t+6],e[t+7],e[t+8],e[t+9],e[t+10]),a.next.next.next=this._contribution4D(e[t+11],e[t+12],e[t+13],e[t+14],e[t+15]))}this._lookup=[];for(let t=0;t<n.length;t+=2)this._lookup[n[t]]=s[n[t+1]];this._perm=new Uint8Array(256),this._perm4D=new Uint8Array(256);let o=new Uint8Array(256);for(let t=0;t<256;t++)o[t]=t;let a=new Uint32Array(1);a[0]=t,a=tb(tb(tb(a)));for(let t=255;t>=0;t--){a=tb(a);let e=new Uint32Array(1);e[0]=(a[0]+31)%(t+1),e[0]<0&&(e[0]+=t+1),this._perm[t]=o[e[0]],this._perm4D[t]=252&this._perm[t],o[e[0]]=o[t]}}_contribution4D(t,e,i,n,s){let{_SQUISH_4D:o}=this;return{dx:-e-t*o,dy:-i-t*o,dz:-n-t*o,dw:-s-t*o,xsb:e,ysb:i,zsb:n,wsb:s}}}class tP{constructor(){this.noise2d=new t_,this.noise3d=new tx,this.noise4d=new tS}}let tC={speed:.2,step:250};class tO{constructor(){let t=new tP;this._simplex=t.noise2d,this.options=(0,H.ZBL)({},tC)}generate(t){let e=t.getPosition(),{speed:i,step:n}=this.options,s=e.x/n,o=e.y/n,a=this._simplex.noise(s,o+.001),r=this._simplex.noise(s,o-.001),l=this._simplex.noise(s+.001,o),h=this._simplex.noise(s-.001,o);return t.velocity.x=0,t.velocity.y=0,H.OWs.create((a-r)/.002*i,-((l-h)/.002*i))}init(t){let e=t.actualOptions.particles.move.path.options;this.options.seed=e?.seed,this.options.speed=(e?.speed??tC.speed)*t.retina.pixelRatio,this.options.step=e?.step??tC.step,this._simplex.seed(this.options.seed??(0,H.sZz)())}reset(){}update(){}}async function tT(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("curlNoise",new tO,e)}let tk=2*Math.PI;class tz{constructor(){this.options={rndFunc:null,period:100,nbHarmonics:2,attenHarmonics:.8,lowValue:-.03,highValue:.03}}generate(t){if(!t.pathGen){let e=this.options;t.pathGen=function(t,e,i,n,s=0,o=1){let a=[],r=[],l=[],h=[],c=[],u=t??H.sZz,d=0;i<1&&(i=1);for(let t=1;t<=i;++t)a[t]=u(),r[t]=u(),l[t]=1===t?1:l[t-1]*n,d+=l[t],h[t]=t/e,c[t]=u();return l.forEach((t,e)=>l[e]=t/d*(o-s)),()=>{let t,e,n=0;for(let s=i;s>=1;--s)t=c[s]+=h[s],c[s]>=1&&(t=c[s]-=1,a[s]=r[s],r[s]=u()),e=t**2*(3-2*t),n+=(a[s]*(1-e)+r[s]*e)*l[s];return n+s}}(e.rndFunc,e.period,e.nbHarmonics,e.attenHarmonics,e.lowValue,e.highValue)}return t.curveVelocity?(t.curveVelocity.length+=.01,t.curveVelocity.angle=(t.curveVelocity.angle+t.pathGen())%tk):(t.curveVelocity=H.OWs.origin,t.curveVelocity.length=.6*(0,H.sZz)()+.8,t.curveVelocity.angle=(0,H.sZz)()*tk),t.velocity.x=0,t.velocity.y=0,t.curveVelocity}init(t){let e=t.actualOptions.particles.move.path.options,{options:i}=this;(0,H.mf2)(e.rndFunc)?i.rndFunc=e.rndFunc:(0,H.HD0)(e.rndFunc)&&(i.rndFunc=window[e.rndFunc]??this.options.rndFunc),i.period=e.period??i.period,i.nbHarmonics=e.nbHarmonics??i.nbHarmonics,i.attenHarmonics=e.attenHarmonics??i.attenHarmonics,i.lowValue=e.lowValue??i.lowValue,i.highValue=e.highValue??i.highValue}reset(t){delete t.pathGen,delete t.curveVelocity}update(){}}async function tA(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("curvesPathGenerator",new tz,e)}async function tE(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInBack,t=>2.70158*t**3-1.70158*t**2,!1),await t.addEasing(H.nxi.easeOutBack,t=>1+2.70158*Math.pow(t-1,3)+1.70158*Math.pow(t-1,2),!1),await t.addEasing(H.nxi.easeInOutBack,t=>t<.5?(2*t)**2*(7.189819*t-2.5949095)/2:((2*t-2)**2*(3.5949095*(2*t-2)+2.5949095)+2)/2,!1),await t.refresh(e)}async function tM(t,e){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInCirc,t=>1-Math.sqrt(1-t**2),!1),await t.addEasing(H.nxi.easeOutCirc,t=>Math.sqrt(1-(t-1)**2),!1),await t.addEasing(H.nxi.easeInOutCirc,t=>t<.5?(1-Math.sqrt(1-(2*t)**2))/2:(Math.sqrt(1-(-2*t+2)**2)+1)/2,!1),await t.refresh(e)}async function tG(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInCubic,t=>t**3,!1),await t.addEasing(H.nxi.easeOutCubic,t=>1-(1-t)**3,!1),await t.addEasing(H.nxi.easeInOutCubic,t=>t<.5?4*t**3:1-(-2*t+2)**3/2,!1),await t.refresh(e)}async function tV(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInExpo,t=>t?2**(10*t-10):0,!1),await t.addEasing(H.nxi.easeOutExpo,t=>1===t?1:1-Math.pow(2,-10*t),!1),await t.addEasing(H.nxi.easeInOutExpo,t=>
11===t?t?1:0:t?t<.5?2**(20*t-10)/2:(2-2**(-20*t+10))/2:0,!1),await t.refresh(e)}async function tR(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInLinear,t=>t,!1),await t.addEasing(H.nxi.easeOutLinear,t=>t,!1),await t.addEasing(H.nxi.easeInOutLinear,t=>t,!1),await t.refresh(e)}async function tI(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInQuart,t=>t**4,!1),await t.addEasing(H.nxi.easeOutQuart,t=>1-(1-t)**4,!1),await t.addEasing(H.nxi.easeInOutQuart,t=>t<.5?8*t**4:1-(-2*t+2)**4/2,!1),await t.refresh(e)}async function tL(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInQuint,t=>t**5,!1),await t.addEasing(H.nxi.easeOutQuint,t=>1-(1-t)**5,!1),await t.addEasing(H.nxi.easeInOutQuint,t=>t<.5?16*t**5:1-(-2*t+2)**5/2,!1),await t.refresh(e)}async function tD(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInSine,t=>1-Math.cos(t*Math.PI/2),!1),await t.addEasing(H.nxi.easeOutSine,t=>Math.sin(t*Math.PI/2),!1),await t.addEasing(H.nxi.easeInOutSine,t=>-(Math.cos(Math.PI*t)-1)/2,!1),await t.refresh(e)}class tF{constructor(){this.wait=!1}load(t){(0,H.Ft)(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,H.Cst)(t.delay)),void 0!==t.duration&&(this.duration=(0,H.Cst)(t.duration)),void 0===t.wait||(this.wait=t.wait))}}class tj{constructor(){this.quantity=1,this.delay=.1}load(t){(0,H.Ft)(t)||(void 0!==t.quantity&&(this.quantity=(0,H.Cst)(t.quantity)),void 0!==t.delay&&(this.delay=(0,H.Cst)(t.delay)))}}class tH{constructor(){this.color=!1,this.opacity=!1}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=t.color),void 0===t.opacity||(this.opacity=t.opacity))}}class tB{constructor(){this.options={},this.replace=new tH,this.type="square"}load(t){(0,H.Ft)(t)||(void 0!==t.options&&(this.options=(0,H.ZBL)({},t.options??{}
1)),this.replace.load(t.replace),void 0===t.type||(this.type=t.type))}}class tN{constructor(){this.mode=H.lZr.percent,this.height=0,this.width=0}load(t){(0,H.Ft)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0===t.width||(this.width=t.width))}}class t${constructor(){this.autoPlay=!0,this.fill=!0,this.life=new tF,this.rate=new tj,this.shape=new tB,this.startCount=0}load(t){(0,H.Ft)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size||(this.size=new tN),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,H.KH1)(t.particles,t=>(0,H.ZBL)({},t)),this.rate.load(t.rate),this.shape.load(t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,H.Cst)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,H.Cst)(t.position.y))),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new H.RC2),this.spawnColor.load(t.spawnColor)),void 0===t.startCount||(this.startCount=t.startCount))}}(_||(_={})).emitter="emitter";let tU=1;function tq(t,e){t.color?t.color.value=e:t.color={value:e}}class tW{constructor(t,e,i,n,s){this.emitters=e,this.container=i,this._destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._prepareToDie=()=>{if(this._paused)return;let t=this.options.life?.duration!==void 0?(0,H.Gu7)(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*H.X5o)},this._setColorAnimation=(t,e,i,n=tU)=>{let s=this.container;if(!t.enable)return e;let o=(0,H.vdf)(t.offset),a=(0,H.Gu7)(this.options.rate.delay)*H.X5o/s.retina.reduceFactor;return(e+(0,H.Gu7)(t.speed??0)*s.fpsLimit/a+o*n)%i},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=s,n instanceof t$?this.options=n:(this.options=new t$,this.options.load(n)),this._spawnDelay=(0,H.Gu7)(this.options.life.delay??0)*H.X5o/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let o=(0,H.ZBL)({},this.options.particles);if(o??={},o.move??={},o.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,H.lNs)(this._engine,this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=o,this._size=this._calcSize(),this.size=(0,H.apW)(this._size,this.container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){let t=document.getElementById(this.options.domId);t&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(t))}let a=this.options.shape,r=this._engine.emitterShapeManager?.getShapeGenerator(a.type);r&&(this._shape=r.generate(this.position,this.size,this.fill,a.options)),this._engine.dispatchEvent("emitterCreated",{container:i,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}
1async init(){await this._shape?.init()}pause(){this._paused||delete this._emitDelay}play(){if(!this._paused&&this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal||!this.options.life.count)&&(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0))){if(void 0===this._emitDelay){let t=(0,H.Gu7)(this.options.rate.delay);this._emitDelay=t*H.X5o/this.container.retina.reduceFactor}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}}resize(){let t=this._initialPosition;this.position=t&&(0,H.Ac)(t,this.container.canvas.size,H.OWs.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=(0,H.apW)(this._size,this.container.canvas.size),this._shape?.resize(this.position,this.size)}update(t){!this._paused&&(this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,!this._immortal&&this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=(0,H.Gu7)(this.options.life.delay??0)*H.X5o/this.container.retina.reduceFactor):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._engine.dispatchEvent("emitterPlay",{container:this.container}),this.play(),this._currentSpawnDelay-=this._currentSpawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay)))}_calcPosition(){if(this.options.domId){let t=document.getElementById(this.options.domId);if(t){let e=t.getBoundingClientRect(),i=this.container.retina.pixelRatio;return{x:(e.x+.5*e.width)*i,y:(e.y+.5*e.height)*i}}}return(0,H.Gz$)({size:this.container.canvas.size,position:this.options.position})}_calcSize(){let t=this.container;if(this.options.domId){let e=document.getElementById(this.options.domId);if(e){let i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio,mode:H.lZr.precise}}}return this.options.size??(()=>{let t=new tN;return t.load({height:0,mode:H.lZr.percent,width:0}),t})()}_emit(){if(this._paused)return;let t=(0,H.Gu7)(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){let e=(0,H.wA_)(this._particlesOptions);for(let i=0;i<t;i++){let t=(0,H.ZBL)({},e);if(this.spawnColor){let e=this.options.spawnColor?.animation;if(e){let t={h:360,s:100,l:100};this.spawnColor.h=this._setColorAnimation(e.h,this.spawnColor.h,t.h,3.6),this.spawnColor.s=this._setColorAnimation(e.s,this.spawnColor.s,t.s),this.spawnColor.l=this._setColorAnimation(e.l,this.spawnColor.l,t.l)}tq(t,this.spawnColor)}let i=this.options.shape,n=this.position;if(this._shape){let e=this._shape.randomPosition();if(e){n=e.position;let s=i.replace;s.color&&e.color&&tq(t,e.color),s.opacity&&(t.opacity?t.opacity.value=e.opacity:t.opacity={value:e.opacity})}else n=null}n&&this.container.particles.addParticle(n,t)}}}class tZ{constructor(t,e){this.container=e,this._engine=t,this.array=[],this.emitters=[],this.interactivityEmitters={random:{count:1,enable:!1},value:[]},e.getEmitter=t=>void 0===t||(0,H.hj$)(t)?this.array[t??0]:this.array.find(e=>e.name===t),e.addEmitter=async(t,e)=>this.addEmitter(t,e),e.removeEmitter=t=>{let i=e.getEmitter(t);i&&this.removeEmitter(i)},e.playEmitter=t=>{let i=e.getEmitter(t);i&&i.externalPlay()},e.pauseEmitter=t=>{let i=e.getEmitter(t);i&&i.externalPause()}}async addEmitter(t,e){let i=new t$;i.load(t);let n=new tW(this._engine,this,this.container,i,e);return await n.init(),this.array.push(n),n}handleClickMode(t){let e;let i=this.emitters,n=this.interactivityEmitters;if(t!==_.emitter)return;if(n&&(0,H.kJL)(n.value)){if(n.value.length>0&&n.random.enable){e=[];let t=[];for(let i=0;i<n.random.count;i++){let s=(0,H.dUB)(n.value);if(t.includes(s)&&t.length<n.value.length){i--;continue}t.push(s),e.push((0,H.c86)(n.value,s))}}else e=n.value}else e=n?.value;let s=e??i,o=this.container.interactivity.mouse.clickPosition;(0,H.KH1)(s,async t=>{await this.addEmitter(t,o)})}
1async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters){if((0,H.kJL)(this.emitters))for(let t of this.emitters)await this.addEmitter(t);else await this.addEmitter(this.emitters)}}pause(){for(let t of this.array)t.pause()}play(){for(let t of this.array)t.play()}removeEmitter(t){let e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}resize(){for(let t of this.array)t.resize()}stop(){this.array=[]}update(t){for(let e of this.array)e.update(t)}}class tQ{constructor(t){this._engine=t,this.id="emitters"}getPlugin(t){return Promise.resolve(new tZ(this._engine,t))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;e?.emitters&&(t.emitters=(0,H.KH1)(e.emitters,t=>{let e=new t$;return e.load(t),e}));let i=e?.interactivity?.modes?.emitters;if(i){if((0,H.kJL)(i))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:i.map(t=>{let e=new t$;return e.load(t),e})};else if(void 0!==i.value){if((0,H.kJL)(i.value))t.interactivity.modes.emitters={random:{count:i.random.count??1,enable:i.random.enable??!1},value:i.value.map(t=>{let e=new t$;return e.load(t),e})};else{let e=new t$;e.load(i.value),t.interactivity.modes.emitters={random:{count:i.random.count??1,enable:i.random.enable??!1},value:e}}}else(t.interactivity.modes.emitters={random:{count:1,enable:!1},value:new t$}).value.load(i)}}needsPlugin(t){if(!t)return!1;let e=t.emitters;return(0,H.kJL)(e)&&!!e.length||void 0!==e||!!t.interactivity?.events?.onClick?.mode&&(0,H.dBL)(_.emitter,t.interactivity.events.onClick.mode)}}let tY=new Map;class tK{constructor(t){this._engine=t}addShapeGenerator(t,e){this.getShapeGenerator(t)||tY.set(t,e)}getShapeGenerator(t){return tY.get(t)}getSupportedShapeGenerators(){return tY.keys()}}class tX{constructor(t,e,i,n){this.position=t,this.size=e,this.fill=i,this.options=n}resize(t,e){this.position=t,this.size=e}}async function tJ(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.emitterShapeManager||(t.emitterShapeManager=new tK(t)),t.addEmitterShapeGenerator||(t.addEmitterShapeGenerator=(e,i)=>{t.emitterShapeManager?.addShapeGenerator(e,i)});let i=new tQ(t);await t.addPlugin(i,e)}let t0={x:0,y:0};function t1(t,e,i,n=!0){let s=t.getImageData(t0.x,t0.y,e.width,e.height).data;n&&t.clearRect(t0.x,t0.y,e.width,e.height);let o=[];for(let t=0;t<s.length;t+=i){let n=t/i,a={x:n%e.width,y:Math.floor(n/e.width)};o[a.y]||(o[a.y]=[]);let r={r:0,g:1,b:2,a:3};o[a.y][a.x]={r:s[t+r.r],g:s[t+r.g],b:s[t+r.b],a:s[t+r.a]/255}}return{pixels:o,width:Math.min(...o.map(t=>t.length)),height:o.length}}class t2 extends tX{constructor(t,e,i,n){super(t,e,i,n);let s=n.filter,o=t=>t.a>0;if(void 0!==s){if((0,H.HD0)(s)){if(Object.hasOwn(window,s)){let t=window[s];(0,H.mf2)(t)&&(o=t)}}else o=s}this.filter=o,this.scale=n.scale,this.pixelData={pixels:[],height:0,width:0}}
1async init(){let t;let e=this.options,i=e.selector,n=e.pixels,s=e.image,o=e.element,a=e.text,r=n.offset;if(s){let e=s.src;if(!e)return;t=await function(t,e){let i=new Image;i.crossOrigin="Anonymous";let n=new Promise((t,n)=>{i.onerror=n,i.onload=()=>{let s=document.createElement("canvas");s.width=i.width,s.height=i.height;let o=s.getContext("2d");if(!o)return n(Error(`${H.gK4} Could not get canvas context`));o.drawImage(i,t0.x,t0.y,i.width,i.height,t0.x,t0.y,s.width,s.height),t(t1(o,s,e))}});return i.src=t,n}(e,r)}else if(a){let e=function(t,e,i){let n=document.createElement("canvas"),s=n.getContext("2d"),{font:o,text:a,lines:r,color:l}=t;if(!a||!s)return;let h=a.split(r.separator),c=(0,H.hj$)(o.size)?`${o.size}px`:o.size,u=[],d=0,p=0;for(let t of h){s.font=`${o.style||""} ${o.variant||""} ${o.weight||""} ${c} ${o.family}`;let e=s.measureText(t),i={measure:e,text:t,height:e.actualBoundingBoxAscent+e.actualBoundingBoxDescent,width:e.width};d=Math.max(d||0,i.width),p+=i.height+r.spacing,u.push(i)}n.width=d,n.height=p;let f=0;for(let t of u)s.font=`${o.style||""} ${o.variant||""} ${o.weight||""} ${c} ${o.family}`,i?(s.fillStyle=l,s.fillText(t.text,t0.x,f+t.measure.actualBoundingBoxAscent)):(s.strokeStyle=l,s.strokeText(t.text,t0.x,f+t.measure.actualBoundingBoxAscent)),f+=t.height+r.spacing;return t1(s,n,e)}(a,r,this.fill);if((0,H.Ft)(e))return;t=e}else if(o??i){let e=o??(i&&document.querySelector(i));if(!e)return;let n=e.getContext("2d");if(!n)return;t=t1(n,e,r)}t&&(this.pixelData=t)}randomPosition(){let{height:t,width:e}=this.pixelData,i=this.pixelData,n=this.position,s=this.scale,o={x:n.x-e*s*.5,y:n.y-t*s*.5};for(let n=0;n<100;n++){let n=Math.floor((0,H.sZz)()*e*t),a={x:n%e,y:Math.floor(n/e)},r=i.pixels[a.y][a.x];if(this.filter(r))return{position:{x:a.x*s+o.x,y:a.y*s+o.y},color:{...r},opacity:r.a}}return null}resize(t,e){super.resize(t,e)}}class t5{constructor(){this.offset=4}load(t){(0,H.Ft)(t)||void 0===t.offset||(this.offset=t.offset)}}class t3{constructor(){this.family="Verdana",this.size=32,this.style="",this.variant="",this.weight=""}load(t){(0,H.Ft)(t)||(void 0!==t.family&&(this.family=t.family),void 0!==t.size&&(this.size=t.size),void 0!==t.style&&(this.style=t.style),void 0!==t.variant&&(this.variant=t.variant),void 0===t.weight||(this.weight=t.weight))}}class t4{constructor(){this.separator="\n",this.spacing=0}load(t){(0,H.Ft)(t)||(void 0!==t.separator&&(this.separator=t.separator),void 0===t.spacing||(this.spacing=t.spacing))}}class t9{constructor(){this.color="#000000",this.font=new t3,this.lines=new t4,this.text=""}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=t.color),this.font.load(t.font),this.lines.load(t.lines),void 0===t.text||(this.text=t.text))}}class t7{constructor(){this.filter=t=>t.a>0,this.pixels=new t5,this.scale=1,this.selector="",this.text=new t9}load(t){(0,H.Ft)(t)||(void 0!==t.element&&(this.element=t.element),void 0!==t.filter&&(this.filter=t.filter),this.pixels.load(t.pixels),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.selector&&(this.selector=t.selector),void 0!==t.image&&(this.image=t.image),this.text.load(t.text))}}class t6{generate(t,e,i,n){let s=new t7;return s.load(n),new t2(t,e,i,s)}}async function t8(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.addEmitterShapeGenerator?.("canvas",new t6),await t.refresh(e)}class et extends tX{constructor(t,e,i,n){super(t,e,i,n);let s=document.createElement("canvas").getContext("2d");if(!s)throw Error(`${H.gK4} No 2d context available`);this.checkContext=s,this.points=n.points;let o=this.points,a=new Path2D,r={x:t.x-.5*e.width,y:t.y-.5*e.height};for(let[t,i]of o.entries()){let n={x:r.x+i.x*e.width/H.tZy,y:r.y+i.y*e.height/H.tZy};t?a.lineTo(n.x,n.y):a.moveTo(n.x,n.y)}let l=o[0];if(l){let t={x:r.x+l.x*e.width/H.tZy,y:r.y+l.y*e.height/H.tZy};a.lineTo(t.x,t.y)}this.path=a}
1async init(){}randomPosition(){let t=this.checkContext,e=this.position,i=this.size,n=this.fill,s=this.path,o=n?function(t,e,i,n){let s=null;for(let o=0;o<100;o++){let o={x:i.x+(0,H.sZz)()*n.width-.5*n.width,y:i.y+(0,H.sZz)()*n.height-.5*n.height};if(t.isPointInPath(e,o.x,o.y)){s=o;break}}return s}(t,s,e,i):function(t,e,i,n){let s=null;for(let o=0;o<100;o++){let o={x:i.x+(0,H.sZz)()*n.width-.5*n.width,y:i.y+(0,H.sZz)()*n.height-.5*n.height};if(t.isPointInStroke(e,o.x,o.y)){s=o;break}}return s}(t,s,e,i);return o?{position:o}:null}resize(t,e){super.resize(t,e);let i=this.points,n=new Path2D,s={x:t.x-.5*e.width,y:t.y-.5*e.height};for(let[t,o]of i.entries()){let i={x:s.x+o.x*e.width/H.tZy,y:s.y+o.y*e.height/H.tZy};t?n.lineTo(i.x,i.y):n.moveTo(i.x,i.y)}let o=i[0];if(o){let t={x:s.x+o.x*e.width/H.tZy,y:s.y+o.y*e.height/H.tZy};n.lineTo(t.x,t.y)}this.path=n}}let ee={x:50,y:50};class ei{constructor(){this.points=[]}load(t){(0,H.Ft)(t)||void 0===t.points||(this.points=t.points.map(t=>({x:t.x??ee.x,y:t.y??ee.y})))}}class en{generate(t,e,i,n){let s=new ei;return s.load(n),new et(t,e,i,s)}}async function es(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.addEmitterShapeGenerator?.("path",new en),await t.refresh(e)}let eo=2*Math.PI;function ea(t,e,i,n=0){let s=[],o=eo/e;for(let a=0;a<e;a++){let e=o*a+n;s.push({x:t.x+i*Math.cos(e),y:t.y+i*Math.sin(e)})}return s}class er extends tX{constructor(t,e,i,n){super(t,e,i,n),this.sides=n.sides,this.angle=(0,H.Idc)(n.angle),this.polygon=ea(t,this.sides,.5*e.width,this.angle)}
1async init(){}randomPosition(){let t=this.fill,e=this.polygon,i=t?function(t){let e=t[0],i={...e},n={...e};for(let e of t)e.x<i.x&&(i.x=e.x),e.x>n.x&&(n.x=e.x),e.y<i.y&&(i.y=e.y),e.y>n.y&&(n.y=e.y);let s=null;for(let e=0;e<100;e++){let e={x:i.x+(0,H.sZz)()*(n.x-i.x),y:i.y+(0,H.sZz)()*(n.y-i.y)};if(function(t,e){let i=!1;for(let n=0,s=e.length-1;n<e.length;s=n++){let o=e[n],a=e[s];o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(i=!i)}return i}(e,t)){s=e;break}}return s}(e):function(t){let e=Math.floor((0,H.sZz)()*t.length),i=t[e],n=t[(e+1)%t.length],s=(0,H.sZz)();return{x:i.x+(n.x-i.x)*s,y:i.y+(n.y-i.y)*s}}(e);return i?{position:i}:null}resize(t,e){super.resize(t,e),this.polygon=ea(t,this.sides,.5*e.width,this.angle)}}class el{constructor(){this.angle=0,this.sides=5}load(t){(0,H.Ft)(t)||(void 0!==t.angle&&(this.angle=t.angle),void 0===t.sides||(this.sides=t.sides))}}class eh{generate(t,e,i,n){let s=new el;return s.load(n),new er(t,e,i,s)}}async function ec(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.addEmitterShapeGenerator?.("polygon",new eh),await t.refresh(e)}class eu{constructor(t,e){this._exportImage=async t=>{let e=this._container.canvas.element;if(e)return new Promise(i=>{e.toBlob(t=>{if(!t){i(void 0);return}i(t)},t.type??"image/png",t.quality)})},this._container=t,this._engine=e}async export(t,e){let i={supported:!1};return"image"===t&&(i.supported=!0,i.blob=await this._exportImage(e)),i}}class ed{constructor(t){this.id="export-image",this._engine=t}getPlugin(t){return Promise.resolve(new eu(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function ep(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new ed(t),e)}class ef{constructor(t,e){this._exportJSON=async()=>Promise.resolve(new Blob([JSON.stringify(this._container.actualOptions,(t,e)=>{if(!t.startsWith("_"))return e},2)],{type:"application/json"})),this._container=t,this._engine=e}async export(t){let e={supported:!1};return"json"===t&&(e.supported=!0,e.blob=await this._exportJSON()),e}}class eg{constructor(t){this.id="export-json",this._engine=t}getPlugin(t){return Promise.resolve(new ef(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function ey(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new eg(t),e)}let em=["webm","ogg","mp4","x-matroska"],ev=["vp9","vp9.0","vp8","vp8.0","avc1","av1","h265","h.265","h264","h.264","opus","pcm","aac","mpeg","mp4a"];class ew{constructor(t,e){this._supportedTypes=[],this._exportVideo=async t=>{let e=this._container.canvas.element;if(e)return new Promise(i=>{let n=e.captureStream(t.fps??this._container.actualOptions.fpsLimit),s=t.mimeType??this._supportedTypes[0],o=new MediaRecorder(n,{mimeType:s}),a=[];o.addEventListener("dataavailable",t=>{a.push(t.data)}),o.addEventListener("stop",()=>{i(new Blob(a,{type:s}))}),o.start(),setTimeout(()=>{o.stop()},t.duration??5*H.X5o)})},this._container=t,this._engine=e,this._supportedTypes=function(){let t=t=>MediaRecorder.isTypeSupported(t),e=[];return em.forEach(i=>{let n=`video/${i}`;ev.forEach(i=>[`${n};codecs=${i}`,`${n};codecs=${i.toUpperCase()}`].forEach(i=>{t(i)&&e.push(i)})),t(n)&&e.push(n)}),e}()}async export(t,e){let i={supported:!1};return"video"===t&&(i.supported=!0,i.blob=await this._exportVideo(e)),i}}class eb{constructor(t){this.id="export-video",this._engine=t}getPlugin(t){return Promise.resolve(new ew(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function e_(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new eb(t),e)}class ex{constructor(){this.replaceCursor=!1,this.pauseOnStop=!1,this.stopDelay=0}load(t){(0,H.Ft)(t)||(void 0!==t.options&&(this.options=(0,H.ZBL)({},t.options)),void 0!==t.replaceCursor&&(this.replaceCursor=t.replaceCursor),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop),void 0===t.stopDelay||(this.stopDelay=t.stopDelay))}}let eS="particle";class eP extends H.L8z{constructor(t){super(t)}clear(){}init(){}interact(){let t=this.container,{interactivity:e}=t,i=t.actualOptions;if(!t.retina.reduceFactor)return;let n=e.mouse.position,s=i.interactivity.modes.particle;if(!s)return;let o=s.pauseOnStop&&(e.mouse.position===this._lastPosition||e.mouse.position?.x===this._lastPosition?.x&&e.mouse.position?.y===this._lastPosition?.y),a=s.stopDelay;if(n?this._lastPosition={...n}:delete this._lastPosition,this._lastPosition){if(o){if(this._clearTimeout)return;this._clearTimeout=setTimeout(()=>{if(this._particle){if(s.replaceCursor){let t=e.element;t&&(t instanceof Window?document.body.style.cursor="":t.style.cursor="")}this.container.particles.remove(this._particle,void 0,!0),delete this._particle}},a);return}if(this._clearTimeout&&(clearTimeout(this._clearTimeout),delete this._clearTimeout),!this._particle){let i=(0,H.ZBL)(s.options,{move:{enable:!1}});
1if(this._particle=t.particles.addParticle(this._lastPosition,i),s.replaceCursor){let t=e.element;t&&(t instanceof Window?document.body.style.cursor="none":t.style.cursor="none")}}this._particle&&(this._particle.position.x=this._lastPosition.x,this._particle.position.y=this._lastPosition.y)}}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,s=(t?.interactivity??i.interactivity).events;return n.clicking&&n.inside&&!!n.position&&(0,H.dBL)(eS,s.onClick.mode)||n.inside&&!!n.position&&(0,H.dBL)(eS,s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.particle||(t.particle=new ex),e))t.particle.load(i?.particle)}reset(){}}async function eC(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalParticle",t=>Promise.resolve(new eP(t)),e)}class eO extends H.L8z{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container;if("pop"!==t)return;let i=e.interactivity.mouse.clickPosition;if(!i)return;let n=e.particles.quadTree.queryCircle(i,e.retina.pixelRatio);if(n.length)for(let t of n)e.particles.remove(t)}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function eT(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalPop",t=>Promise.resolve(new eO(t)),e)}class ek{constructor(){this.radius=0,this.mass=0}load(t){(0,H.Ft)(t)||(void 0!==t.mass&&(this.mass=t.mass),void 0===t.radius||(this.radius=t.radius))}}class ez extends H.SWe{constructor(){super(),this.density=5,this.value=50,this.limit=new ek}load(t){(0,H.Ft)(t)||(super.load(t),void 0!==t.density&&(this.density=t.density),(0,H.hj$)(t.limit)?this.limit.radius=t.limit:this.limit.load(t.limit))}}class eA{constructor(){this.color=new H.OzF,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new ez}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=H.OzF.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,H.Cst)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,H.Cst)(t.position.y))),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0===t.orbits||(this.orbits=t.orbits))}}(x||(x={})).absorber="absorber";let eE=2*Math.PI;class eM{constructor(t,e,i,n,s){this._calcPosition=()=>{let t=(0,H.Gz$)({size:this._container.canvas.size,position:this.options.position});return H.OWs.create(t.x,t.y)},this._updateParticlePosition=(t,e)=>{if(t.destroyed)return;let i=this._container,n=i.canvas.size;if(t.needsNewPosition){let e=(0,H.paW)({size:n});t.position.setTo(e),t.velocity.setTo(t.initialVelocity),t.absorberOrbit=void 0,t.needsNewPosition=!1}
1if(this.options.orbits){if(void 0===t.absorberOrbit&&(t.absorberOrbit=H.OWs.origin,t.absorberOrbit.length=(0,H.Spd)(t.getPosition(),this.position),t.absorberOrbit.angle=(0,H.sZz)()*eE),t.absorberOrbit.length<=this.size&&!this.options.destroy){let e=Math.min(n.width,n.height);t.absorberOrbit.length=e*(1+(.2*(0,H.sZz)()-.1))}void 0===t.absorberOrbitDirection&&(t.absorberOrbitDirection=t.velocity.x>=0?H.RnL.clockwise:H.RnL.counterClockwise);let s=t.absorberOrbit.length,o=t.absorberOrbit.angle,a=t.absorberOrbitDirection;t.velocity.setTo(H.OWs.origin);let r={x:a===H.RnL.clockwise?Math.cos:Math.sin,y:a===H.RnL.clockwise?Math.sin:Math.cos};t.position.x=this.position.x+s*r.x(o),t.position.y=this.position.y+s*r.y(o),t.absorberOrbit.length-=e.length,t.absorberOrbit.angle+=(t.retina.moveSpeed??0)*i.retina.pixelRatio/H.tZy*i.retina.reduceFactor}else{let i=H.OWs.origin;i.length=e.length,i.angle=e.angle,t.velocity.addTo(i)}},this._absorbers=t,this._container=e,this._engine=i,this.initialPosition=s?H.OWs.create(s.x,s.y):void 0,n instanceof eA?this.options=n:(this.options=new eA,this.options.load(n)),this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=(0,H.Gu7)(this.options.size.value)*e.retina.pixelRatio,this.mass=this.size*this.options.size.density*e.retina.reduceFactor;let o=this.options.size.limit;this.limit={radius:o.radius*e.retina.pixelRatio*e.retina.reduceFactor,mass:o.mass},this.color=(0,H.tXk)(this._engine,this.options.color)??{b:0,g:0,r:0},this.position=this.initialPosition?.copy()??this._calcPosition()}attract(t){let e=this._container,i=this.options;if(i.draggable){let t=e.interactivity.mouse;t.clicking&&t.downPosition?(0,H.Spd)(this.position,t.downPosition)<=this.size&&(this.dragging=!0):this.dragging=!1,this.dragging&&t.position&&(this.position.x=t.position.x,this.position.y=t.position.y)}let n=t.getPosition(),{dx:s,dy:o,distance:a}=(0,H.oW6)(this.position,n),r=H.OWs.create(s,o);if(r.length=this.mass/Math.pow(a,2)*e.retina.reduceFactor,a<this.size+t.getRadius()){let n=.033*t.getRadius()*e.retina.pixelRatio;this.size>t.getRadius()&&a<this.size-t.getRadius()||void 0!==t.absorberOrbit&&t.absorberOrbit.length<0?i.destroy?t.destroy():(t.needsNewPosition=!0,this._updateParticlePosition(t,r)):(i.destroy&&(t.size.value-=n),this._updateParticlePosition(t,r)),(this.limit.radius<=0||this.size<this.limit.radius)&&(this.size+=n),(this.limit.mass<=0||this.mass<this.limit.mass)&&(this.mass+=n*this.options.size.density*e.retina.reduceFactor)}else this._updateParticlePosition(t,r)}draw(t){t.translate(this.position.x,this.position.y),t.beginPath(),t.arc(0,0,this.size,0,eE,!1),t.closePath(),t.fillStyle=(0,H.izR)(this.color,this.opacity),t.fill()}resize(){let t=this.initialPosition;this.position=t&&(0,H.Ac)(t,this._container.canvas.size,H.OWs.origin)?t:this._calcPosition()}}class eG{constructor(t,e){this._container=t,this._engine=e,this.array=[],this.absorbers=[],this.interactivityAbsorbers=[],t.getAbsorber=t=>void 0===t||(0,H.hj$)(t)?this.array[t??0]:this.array.find(e=>e.name===t),t.addAbsorber=async(t,e)=>this.addAbsorber(t,e)}async addAbsorber(t,e){let i=new eM(this,this._container,this._engine,t,e);return this.array.push(i),Promise.resolve(i)}draw(t){for(let e of this.array)e.draw(t)}handleClickMode(t){let e=this.absorbers,i=this.interactivityAbsorbers;if(t===x.absorber){let t=(0,H.wA_)(i)??(0,H.wA_)(e),n=this._container.interactivity.mouse.clickPosition;this.addAbsorber(t,n)}}
1async init(){this.absorbers=this._container.actualOptions.absorbers,this.interactivityAbsorbers=this._container.actualOptions.interactivity.modes.absorbers;let t=(0,H.KH1)(this.absorbers,async t=>{await this.addAbsorber(t)});t instanceof Array?await Promise.all(t):await t}particleUpdate(t){for(let e of this.array)if(e.attract(t),t.destroyed)break}removeAbsorber(t){let e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}resize(){for(let t of this.array)t.resize()}stop(){this.array=[]}}class eV{constructor(t){this.id="absorbers",this._engine=t}async getPlugin(t){return Promise.resolve(new eG(t,this._engine))}loadOptions(t,e){(this.needsPlugin(t)||this.needsPlugin(e))&&(e?.absorbers&&(t.absorbers=(0,H.KH1)(e.absorbers,t=>{let e=new eA;return e.load(t),e})),t.interactivity.modes.absorbers=(0,H.KH1)(e?.interactivity?.modes?.absorbers,t=>{let e=new eA;return e.load(t),e}))}needsPlugin(t){if(!t)return!1;let e=t.absorbers;return(0,H.kJL)(e)?!!e.length:!!(e||t.interactivity?.events?.onClick?.mode&&(0,H.dBL)(x.absorber,t.interactivity.events.onClick.mode))}}async function eR(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new eV(t),e)}class eI{load(t){(0,H.Ft)(t)||(void 0!==t.bottom&&(this.bottom=(0,H.Cst)(t.bottom)),void 0!==t.left&&(this.left=(0,H.Cst)(t.left)),void 0!==t.right&&(this.right=(0,H.Cst)(t.right)),void 0!==t.top&&(this.top=(0,H.Cst)(t.top)))}}(n=S||(S={})).none="none",n.split="split";class eL extends H.SWe{constructor(){super(),this.value=3}}class eD extends H.SWe{constructor(){super(),this.value={min:4,max:9}}}class eF{constructor(){this.count=1,this.factor=new eL,this.rate=new eD,this.sizeOffset=!0}load(t){!(0,H.Ft)(t)&&(void 0!==t.color&&(this.color=H.OzF.create(this.color,t.color)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=(0,H.KH1)(t.particles,t=>(0,H.ZBL)({},t)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.colorOffset&&(this.colorOffset=this.colorOffset??{},void 0!==t.colorOffset.h&&(this.colorOffset.h=t.colorOffset.h),void 0!==t.colorOffset.s&&(this.colorOffset.s=t.colorOffset.s),void 0!==t.colorOffset.l&&(this.colorOffset.l=t.colorOffset.l)))}}class ej{constructor(){this.bounds=new eI,this.mode=S.none,this.split=new eF}load(t){(0,H.Ft)(t)||(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}class eH{constructor(t,e){this.container=e,this.engine=t}init(t){let e=this.container,i=t.options.destroy;if(!i)return;t.splitCount=0;let n=i.bounds;t.destroyBounds||(t.destroyBounds={});let{bottom:s,left:o,right:a,top:r}=n,{destroyBounds:l}=t,h=e.canvas.size;s&&(l.bottom=(0,H.Gu7)(s)*h.height/H.tZy),o&&(l.left=(0,H.Gu7)(o)*h.width/H.tZy),a&&(l.right=(0,H.Gu7)(a)*h.width/H.tZy),r&&(l.top=(0,H.Gu7)(r)*h.height/H.tZy)}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.destroy||(t.destroy=new ej),e))t.destroy.load(i?.destroy)}particleDestroyed(t,e){if(e)return;let i=t.options.destroy;i&&i.mode===S.split&&function(t,e,i){let n=i.options.destroy;if(!n)return;let s=n.split;if(s.count>=0&&(void 0===i.splitCount||i.splitCount++>s.count))return;let o=(0,H.Gu7)(s.rate.value),a=(0,H.wA_)(s.particles);for(let n=0;n<o;n++)!function(t,e,i,n){let s=i.options.destroy;if(!s)return;let o=s.split,a=(0,H.hTV)(t,e,i.options),r=(0,H.Gu7)(o.factor.value),l=i.getFillColor();o.color?a.color.load(o.color):o.colorOffset&&l?a.color.load({value:{hsl:{h:l.h+(0,H.Gu7)(o.colorOffset.h??0),s:l.s+(0,H.Gu7)(o.colorOffset.s??0),l:l.l+(0,H.Gu7)(o.colorOffset.l??0)}}}):a.color.load({value:{hsl:i.getFillColor()}}),a.move.load({center:{x:i.position.x,y:i.position.y,mode:H.lZr.precise}}),(0,H.hj$)(a.size.value)?a.size.value/=r:(a.size.value.min/=r,a.size.value.max/=r),a.load(n);let h=o.sizeOffset?(0,H.Cst)(-i.size.value,i.size.value):0,c={x:i.position.x+(0,H.vdf)(h),y:i.position.y+(0,H.vdf)(h)};e.particles.addParticle(c,a,i.group,t=>!(t.size.value<.5)&&(t.velocity.length=(0,H.vdf)((0,H.Cst)(i.velocity.length,t.velocity.length)),t.splitCount=(i.splitCount??0)+1,t.unbreakable=!0,setTimeout(()=>{t.unbreakable=!1},500),!0))}(t,e,i,a)}(this.engine,this.container,t)}update(t){if(!this.isEnabled(t))return;let e=t.getPosition(),i=t.destroyBounds;i&&(void 0!==i.bottom&&e.y>=i.bottom||void 0!==i.left&&e.x<=i.left||void 0!==i.right&&e.x>=i.right||void 0!==i.top&&e.y<=i.top)&&t.destroy()}}async function eB(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("destroy",e=>Promise.resolve(new eH(t,e)),e)}let eN=2*Math.PI;class e$ extends tX{constructor(t,e,i,n){super(t,e,i,n)}
1async init(){}randomPosition(){let t=this.size,e=this.fill,i=this.position,[n,s]=[.5*t.width,.5*t.height],o=((t,e)=>{let i=Math.atan(e/t*Math.tan(.25*(0,H.sZz)()*eN)),n=(0,H.sZz)();return n<.25?i:n<.5?Math.PI-i:n<.75?Math.PI+i:-i})(n,s),a=n*s/Math.sqrt((s*Math.cos(o))**2+(n*Math.sin(o))**2),r=e?a*Math.sqrt((0,H.sZz)()):a;return{position:{x:i.x+r*Math.cos(o),y:i.y+r*Math.sin(o)}}}}class eU{generate(t,e,i,n){return new e$(t,e,i,n)}}async function eq(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.addEmitterShapeGenerator?.("circle",new eU),await t.refresh(e)}function eW(t,e){return t+e*((0,H.sZz)()-H.vqy)}(s=P||(P={}))[s.TopLeft=0]="TopLeft",s[s.TopRight=1]="TopRight",s[s.BottomRight=2]="BottomRight",s[s.BottomLeft=3]="BottomLeft";class eZ extends tX{constructor(t,e,i,n){super(t,e,i,n)}async init(){}randomPosition(){let t=this.fill,e=this.position,i=this.size;if(t)return{position:{x:eW(e.x,i.width),y:eW(e.y,i.height)}};{let t=.5*i.width,n=.5*i.height,s=Math.floor(4*(0,H.sZz)()),o=((0,H.sZz)()-H.vqy)*2;switch(s){case P.TopLeft:return{position:{x:e.x+o*t,y:e.y-n}};case P.TopRight:return{position:{x:e.x-t,y:e.y+o*n}};case P.BottomRight:return{position:{x:e.x+o*t,y:e.y+n}};case P.BottomLeft:default:return{position:{x:e.x+t,y:e.y+o*n}}}}}}class eQ{generate(t,e,i,n){return new eZ(t,e,i,n)}}async function eY(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.addEmitterShapeGenerator?.("square",new eQ),await t.refresh(e)}class eK{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){(0,H.Ft)(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=(0,H.ZBL)({},t.particles)),void 0===t.pauseOnStop||(this.pauseOnStop=t.pauseOnStop))}}let eX="trail";class eJ extends H.L8z{constructor(t){super(t),this._delay=0}clear(){}init(){}interact(t){let e=this.container,{interactivity:i}=e;if(!e.retina.reduceFactor)return;let n=e.actualOptions.interactivity.modes.trail;if(!n)return;let s=n.delay*H.X5o/this.container.retina.reduceFactor;if(this._delay<s&&(this._delay+=t.value),this._delay<s)return;let o=!(n.pauseOnStop&&(i.mouse.position===this._lastPosition||i.mouse.position?.x===this._lastPosition?.x&&i.mouse.position?.y===this._lastPosition?.y)),a=e.interactivity.mouse.position;a?this._lastPosition={...a}:delete this._lastPosition,o&&e.particles.push(n.quantity,e.interactivity.mouse,n.particles),this._delay-=s}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,s=(t?.interactivity??i.interactivity).events;return n.clicking&&n.inside&&!!n.position&&(0,H.dBL)(eX,s.onClick.mode)||n.inside&&!!n.position&&(0,H.dBL)(eX,s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.trail||(t.trail=new eK),e))t.trail.load(i?.trail)}reset(){}}async function e0(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalTrail",t=>Promise.resolve(new eJ(t)),e)}(o=C||(C={})).both="both",o.horizontal="horizontal",o.vertical="vertical";let e1=2*Math.PI;class e2{constructor(){this.enable=!1,this.value=0}load(t){(0,H.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=(0,H.Cst)(t.value)))}}class e5{constructor(){this.darken=new e2,this.enable=!1,this.enlighten=new e2,this.mode=C.vertical,this.speed=25}load(t){(0,H.Ft)(t)||(void 0!==t.backColor&&(this.backColor=H.OzF.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=(0,H.Cst)(t.speed)))}}class e3{constructor(t){this._engine=t}getTransformValues(t){let e=t.roll?.enable&&t.roll,i=e&&e.horizontal,n=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:n?Math.sin(e.angle):void 0}}init(t){!function(t,e){let i=e.options.roll;if(!i?.enable){e.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0};return}if(e.roll={enable:i.enable,horizontal:i.mode===C.horizontal||i.mode===C.both,vertical:i.mode===C.vertical||i.mode===C.both,angle:(0,H.sZz)()*e1,speed:(0,H.Gu7)(i.speed)/360},i.backColor)e.backColor=(0,H.lNs)(t,i.backColor);else if(i.darken.enable&&i.enlighten.enable){let t=(0,H.sZz)()>=H.vqy?H.qHU.darken:H.qHU.enlighten;e.roll.alter={type:t,value:(0,H.Gu7)(t===H.qHU.darken?i.darken.value:i.enlighten.value)}}else i.darken.enable?e.roll.alter={type:H.qHU.darken,value:(0,H.Gu7)(i.darken.value)}:i.enlighten.enable&&(e.roll.alter={type:H.qHU.enlighten,value:(0,H.Gu7)(i.enlighten.value)})}(this._engine,t)}isEnabled(t){let e=t.options.roll;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){for(let i of(t.roll||(t.roll=new e5),e))t.roll.load(i?.roll)}update(t,e){this.isEnabled(t)&&function(t,e){let i=t.options.roll,n=t.roll;if(!n||!i?.enable)return;let s=n.speed*e.factor;n.angle+=s,n.angle>e1&&(n.angle-=e1)}(t,e)}}async function e4(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("roll",()=>Promise.resolve(new e3(t)),e)}class e9{init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:(0,H.Gu7)(e.acceleration),inverse:e.inverse},function(t){let e=t.container,i=t.options.move.spin;
1if(!i.enable)return;let n=i.position??{x:50,y:50},s={x:.01*n.x*e.canvas.size.width,y:.01*n.y*e.canvas.size.height},o=t.getPosition(),a=(0,H.Spd)(o,s),r=(0,H.Gu7)(i.acceleration);t.retina.spinAcceleration=r*e.retina.pixelRatio,t.spin={center:s,direction:t.velocity.x>=0?H.RnL.clockwise:H.RnL.counterClockwise,angle:t.velocity.angle,radius:a,acceleration:t.retina.spinAcceleration}}(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,n=i.move;if(!n.enable)return;let s=t.container,o=s.retina.pixelRatio;t.retina.moveSpeed??=(0,H.Gu7)(n.speed)*o,t.retina.moveDrift??=(0,H.Gu7)(t.options.move.drift)*o;let a=t.slow.inRange?t.slow.factor:1,r=t.retina.moveSpeed*s.retina.reduceFactor,l=t.retina.moveDrift,h=(0,H.KIV)(i.size.value)*o,c=r*(n.size?t.getRadius()/h:1)*a*(e.factor||1)/2,u=t.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?function(t,e){let i=t.container;if(!t.spin)return;let n={x:t.spin.direction===H.RnL.clockwise?Math.cos:Math.sin,y:t.spin.direction===H.RnL.clockwise?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*n.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*n.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;let s=Math.max(i.canvas.size.width,i.canvas.size.height),o=.5*s;t.spin.radius>o?(t.spin.radius=o,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=.01*e*(1-t.spin.radius/s)}(t,c):function(t,e,i,n,s,o){(function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let n=t.pathGenerator?.generate(t,e);n&&t.velocity.addTo(n),i.clamp&&(t.velocity.x=(0,H.uZ5)(t.velocity.x,-1,1),t.velocity.y=(0,H.uZ5)(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay})(t,o);let a=t.gravity,r=a?.enable&&a.inverse?-1:1;s&&i&&(t.velocity.x+=s*o.factor/(60*i)),a?.enable&&i&&(t.velocity.y+=a.acceleration*o.factor*r/(60*i));let l=t.moveDecay;t.velocity.multTo(l);let h=t.velocity.mult(i);a?.enable&&n>0&&(!a.inverse&&h.y>=0&&h.y>=n||a.inverse&&h.y<=0&&h.y<=-n)&&(h.y=r*n,i&&(t.velocity.y=h.y/i));let c=t.options.zIndex,u=(1-t.zIndexFactor)**c.velocityRate;h.multTo(u);let{position:d}=t;d.addTo(h),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}(t,n,c,u,l,e),function(t){let e=t.initialPosition,{dx:i,dy:n}=(0,H.oW6)(e,t.position),s=Math.abs(i),o=Math.abs(n),{maxDistance:a}=t.retina,r=a.horizontal,l=a.vertical;if(r||l){if((r&&s>=r||l&&o>=l)&&!t.misplaced)t.misplaced=!!r&&s>r||!!l&&o>l,r&&(t.velocity.x=.5*t.velocity.y-t.velocity.x),l&&(t.velocity.y=.5*t.velocity.x-t.velocity.y);else if((!r||s<r)&&(!l||o<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let i=t.position,n=t.velocity;r&&(i.x<e.x&&n.x<0||i.x>e.x&&n.x>0)&&(n.x*=-(0,H.sZz)()),l&&(i.y<e.y&&n.y<0||i.y>e.y&&n.y>0)&&(n.y*=-(0,H.sZz)())}}}(t)}}async function e7(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addMover("base",()=>Promise.resolve(new e9),e)}let e6=2*Math.PI;class e8{constructor(){this.validTypes=["circle"]}draw(t){!function(t){let{context:e,particle:i,radius:n}=t;i.circleRange||(i.circleRange={min:0,max:e6});let s=i.circleRange;e.arc(0,0,n,s.min,s.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,n=i?.angle??{max:360,min:0};e.circleRange=(0,H.Kn2)(n)?{min:(0,H.Idc)(n.min),max:(0,H.Idc)(n.max)}:{min:0,max:(0,H.Idc)(n)}}}async function it(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new e8,e)}class ie{constructor(t,e){this._container=t,this._engine=e}init(t){let e=(0,H.lNs)(this._engine,t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=(0,H.bS$)(e,t.options.color.animation,this._container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:n}=t.options.color.animation,{color:s}=t;return!t.destroyed&&!t.spawning&&(s?.h.value!==void 0&&e.enable||s?.s.value!==void 0&&i.enable||s?.l.value!==void 0&&n.enable)}update(t,e){(0,H.PBz)(t.color,e)}}async function ii(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("color",e=>Promise.resolve(new ie(e,t)),e)}(a=O||(O={}))[a.r=1]="r",a[a.g=2]="g",a[a.b=3]="b",a[a.a=4]="a";let is=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,io=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class ia{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!t?.startsWith(this.stringPrefix))return;let e=t.replace(is,(t,e,i,n,s)=>e+e+i+i+n+n+(void 0!==s?s+s:"")),i=io.exec(e);return i?{a:void 0!==i[O.a]?parseInt(i[O.a],16)/255:1,b:parseInt(i[O.b],16),g:parseInt(i[O.g],16),r:parseInt(i[O.r],16)}:void 0}}async function ir(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new ia,e)}(r=T||(T={}))[r.h=1]="h",r[r.s=2]="s",r[r.l=3]="l",r[r.a=5]="a";class il{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,H.veL)(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,H.veL)({h:(0,H.Gu7)(e.h),l:(0,H.Gu7)(e.l),s:(0,H.Gu7)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;let e=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?(0,H.Y6v)({a:e.length>4?(0,H.BVM)(e[T.a]):1,h:parseInt(e[T.h],10),l:parseInt(e[T.l],10),s:parseInt(e[T.s],10)}):void 0}}async function ih(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new il,e)}
1class ic{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=(0,H.V0)(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=(0,H.Gu7)(i.speed)/H.tZy*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,H.sZz)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&(0,H.CrJ)(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function iu(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("opacity",t=>Promise.resolve(new ic(t)),e)}class id{constructor(t){this.container=t,this.modes=[H.Voc.bounce,H.Voc.split]}update(t,e,i,n){if(!this.modes.includes(n))return;let s=this.container,o=!1;for(let n of s.plugins.values())if(void 0!==n.particleBounce&&(o=n.particleBounce(t,i,e)),o)break;if(o)return;let a=t.getPosition(),r=t.offset,l=t.getRadius(),h=(0,H.M_G)(a,l),c=s.canvas.size;!function(t){if(t.outMode!==H.Voc.bounce&&t.outMode!==H.Voc.split||t.direction!==H.DYc.left&&t.direction!==H.DYc.right)return;t.bounds.right<0&&t.direction===H.DYc.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===H.DYc.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if(t.direction===H.DYc.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===H.DYc.left&&t.bounds.left<=0&&e<0){let e=(0,H.Gu7)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;let n=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===H.DYc.right?t.particle.position.x=t.canvasSize.width-n:t.bounds.left<=0&&t.direction===H.DYc.left&&(t.particle.position.x=n),t.outMode===H.Voc.split&&t.particle.destroy()}({particle:t,outMode:n,direction:e,bounds:h,canvasSize:c,offset:r,size:l}),function(t){if(t.outMode!==H.Voc.bounce&&t.outMode!==H.Voc.split||t.direction!==H.DYc.bottom&&t.direction!==H.DYc.top)return;t.bounds.bottom<0&&t.direction===H.DYc.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===H.DYc.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if(t.direction===H.DYc.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===H.DYc.top&&t.bounds.top<=0&&e<0){let e=(0,H.Gu7)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;let n=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===H.DYc.bottom?t.particle.position.y=t.canvasSize.height-n:t.bounds.top<=0&&t.direction===H.DYc.top&&(t.particle.position.y=n),t.outMode===H.Voc.split&&t.particle.destroy()}({particle:t,outMode:n,direction:e,bounds:h,canvasSize:c,offset:r,size:l})}}class ip{constructor(t){this.container=t,this.modes=[H.Voc.destroy]}update(t,e,i,n){if(!this.modes.includes(n))return;let s=this.container;switch(t.outType){case H.Igb.normal:case H.Igb.outside:if((0,H.Ac)(t.position,s.canvas.size,H.OWs.origin,t.getRadius(),e))return;break;case H.Igb.inside:{let{dx:e,dy:i}=(0,H.oW6)(t.position,t.moveCenter),{x:n,y:s}=t.velocity;if(n<0&&e>t.moveCenter.radius||s<0&&i>t.moveCenter.radius||n>=0&&e<-t.moveCenter.radius||s>=0&&i<-t.moveCenter.radius)return}}s.particles.remove(t,t.group,!0)}}class ig{constructor(t){this.container=t,this.modes=[H.Voc.none]}update(t,e,i,n){if(!this.modes.includes(n)||((t.options.move.distance.horizontal&&(e===H.DYc.left||e===H.DYc.right))??(t.options.move.distance.vertical&&(e===H.DYc.top||e===H.DYc.bottom))))return;let s=t.options.move.gravity,o=this.container,a=o.canvas.size,r=t.getRadius();if(s.enable){let i=t.position;(!s.inverse&&i.y>a.height+r&&e===H.DYc.bottom||s.inverse&&i.y<-r&&e===H.DYc.top)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=a.height+r||t.velocity.y<0&&t.position.y>=-r||t.velocity.x>0&&t.position.x<=a.width+r||t.velocity.x<0&&t.position.x>=-r)return;(0,H.Ac)(t.position,o.canvas.size,H.OWs.origin,r,e)||o.particles.remove(t)}}}class iy{constructor(t){this.container=t,this.modes=[H.Voc.out]}update(t,e,i,n){if(!this.modes.includes(n))return;let s=this.container;if(t.outType===H.Igb.inside){let{x:e,y:i}=t.velocity,n=H.OWs.origin;n.length=t.moveCenter.radius,n.angle=t.velocity.angle+Math.PI,n.addTo(H.OWs.create(t.moveCenter));let{dx:o,dy:a}=(0,H.oW6)(t.position,n);if(e<=0&&o>=0||i<=0&&a>=0||e>=0&&o<=0||i>=0&&a<=0)return;t.position.x=Math.floor((0,H.vdf)({min:0,max:s.canvas.size.width})),t.position.y=Math.floor((0,H.vdf)({min:0,max:s.canvas.size.height}));let{dx:r,dy:l}=(0,H.oW6)(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction}else{if((0,H.Ac)(t.position,s.canvas.size,H.OWs.origin,t.getRadius(),e))return;switch(t.outType){case H.Igb.outside:{t.position.x=Math.floor((0,H.vdf)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,H.vdf)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=(0,H.oW6)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case H.Igb.normal:{let i=t.options.move.warp,n=s.canvas.size,o={bottom:n.height+t.getRadius()+t.offset.y,left
1:-t.getRadius()-t.offset.x,right:n.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=(0,H.M_G)(t.position,a);e===H.DYc.right&&r.left>n.width+t.offset.x?(t.position.x=o.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,H.sZz)()*n.height,t.initialPosition.y=t.position.y)):e===H.DYc.left&&r.right<-t.offset.x&&(t.position.x=o.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,H.sZz)()*n.height,t.initialPosition.y=t.position.y)),e===H.DYc.bottom&&r.top>n.height+t.offset.y?(i||(t.position.x=(0,H.sZz)()*n.width,t.initialPosition.x=t.position.x),t.position.y=o.top,t.initialPosition.y=t.position.y):e===H.DYc.top&&r.bottom<-t.offset.y&&(i||(t.position.x=(0,H.sZz)()*n.width,t.initialPosition.x=t.position.x),t.position.y=o.bottom,t.initialPosition.y=t.position.y)}}}}}let im=(t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e;class iv{constructor(t){this._addUpdaterIfMissing=(t,e,i)=>{let n=t.options.move.outModes;!this.updaters.has(e)&&im(n,e)&&this.updaters.set(e,i(this.container))},this._updateOutMode=(t,e,i,n)=>{for(let s of this.updaters.values())s.update(t,n,e,i)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,H.Voc.bounce,t=>new id(t)),this._addUpdaterIfMissing(t,H.Voc.out,t=>new iy(t)),this._addUpdaterIfMissing(t,H.Voc.destroy,t=>new ip(t)),this._addUpdaterIfMissing(t,H.Voc.none,t=>new ig(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,H.DYc.bottom),this._updateOutMode(t,e,i.left??i.default,H.DYc.left),this._updateOutMode(t,e,i.right??i.default,H.DYc.right),this._updateOutMode(t,e,i.top??i.default,H.DYc.top)}}async function iw(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("outModes",t=>Promise.resolve(new iv(t)),e)}(l=k||(k={}))[l.r=1]="r",l[l.g=2]="g",l[l.b=3]="b",l[l.a=5]="a";class ib{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,H.Gu7)(e.r),g:(0,H.Gu7)(e.g),b:(0,H.Gu7)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,H.BVM)(e[k.a]):1,b:parseInt(e[k.b],10),g:parseInt(e[k.g],10),r:parseInt(e[k.r],10)}:void 0}}async function i_(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new ib,e)}class ix{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/H.tZy*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,H.sZz)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&(0,H.CrJ)(t,t.size,!0,t.options.size.animation.destroy,e)}}async function iS(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("size",()=>Promise.resolve(new ix),e)}async function iP(t,e=!0){(0,H.j2P)(t,"3.7.1"),await ir(t,!1),await ih(t,!1),await i_(t,!1),await e7(t,!1),await it(t,!1),await ii(t,!1),await iu(t,!1),await iw(t,!1),await iS(t,!1),await t.refresh(e)}async function iC(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEasing(H.nxi.easeInQuad,t=>t**2,!1),await t.addEasing(H.nxi.easeOutQuad,t=>1-(1-t)**2,!1),await t.addEasing(H.nxi.easeInOutQuad,t=>t<.5?2*t**2:1-(-2*t+2)**2/2,!1),await t.refresh(e)}let iO='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class iT{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[t,e]of this._emojiShapeDict)e instanceof ImageBitmap&&e?.close(),this._emojiShapeDict.delete(t)}draw(t){let e=t.particle.emojiDataKey;if(!e)return;let i=this._emojiShapeDict.get(e);i&&function(t,e){let{context:i,opacity:n}=t,s=i.globalAlpha;if(!e)return;let o=e.width,a=.5*o;i.globalAlpha=n,i.drawImage(e,-a,-a,o,o),i.globalAlpha=s}(t,i)}async init(t){let e=t.actualOptions,{validTypes:i}=this;if(!i.find(t=>(0,H.dBL)(t,e.particles.shape.type)))return;let n=[(0,H.mxw)(iO)],s=i.map(t=>e.particles.shape.options[t]).find(t=>!!t);s&&(0,H.KH1)(s,t=>{t.font&&n.push((0,H.mxw)(t.font))}),await Promise.all(n)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,e){let i;let n=e.shapeData;if(!n?.value)return;let s=(0,H.wA_)(n.value,e.randomIndexData);if(!s)return;let o="string"==typeof s?{font:n.font??iO,padding:n.padding??0,value:s}:{font:iO,padding:0,...n,...s},a=o.font,r=o.value,l=`${r}_${a}`;if(this._emojiShapeDict.has(l)){e.emojiDataKey=l;return}
1let h=2*o.padding,c=(0,H.KIV)(e.size.value),u=c+h,d=2*u;if("undefined"!=typeof OffscreenCanvas){let t=new OffscreenCanvas(d,d),e=t.getContext("2d");if(!e)return;e.font=`400 ${2*c}px ${a}`,e.textBaseline="middle",e.textAlign="center",e.fillText(r,u,u),i=t.transferToImageBitmap()}else{let t=document.createElement("canvas");t.width=d,t.height=d;let e=t.getContext("2d");if(!e)return;e.font=`400 ${2*c}px ${a}`,e.textBaseline="middle",e.textAlign="center",e.fillText(r,u,u),i=t}this._emojiShapeDict.set(l,i),e.emojiDataKey=l}}async function ik(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new iT,e)}function iz(t,e,i,n,s,o){let a=e.actualOptions.interactivity.modes.attract;if(a)for(let r of e.particles.quadTree.query(s,o)){let{dx:e,dy:s,distance:o}=(0,H.oW6)(r.position,i),l=a.speed*a.factor,h=(0,H.uZ5)(t.getEasing(a.easing)(1-o/n)*l,1,a.maxSpeed),c=H.OWs.create(o?e/o*h:l,o?s/o*h:l);r.position.subFrom(c)}}class iA{constructor(){this.distance=200,this.duration=.4,this.easing=H.nxi.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){(0,H.Ft)(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))}}let iE="attract";class iM extends H.L8z{constructor(t,e){super(e),this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&t===iE){for(let t of(e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0,e.attract.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)},i.duration*H.X5o)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===H.WtO,n=e.interactivity.events,{enable:s,mode:o}=n.onHover,{enable:a,mode:r}=n.onClick;i&&s&&(0,H.dBL)(iE,o)?function(t,e,i){let n=e.interactivity.mouse.position,s=e.retina.attractModeDistance;s&&!(s<0)&&n&&iz(t,e,n,s,new H.Cdc(n.x,n.y,s),t=>i(t))}(this._engine,this.container,t=>this.isEnabled(t)):a&&(0,H.dBL)(iE,r)&&function(t,e,i){e.attract||(e.attract={particles:[]});let{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count!==e.particles.count||(n.finish=!0)),n.clicking){let n=e.interactivity.mouse.clickPosition,s=e.retina.attractModeDistance;if(!s||s<0||!n)return;iz(t,e,n,s,new H.Cdc(n.x,n.y,s),t=>i(t))}else!1===n.clicking&&(n.particles=[])}(this._engine,this.container,t=>this.isEnabled(t))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,s=(t?.interactivity??i.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let o=s.onHover.mode,a=s.onClick.mode;return(0,H.dBL)(iE,o)||(0,H.dBL)(iE,a)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new iA),e))t.attract.load(i?.attract)}reset(){}}async function iG(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalAttract",e=>Promise.resolve(new iM(t,e)),e)}let iV=.5*Math.PI;function iR(t,e,i,n,s){for(let o of t.particles.quadTree.query(n,s))n instanceof H.Cdc?(0,H.kRC)((0,H.gy4)(o),{position:e,radius:i,mass:i**2*iV,velocity:H.OWs.origin,factor:H.OWs.origin}):n instanceof H.AeJ&&(0,H.dpV)(o,(0,H.M_G)(e,i))}class iI{constructor(){this.distance=200}load(t){(0,H.Ft)(t)||void 0===t.distance||(this.distance=t.distance)}}let iL="bounce";class iD extends H.L8z{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===H.WtO,n=e.onHover.enable,s=e.onHover.mode,o=e.onDiv;if(i&&n&&(0,H.dBL)(iL,s))!function(t,e){let i=t.retina.pixelRatio,n=t.interactivity.mouse.position,s=t.retina.bounceModeDistance;s&&!(s<0)&&n&&iR(t,n,s,new H.Cdc(n.x,n.y,s+10*i),e)}(this.container,t=>this.isEnabled(t));else{var a,r;a=this.container,r=t=>this.isEnabled(t),(0,H.XDe)(iL,o,(t,e)=>
1(function(t,e,i,n){let s=document.querySelectorAll(e);s.length&&s.forEach(e=>{let s=t.retina.pixelRatio,o={x:(e.offsetLeft+.5*e.offsetWidth)*s,y:(e.offsetTop+.5*e.offsetHeight)*s},a=.5*e.offsetWidth*s,r=10*s,l=i.type===H.gqJ.circle?new H.Cdc(o.x,o.y,a+r):new H.AeJ(e.offsetLeft*s-r,e.offsetTop*s-r,e.offsetWidth*s+2*r,e.offsetHeight*s+2*r);n(o,a,l)})})(a,t,e,(t,e,i)=>iR(a,t,e,i,r)))}}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,s=(t?.interactivity??i.interactivity).events,o=s.onDiv;return!!n.position&&s.onHover.enable&&(0,H.dBL)(iL,s.onHover.mode)||(0,H.wm$)(iL,o)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new iI),e))t.bounce.load(i?.bounce)}reset(){}}async function iF(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalBounce",t=>Promise.resolve(new iD(t)),e)}class ij{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!(0,H.Ft)(t)){if(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color){let e=(0,H.kJL)(this.color)?void 0:this.color;this.color=(0,H.KH1)(t.color,t=>H.OzF.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class iH extends ij{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,H.Ft)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class iB extends ij{load(t){super.load(t),(0,H.Ft)(t)||(this.divs=(0,H.KH1)(t.divs,t=>{let e=new iH;return e.load(t),e}))}}function iN(t,e,i,n){return e>=i?(0,H.uZ5)(t+(e-i)*n,t,e):e<i?(0,H.uZ5)(t-(i-e)*n,e,t):void 0}(h=z||(z={})).color="color",h.opacity="opacity",h.size="size";let i$="bubble";class iU extends H.L8z{constructor(t,e){super(t),this._clickBubble=()=>{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,n=e.interactivity.modes.bubble;if(!n||!i)return;t.bubble||(t.bubble={});let s=t.retina.bubbleModeDistance;if(!s||s<0)return;let o=t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t)),{bubble:a}=t;for(let e of o){if(!a.clicking)continue;e.bubble.inRange=!a.durationEnd;let o=e.getPosition(),r=(0,H.Spd)(o,i),l=(new Date().getTime()-(t.interactivity.mouse.clickTime??0))/H.X5o;l>n.duration&&(a.durationEnd=!0),l>2*n.duration&&(a.clicking=!1,a.durationEnd=!1);let h={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:(0,H.KIV)(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:z.size};this._process(e,r,l,h);let c={bubbleObj:{optValue:n.opacity,value:e.bubble.opacity},particlesObj:{optValue:(0,H.KIV)(e.options.opacity.value),value:e.opacity?.value??1},type:z.opacity};this._process(e,r,l,c),!a.durationEnd&&r<=s?this._hoverBubbleColor(e,r):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&e)for(let n of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){n.bubble.inRange=!0;let s=n.getPosition(),o=(0,H.Spd)(s,e),a=1-o/i;o<=i?a>=0&&t.interactivity.status===H.WtO&&(this._hoverBubbleSize(n,a),this._hoverBubbleOpacity(n,a),this._hoverBubbleColor(n,a)):this.reset(n),t.interactivity.status===H.aMP&&this.reset(n)}},this._hoverBubbleColor=(t,e,i)=>{let n=this.container.actualOptions,s=i??n.interactivity.modes.bubble;if(s){if(!t.bubble.finalColor){let e=s.color;if(!e)return;let i=(0,H.wA_)(e);t.bubble.finalColor=(0,H.lNs)(this._engine,i)}if(t.bubble.finalColor){if(s.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?(0,H.lCU)((0,H.ocL)(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}},this._hoverBubbleOpacity=(t,e,i)=>{let n=this.container.actualOptions,s=i?.opacity??n.interactivity.modes.bubble?.opacity;if(!s)return;let o=t.options.opacity.value,a=iN(t.opacity?.value??1,s,(0,H.KIV)(o),e);void 0!==a&&(t.bubble.opacity=a)},this._hoverBubbleSize=(t,e,i)=>{let n=this.container,s=i?.size?i.size*n.retina.pixelRatio:n.retina.bubbleModeSize;if(void 0===s)return;let o=(0,H.KIV)(t.options.size.value)*n.retina.pixelRatio,a=iN(t.size.value,s,o,e);void 0!==a&&(t.bubble.radius=a)},this._process=(t,e,i,n)=>{let s=this.container,o=n.bubbleObj.optValue,a=s.actualOptions.interactivity.modes.bubble;if(!a||void 0===o)return;let r=a.duration,l=s.retina.bubbleModeDistance,h=n.particlesObj.optValue,c=n.bubbleObj.value,u=n.particlesObj.value??0,d=n.type;if(l&&!(l<0)&&o!==h){if(s.bubble||(s.bubble={}),s.bubble.durationEnd)c&&(d===z.size&&delete t.bubble.radius,d===z.opacity&&delete t.bubble.opacity);else if(e<=l){if((c??u)!==o){let e=u-i*(u-o)/r;d===z.size&&(t.bubble.radius=e),d===z.opacity&&(t.bubble.opacity=e)}}else d===z.size&&delete t.bubble.radius,d===z.opacity&&delete t.bubble.opacity}},this._singleSelectorHover=(t,e,i)=>{let n=this.container,s=document.querySelectorAll(e),o=n.actualOptions.interactivity.modes.bubble;
1o&&s.length&&s.forEach(e=>{let s=n.retina.pixelRatio,a={x:(e.offsetLeft+.5*e.offsetWidth)*s,y:(e.offsetTop+.5*e.offsetHeight)*s},r=.5*e.offsetWidth*s,l=i.type===H.gqJ.circle?new H.Cdc(a.x,a.y,r):new H.AeJ(e.offsetLeft*s,e.offsetTop*s,e.offsetWidth*s,e.offsetHeight*s);for(let i of n.particles.quadTree.query(l,t=>this.isEnabled(t))){if(!l.contains(i.getPosition()))continue;i.bubble.inRange=!0;let n=o.divs,s=(0,H.iCg)(n,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,s),this._hoverBubbleOpacity(i,1,s),this._hoverBubbleColor(i,1,s)}})},this._engine=e,t.bubble||(t.bubble={}),this.handleClickMode=e=>{e===i$&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){(!t.bubble.inRange||i)&&(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,n=e.onClick,s=i.enable,o=i.mode,a=n.enable,r=n.mode,l=e.onDiv;s&&(0,H.dBL)(i$,o)?this._hoverBubble():a&&(0,H.dBL)(i$,r)?this._clickBubble():(0,H.XDe)(i$,l,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,{onClick:s,onDiv:o,onHover:a}=(t?.interactivity??i.interactivity).events,r=(0,H.wm$)(i$,o);return(!!r||!!a.enable&&!!n.position||!!s.enable&&!!n.clickPosition)&&((0,H.dBL)(i$,a.mode)||(0,H.dBL)(i$,s.mode)||r)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new iB),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function iq(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalBubble",e=>Promise.resolve(new iU(e,t)),e)}class iW{constructor(){this.opacity=.5}load(t){(0,H.Ft)(t)||void 0===t.opacity||(this.opacity=t.opacity)}}class iZ{constructor(){this.distance=80,this.links=new iW,this.radius=60}load(t){(0,H.Ft)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links),void 0===t.radius||(this.radius=t.radius))}}class iQ extends H.L8z{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.connect;e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:n}=t.retina;if(!i||i<0||!n||n<0||!e)return;let s=Math.abs(n),o=t.particles.quadTree.queryCircle(e,s,t=>this.isEnabled(t));o.forEach((e,n)=>{let s=e.getPosition();for(let a of o.slice(n+1)){let n=a.getPosition(),o=Math.abs(i),r=Math.abs(s.x-n.x),l=Math.abs(s.y-n.y);r<o&&l<o&&function(t,e,i){t.canvas.draw(n=>{var s;let o=function(t,e,i,n){let s=t.actualOptions.interactivity.modes.connect;if(s)return function(t,e,i,n){let s=Math.floor(i.getRadius()/e.getRadius()),o=e.getFillColor(),a=i.getFillColor();if(!o||!a)return;let r=e.getPosition(),l=i.getPosition(),h=(0,H.ocL)(o,a,e.getRadius(),i.getRadius()),c=t.createLinearGradient(r.x,r.y,l.x,l.y);return c.addColorStop(0,(0,H.vzQ)(o,n)),c.addColorStop((0,H.uZ5)(s,0,1),(0,H.izR)(h,n)),c.addColorStop(1,(0,H.vzQ)(a,n)),c}(e,i,n,s.links.opacity)}
1(t,n,e,i);if(!o)return;let a=e.getPosition(),r=i.getPosition();s=e.retina.linksWidth??0,(0,H.pSR)(n,a,r),n.lineWidth=s,n.strokeStyle=o,n.stroke()})}(t,e,a)}})}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return!!n.onHover.enable&&!!i.position&&(0,H.dBL)("connect",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new iZ),e))t.connect.load(i?.connect)}reset(){}}async function iY(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalConnect",t=>Promise.resolve(new iQ(t)),e)}class iK{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){(0,H.Ft)(t)||(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=H.OzF.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0===t.opacity||(this.opacity=t.opacity))}}class iX{constructor(){this.distance=100,this.links=new iK}load(t){(0,H.Ft)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links))}}class iJ extends H.L8z{constructor(t,e){super(t),this._engine=e}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==H.WtO)return;let i=t.interactivity.mouse.position;if(!i)return;let n=t.retina.grabModeDistance;if(n&&!(n<0))for(let s of t.particles.quadTree.queryCircle(i,n,t=>this.isEnabled(t))){let o=s.getPosition(),a=(0,H.Spd)(o,i);if(a>n)continue;let r=e.modes.grab.links,l=r.opacity,h=l-a*l/n;if(h<=0)continue;let c=r.color??s.options.links?.color;if(!t.particles.grabLineColor&&c){let i=e.modes.grab.links;t.particles.grabLineColor=(0,H.Dt5)(this._engine,c,i.blink,i.consent)}let u=(0,H.BEi)(s,void 0,t.particles.grabLineColor);u&&function(t,e,i,n,s){t.canvas.draw(t=>{var o;let a=e.getPosition();o=e.retina.linksWidth??0,(0,H.pSR)(t,a,s),t.strokeStyle=(0,H.izR)(i,n),t.lineWidth=o,t.stroke()})}(t,s,u,h,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,H.dBL)("grab",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new iX),e))t.grab.load(i?.grab)}reset(){}}async function i0(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalGrab",e=>Promise.resolve(new iJ(e,t)),e)}class i1 extends H.L8z{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.animationStatus?e.pause():e.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function i2(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalPause",t=>Promise.resolve(new i1(t)),e)}class i5{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if((0,H.Ft)(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);let e=t.quantity;void 0!==e&&(this.quantity=(0,H.Cst)(e))}}class i3 extends H.L8z{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;let e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;let n=(0,H.Gu7)(i.quantity);if(n<=0)return;let s=(0,H.c86)([void 0,...i.groups]),o=void 0!==s?e.actualOptions.particles.groups[s]:void 0;e.particles.push(n,e.interactivity.mouse,o,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new i5),e))t.push.load(i?.push)}reset(){}}async function i4(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalPush",t=>Promise.resolve(new i3(t)),e)}class i9{constructor(){this.quantity=2}load(t){if((0,H.Ft)(t))return;let e=t.quantity;void 0!==e&&(this.quantity=(0,H.Cst)(e))}}class i7 extends H.L8z{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let n=(0,H.Gu7)(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}
1loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new i9),e))t.remove.load(i?.remove)}reset(){}}async function i6(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalRemove",t=>Promise.resolve(new i7(t)),e)}class i8{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=H.nxi.easeOutQuad}load(t){(0,H.Ft)(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 nt extends i8{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,H.Ft)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class ne extends i8{load(t){super.load(t),(0,H.Ft)(t)||(this.divs=(0,H.KH1)(t.divs,t=>{let e=new nt;return e.load(t),e}))}}let ni="repulse";class nn extends H.L8z{constructor(t,e){super(e),this._clickRepulse=()=>{let t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;let i=t.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count!==t.particles.count||(i.finish=!0)),i.clicking){let n=t.retina.repulseModeDistance;if(!n||n<0)return;let s=Math.pow(n/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;let a=new H.Cdc(o.x,o.y,s);for(let n of t.particles.quadTree.query(a,t=>this.isEnabled(t))){let{dx:t,dy:a,distance:r}=(0,H.oW6)(o,n.position),l=r**2,h=-s*e.speed/l;if(l<=s){i.particles.push(n);let e=H.OWs.create(t,a);e.length=h,n.velocity.setTo(e)}}}else if(!1===i.clicking){for(let t of i.particles)t.velocity.setTo(t.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;i&&!(i<0)&&e&&this._processRepulse(e,i,new H.Cdc(e.x,e.y,i))},this._processRepulse=(t,e,i,n)=>{let s=this.container,o=s.particles.quadTree.query(i,t=>this.isEnabled(t)),a=s.actualOptions.interactivity.modes.repulse;if(!a)return;let{easing:r,speed:l,factor:h,maxSpeed:c}=a,u=this._engine.getEasing(r),d=(n?.speed??l)*h;for(let i of o){let{dx:n,dy:s,distance:o}=(0,H.oW6)(i.position,t),a=(0,H.uZ5)(u(1-o/e)*d,0,c),r=H.OWs.create(o?n/o*a:d,o?s/o*a:d);i.position.addTo(r)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,n=i.actualOptions.interactivity.modes.repulse;if(!n)return;let s=document.querySelectorAll(t);s.length&&s.forEach(t=>{let s=i.retina.pixelRatio,o={x:(t.offsetLeft+.5*t.offsetWidth)*s,y:(t.offsetTop+.5*t.offsetHeight)*s},a=.5*t.offsetWidth*s,r=e.type===H.gqJ.circle?new H.Cdc(o.x,o.y,a):new H.AeJ(t.offsetLeft*s,t.offsetTop*s,t.offsetWidth*s,t.offsetHeight*s),l=n.divs,h=(0,H.iCg)(l,t);this._processRepulse(o,a,r,h)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||t!==ni)return;e.repulse||(e.repulse={particles:[]});let n=e.repulse;for(let t of(n.clicking=!0,n.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);n.particles=[],n.finish=!1,setTimeout(()=>{e.destroyed||(n.clicking=!1)},i.duration*H.X5o)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===H.WtO,n=e.interactivity.events,s=n.onHover,o=s.enable,a=s.mode,r=n.onClick,l=r.enable,h=r.mode,c=n.onDiv;i&&o&&(0,H.dBL)(ni,a)?this._hoverRepulse():l&&(0,H.dBL)(ni,h)?this._clickRepulse():(0,H.XDe)(ni,c,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,n=e.interactivity.mouse,s=(t?.interactivity??i.interactivity).events,o=s.onDiv,a=s.onHover,r=s.onClick,l=(0,H.wm$)(ni,o);if(!(l||a.enable&&n.position||r.enable&&n.clickPosition))return!1;let h=a.mode,c=r.mode;return(0,H.dBL)(ni,h)||(0,H.dBL)(ni,c)||l}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new ne),e))t.repulse.load(i?.repulse)}reset(){}}async function ns(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalRepulse",e=>Promise.resolve(new nn(t,e)),e)}class no{constructor(){this.factor=3,this.radius=200}load(t){(0,H.Ft)(t)||(void 0!==t.factor&&(this.factor=t.factor),void 0===t.radius||(this.radius=t.radius))}}class na extends H.L8z{constructor(t){super(t)}clear(t,e,i){(!t.slow.inRange||i)&&(t.slow.factor=1)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=(t?.interactivity??e.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,H.dBL)("slow",n.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new no),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,n=e.interactivity.mouse.position,s=e.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!s||s<0||!n)return;let a=t.getPosition(),r=(0,H.Spd)(n,a),l=o.factor,{slow:h}=t;r>s||(h.inRange=!0,h.factor=r/s/l)}}async function nr(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalSlow",t=>Promise.resolve(new na(t)),e)}let nl=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function nh(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,(0,H.jl5)().error(`${H.gK4} loading image: ${t.source}`),e()}),i.src=t.source})}async function nc(t){if("svg"!==t.type){await nh(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():((0,H.jl5)().error(`${H.gK4} Image not found`),t.error=!0),t.loading=!1}let nu=[0,4,2,1],nd=[8,8,4,2];class np{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){let e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce((t,e)=>t+String.fromCharCode(e),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=this.data[this.pos],e=0;for(let i=0;0!==t;i+=t+1,t=this.data[this.pos+i])e+=t;let i=new Uint8Array(e);t=this.data[this.pos++];for(let e=0;0!==t;t=this.data[this.pos++])for(let n=t;--n>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}(c=A||(A={}))[c.Replace=0]="Replace",c[c.Combine=1]="Combine",c[c.RestoreBackgroun
1d=2]="RestoreBackground",c[c.RestorePrevious=3]="RestorePrevious",c[c.UndefinedA=4]="UndefinedA",c[c.UndefinedB=5]="UndefinedB",c[c.UndefinedC=6]="UndefinedC",c[c.UndefinedD=7]="UndefinedD",(u=E||(E={}))[u.Extension=33]="Extension",u[u.ApplicationExtension=255]="ApplicationExtension",u[u.GraphicsControlExtension=249]="GraphicsControlExtension",u[u.PlainTextExtension=1]="PlainTextExtension",u[u.CommentExtension=254]="CommentExtension",u[u.Image=44]="Image",u[u.EndOfFile=59]="EndOfFile";let nf={x:0,y:0};function ng(t,e){let i=[];for(let n=0;n<e;n++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function ny(t,e,i,n,s,o){let a=e.frames[n(!0)];a.left=t.nextTwoBytes(),a.top=t.nextTwoBytes(),a.width=t.nextTwoBytes(),a.height=t.nextTwoBytes();let r=t.nextByte(),l=(128&r)==128;a.sortFlag=(32&r)==32,a.reserved=(24&r)>>>3,l&&(a.localColorTable=ng(t,1<<(7&r)+1));let h=t=>{let{r:n,g:o,b:r}=(l?a.localColorTable:e.globalColorTable)[t];return t!==s(null)?{r:n,g:o,b:r,a:255}:{r:n,g:o,b:r,a:i?~~((n+o+r)/3):0}},c=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==c)throw EvalError("GIF frame size is to large");let u=t.nextByte(),d=t.readSubBlocksBin(),p=1<<u,f=(t,e)=>{let i=t>>>3,n=7&t;return(d[i]+(d[i+1]<<8)+(d[i+2]<<16)&(1<<e)-1<<n)>>>n};if((64&r)==64){for(let i=0,s=u+1,r=0,l=[[0]],d=0;d<4;d++){if(nu[d]<a.height){let t=0,e=0,n=!1;for(;!n;){let o=i;if(i=f(r,s),r+=s+1,i===p){s=u+1,l.length=p+2;for(let t=0;t<l.length;t++)l[t]=t<p?[t]:[]}else{for(let n of(i>=l.length?l.push(l[o].concat(l[o][0])):o!==p&&l.push(l[o].concat(l[i][0])),l[i])){let{r:i,g:s,b:o,a:r}=h(n);c.data.set([i,s,o,r],nu[d]*a.width+nd[d]*e+t%(4*a.width)),t+=4}l.length===1<<s&&s<12&&s++}t===4*a.width*(e+1)&&(e++,nu[d]+nd[d]*e>=a.height&&(n=!0))}}o?.(t.pos/(t.data.length-1),n(!1)+1,c,{x:a.left,y:a.top},{width:e.width,height:e.height})}a.image=c,a.bitmap=await createImageBitmap(c)}else{let i=0,s=u+1,r=0,l=-4,d=!1,g=[[0]];for(;!d;){let t=i;if(i=f(r,s),r+=s,i===p){s=u+1,g.length=p+2;for(let t=0;t<g.length;t++)g[t]=t<p?[t]:[]}else{if(i===p+1){d=!0;break}for(let e of(i>=g.length?g.push(g[t].concat(g[t][0])):t!==p&&g.push(g[t].concat(g[i][0])),g[i])){let{r:t,g:i,b:n,a:s}=h(e);c.data.set([t,i,n,s],l+=4)}g.length>=1<<s&&s<12&&s++}}a.image=c,a.bitmap=await createImageBitmap(c),o?.((t.pos+1)/t.data.length,n(!1)+1,a.image,{x:a.left,y:a.top},{width:e.width,height:e.height})}}async function nm(t,e,i,n,s,o){switch(t.nextByte()){case E.EndOfFile:return!0;case E.Image:await ny(t,e,i,n,s,o);break;case E.Extension:!function(t,e,i,n){switch(t.nextByte()){case E.GraphicsControlExtension:{let s=e.frames[i(!1)];t.pos++;let o=t.nextByte();s.GCreserved=(224&o)>>>5,s.disposalMethod=(28&o)>>>2,s.userInputDelayFlag=(2&o)==2,s.delayTime=10*t.nextTwoBytes();let a=t.nextByte();(1&o)==1&&n(a),t.pos++;break}case E.ApplicationExtension:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case E.CommentExtension:e.comments.push([i(!1),t.readSubBlocks()]);break;case E.PlainTextExtension:if(0===e.globalColorTable.length)throw EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}}(t,e,n,s);break;default:throw EvalError("undefined block found")}return!1}async function nv(t,e,i){i||(i=!1);let n=await fetch(t);if(!n.ok&&404===n.status)throw EvalError("file not found");let s=await n.arrayBuffer(),o={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},a=new np(new Uint8ClampedArray(s));if("GIF89a"!==a.getString(6))throw Error("not a supported GIF file");o.width=a.nextTwoBytes(),o.height=a.nextTwoBytes();let r=a.nextByte(),l=(128&r)==128;o.colorRes=(112&r)>>>4,o.sortFlag=(8&r)==8;let h=a.nextByte();o.pixelAspectRatio=a.nextByte(),0!==o.pixelAspectRatio&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=ng(a,1<<(7&r)+1));let c=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==c)throw Error("GIF frame size is to large");let{r:u,g:d,b:p}=o.globalColorTable[h];c.data.set(l?[u,d,p,255]:[0,0,0,0]);for(let t=4;t<c.data.length;t*=2)c.data.copyWithin(t,0,t);o.backgroundImage=c;let f=-1,g=!0,y=-1,m=t=>(t&&(g=!0),f),v=t=>(null!=t&&(y=t),y);try{do g&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:A.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}
1),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),f++,y=-1,g=!1);while(!await nm(a,o,i,m,v,e));for(let t of(o.frames.length--,o.frames)){if(t.userInputDelayFlag&&0===t.delayTime){o.totalTime=1/0;break}o.totalTime+=t.delayTime}return o}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${f} "${t.message}"`);throw t}}async function nw(t){if("gif"!==t.type){await nh(t);return}t.loading=!0;try{t.gifData=await nv(t.source),t.gifLoopCount=function(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}class nb{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${H.gK4} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){let{context:e,radius:i,particle:n,opacity:s}=t,o=n.image,a=o?.element;if(o){if(e.globalAlpha=s,o.gif&&o.gifData)!function(t){let{context:e,radius:i,particle:n,delta:s}=t,o=n.image;if(!o?.gifData||!o.gif)return;let a=new OffscreenCanvas(o.gifData.width,o.gifData.height),r=a.getContext("2d");if(!r)throw Error("could not create offscreen canvas context");r.imageSmoothingQuality="low",r.imageSmoothingEnabled=!1,r.clearRect(nf.x,nf.y,a.width,a.height),void 0===n.gifLoopCount&&(n.gifLoopCount=o.gifLoopCount??0);let l=n.gifFrame??0,h={x:-(.5*o.gifData.width),y:-(.5*o.gifData.height)},c=o.gifData.frames[l];if(void 0===n.gifTime&&(n.gifTime=0),c.bitmap){switch(e.scale(i/o.gifData.width,i/o.gifData.height),c.disposalMethod){case A.UndefinedA:case A.UndefinedB:case A.UndefinedC:case A.UndefinedD:case A.Replace:r.drawImage(c.bitmap,c.left,c.top),e.drawImage(a,h.x,h.y),r.clearRect(nf.x,nf.y,a.width,a.height);break;case A.Combine:r.drawImage(c.bitmap,c.left,c.top),e.drawImage(a,h.x,h.y);break;
1case A.RestoreBackground:r.drawImage(c.bitmap,c.left,c.top),e.drawImage(a,h.x,h.y),r.clearRect(nf.x,nf.y,a.width,a.height),o.gifData.globalColorTable.length?r.putImageData(o.gifData.backgroundImage,h.x,h.y):r.putImageData(o.gifData.frames[0].image,h.x+c.left,h.y+c.top);break;case A.RestorePrevious:{let t=r.getImageData(nf.x,nf.y,a.width,a.height);r.drawImage(c.bitmap,c.left,c.top),e.drawImage(a,h.x,h.y),r.clearRect(nf.x,nf.y,a.width,a.height),r.putImageData(t,nf.x,nf.y)}}if(n.gifTime+=s.value,n.gifTime>c.delayTime){if(n.gifTime-=c.delayTime,++l>=o.gifData.frames.length){if(--n.gifLoopCount<=0)return;l=0,r.clearRect(nf.x,nf.y,a.width,a.height)}n.gifFrame=l}e.scale(o.gifData.width/i,o.gifData.height/i)}}(t);else if(a){let t=o.ratio,n={x:-i,y:-i},s=2*i;e.drawImage(a,n.x,n.y,s,s/t)}e.globalAlpha=1}}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(let t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let e=t.shapeData;e&&(this._engine.images.find(t=>t.name===e.name||t.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(t)}))}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,n=e.shapeData;if(!n)return;let s=e.getFillColor(),o=i.find(t=>t.name===n.name||t.source===n.src);if(!o)return;let a=n.replaceColor??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(t,e)});return}(async()=>{let t;(t=o.svgData&&s?await function(t,e,i,n){let s=function(t,e,i){let{svgData:n}=t;if(!n)return"";let s=(0,H.vzQ)(e,i);if(n.includes("fill"))return n.replace(nl,()=>s);let o=n.indexOf(">");return`${n.substring(0,o)} fill="${s}"${n.substring(o)}`}(t,i,n.opacity?.value??1),o={color:i,gif:e.gif,data:{...t,svgData:s},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(e=>{let i=new Blob([s],{type:"image/svg+xml"}),n=URL||window.URL||window.webkitURL||window,a=n.createObjectURL(i),r=new Image;r.addEventListener("load",()=>{o.loaded=!0,o.element=r,e(o),n.revokeObjectURL(a)});let l=async()=>{n.revokeObjectURL(a);let i={...t,error:!1,loading:!0};await nh(i),o.loaded=!0,o.element=i.element,e(o)};r.addEventListener("error",()=>void l()),r.src=a})}(o,n,s,e):{color:s,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:o.ratio??1,replaceColor:a,source:n.src}).ratio||(t.ratio=1);let i=n.fill??e.shapeFill,r=n.close??e.shapeClose;e.image=t,e.shapeFill=i,e.shapeClose=r})()}}class n_{constructor(){this.src="",this.gif=!1}load(t){(0,H.Ft)(t)||(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0===t.width||(this.width=t.width))}}class nx{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,e){if(!e?.preload)return;t.preload||(t.preload=[]);let i=t.preload;for(let t of e.preload){let e=i.find(e=>e.name===t.name||e.src===t.src);if(e)e.load(t);else{let e=new n_;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function nS(t,e=!0){(0,H.j2P)(t,"3.7.1"),t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${H.gK4} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i;let n={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(n),i=e.gif?nw:e.replaceColor?nc:nh,await i(n)}catch{throw Error(`${H.gK4} ${e.name??e.src} not found`)}});let i=new nx(t);await t.addPlugin(i,e),await t.addShape(new nb(t),e)}class nP extends H.SWe{constructor(){super(),this.sync=!1}load(t){(0,H.Ft)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class nC extends H.SWe{constructor(){super(),this.sync=!1}load(t){(0,H.Ft)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class nO{constructor(){this.count=0,this.delay=new nP,this.duration=new nC}load(t){(0,H.Ft)(t)||(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class nT{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?(0,H.Gu7)(i.delay.value)*(i.delay.sync?1:(0,H.sZz)())/e.retina.reduceFactor*H.X5o:0,delayTime:0,duration:e.retina.reduceFactor?(0,H.Gu7)(i.duration.value)*(i.duration.sync?1:(0,H.sZz)())/e.retina.reduceFactor*H.X5o:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.life||(t.life=new nO),e))t.life.load(i?.life)}
1update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;let n=t.life,s=!1;if(t.spawning){if(n.delayTime+=e.value,!(n.delayTime>=t.life.delay))return;s=!0,t.spawning=!1,n.delayTime=0,n.time=0}if(-1===n.duration||t.spawning||(s?n.time=0:n.time+=e.value,n.time<n.duration))return;if(n.time=0,t.life.count>0&&t.life.count--,0===t.life.count){t.destroy();return}let o=(0,H.Cst)(0,i.width),a=(0,H.Cst)(0,i.width);t.position.x=(0,H.vdf)(o),t.position.y=(0,H.vdf)(a),t.spawning=!0,n.delayTime=0,n.time=0,t.reset();let r=t.options.life;r&&(n.delay=(0,H.Gu7)(r.delay.value)*H.X5o,n.duration=(0,H.Gu7)(r.duration.value)*H.X5o)}(t,e,this.container.canvas.size)}}async function nk(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("life",async t=>Promise.resolve(new nT(t)),e)}class nz{constructor(){this.validTypes=["line"]}draw(t){!function(t){let{context:e,particle:i,radius:n}=t,s=i.shapeData;e.moveTo(-n,0),e.lineTo(n,0),e.lineCap=s?.cap??"butt"}(t)}getSidesCount(){return 1}}async function nA(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new nz,e)}class nE{init(){}isEnabled(t){return!(0,H.KrJ)()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){let e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if((0,H.KrJ)()||!i.enable)return;let n=i.force,s=e.interactivity.mouse.position;if(!s)return;let o=e.canvas.size,a={x:.5*o.width,y:.5*o.height},r=i.smooth,l=t.getRadius()/n,h={x:(s.x-a.x)*l,y:(s.y-a.y)*l},{offset:c}=t;c.x+=(h.x-c.x)/r,c.y+=(h.y-c.y)/r}}async function nM(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addMover("parallax",()=>Promise.resolve(new nE),e)}class nG extends H.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t){let e=this.container;void 0===t.attractDistance&&(t.attractDistance=(0,H.Gu7)(t.options.move.attract.distance)*e.retina.pixelRatio);let i=t.attractDistance,n=t.getPosition();for(let s of e.particles.quadTree.queryCircle(n,i)){if(t===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;let e=s.getPosition(),{dx:i,dy:o}=(0,H.oW6)(n,e),a=t.options.move.attract.rotate,r=i/(1e3*a.x),l=o/(1e3*a.y),h=s.size.value/t.size.value,c=1/h;t.velocity.x-=r*h,t.velocity.y-=l*h,s.velocity.x+=r*c,s.velocity.y+=l*c}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function nV(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("particlesAttract",t=>Promise.resolve(new nG(t)),e)}function nR(t,e,i,n,s,o){let a=(0,H.uZ5)(t.options.collisions.absorb.speed*s.factor/10,0,n);t.size.value+=.5*a,i.size.value-=a,n<=o&&(i.size.value=0,i.destroy())}let nI=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=(0,H.Gu7)(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function nL(t,e){(0,H.kRC)((0,H.gy4)(t),(0,H.gy4)(e)),nI(t),nI(e)}class nD extends H.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,n=t.getPosition(),s=t.getRadius();for(let o of i.particles.quadTree.queryCircle(n,2*s)){if(t===o||!o.options.collisions.enable||t.options.collisions.mode!==o.options.collisions.mode||o.destroyed||o.spawning)continue;let a=o.getPosition(),r=o.getRadius();!(Math.abs(Math.round(n.z)-Math.round(a.z))>s+r)&&((0,H.Spd)(n,a)>s+r||function(t,e,i,n){switch(t.options.collisions.mode){case H.Dpx.absorb:!function(t,e,i,n){let s=t.getRadius(),o=e.getRadius();void 0===s&&void 0!==o?t.destroy():void 0!==s&&void 0===o?e.destroy():void 0!==s&&void 0!==o&&(s>=o?nR(t,s,e,o,i,n):nR(e,o,t,s,i,n))}(t,e,i,n);break;case H.Dpx.bounce:nL(t,e);break;case H.Dpx.destroy:t.unbreakable||e.unbreakable||nL(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}}(t,o,e,i.retina.pixelRatio))}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function nF(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("particlesCollisions",t=>Promise.resolve(new nD(t)),e)}class nj extends H.Cdc{constructor(t,e,i,n){super(t,e,i),this.canvasSize=n,this.canvasSize={...n}}contains(t){let{width:e,height:i}=this.canvasSize,{x:n,y:s}=t;return super.contains(t)||super.contains({x:n-e,y:s})||super.contains({x:n-e,y:s-i})||super.contains({x:n,y:s-i})}intersects(t){if(super.intersects(t))return!0;let e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==t.radius){let i=new H.Cdc(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new H.AeJ(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class nH{constructor(){this.blur=5,this.color=new H.OzF,this.color.value="#000",this.enable=!1}load(t){(0,H.Ft)(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=H.OzF.create(this.color,t.color),void 0===t.enable||(this.enable=t.enable))}}class nB{constructor(){this.enable=!1,this.frequency=1}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=H.OzF.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 nN{constructor(){this.blink=!1,this.color=new H.OzF,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new nH,this.triangles=new nB,this.width=1,this.warp=!1}load(t){(0,H.Ft)(t)||(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=H.OzF.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))}}let n$={x:0,y:0};
1class nU extends H.$Sh{constructor(t,e){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this._linkContainer,i=t.options.links,n=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(n)return;let s=i.color;n=(0,H.Dt5)(this._engine,s,i.blink,i.consent),void 0===i.id?e.particles.linksColor=n:e.particles.linksColors.set(i.id,n)},this._linkContainer=t,this._engine=e}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(t){let e;if(!t.options.links)return;t.links=[];let i=t.getPosition(),n=this.container,s=n.canvas.size;if(i.x<n$.x||i.y<n$.y||i.x>s.width||i.y>s.height)return;let o=t.options.links,a=o.opacity,r=t.retina.linksDistance??0,l=o.warp;for(let h of(e=l?new nj(i.x,i.y,r,s):new H.Cdc(i.x,i.y,r),n.particles.quadTree.query(e))){let e=h.options.links;if(t===h||!e?.enable||o.id!==e.id||h.spawning||h.destroyed||!h.links||t.links.some(t=>t.destination===h)||h.links.some(e=>e.destination===t))continue;let n=h.getPosition();if(n.x<n$.x||n.y<n$.y||n.x>s.width||n.y>s.height)continue;let c=function(t,e,i,n,s){let{dx:o,dy:a,distance:r}=(0,H.oW6)(t,e);if(!s||r<=i)return r;let l={x:Math.abs(o),y:Math.abs(a)},h={x:Math.min(l.x,n.width-l.x),y:Math.min(l.y,n.height-l.y)};return Math.sqrt(h.x**2+h.y**2)}(i,n,r,s,l&&e.warp);if(c>r)continue;let u=(1-c/r)*a;this._setColor(t),t.links.push({destination:h,opacity:u})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){for(let i of(t.links||(t.links=new nN),e))t.links.load(i?.links)}reset(){}}async function nq(t,e=!0){await t.addInteractor("particlesLinks",async e=>Promise.resolve(new nU(e,t)),e)}function nW(t,e){var i;let n=((i=t.map(t=>t.id)).sort((t,e)=>t-e),i.join("_")),s=e.get(n);return void 0===s&&(s=(0,H.sZz)(),e.set(n,s)),s}class nZ{constructor(t,e){this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let n=this._container,s=n.actualOptions,o=e.destination,a=t.getPosition(),r=o.getPosition(),l=e.opacity;n.canvas.draw(e=>{let h;let c=t.options.twinkle?.lines;if(c?.enable){let t=c.frequency,e=(0,H.tXk)(this._engine,c.color);(0,H.sZz)()<t&&e&&(h=e,l=(0,H.Gu7)(c.opacity))}if(!h){let e=void 0!==i.id?n.particles.linksColors.get(i.id):n.particles.linksColor;h=(0,H.BEi)(t,o,e)}if(!h)return;let u=t.retina.linksWidth??0,d=t.retina.linksDistance??0,{backgroundMask:p}=s;!function(t){let e=!1,{begin:i,end:n,engine:s,maxDistance:o,context:a,canvasSize:r,width:l,backgroundMask:h,colorLine:c,opacity:u,links:d}=t;if((0,H.Spd)(i,n)<=o)(0,H.pSR)(a,i,n),e=!0;else if(d.warp){let t,s;let l={x:n.x-r.width,y:n.y},h=(0,H.oW6)(i,l);if(h.distance<=o){let e=i.y-h.dy/h.dx*i.x;t={x:0,y:e},s={x:r.width,y:e}}else{let e={x:n.x,y:n.y-r.height},a=(0,H.oW6)(i,e);if(a.distance<=o){let e=-(i.y-a.dy/a.dx*i.x)/(a.dy/a.dx);t={x:e,y:0},s={x:e,y:r.height}}else{let e={x:n.x-r.width,y:n.y-r.height},a=(0,H.oW6)(i,e);if(a.distance<=o){let e=i.y-a.dy/a.dx*i.x;s={x:(t={x:-e/(a.dy/a.dx),y:e}).x+r.width,y:t.y+r.height}}}}t&&s&&((0,H.pSR)(a,i,t),(0,H.pSR)(a,n,s),e=!0)}if(!e)return;a.lineWidth=l,h.enable&&(a.globalCompositeOperation=h.composite),a.strokeStyle=(0,H.izR)(c,u);let{shadow:p}=d;if(p.enable){let t=(0,H.tXk)(s,p.color);t&&(a.shadowBlur=p.blur,a.shadowColor=(0,H.izR)(t))}a.stroke()}({context:e,width:u,begin:a,end:r,engine:this._engine,maxDistance:d,canvasSize:n.canvas.size,links:i,backgroundMask:p,colorLine:h,opacity:l})})},this._drawLinkTriangle=(t,e,i)=>{let n=t.options.links;if(!n?.enable)return;let s=n.triangles;if(!s.enable)return;let o=this._container,a=o.actualOptions,r=e.destination,l=i.destination,h=s.opacity??(e.opacity+i.opacity)*.5;h<=0||o.canvas.draw(e=>{let i=t.getPosition(),c=r.getPosition(),u=l.getPosition(),d=t.retina.linksDistance??0;if((0,H.Spd)(i,c)>d||(0,H.Spd)(u,c)>d||(0,H.Spd)(u,i)>d)return;let p=(0,H.tXk)(this._engine,s.color);if(!p){let e=void 0!==n.id?o.particles.linksColors.get(n.id):o.particles.linksColor;p=(0,H.BEi)(t,r,e)}p&&function(t){let{context:e,pos1:i,pos2:n,pos3:s,backgroundMask:o,colorTriangle:a,opacityTriangle:r}=t;e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(n.x,n.y),e.lineTo(s.x,s.y),e.closePath(),o.enable&&(e.globalCompositeOperation=o.composite),e.fillStyle=(0,H.izR)(a,r),e.fill()}({context:e,pos1:i,pos2:c,pos3:u,backgroundMask:a.backgroundMask,colorTriangle:p,opacityTriangle:h})})},this._drawTriangles=(t,e,i,n)=>{let s=i.destination;if(!(t.links?.triangles.enable&&s.options.links?.triangles.enable))return;let o=s.links?.filter(t=>{let e=this._getLinkFrequency(s,t.destination);return s.options.links&&e<=s.options.links.frequency&&n.findIndex(e=>e.destination===t.destination)>=0});if(o?.length)for(let n of o){let o=n.destination;this._getTriangleFrequency(e,s,o)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,n)}},this._getLinkFrequency=(t,e)=>nW([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>nW([t,e,i],this._freqs.triangles),this._container=t,this._engine=e,this._freqs={links:new Map,triangles:new Map}}
1drawParticle(t,e){let{links:i,options:n}=e;if(!i?.length)return;let s=i.filter(t=>n.links&&(n.links.frequency>=1||this._getLinkFrequency(e,t.destination)<=n.links.frequency));for(let t of s)this._drawTriangles(n,e,t,s),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this._container.retina.pixelRatio,{retina:i}=t,{distance:n,width:s}=t.options.links;i.linksDistance=n*e,i.linksWidth=s*e}particleDestroyed(t){t.links=[]}}class nQ{constructor(t){this.id="links",this._engine=t}getPlugin(t){return Promise.resolve(new nZ(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function nY(t,e=!0){let i=new nQ(t);await t.addPlugin(i,e)}async function nK(t,e=!0){(0,H.j2P)(t,"3.7.1"),await nq(t,e),await nY(t,e)}let nX={x:0,y:0};class nJ{draw(t){let{particle:e,radius:i}=t;!function(t,e,i){let{context:n}=t,s=i.count.numerator*i.count.denominator,o=i.count.numerator/i.count.denominator,a=Math.PI-(0,H.Idc)(180*(o-2)/o);if(n){n.beginPath(),n.translate(e.x,e.y),n.moveTo(nX.x,nX.y);for(let t=0;t<s;t++)n.lineTo(i.length,nX.y),n.translate(i.length,nX.y),n.rotate(a)}}(t,this.getCenter(e,i),this.getSidesData(e,i))}getSidesCount(t){let e=t.shapeData;return Math.round((0,H.Gu7)(e?.sides??5))}}class n0 extends nJ{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){let i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class n1 extends nJ{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function n2(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new n0,e)}async function n5(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new n1,e)}async function n3(t,e=!0){(0,H.j2P)(t,"3.7.1"),await n2(t,e),await n5(t,e)}class n4{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,H.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,H.Cst)(t.speed)),void 0!==t.decay&&(this.decay=(0,H.Cst)(t.decay)),void 0===t.sync||(this.sync=t.sync))}}class n9 extends H.SWe{constructor(){super(),this.animation=new n4,this.direction=H.RnL.clockwise,this.path=!1,this.value=0}load(t){(0,H.Ft)(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))}}let n7=2*Math.PI;class n6{constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,H.Idc)((0,H.Gu7)(e.value)),min:0,max:n7},t.pathRotation=e.path;let i=e.direction;switch(i===H.RnL.random&&(i=Math.floor(2*(0,H.sZz)())>0?H.RnL.counterClockwise:H.RnL.clockwise),i){case H.RnL.counterClockwise:case"counterClockwise":t.rotate.status=H.NV1.decreasing;break;case H.RnL.clockwise:t.rotate.status=H.NV1.increasing}let n=e.animation;n.enable&&(t.rotate.decay=1-(0,H.Gu7)(n.decay),t.rotate.velocity=(0,H.Gu7)(n.speed)/360*this.container.retina.reduceFactor,n.sync||(t.rotate.velocity*=(0,H.sZz)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path)}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new n9),e))t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&((0,H.CrJ)(t,t.rotate,!1,H.Hyf.none,e),t.rotation=t.rotate.value))}}async function n8(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("rotate",t=>Promise.resolve(new n6(t)),e)}let st=Math.sqrt(2);class se{constructor(){this.validTypes=["edge","square"]}draw(t){!function(t){let{context:e,radius:i}=t,n=i/st,s=2*n;e.rect(-n,-n,s,s)}(t)}getSidesCount(){return 4}}async function si(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new se,e)}let sn={x:0,y:0};class ss{constructor(){this.validTypes=["star"]}draw(t){!function(t){let{context:e,particle:i,radius:n}=t,s=i.sides,o=i.starInset??2;e.moveTo(sn.x,sn.y-n);for(let t=0;t<s;t++)e.rotate(Math.PI/s),e.lineTo(sn.x,sn.y-n*o),e.rotate(Math.PI/s),e.lineTo(sn.x,sn.y-n)}(t)}getSidesCount(t){let e=t.shapeData;return Math.round((0,H.Gu7)(e?.sides??5))}particleInit(t,e){let i=e.shapeData;e.starInset=(0,H.Gu7)(i?.inset??2)}}async function so(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new ss,e)}class sa{constructor(t,e){this._container=t,this._engine=e}init(t){let e=this._container,i=t.options,n=(0,H.wA_)(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=(0,H.Gu7)(n.width)*e.retina.pixelRatio,t.strokeOpacity=(0,H.Gu7)(n.opacity??1),t.strokeAnimation=n.color?.animation;let s=(0,H.lNs)(this._engine,n.color)??t.getFillColor();s&&(t.strokeColor=(0,H.bS$)(s,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){let e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(t,e){this.isEnabled(t)&&(0,H.PBz)(t.strokeColor,e)}}async function sr(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("strokeColor",e=>Promise.resolve(new sa(e,t)),e)}async function sl(t,e=!0){(0,H.j2P)(t,"3.7.1"),await nM(t,!1),await iG(t,!1),await iF(t,!1),await iq(t,!1),await iY(t,!1),await i0(t,!1),await i2(t,!1),await i4(t,!1),await i6(t,!1),await ns(t,!1),await nr(t,!1),await nV(t,!1),await nF(t,!1),await nK(t,!1),await iC(t,!1),await ik(t,!1),await nS(t,!1),await nA(t,!1),await n3(t,!1),await si(t,!1),await so(t,!1),await nk(t,!1),await n8(t,!1),await sr(t,!1),await iP(t,e)}class sh{constructor(){this.validTypes=["text","character","char","multiline-text"]}draw(t){!function(t){let{context:e,particle:i,radius:n,opacity:s}=t,o=i.shapeData;if(!o)return;let a=o.value;if(void 0===a)return;void 0===i.text&&(i.text=(0,H.wA_)(a,i.randomIndexData));let r=i.text,l=o.style??"",h=o.weight??"400",c=o.font??"Verdana",u=i.shapeFill,d=r?.split("\n");if(d){e.font=`${l} ${h} ${2*Math.round(n)}px "${c}"`,e.globalAlpha=s;for(let t=0;t<d.length;
1t++)!function(t,e,i,n,s,o){let a={x:-(e.length*i*.5),y:.5*i},r=2*i;o?t.fillText(e,a.x,a.y+r*s):t.strokeText(e,a.x,a.y+r*s)}(e,d[t],n,0,t,u);e.globalAlpha=1}}(t)}async init(t){let e=t.actualOptions,{validTypes:i}=this;if(i.find(t=>(0,H.dBL)(t,e.particles.shape.type))){let t=i.map(t=>e.particles.shape.options[t]).find(t=>!!t),n=[];(0,H.KH1)(t,t=>{n.push((0,H.mxw)(t.font,t.weight))}),await Promise.all(n)}}particleInit(t,e){if(!e.shape||!this.validTypes.includes(e.shape))return;let i=e.shapeData;if(void 0===i)return;let n=i.value;void 0!==n&&(e.text=(0,H.wA_)(n,e.randomIndexData))}}async function sc(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new sh,e)}(d=M||(M={})).clockwise="clockwise",d.counterClockwise="counter-clockwise",d.random="random";class su{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,H.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,H.Cst)(t.speed)),void 0!==t.decay&&(this.decay=(0,H.Cst)(t.decay)),void 0===t.sync||(this.sync=t.sync))}}class sd extends H.SWe{constructor(){super(),this.animation=new su,this.direction=M.clockwise,this.enable=!1,this.value=0}load(t){super.load(t),(0,H.Ft)(t)||(this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0===t.enable||(this.enable=t.enable))}}let sp=2*Math.PI;class sf{constructor(t){this.container=t}getTransformValues(t){let e=t.tilt?.enable&&t.tilt;return{b:e?Math.cos(e.value)*e.cosDirection:void 0,c:e?Math.sin(e.value)*e.sinDirection:void 0}}init(t){let e=t.options.tilt;if(!e)return;t.tilt={enable:e.enable,value:(0,H.Idc)((0,H.Gu7)(e.value)),sinDirection:(0,H.sZz)()>=H.vqy?1:-1,cosDirection:(0,H.sZz)()>=H.vqy?1:-1,min:0,max:sp};let i=e.direction;switch(i===M.random&&(i=Math.floor(2*(0,H.sZz)())>0?M.counterClockwise:M.clockwise),i){case M.counterClockwise:case"counterClockwise":t.tilt.status=H.NV1.decreasing;break;case M.clockwise:t.tilt.status=H.NV1.increasing}let n=t.options.tilt?.animation;n?.enable&&(t.tilt.decay=1-(0,H.Gu7)(n.decay),t.tilt.velocity=(0,H.Gu7)(n.speed)/360*this.container.retina.reduceFactor,n.sync||(t.tilt.velocity*=(0,H.sZz)()))}isEnabled(t){let e=t.options.tilt?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){for(let i of(t.tilt||(t.tilt=new sd),e))t.tilt.load(i?.tilt)}async update(t,e){this.isEnabled(t)&&t.tilt&&((0,H.CrJ)(t,t.tilt,!1,H.Hyf.none,e),await Promise.resolve())}}async function sg(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("tilt",t=>Promise.resolve(new sf(t)),e)}class sy{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=H.OzF.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=(0,H.Cst)(t.opacity)))}}class sm{constructor(){this.lines=new sy,this.particles=new sy}load(t){(0,H.Ft)(t)||(this.lines.load(t.lines),this.particles.load(t.particles))}}class sv{constructor(t){this._engine=t}getColorStyles(t,e,i,n){let s=t.options.twinkle;if(!s)return{};let o=s.particles,a=o.enable&&(0,H.sZz)()<o.frequency,r=t.options.zIndex,l=(1-t.zIndexFactor)**r.opacityRate,h=a?(0,H.Gu7)(o.opacity)*l:n,c=(0,H.lNs)(this._engine,o.color),u=c?(0,H.vzQ)(c,h):void 0,d={},p=a&&u;return d.fill=p?u:void 0,d.stroke=p?u:void 0,d}
1async init(){await Promise.resolve()}isEnabled(t){let e=t.options.twinkle;return!!e&&e.particles.enable}loadOptions(t,...e){for(let i of(t.twinkle||(t.twinkle=new sm),e))t.twinkle.load(i?.twinkle)}async update(){await Promise.resolve()}}async function sw(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("twinkle",()=>Promise.resolve(new sv(t)),e)}class sb{constructor(){this.angle=50,this.move=10}load(t){(0,H.Ft)(t)||(void 0!==t.angle&&(this.angle=(0,H.Cst)(t.angle)),void 0!==t.move&&(this.move=(0,H.Cst)(t.move)))}}class s_{constructor(){this.distance=5,this.enable=!1,this.speed=new sb}load(t){if(!(0,H.Ft)(t)&&(void 0!==t.distance&&(this.distance=(0,H.Cst)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed)){if((0,H.hj$)(t.speed))this.speed.load({angle:t.speed});else{let e=t.speed;void 0!==e.min?this.speed.load({angle:e}):this.speed.load(t.speed)}}}}let sx=2*Math.PI,sS=2*Math.PI;class sP{constructor(t){this.container=t}init(t){let e=t.options.wobble;e?.enable?t.wobble={angle:(0,H.sZz)()*sS,angleSpeed:(0,H.Gu7)(e.speed.angle)/360,moveSpeed:(0,H.Gu7)(e.speed.move)/10}:t.wobble={angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=(0,H.Gu7)(e?.distance??0)*this.container.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.options.wobble?.enable}loadOptions(t,...e){for(let i of(t.wobble||(t.wobble=new s_),e))t.wobble.load(i?.wobble)}update(t,e){this.isEnabled(t)&&function(t,e){let{wobble:i}=t.options,{wobble:n}=t;if(!i?.enable||!n)return;let s=n.angleSpeed*e.factor,o=n.moveSpeed*e.factor,a=(t.retina.wobbleDistance??0)*e.factor*o/(H.X5o/60),{position:r}=t;n.angle+=s,n.angle>sx&&(n.angle-=sx),r.x+=a*Math.cos(n.angle),r.y+=a*Math.abs(Math.sin(n.angle))}(t,e)}}async function sC(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("wobble",t=>Promise.resolve(new sP(t)),e)}async function sO(t,e=!0){(0,H.j2P)(t,"3.7.1"),await eB(t,!1),await e4(t,!1),await sg(t,!1),await sw(t,!1),await sC(t,!1),await sc(t,!1),await e0(t,!1),await eR(t,!1),await tJ(t,!1),await eq(t,!1),await eY(t,!1),await sl(t,e)}class sT{constructor(){this.count=0,this.enable=!1,this.speed=0,this.decay=0,this.delay=0,this.sync=!1,this.startValue=H.a9w.random}load(t){(0,H.Ft)(t)||(void 0!==t.count&&(this.count=(0,H.Cst)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,H.Cst)(t.speed)),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.decay&&(this.decay=(0,H.Cst)(t.decay)),void 0!==t.delay&&(this.delay=(0,H.Cst)(t.delay)))}}class sk{constructor(){this.value=0,this.animation=new sT}load(t){(0,H.Ft)(t)||(this.animation.load(t.animation),void 0!==t.value&&(this.value=(0,H.Cst)(t.value)))}}class sz{constructor(){this.stop=0,this.value=new H.RC2}load(t){(0,H.Ft)(t)||(void 0!==t.stop&&(this.stop=t.stop),this.value=H.RC2.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new sk,(0,H.hj$)(t.opacity)?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class sA{constructor(){this.count=0,this.enable=!1,this.speed=0,this.decay=0,this.delay=0,this.sync=!1}load(t){(0,H.Ft)(t)||(void 0!==t.count&&(this.count=(0,H.Cst)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,H.Cst)(t.speed)),void 0!==t.decay&&(this.decay=(0,H.Cst)(t.decay)),void 0!==t.delay&&(this.delay=(0,H.Cst)(t.delay)),void 0===t.sync||(this.sync=t.sync))}}class sE{constructor(){this.value=0,this.animation=new sA,this.direction=H.RnL.clockwise}load(t){(0,H.Ft)(t)||(this.animation.load(t.animation),void 0!==t.value&&(this.value=(0,H.Cst)(t.value)),void 0===t.direction||(this.direction=t.direction))}}class sM{constructor(){this.angle=new sE,this.colors=[],this.type=H.GLT.random}load(t){(0,H.Ft)(t)||(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map(t=>{let e=new sz;return e.load(t),e}
1)),void 0===t.type||(this.type=t.type))}}let sG=2*Math.PI;class sV{constructor(t){this._engine=t}getColorStyles(t,e,i,n){let s=t.gradient;if(!s)return{};let o=s.angle.value,a={x:0,y:0},r=s.type===H.GLT.radial?e.createRadialGradient(a.x,a.y,0,a.x,a.y,i):e.createLinearGradient(-(Math.cos(o)*i),-(Math.sin(o)*i),Math.cos(o)*i,Math.sin(o)*i);for(let{stop:t,value:e,opacity:i}of s.colors)r.addColorStop(t,(0,H.vzQ)({h:e.h.value,s:e.s.value,l:e.l.value},i?.value??n));return{fill:r}}init(t){let e=(0,H.wA_)(t.options.gradient);if(!e)return;let{angle:i}=e;t.gradient={angle:{value:(0,H.Gu7)(i.value),enable:i.animation.enable,velocity:(0,H.Gu7)(i.animation.speed)/360*t.container.retina.reduceFactor,decay:1-(0,H.Gu7)(i.animation.decay),delayTime:(0,H.Gu7)(i.animation.delay)*H.X5o,max:sG,min:0,time:0},type:e.type,colors:[]};let n=e.angle.direction;switch(n===H.RnL.random&&(n=(0,H.sZz)()>H.vqy?H.RnL.counterClockwise:H.RnL.clockwise),n){case H.RnL.counterClockwise:case"counterClockwise":t.gradient.angle.status=H.NV1.decreasing;break;case H.RnL.clockwise:t.gradient.angle.status=H.NV1.increasing}let s=t.options.reduceDuplicates;for(let i of e.colors){let e=(0,H.lNs)(this._engine,i.value,t.id,s);if(!e)continue;let n=(0,H.bS$)(e,i.value.animation,t.container.retina.reduceFactor),o={stop:i.stop,value:n,opacity:i.opacity?{enable:i.opacity.animation.enable,max:(0,H.KIV)(i.opacity.value),min:(0,H.UvP)(i.opacity.value),status:H.NV1.increasing,value:(0,H.Gu7)(i.opacity.value),velocity:(0,H.Gu7)(i.opacity.animation.speed)/H.tZy*t.container.retina.reduceFactor,decay:1-(0,H.Gu7)(i.opacity.animation.decay),delayTime:(0,H.Gu7)(i.opacity.animation.delay)*H.X5o,time:0}:void 0},{opacity:a}=o;if(i.opacity&&a){let t=i.opacity.value;switch(a.min=(0,H.UvP)(t),a.max=(0,H.KIV)(t),i.opacity.animation.startValue){case H.a9w.min:a.value=a.min,a.status=H.NV1.increasing;break;case H.a9w.max:a.value=a.max,a.status=H.NV1.decreasing;break;case H.a9w.random:default:a.value=(0,H.vdf)(a),a.status=(0,H.sZz)()>=H.vqy?H.NV1.increasing:H.NV1.decreasing}}t.gradient.colors.push(o)}}isEnabled(t){return!t.destroyed&&!t.spawning&&(!!t.gradient?.angle.enable||(t.gradient?.colors.some(t=>t.value.h.enable||t.value.s.enable||t.value.l.enable)??!1))}loadOptions(t,...e){for(let i of e){if(!i?.gradient)continue;let e=i.gradient;e&&(t.gradient=(0,H.KH1)(e,t=>{let e=new sM;return e.load(t),e}))}}update(t,e){!function(t,e){let{gradient:i}=t;if(i)for(let n of((0,H.CrJ)(t,i.angle,!1,H.Hyf.none,e),i.colors))(0,H.PBz)(n.value,e),n.opacity&&(0,H.CrJ)(t,n.opacity,!0,H.Hyf.none,e)}(t,e)}}async function sR(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("gradient",()=>Promise.resolve(new sV(t)),e)}class sI{constructor(){this.validTypes=["heart"]}draw(t){!function(t){let{context:e,radius:i}=t,n=2*i,s=.5*i,o=i+s,a=-i,r=-i;e.moveTo(a,r+s),e.quadraticCurveTo(a,r,a+s,r),e.quadraticCurveTo(a+i,r,a+i,r+s),e.quadraticCurveTo(a+i,r,a+o,r),e.quadraticCurveTo(a+n,r,a+n,r+s),e.quadraticCurveTo(a+n,r+i,a+o,r+o),e.lineTo(a+i,r+n),e.lineTo(a+s,r+o),e.quadraticCurveTo(a,r+i,a,r+s)}(t)}}async function sL(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new sI,e)}function sD(t){let e;let i={b:0,g:0,r:0},n={h:t.h/60,s:t.s/H.tZy,v:t.v/H.tZy},s=n.v*n.s,o=s*(1-Math.abs(n.h%2-1)),a={min:0,max:1},r={min:1,max:2},l={min:2,max:3},h={min:3,max:4},c={min:4,max:5},u={min:5,max:6};if(n.h>=a.min&&n.h<=a.max?e={r:s,g:o,b:0}:n.h>r.min&&n.h<=r.max?e={r:o,g:s,b:0}:n.h>l.min&&n.h<=l.max?e={r:0,g:s,b:o}:n.h>h.min&&n.h<=h.max?e={r:0,g:o,b:s}:n.h>c.min&&n.h<=c.max?e={r:o,g:0,b:s}:n.h>u.min&&n.h<=u.max&&(e={r:s,g:0,b:o}),e){let t=n.v-s;i.r=Math.floor((e.r+t)*255),i.g=Math.floor((e.g+t)*255),i.b=Math.floor((e.b+t)*255)}return i}class sF{constructor(){this.key="hsv",this.stringPrefix="hsv"}handleColor(t){let e=t.value.hsv??t.value;if(void 0!==e.h&&void 0!==e.v)return sD(e)}handleRangeColor(t){let e=t.value.hsv??t.value;if(void 0!==e.h&&void 0!==e.v)return sD({h:(0,H.Gu7)(e.h),s:(0,H.Gu7)(e.s),v:(0,H.Gu7)(e.v)})}parseString(t){var e;if(!t.startsWith("hsv"))return;let i=/hsva?\(\s*(\d+)°\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t),n={h:1,s:2,v:3,a:5};return i?{a:(e={a:i.length>4?(0,H.BVM)(i[n.a]):1,h:parseInt(i[n.h],10),s:parseInt(i[n.s],10),v:parseInt(i[n.v],10)}).a,...sD(e)}:void 0}}async function sj(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new sF,e)}class sH{constructor(){this.color=new H.OzF,this.color.value="#ff0000",this.radius=0,this.rate=1}load(t){(0,H.Ft)(t)||(void 0!==t.color&&(this.color=H.OzF.create(this.color,t.color)),this.duration=t.duration,this.infectedStage=t.infectedStage,void 0!==t.radius&&(this.radius=t.radius),void 0===t.rate||(this.rate=t.rate))}}class sB{constructor(){this.cure=!1,this.delay=0,this.enable=!1,this.infections=0,this.stages=[]}load(t){!(0,H.Ft)(t)&&(void 0!==t.cure&&(this.cure=t.cure),void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.infections&&(this.infections=t.infections),void 0!==t.stages&&(this.stages=t.stages.map(t=>{let e=new sH;return e.load(t),e})))}}class sN{constructor(t){this._nextInfectionStage=t=>{let e=this._container.actualOptions.infection,{infection:i}=t;if(!e||!i)return;let n=e.stages.length;!(n<=0)&&void 0!==i.stage&&(i.time=0,n<=++i.stage&&(e.cure?(delete i.stage,delete i.time):(i.stage=0,i.time=0)))},this._container=t}startInfection(t,e){let i=this._container.actualOptions.infection,{infection:n}=t;i&&n&&!(e>i.stages.length)&&!(e<0)&&(n.delay=0,n.delayStage=e)}updateInfection(t,e){let i=this._container.actualOptions.infection,{infection:n}=t;if(!i||!n)return;let s=i.stages,o=s.length;if(void 0!==n.delay&&void 0!==n.delayStage){let t=n.delayStage;if(t>o||t<0)return;n.delay>=i.delay*H.X5o?(n.stage=t,n.time=0,delete n.delay,delete n.delayStage):n.delay+=e}else delete n.delay,delete n.delayStage;if(void 0!==n.stage&&void 0!==n.time){let i=s[n.stage];void 0!==i.duration&&i.duration>=0&&n.time>i.duration*H.X5o?this._nextInfectionStage(t):n.time+=e}else delete n.stage,delete n.time}updateInfectionStage(t,e){let i=this._container.actualOptions,{infection:n}=t;!i.infection||!n||e>i.infection.stages.length||e<0||void 0!==n.stage&&n.stage>e||(n.stage=e,n.time=0)}}class s${constructor(t){this._container=t,this._container.infecter=new sN(this._container)}particleFillColor(t){let e=this._container.actualOptions;if(!t.infection||!e.infection)return;let i=t.infection.stage,n=e.infection.stages;return void 0!==i?n[i].color:void 0}particleStrokeColor(t){return this.particleFillColor(t)}particlesSetup(){let t=this._container.actualOptions;if(t.infection)for(let e=0;e<t.infection.infections;e++){let t=this._container.particles.filter(t=>(t.infection||(t.infection={}
1),void 0===t.infection.stage)),e=(0,H.c86)(t);this._container.infecter?.startInfection(e,0)}}}class sU{constructor(){this.id="infection"}getPlugin(t){return Promise.resolve(new s$(t))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.infection;i?.load===void 0&&(t.infection=i=new sB),i.load(e?.infection)}needsPlugin(t){return t?.infection?.enable??!1}}class sq extends H.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t,e){let i=this.container.infecter;if(!i||(i.updateInfection(t,e.value),t.infection?.stage===void 0))return;let n=this.container,s=n.actualOptions.infection;if(!s?.enable||s.stages.length<1)return;let o=s.stages[t.infection.stage],a=n.retina.pixelRatio,r=2*t.getRadius()+o.radius*a,l=t.getPosition(),h=o.infectedStage??t.infection.stage,c=n.particles.quadTree.queryCircle(l,r),u=o.rate,d=c.length;for(let e of c)if(!(e===t||e.destroyed||e.spawning||!(e.infection?.stage===void 0||e.infection.stage!==t.infection.stage)||(0,H.sZz)()>=u/d)){if(e.infection?.stage===void 0)i.startInfection(e,h);else if(e.infection.stage<t.infection.stage)i.updateInfectionStage(e,h);else if(e.infection.stage>t.infection.stage){let n=s.stages[e.infection.stage],o=n?.infectedStage??e.infection.stage;i.updateInfectionStage(t,o)}}}isEnabled(){return this.container.actualOptions?.infection?.enable??!1}reset(){}}async function sW(t,e=!0){(0,H.j2P)(t,"3.7.1");let i=new sU;await t.addPlugin(i,e),await t.addInteractor("particlesInfection",t=>Promise.resolve(new sq(t)),e)}class sZ{constructor(){this.validTypes=["infinity"]}draw(t){!function(t){let{context:e,radius:i}=t,n=.55*i;e.moveTo(0,0),e.bezierCurveTo(n,-i,n,i,0,0),e.moveTo(0,0),e.bezierCurveTo(-n,-i,0-n,i,0,0)}(t)}}async function sQ(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new sZ,e)}let sY=.5*Math.PI,sK=2*Math.PI,sX=.25*Math.PI,sJ="light";class s0{constructor(){this.start=new H.OzF,this.stop=new H.OzF,this.start.value="#ffffff",this.stop.value="#000000"}load(t){(0,H.Ft)(t)||(this.start=H.OzF.create(this.start,t.start),this.stop=H.OzF.create(this.stop,t.stop))}}class s1{constructor(){this.gradient=new s0,this.radius=1e3}load(t){(0,H.Ft)(t)||(this.gradient.load(t.gradient),void 0===t.radius||(this.radius=t.radius))}}class s2{constructor(){this.color=new H.OzF,this.color.value="#000000",this.length=2e3}load(t){(0,H.Ft)(t)||(this.color=H.OzF.create(this.color,t.color),void 0===t.length||(this.length=t.length))}}class s5{constructor(){this.area=new s1,this.shadow=new s2}load(t){(0,H.Ft)(t)||(this.area.load(t.area),this.shadow.load(t.shadow))}}class s3 extends H.L8z{constructor(t,e){super(t),this._engine=e}clear(){}init(){}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity;if(!e.interactivity.events.onHover.enable||"pointermove"!==i.status)return;let n=i.mouse.position;n&&t.canvas.draw(e=>{!function(t,e,i){let n=t.actualOptions.interactivity.modes.light?.area;if(!n)return;e.beginPath(),e.arc(i.x,i.y,n.radius,0,sK);let s=e.createRadialGradient(i.x,i.y,0,i.x,i.y,n.radius),o=t.canvas.mouseLight;o?.start&&o.stop&&(s.addColorStop(0,(0,H.izR)(o.start)),s.addColorStop(1,(0,H.izR)(o.stop)),e.fillStyle=s,e.fill())}(t,e,n)})}isEnabled(t){let e=this.container,i=e.interactivity.mouse,n=t?.interactivity??e.actualOptions.interactivity,s=n.events;if(!(s.onHover.enable&&i.position))return!1;let o=(0,H.dBL)(sJ,s.onHover.mode);if(o&&n.modes.light){let t=n.modes.light.area.gradient;e.canvas.mouseLight={start:(0,H.tXk)(this._engine,t.start),stop:(0,H.tXk)(this._engine,t.stop)}}return o}loadModeOptions(t,...e){for(let i of(t.light||(t.light=new s5),e))t.light.load(i?.light)}reset(){}}class s4 extends H.$Sh{constructor(t,e){super(t),this._engine=e}clear(){}init(){}interact(t){let e=this.container,i=e.actualOptions,n=e.interactivity;if(!i.interactivity.events.onHover.enable||"pointermove"!==n.status)return;let s=n.mouse.position;s&&e.canvas.draw(i=>{!function(t,e,i,n){let s=i.getPosition(),o=t.actualOptions.interactivity.modes.light?.shadow;if(!o)return;let a=i.lightShadow;if(!a)return;let r=i.getRadius(),l=i.sides,h=sK/l,c=-i.rotation+sX,u=[];for(let t=0;t<l;t++)u.push({x:s.x+r*Math.sin(c+h*t)*1,y:s.y+r*Math.cos(c+h*t)*1});let d=[],p=o.length;for(let t of u){let e=Math.atan2(n.y-t.y,n.x-t.x),i={x:t.x+p*Math.sin(-e-sY),y:t.y+p*Math.cos(-e-sY)};d.push({end:i,start:t})}let f=(0,H.izR)(a),g=d.length-1;for(let t=g,i=0;t>=0;i=t--)e.beginPath(),e.moveTo(d[t].start.x,d[t].start.y),e.lineTo(d[i].start.x,d[i].start.y),e.lineTo(d[i].end.x,d[i].end.y),e.lineTo(d[t].end.x,d[t].end.y),e.fillStyle=f,e.fill()}(e,i,t,s)})}isEnabled(t){let e=this.container,i=t.interactivity??e.actualOptions.interactivity,n=e.interactivity.mouse,s=i.events;if(!(s.onHover.enable&&n.position))return!1;let o=(0,H.dBL)(sJ,s.onHover.mode);if(o&&i.modes.light){let e=i.modes.light.shadow;t.lightShadow=(0,H.tXk)(this._engine,e.color)}return o}reset(){}}async function s9(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("externalLight",e=>Promise.resolve(new s3(e,t)),e),await t.addInteractor("particlesLight",e=>Promise.resolve(new s4(e,t)),e)}class s7{constructor(){this.factor=4,this.value=!0}load(t){(0,H.Ft)(t)||(void 0!==t.factor&&(this.factor=t.factor),void 0===t.value||(this.value=t.value))}}class s6{constructor(){this.disable=!1,this.reduce=new s7}load(t){(0,H.Ft)(t)||(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class s8{constructor(t,e){this._handleMotionChange=t=>{let e=this._container,i=e.actualOptions.motion;i&&(t.matches?i.disable?e.retina.reduceFactor=0:e.retina.reduceFactor=i.reduce.value?1/i.reduce.factor:1:e.retina.reduceFactor=1)},this._container=t,this._engine=e}
1async init(){let t=this._container,e=t.actualOptions.motion;if(!(e&&(e.disable||e.reduce.value))){t.retina.reduceFactor=1;return}let i=(0,H.HYm)("(prefers-reduced-motion: reduce)");if(!i){t.retina.reduceFactor=1;return}this._handleMotionChange(i);let n=()=>{(async()=>{this._handleMotionChange(i);try{await t.refresh()}catch{}})()};void 0!==i.addEventListener?i.addEventListener("change",n):void 0!==i.addListener&&i.addListener(n),await Promise.resolve()}}class ot{constructor(t){this.id="motion",this._engine=t}getPlugin(t){return Promise.resolve(new s8(t,this._engine))}loadOptions(t,e){if(!this.needsPlugin())return;let i=t.motion;i?.load||(t.motion=i=new s6),i.load(e?.motion)}needsPlugin(){return!0}}async function oe(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new ot(t),e)}let oi=new Map([["aliceblue",{r:240,g:248,b:255}],["antiquewhite",{r:250,g:235,b:215}],["aqua",{r:0,g:255,b:255}],["aquamarine",{r:127,g:255,b:212}],["azure",{r:240,g:255,b:255}],["beige",{r:245,g:245,b:220}],["bisque",{r:255,g:228,b:196}],["black",{r:0,g:0,b:0}],["blanchedalmond",{r:255,g:235,b:205}],["blue",{r:0,g:0,b:255}],["blueviolet",{r:138,g:43,b:226}],["brown",{r:165,g:42,b:42}],["burlywood",{r:222,g:184,b:135}],["cadetblue",{r:95,g:158,b:160}],["chartreuse",{r:127,g:255,b:0}],["chocolate",{r:210,g:105,b:30}],["coral",{r:255,g:127,b:80}],["cornflowerblue",{r:100,g:149,b:237}],["cornsilk",{r:255,g:248,b:220}],["crimson",{r:220,g:20,b:60}],["cyan",{r:0,g:255,b:255}],["darkblue",{r:0,g:0,b:139}],["darkcyan",{r:0,g:139,b:139}],["darkgoldenrod",{r:184,g:134,b:11}
1],["darkgray",{r:169,g:169,b:169}],["darkgreen",{r:0,g:100,b:0}],["darkgrey",{r:169,g:169,b:169}],["darkkhaki",{r:189,g:183,b:107}],["darkmagenta",{r:139,g:0,b:139}],["darkolivegreen",{r:85,g:107,b:47}],["darkorange",{r:255,g:140,b:0}],["darkorchid",{r:153,g:50,b:204}],["darkred",{r:139,g:0,b:0}],["darksalmon",{r:233,g:150,b:122}],["darkseagreen",{r:143,g:188,b:143}],["darkslateblue",{r:72,g:61,b:139}],["darkslategray",{r:47,g:79,b:79}],["darkslategrey",{r:47,g:79,b:79}],["darkturquoise",{r:0,g:206,b:209}],["darkviolet",{r:148,g:0,b:211}],["deeppink",{r:255,g:20,b:147}],["deepskyblue",{r:0,g:191,b:255}],["dimgray",{r:105,g:105,b:105}],["dimgrey",{r:105,g:105,b:105}],["dodgerblue",{r:30,g:144,b:255}],["firebrick",{r:178,g:34,b:34}],["floralwhite",{r:255,g:250,b:240}],["forestgreen",{r:34,g:139,b:34}],["fuchsia",{r:255,g:0,b:255}],["gainsboro",{r:220,g:220,b:220}],["ghostwhite",{r:248,g:248,b:255}],["gold",{r:255,g:215,b:0}],["goldenrod",{r:218,g:165,b:32}],["gray",{r:128,g:128,b:128}],["green",{r:0,g:128,b:0}],["greenyellow",{r:173,g:255,b:47}],["grey",{r:128,g:128,b:128}],["honeydew",{r:240,g:255,b:240}],["hotpink",{r:255,g:105,b:180}],["indianred",{r:205,g:92,b:92}],["indigo",{r:75,g:0,b:130}],["ivory",{r:255,g:255,b:240}],["khaki",{r:240,g:230,b:140}],["lavender",{r:230,g:230,b:250}],["lavenderblush",{r:255,g:240,b:245}],["lawngreen",{r:124,g:252,b:0}],["lemonchiffon",{r:255,g:250,b:205}],["lightblue",{r:173,g:216,b:230}],["lightcoral",{r:240,g:128,b:128}],["lightcyan",{r:224,g:255,b:255}],["lightgoldenrodyellow",{r:250,g:250,b:210}],["lightgray",{r:211,g:211,b:211}],["lightgreen",{r:144,g:238,b:144}],["lightgrey",{r:211,g:211,b:211}],["lightpink",{r:255,g:182,b:193}],["lightsalmon",{r:255,g:160,b:122}],["lightseagreen",{r:32,g:178,b:170}],["lightskyblue",{r:135,g:206,b:250}],["lightslategray",{r:119,g:136,b:153}],["lightslategrey",{r:119,g:136,b:153}],["lightsteelblue",{r:176,g:196,b:222}],["lightyellow",{r:255,g:255,b:224}],["lime",{r:0,g:255,b:0}],["limegreen",{r:50,g:205,b:50}],["linen",{r:250,g:240,b:230}],["magenta",{r:255,g:0,b:255}],["maroon",{r:128,g:0,b:0}],["mediumaquamarine",{r:102,g:205,b:170}],["mediumblue",{r:0,g:0,b:205}],["mediumorchid",{r:186,g:85,b:211}],["mediumpurple",{r:147,g:112,b:219}],["mediumseagreen",{r:60,g:179,b:113}],["mediumslateblue",{r:123,g:104,b:238}],["mediumspringgreen",{r:0,g:250,b:154}],["mediumturquoise",{r:72,g:209,b:204}],["mediumvioletred",{r:199,g:21,b:133}],["midnightblue",{r:25,g:25,b:112}],["mintcream",{r:245,g:255,b:250}],["mistyrose",{r:255,g:228,b:225}],["moccasin",{r:255,g:228,b:181}],["navajowhite",{r:255,g:222,b:173}],["navy",{r:0,g:0,b:128}],["oldlace",{r:253,g:245,b:230}],["olive",{r:128,g:128,b:0}],["olivedrab",{r:107,g:142,b:35}],["orange",{r:255,g:165,b:0}],["orangered",{r:255,g:69,b:0}],["orchid",{r:218,g:112,b:214}],["palegoldenrod",{r:238,g:232,b:170}],["palegreen",{r:152,g:251,b:152}],["paleturquoise",{r:175,g:238,b:238}],["palevioletred",{r:219,g:112,b:147}],["papayawhip",{r:255,g:239,b:213}],["peachpuff",{r:255,g:218,b:185}],["peru",{r:205,g:133,b:63}],["pink",{r:255,g:192,b:203}],["plum",{r:221,g:160,b:221}],["powderblue",{r:176,g:224,b:230}],["purple",{r:128,g:0,b:128}],["rebeccapurple",{r:102,g:51,b:153}],["red",{r:255,g:0,b:0}],["rosybrown",{r:188,g:143,b:143}],["royalblue",{r:65,g:105,b:225}],["saddlebrown",{r:139,g:69,b:19}],["salmon",{r:250,g:128,b:114}],["sandybrown",{r:244,g:164,b:96}],["seagreen",{r:46,g:139,b:87}],["seashell",{r:255,g:245,b:238}],["sienna",{r:160,g:82,b:45}],["silver",{r:192,g:192,b:192}],["skyblue",{r:135,g:206,b:235}],["slateblue",{r:106,g:90,b:205}],["slategray",{r:112,g:128,b:144}],["slategrey",{r:112,g:128,b:144}],["snow",{r:255,g:250,b:250}],["springgreen",{r:0,g:255,b:127}],["steelblue",{r:70,g:130,b:180}],["tan",{r:210,g:180,b:140}],["teal",{r:0,g:128,b:128}],["thistle",{r:216,g:191,b:216}],["tomato",{r:255,g:99,b:71}],["turquoise",{r:64,g:224,b:208}],["violet",{r:238,g:130,b:238}],["wheat",{r:245,g:222,b:179}],["white",{r:255,g:255,b:255}],["whitesmoke",{r:245,g:245,b:245}],["yellow",{r:255,g:255,b:0}],["yellowgreen",{r:154,g:205,b:50}]]);class on{constructor(){this.key="named",this.stringPrefix=""}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if(!t||"string"!=typeof t)return;let e=oi.get(t.toLowerCase());if(!e){(0,H.jl5)().error("Color not found",t);return}return{...e,a:255}}}async function os(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new on,e)}function oo(t){let e=t.l/H.tZy,i=t.c,n=t.h/360,s={r:0,g:0,b:0};return s.r=Math.floor(255*e),s.g=Math.floor(255*i),s.b=Math.floor(255*n),s}function oa(t){let e=t.l/H.tZy,i=t.c/H.tZy,n=t.h/360,s={r:0,g:0,b:0};return s.r=Math.floor(255*e),s.g=Math.floor(255*i),s.b=Math.floor(255*n),s}class or{constructor(){this.key="color",this.stringPrefix="lch"}handleColor(t){let e=t.value.lch??t.value;if(void 0!==e.l&&void 0!==e.c&&void 0!==e.h)return oo(e)}handleRangeColor(t){let e=t.value.lch??t.value;if(void 0!==e.l&&void 0!==e.c&&void 0!==e.h)return oo({l:(0,H.Gu7)(e.l),c:(0,H.Gu7)(e.c),h:(0,H.Gu7)(e.h)})}parseString(t){var e;if(!t.startsWith("lch"))return;let i=/lch\(\s*(\d+(\.\d+)?)%\s+(\d+(\.\d+)?)\s+(\d+(\.\d+)?)(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i.exec(t),n={l:1,c:3,h:5,a:7};return i?{a:(e={a:i[n.a]?(0,H.BVM)(i[n.a]):1,c:parseFloat(i[n.c]),h:parseFloat(i[n.h]),l:parseFloat(i[n.l])}).a,...oo(e)}:void 0}}class ol{constructor(){this.key="color",this.stringPrefix="oklch"}handleColor(t){let e=t.value.oklch??t.value;if(void 0!==e.l&&void 0!==e.c&&void 0!==e.h)return oa(e)}handleRangeColor(t){let e=t.value.oklch??t.value;if(void 0!==e.l&&void 0!==e.c&&void 0!==e.h)return oa({l:(0,H.Gu7)(e.l),c:(0,H.Gu7)(e.c),h:(0,H.Gu7)(e.h)})}parseString(t){var e;if(!t.startsWith("oklch"))return;let i=/oklch\(\s*(\d+(\.\d+)?)%\s+(\d+(\.\d+)?)\s+(\d+(\.\d+)?)(°)?(?:\s*\/\s*(0|1|0?\.\d+|\d{1,3}%))?\s*\)/i.exec(t),n={l:1,c:3,h:5,a:7};return i?{a:(e={a:i[n.a]?(0,H.BVM)(i[n.a]):1,c:parseFloat(i[n.c]),h:parseFloat(i[n.h]),l:parseFloat(i[n.l])}).a,...oa(e)}:void 0}}async function oh(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addColorManager(new ol,e),await t.addColorManager(new or,e)}class oc extends H.SWe{constructor(){super(),this.value=45}load(t){(0,H.Ft)(t)||super.load(t)}}class ou{constructor(){this.animation=new H.PpY,this.enable=!1,this.opacity=1,this.rotation=new oc,this.width=1}load(t){(0,H.Ft)(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=(0,H.Cst)(t.opacity)),void 0!==t.width&&(this.width=(0,H.Cst)(t.width)),void 0!==t.radius&&(this.radius=(0,H.Cst)(t.radius)),void 0!==t.color&&(this.color=H.OzF.create(this.color,t.color)))}}(p=G||(G={})).front="front",p.back="back";let od=2*Math.PI,op=.5*Math.PI,of=Math.PI+op;class og{constructor(t,e){this._engine=e,this._container=t}afterDraw(t){let e=t.options.orbit;e?.enable&&this.drawOrbit(t,G.front)}beforeDraw(t){let e=t.options.orbit;e?.enable&&this.drawOrbit(t,G.back)}drawOrbit(t,e){let i,n;let s=this._container;switch(e){case G.back:i=op,n=of;break;case G.front:i=of,n=op;break;default:i=0,n=od}s.canvas.draw(e=>
1{!function(t,e,i,n,s,o,a,r,l){if(o<=0)return;let h=e.getPosition();i&&(t.strokeStyle=(0,H.vzQ)(i,s)),t.lineWidth=o;let c=(0,H.Idc)(a);t.beginPath(),t.ellipse(h.x,h.y,.5*n,2*n,c,r,l),t.stroke()}(e,t,t.orbitColor??t.getFillColor(),t.retina.orbitRadius??s.retina.orbitRadius??t.getRadius(),t.orbitOpacity??1,t.orbitWidth??1,(t.orbitRotation??0)*s.retina.pixelRatio,i,n)})}init(t){let e=this._container,i=t.options.orbit;i?.enable&&(t.orbitRotation=(0,H.Gu7)(i.rotation.value),t.orbitColor=(0,H.lNs)(this._engine,i.color),t.retina.orbitRadius=void 0!==i.radius?(0,H.Gu7)(i.radius)*e.retina.pixelRatio:void 0,e.retina.orbitRadius=t.retina.orbitRadius,t.orbitAnimationSpeed=i.animation.enable?(0,H.Gu7)(i.animation.speed):0,t.orbitWidth=(0,H.Gu7)(i.width),t.orbitOpacity=(0,H.Gu7)(i.opacity))}isEnabled(t){let e=t.options.orbit?.animation;return!t.destroyed&&!t.spawning&&!!e?.enable}loadOptions(t,...e){for(let i of(t.orbit||(t.orbit=new ou),e))t.orbit.load(i?.orbit)}update(t,e){this.isEnabled(t)&&(void 0===t.orbitRotation&&(t.orbitRotation=0),t.orbitRotation+=(t.orbitAnimationSpeed??0/od)*e.factor)}}async function oy(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addParticleUpdater("orbit",e=>Promise.resolve(new og(e,t)),e)}class om extends H.SWe{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),(0,H.Ft)(t)||(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=(0,H.Cst)(t.distance)),void 0!==t.duration&&(this.duration=(0,H.Cst)(t.duration)),void 0!==t.factor&&(this.factor=(0,H.Cst)(t.factor)),void 0!==t.speed&&(this.speed=(0,H.Cst)(t.speed)))}}class ov extends H.$Sh{constructor(t){super(t)}clear(){}init(){}interact(t){let e=this.container;if(!t.repulse){let i=t.options.repulse;if(!i)return;t.repulse={distance:(0,H.Gu7)(i.distance)*e.retina.pixelRatio,speed:(0,H.Gu7)(i.speed),factor:(0,H.Gu7)(i.factor)}}let i=t.getPosition();for(let n of e.particles.quadTree.queryCircle(i,t.repulse.distance)){if(t===n||n.destroyed)continue;let e=n.getPosition(),{dx:s,dy:o,distance:a}=(0,H.oW6)(e,i),r=t.repulse.speed*t.repulse.factor;if(a>0){let e=(0,H.uZ5)((1-Math.pow(a/t.repulse.distance,2))*r,0,r),i=H.OWs.create(s/a*e,o/a*e);n.position.addTo(i)}else{let t=H.OWs.create(r,r);n.position.addTo(t)}}}isEnabled(t){return t.options.repulse?.enabled??!1}loadParticlesOptions(t,...e){for(let i of(t.repulse||(t.repulse=new om),e))t.repulse.load(i?.repulse)}reset(){}}async function ow(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addInteractor("particlesRepulse",t=>Promise.resolve(new ov(t)),e)}(f=V||(V={})).line="line",f.bezier="bezier",f.quadratic="quadratic",f.arc="arc",f.ellipse="ellipse";class ob{constructor(){this.validTypes=["path"]}draw(t){let{context:e,particle:i,radius:n}=t;i.pathData&&function(t,e,i){let n=i.segments[0].values[0];for(let s of(t.moveTo(n.x*e,n.y*e),i.segments)){let i=s.values[0];switch(s.type){case V.line:t.lineTo(i.x*e,i.y*e);break;case V.bezier:t.bezierCurveTo(s.values[1].x*e,s.values[1].y*e,s.values[2].x*e,s.values[2].y*e,s.values[3].x*e,s.values[3].y*e);break;case V.quadratic:t.quadraticCurveTo(s.values[1].x*e,s.values[1].y*e,s.values[2].x*e,s.values[2].y*e);break;case V.arc:t.arc(i.x*e,i.y*e,s.values[1].x*e,s.values[2].x,s.values[2].y);break;case V.ellipse:t.ellipse(i.x*e,i.y*e,s.values[1].x*e,s.values[1].y*e,s.values[2].x,s.values[3].x,s.values[3].y)}}if(i.half)for(let n=i.segments.length-1;n>=0;n--){let s=i.segments[n],o=s.values[0];switch(s.type){case V.line:t.lineTo(-(o.x*e),o.y*e);break;case V.bezier:t.bezierCurveTo(-s.values[2].x*e,s.values[2].y*e,-s.values[1].x*e,s.values[1].y*e,o.x*e,o.y*e);break;case V.quadratic:t.quadraticCurveTo(-s.values[1].x*e,s.values[1].y*e,-s.values[2].x*e,s.values[2].y*e);case V.arc:case V.ellipse:}}}(e,n,i.pathData)}particleInit(t,e){let i=e.shapeData;i&&(e.pathData=(0,H.ZBL)({},i))}}async function o_(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new ob,e)}class ox{constructor(t,e,i){this.x=t,this.y=e,this.z=i}dot2(t,e){return this.x*t+this.y*e}dot3(t,e,i){return this.dot2(t,e)+this.z*i}}class oS{constructor(){this._grad3=[new ox(1,1,0),new ox(-1,1,0),new ox(1,-1,0),new ox(-1,-1,0),new ox(1,0,1),new ox(-1,0,1),new ox(1,0,-1),new ox(-1,0,-1),new ox(0,1,1),new ox(0,-1,1),new ox(0,1,-1),new ox(0,-1,-1)],this._p=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,
1127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],this._gradP=Array(512),this._perm=Array(512)}noise2d(t,e){let{_gradP:i,_perm:n}=this,s=Math.floor(t),o=Math.floor(e);t-=s,e-=o;let a=i[(s&=255)+n[o&=255]].dot2(t,e),r=i[s+n[o+1]].dot2(t,e-1),l=i[s+1+n[o]].dot2(t-1,e),h=i[s+1+n[o+1]].dot2(t-1,e-1),c=this._fade(t);return this._lerp(this._lerp(a,l,c),this._lerp(r,h,c),this._fade(e))}noise3d(t,e,i){let{_gradP:n,_perm:s}=this,o=Math.floor(t),a=Math.floor(e),r=Math.floor(i);t-=o,e-=a,i-=r;let l=n[(o&=255)+s[(a&=255)+s[r&=255]]].dot3(t,e,i),h=n[o+s[a+s[r+1]]].dot3(t,e,i-1),c=n[o+s[a+1+s[r]]].dot3(t,e-1,i),u=n[o+s[a+1+s[r+1]]].dot3(t,e-1,i-1),d=n[o+1+s[a+s[r]]].dot3(t-1,e,i),p=n[o+1+s[a+s[r+1]]].dot3(t-1,e,i-1),f=n[o+1+s[a+1+s[r]]].dot3(t-1,e-1,i),g=n[o+1+s[a+1+s[r+1]]].dot3(t-1,e-1,i-1),y=this._fade(t),m=this._fade(e),v=this._fade(i);return this._lerp(this._lerp(this._lerp(l,d,y),this._lerp(h,p,y),v),this._lerp(this._lerp(c,f,y),this._lerp(u,g,y),v),m)}seed(t){let{_grad3:e,_gradP:i,_perm:n,_p:s}=this,o=t;o>0&&o<1&&(o*=65536),(o=Math.floor(o))<256&&(o|=o<<8);for(let t=0;t<256;t++){let a=1&t?s[t]^255&o:s[t]^o>>8&255;n[t]=n[t+256]=a,i[t]=i[t+256]=e[a%12]}}_fade(t){return t*t*t*(t*(6*t-15)+10)}_lerp(t,e,i){return(1-i)*t+i*e}}let oP=2*Math.PI,oC={draw:!1,size:20,increment:.004,columns:0,rows:0,width:0,height:0,factor:{angle:.02,length:.01},offset:{x:4e4,y:4e4}};class oO{constructor(){this._calculateField=()=>{let{field:t,noiseGen:e,options:i}=this,n=i.factor.length,s=i.factor.angle;for(let o=0;o<i.columns;o++){let a=t[o];for(let t=0;t<i.rows;t++){let r=a[t];r.length=e.noise3d(o*n+i.offset.x,t*n+i.offset.y,this.noiseZ),r.angle=e.noise3d(o*s,t*s,this.noiseZ)*oP}}},this._drawField=t=>{let{field:e,options:i}=this;for(let n=0;n<i.columns;n++){let s=e[n];for(let e=0;e<i.rows;e++){let{angle:i,length:o}=s[e];t.setTransform(1,0,0,1,n*this.options.size,e*this.options.size),t.rotate(i),t.strokeStyle="white",t.beginPath(),t.moveTo(0,0),t.lineTo(0,this.options.size*o),t.stroke(),t.setTransform(1,0,0,1,0,0)}}},this._initField=()=>{let{columns:t,rows:e}=this.options;this.field=Array(t);for(let i=0;i<t;i++){this.field[i]=Array(e);for(let t=0;t<e;t++)this.field[i][t]=H.OWs.origin}},this.noiseGen=new oS,this.field=[],this.noiseZ=0,this.options=(0,H.ZBL)({},oC)}generate(t){let e=t.getPosition(),{size:i}=this.options,n={x:Math.max(Math.floor(e.x/i),0),y:Math.max(Math.floor(e.y/i),0)},{field:s}=this;return s?.[n.x]?.[n.y]?s[n.x][n.y].copy():H.OWs.origin}init(t){this.container=t,this._setup()}reset(){}update(){this.container&&(this._calculateField(),this.noiseZ+=this.options.increment,this.options.draw&&this.container.canvas.draw(t=>this._drawField(t)))}_resetField(){let t=this.container;if(!t)return;let e=t.actualOptions.particles.move.path.options,{options:i}=this;i.size=e.size>0?e.size:oC.size,i.increment=e.increment>0?e.increment:oC.increment,i.draw=!!e.draw;let n=e.offset;i.offset.x=n?.x??oC.offset.x,i.offset.y=n?.y??oC.offset.y;let s=e.factor;i.factor.angle=s?.angle??oC.factor.angle,i.factor.length=s?.length??oC.factor.length,i.width=t.canvas.size.width,i.height=t.canvas.size.height,this.options.seed=e.seed,this.noiseGen.seed(this.options.seed??(0,H.sZz)()),i.columns=Math.floor(this.options.width/this.options.size)+1,i.rows=Math.floor(this.options.height/this.options.size)+1,this._initField()}_setup(){this.noiseZ=0,this._resetField(),window.addEventListener("resize",()=>this._resetField())}}async function oT(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("perlinNoise",new oO,e)}class ok{constructor(){this.enable=!1,this.dimensions=2,this.radius=0,this.retries=30,this.steps=0}load(t){(0,H.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.dimensions&&(this.dimensions=t.dimensions),void 0!==t.radius&&(this.radius=t.radius),void 0===t.retries||(this.retries=t.retries))}}let oz=2*Math.PI;class oA{constructor(t,e,i,n,s){this.size={...t},this.radius=e,this.retries=i,this.dimensions=n,this.cellSize=Math.floor(this.radius/Math.sqrt(this.dimensions)),this.cols=Math.floor(this.size.width/this.cellSize),this.rows=Math.floor(this.size.height/this.cellSize),this.points=[],this.active=[],this.grid=[],this.firstPoint=s?{...s}:void 0,this.reset()}addPoint(t){let e={position:{...t},gridPosition:{x:Math.floor(t.x/this.cellSize),y:Math.floor(t.y/this.cellSize)}},i=this.points.length;this.points.push(e),this.grid[e.gridPosition.y][e.gridPosition.x]=i,this.active.push(i)}getRandom(t,e){return Math.floor((0,H.sZz)()*(e-t))+t}initialiseGrid(){for(let t=0;t<=this.rows;t++){this.grid[t]=[];for(let e=0;e<=this.cols;e++)this.grid[t][e]=-1}}reset(){this.points=[],this.active=[],this.grid=[],this.initialiseGrid(),this.firstPoint?this.addPoint(this.firstPoint):this.addPoint({x:this.getRandom(0,this.size.width),y:this.getRandom(0,this.size.height)})}async run(){for(this.reset();this.active.length>0;)await this.steps(1)}async steps(t){for(let e=0;e<t;e++)this.active.length<=0||await this._step()}_getNewPoint(t,e){let i=oz/this.retries*e,n=this.getRandom(this.radius,2*this.radius),s={x:Math.cos(i)*n,y:Math.sin(i)*n},o={x:Math.floor(t.position.x+s.x),y:Math.floor(t.position.y+s.y)},a={x:Math.floor(o.x/this.cellSize),y:Math.floor(o.y/this.cellSize)};if(o.x>0&&o.x<this.size.width&&o.y>0&&o.y<this.size.height&&this.grid[a.y][a.x]<0){for(let t=-1;t<=1;t++)for(let e=-1;e<=1;e++){let i={x:a.x+e,y:a.y+t};if(i.x>=0&&i.y>=0&&i.x<this.cols&&i.y<this.rows&&(i.x!==a.x||i.y!==a.y)&&this.grid[i.y][i.x]>=0){let t=this.grid[i.y][i.x],e=this.points[t];if((0,H.Spd)(o,e.position)<this.radius)return}}return o}}async _step(){let t=this.getRandom(0,this.active.length);return new Promise(e=>{let i=!1;for(let e=0;e<this.retries;e++){let n=this._getNewPoint(this.points[this.active[t]],e);
1if(n){i=!0,this.addPoint(n);break}}i||this.active.splice(t,1),e()})}}class oE{constructor(t,e){this._container=t,this._engine=e,this._currentIndex=0}async init(){await this._initData()}particlePosition(t){let e=this._container.actualOptions.poisson;if(this.poissonDisc&&e?.enable&&!(this._currentIndex>=this.poissonDisc.points.length))return t??this.poissonDisc?.points[this._currentIndex++]?.position}resize(){let t=this._container,e=t.actualOptions.poisson;e?.enable&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout(()=>{(async()=>{await this._initData(),await t.particles.redraw()})()},250))}stop(){delete this.poissonDisc}async _initData(){let t=this._container,e=t.actualOptions.poisson,i=t.actualOptions.particles,n=t.canvas.size,s=t.retina.pixelRatio;e?.enable&&(this._currentIndex=0,this.poissonDisc=new oA(n,e.radius?e.radius*s:Math.max((0,H.KIV)(i.size.value)*s,Math.sqrt(n.width*n.height/i.number.value)),e.retries,e.dimensions),e.steps>0?await this.poissonDisc.steps(e.steps):await this.poissonDisc.run())}}class oM{constructor(t){this.id="poisson",this._engine=t}getPlugin(t){return Promise.resolve(new oE(t,this._engine))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.poisson;i?.load===void 0&&(t.poisson=i=new ok),i.load(e?.poisson)}needsPlugin(t){return t?.poisson?.enable??!1}}async function oG(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new oM(t),e)}!function(){try{if("undefined"==typeof window)return;"SVGPathSeg"in window||(window.SVGPathSeg=function(t,e,i){this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=i},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",t)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",t),this._x=e,this._y=i},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}
1),window.SVGPathSegMovetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",t),this._x=e,this._y=i},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",t),this._x=e,this._y=i},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",t),this._x=e,this._y=i},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(t,e,i,n,s,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",t),this._x=e,this._y=i,this._x1=n,this._y1=s,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter}  ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}
1),window.SVGPathSegCurvetoCubicRel=function(t,e,i,n,s,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",t),this._x=e,this._y=i,this._x1=n,this._y1=s,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(t,e,i,n,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",t),this._x=e,this._y=i,this._x1=n,this._y1=s},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(t,e,i,n,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",t),this._x=e,this._y=i,this._x1=n,this._y1=s},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1}
1,set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(t,e,i,n,s,o,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",t),this._x=e,this._y=i,this._r1=n,this._r2=s,this._angle=o,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag?"1":"0"} ${this._sweepFlag?"1":"0"} ${this._x} ${this._y}`},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(t,e,i,n,s,o,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",t),this._x=e,this._y=i,this._r1=n,this._r2=s,this._angle=o,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag?"1":"0"} ${this._sweepFlag?"1":"0"} ${this._x} ${this._y}`},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",t),this._x=e},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x}`},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",t),this._x=e},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x}`},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",t),this._y=e},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._y}`},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)}
1,Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",t),this._y=e},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._y}`},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,n,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",t),this._x=e,this._y=i,this._x2=n,this._y2=s},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(t,e,i,n,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",t),this._x=e,this._y=i,this._x2=n,this._y2=s},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}
1,Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return`${this.pathSegTypeAsLetter} ${this._x} ${this._y}`},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new window.SVGPathSegMovetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new window.SVGPathSegMovetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new window.SVGPathSegLinetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new window.SVGPathSegLinetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,i,n,s,o){return new window.SVGPathSegCurvetoCubicAbs(void 0,t,e,i,n,s,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,i,n,s,o){return new window.SVGPathSegCurvetoCubicRel(void 0,t,e,i,n,s,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,i,n){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,t,e,i,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,i,n){return new window.SVGPathSegCurvetoQuadraticRel(void 0,t,e,i,n)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,i,n,s,o,a){return new window.SVGPathSegArcAbs(void 0,t,e,i,n,s,o,a)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,i,n,s,o,a){return new window.SVGPathSegArcRel(void 0,t,e,i,n,s,o,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new window.SVGPathSegLinetoHorizontalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new window.SVGPathSegLinetoHorizontalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new window.SVGPathSegLinetoVerticalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new window.SVGPathSegLinetoVerticalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,n){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,t,e,i,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,i,n){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,t,e,i,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,t,e)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw"Invalid arguments.";let e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));let i=e.pathSegList.numberOfItems-1;if(i<=0)return 0;do{if(e.pathSegList.removeItem(i),t>e.getTotalLength())break;i--}while(i>0);return i})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathSegList.prototype,"length",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(!this._pathElement)return;let e=!1;t.forEach(function(t){"d"==t.attributeName&&(e=!0)}),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(t){t._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},window.SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);let e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},window.SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList._pathSegArrayAsString=function(t){let e="",i=!0;return t.forEach(function(t){i?(i=!1,e+=t._asPathString()):e+=` ${t._asPathString()}`}),e},window.SVGPathSegList.prototype._parsePath=function(t){if(!t||!t.length)return[];let e=this,i=function(){this.pathSegList=[]};i.prototype.appendSegment=function(t){this.pathSegList.push(t)};let n=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};
1n.prototype._isCurrentSpace=function(){let t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||"	"==t||"\r"==t||"\f"==t)},n.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},n.prototype._skipOptionalSpacesOrDelimiter=function(){return(!(this._currentIndex<this._endIndex)||!!this._isCurrentSpace()||","==this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},n.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},n.prototype.peekSegmentType=function(){let t=this._string[this._currentIndex];return this._pathSegTypeFromChar(t)},n.prototype._pathSegTypeFromChar=function(t){switch(t){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},n.prototype._nextCommandHelper=function(t,e){return("+"==t||"-"==t||"."==t||t>="0"&&t<="9")&&e!=window.SVGPathSeg.PATHSEG_CLOSEPATH?e==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:e==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:e:window.SVGPathSeg.PATHSEG_UNKNOWN},n.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;let t=this.peekSegmentType();return t==window.SVGPathSeg.PATHSEG_MOVETO_ABS||t==window.SVGPathSeg.PATHSEG_MOVETO_REL},n.prototype._parseNumber=function(){let t=0,e=0,i=1,n=0,s=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,s=-1),this._currentIndex==this._endIndex||("0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))return;let r=this._currentIndex;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)this._currentIndex++;if(this._currentIndex!=r){let t=this._currentIndex-1,i=1;for(;t>=r;)e+=i*(this._string.charAt(t--)-"0"),i*=10}if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||"0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)i*=10,n+=(this._string.charAt(this._currentIndex)-"0")/i,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if
1(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),this._currentIndex>=this._endIndex||"0">this._string.charAt(this._currentIndex)||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&"9">=this._string.charAt(this._currentIndex);)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}let l=e+n;if(l*=s,t&&(l*=Math.pow(10,o*t)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l},n.prototype._parseArcFlag=function(){if(this._currentIndex>=this._endIndex)return;let t=!1,e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t},n.prototype.parseSegment=function(){let t;let i=this._string[this._currentIndex],n=this._pathSegTypeFromChar(i);if(n==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN||(n=this._nextCommandHelper(i,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(e);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicRel(e,t.x,t.y,t.x1,t.y1,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(e,t.x,t.y,t.x1,t.y1,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return t={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(e,t.x,t.y,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return t={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(e,t.x,t.y,t.x2,t.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(e,t.x,t.y,t.x1,t.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(e,t.x,t.y,t.x1,t.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return t={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(e,t.x,t.y,t.x1,t.y1,t.arcAngle,t.arcLarge,t.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return t={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(e,t.x,t.y,t.x1,t.y1,t.arcAngle,t.arcLarge,t.arcSweep);default:throw"Unknown path seg type."}};let s=new i,o=new n(t);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){let t=o.parseSegment();if(!t)return[];s.appendSegment(t)}return s.pathSegList})}catch(t){console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/tsparticles/tsparticles",t)}}();class oV{constructor(t){this._engine=t,this.color=new H.OzF,this.width=.5,this.opacity=1}load(t){(0,H.Ft)(t)||(this.color=H.OzF.create(this.color,t.color),(0,H.HD0)(this.color.value)&&(this.opacity=(0,H.gE)(this._engine,this.color.value)??this.opacity),void 0!==t.opacity&&(this.opacity=t.opacity),void 0===t.width||(this.width=t.width))}}class oR{constructor(t){this.enable=!1,this.stroke=new oV(t)}load(t){if((0,H.Ft)(t))return;void 0!==t.enable&&(this.enable=t.enable);let e=t.stroke;this.stroke.load(e)}}
1(g=R||(R={})).equidistant="equidistant",g.onePerPoint="one-per-point",g.perPoint="per-point",g.randomLength="random-length",g.randomPoint="random-point";class oI{constructor(){this.arrangement=R.onePerPoint}load(t){(0,H.Ft)(t)||void 0===t.arrangement||(this.arrangement=t.arrangement)}}class oL{constructor(){this.path=[],this.size={height:0,width:0}}load(t){(0,H.Ft)(t)||(void 0!==t.path&&(this.path=t.path),void 0===t.size||(void 0!==t.size.width&&(this.size.width=t.size.width),void 0===t.size.height||(this.size.height=t.size.height)))}}(y=I||(I={})).path="path",y.radius="radius";class oD{constructor(){this.radius=10,this.type=I.path}load(t){(0,H.Ft)(t)||(void 0!==t.radius&&(this.radius=t.radius),void 0===t.type||(this.type=t.type))}}(m=L||(L={})).inline="inline",m.inside="inside",m.outside="outside",m.none="none";class oF{constructor(t){this.draw=new oR(t),this.enable=!1,this.inline=new oI,this.move=new oD,this.scale=1,this.type=L.none}load(t){(0,H.Ft)(t)||(this.draw.load(t.draw),this.inline.load(t.inline),this.move.load(t.move),void 0!==t.scale&&(this.scale=t.scale),void 0!==t.type&&(this.type=t.type),void 0!==t.enable?this.enable=t.enable:this.enable=this.type!==L.none,void 0!==t.url&&(this.url=t.url),void 0!==t.data&&((0,H.HD0)(t.data)?this.data=t.data:(this.data=new oL,this.data.load(t.data))),void 0!==t.position&&(this.position=(0,H.ZBL)({},t.position)))}}let oj={min:0,max:1},oH=`${H.gK4} No polygon data loaded.`,oB=`${H.gK4} No polygon found, you need to specify SVG url in config.`,oN={x:0,y:0};class o${constructor(t,e){this._checkInsidePolygon=t=>{let e=this._container,i=e.actualOptions.polygon;if(!i?.enable||i.type===L.none||i.type===L.inline)return!0;if(!this.raw)throw Error(oB);let n=e.canvas.size,s=t?.x??(0,H.sZz)()*n.width,o=t?.y??(0,H.sZz)()*n.height,a=!1;for(let t=0,e=this.raw.length-1;t<this.raw.length;e=t++){let i=this.raw[t],n=this.raw[e];i.y>o!=n.y>o&&s<(n.x-i.x)*(o-i.y)/(n.y-i.y)+i.x&&(a=!a)}return i.type===L.inside?a:i.type===L.outside&&!a},this._createPath2D=()=>{if(this._container.actualOptions.polygon&&this.paths?.length)for(let t of this.paths){let e=t.element?.getAttribute("d");if(e){let i=new Path2D(e),n=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix(),s=new Path2D,o=n.scale(this._scale);s.addPath?(s.addPath(i,o),t.path2d=s):delete t.path2d}else delete t.path2d;if(t.path2d??!this.raw)continue;t.path2d=new Path2D;let i=this.raw[0];t.path2d.moveTo(i.x,i.y),this.raw.forEach((e,i)=>{i>0&&t.path2d?.lineTo(e.x,e.y)}),t.path2d.closePath()}},this._downloadSvgPath=async(t,e)=>{let i=this._container.actualOptions.polygon;if(!i)return;let n=t??i.url,s=e??!1;if(!n||void 0!==this.paths&&!s)return this.raw;let o=await fetch(n);if(!o.ok)throw Error(`${H.gK4} occurred during polygon mask download`);return this._parseSvgPath(await o.text(),e)},this._drawPoints=()=>{if(this.raw)for(let t of this.raw)this._container.particles.addParticle({x:t.x,y:t.y})},this._getEquidistantPointByIndex=t=>{let e=this._container.actualOptions;if(!e.polygon)return;if(!this.raw?.length||!this.paths?.length)throw Error(oH);let i=0,n,s=this.paths.reduce((t,e)=>t+e.length,0)/e.particles.number.value;for(let e of this.paths){let o=s*t-i;if(o<=e.length){n=e.element.getPointAtLength(o);break}i+=e.length}let o=this._scale;return{x:(n?.x??oN.x)*o+(this.offset?.x??oN.x),y:(n?.y??oN.y)*o+(this.offset?.y??oN.y)}},this._getPointByIndex=t=>{if(!this.raw?.length)throw Error(oH);let e=this.raw[t%this.raw.length];return{x:e.x,y:e.y}},this._getRandomPoint=()=>{if(!this.raw?.length)throw Error(oH);let t=(0,H.c86)(this.raw);return{x:t.x,y:t.y}},this._getRandomPointByLength=()=>{if(!this._container.actualOptions.polygon)return;if(!this.raw?.length||!this.paths?.length)throw Error(oH);let t=(0,H.c86)(this.paths),e=Math.floor((0,H.sZz)()*t.length)+1,i=t.element.getPointAtLength(e),n=this._scale;return{x:i.x*n+(this.offset?.x??oN.x),y:i.y*n+(this.offset?.y??oN.y)}},this._initRawData=async t=>{let e=this._container.actualOptions.polygon;if(e){if(e.url)this.raw=await this._downloadSvgPath(e.url,t);else if(e.data){let i;let n=e.data;if((0,H.HD0)(n))i=n;else{let t=t=>`<path d="${t}" />`,e=(0,H.kJL)(n.path)?n.path.map(t).join(""):t(n.path);i=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${n.size.width}" height="${n.size.height}">${e}</svg>`}this.raw=this._parseSvgPath(i,t)}this._createPath2D(),this._engine.dispatchEvent("polygonMaskLoaded",{container:this._container})}},this._parseSvgPath=(t,e)=>{if(void 0!==this.paths&&!e)return this.raw;let i=this._container,n=i.actualOptions.polygon;if(!n)return;let s=new DOMParser().parseFromString(t,"image/svg+xml"),o=s.getElementsByTagName("svg")[0],a=o.getElementsByTagName("path");a.length||(a=s.getElementsByTagName("path")),this.paths=[];for(let t=0;t<a.length;t++){let e=a.item(t);e&&this.paths.push({element:e,length:e.getTotalLength()})}let r=this._scale;this.dimension.width=parseFloat(o.getAttribute("width")??"0")*r,this.dimension.height=parseFloat(o.getAttribute("height")??"0")*r;let l=n.position??{x:50,y:50},h=i.canvas.size;return this.offset={x:h.width*l.x/H.tZy-.5*this.dimension.width,y:h.height*l.y/H.tZy-.5*this.dimension.height}
1,function(t,e,i){let n=[];for(let s of t){let t=s.element.pathSegList,o=t?.numberOfItems??0,a={x:0,y:0};for(let s=0;s<o;s++){let o=t?.getItem(s),r=window.SVGPathSeg;switch(o?.pathSegType){case r.PATHSEG_MOVETO_ABS:case r.PATHSEG_LINETO_ABS:case r.PATHSEG_CURVETO_CUBIC_ABS:case r.PATHSEG_CURVETO_QUADRATIC_ABS:case r.PATHSEG_ARC_ABS:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:a.x=o.x,a.y=o.y;break;case r.PATHSEG_LINETO_HORIZONTAL_ABS:a.x=o.x;break;case r.PATHSEG_LINETO_VERTICAL_ABS:a.y=o.y;break;case r.PATHSEG_LINETO_REL:case r.PATHSEG_MOVETO_REL:case r.PATHSEG_CURVETO_CUBIC_REL:case r.PATHSEG_CURVETO_QUADRATIC_REL:case r.PATHSEG_ARC_REL:case r.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:case r.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:a.x+=o.x,a.y+=o.y;break;case r.PATHSEG_LINETO_HORIZONTAL_REL:a.x+=o.x;break;case r.PATHSEG_LINETO_VERTICAL_REL:a.y+=o.y;break;case r.PATHSEG_UNKNOWN:case r.PATHSEG_CLOSEPATH:continue}n.push({x:a.x*e+i.x,y:a.y*e+i.y})}}return n}(this.paths,r,this.offset)},this._polygonBounce=(t,e,i)=>{let n=this._container.actualOptions.polygon;if(!this.raw||!n?.enable||i!==H.DYc.top)return!1;if(n.type===L.inside||n.type===L.outside){let e,i,n;let s=t.getPosition(),o=t.getRadius();for(let a=0,r=this.raw.length-1;a<this.raw.length;r=a++){let l=this.raw[a],h=this.raw[r];e=function(t,e,i){let{dx:n,dy:s}=(0,H.oW6)(i,t),{dx:o,dy:a}=(0,H.oW6)(e,t),r=(n*o+s*a)/(o**2+a**2),l={x:t.x+o*r,y:t.y+a*r,isOnSegment:r>=oj.min&&r<=oj.max};return r<oj.min?(l.x=t.x,l.y=t.y):r>oj.max&&(l.x=e.x,l.y=e.y),l}(l,h,s);let c=(0,H.oW6)(s,e);if([i,n]=[c.dx,c.dy],c.distance<o)return function(t,e,i){let{dx:n,dy:s}=(0,H.oW6)(t,e),o=Math.atan2(s,n),a=H.OWs.create(Math.sin(o),-Math.cos(o)),r=2*(i.x*a.x+i.y*a.y);a.multTo(r),i.subFrom(a)}(l,h,t.velocity),!0}if(e&&void 0!==i&&void 0!==n&&!this._checkInsidePolygon(s)){let i={x:1,y:1},n=2*o;return s.x>=e.x&&(i.x=-1),s.y>=e.y&&(i.y=-1),t.position.x=e.x+n*i.x,t.position.y=e.y+n*i.y,t.velocity.mult(-1),!0}}else if(n.type===L.inline&&t.initialPosition){let e=(0,H.Spd)(t.initialPosition,t.getPosition()),{velocity:i}=t;if(e>this._moveRadius)return i.x=.5*i.y-i.x,i.y=.5*i.x-i.y,!0}return!1},this._randomPoint=()=>{let t;let e=this._container,i=e.actualOptions.polygon;if(i){if(i.type===L.inline)switch(i.inline.arrangement){case R.randomPoint:t=this._getRandomPoint();break;case R.randomLength:t=this._getRandomPointByLength();break;case R.equidistant:t=this._getEquidistantPointByIndex(e.particles.count);break;case R.onePerPoint:case R.perPoint:default:t=this._getPointByIndex(e.particles.count)}else{let i=e.canvas.size;t={x:(0,H.sZz)()*i.width,y:(0,H.sZz)()*i.height}}return this._checkInsidePolygon(t)?t:this._randomPoint()}},this._container=t,this._engine=e,this.dimension={height:0,width:0},this._moveRadius=0,this._scale=1}clickPositionValid(t){let e=this._container.actualOptions.polygon;return!!e?.enable&&e.type!==L.none&&e.type!==L.inline&&this._checkInsidePolygon(t)}draw(t){if(!this.paths?.length)return;let e=this._container.actualOptions.polygon;if(!e?.enable)return;let i=e.draw;if(!i.enable)return;let n=this.raw;for(let e of this.paths){let s=e.path2d;t&&(s&&this.offset?function(t,e,i,n,s){e.setTransform(1,0,0,1,s.x,s.y);let o=(0,H.tXk)(t,n.color);o&&(e.strokeStyle=(0,H.izR)(o,n.opacity),e.lineWidth=n.width,e.stroke(i),e.resetTransform())}(this._engine,t,s,i.stroke,this.offset):n&&function(t,e,i,n){let s=(0,H.tXk)(t,n.color);if(!s)return;let o=i[0];for(let t of(e.beginPath(),e.moveTo(o.x,o.y),i))e.lineTo(t.x,t.y);e.closePath(),e.strokeStyle=(0,H.izR)(s),e.lineWidth=n.width,e.stroke()}(this._engine,t,n,i.stroke))}}
1async init(){let t=this._container,e=t.actualOptions.polygon,i=t.retina.pixelRatio;e&&(this._moveRadius=e.move.radius*i,this._scale=e.scale*i,e.enable&&await this._initRawData())}particleBounce(t,e,i){return this._polygonBounce(t,e,i)}particlePosition(t){let e=this._container.actualOptions.polygon;if(e?.enable&&(this.raw?.length??0)>0)return(0,H.ZBL)({},t||this._randomPoint())}particlesInitialization(){let t=this._container.actualOptions.polygon;return!!t?.enable&&t.type===L.inline&&(t.inline.arrangement===R.onePerPoint||t.inline.arrangement===R.perPoint)&&(this._drawPoints(),!0)}resize(){let t=this._container,e=t.actualOptions.polygon;e?.enable&&e.type!==L.none&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout(()=>{(async()=>{await this._initRawData(!0),await t.particles.redraw()})()},250))}stop(){delete this.raw,delete this.paths}}class oU{constructor(t){this.id="polygonMask",this._engine=t}getPlugin(t){return Promise.resolve(new o$(t,this._engine))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.polygon;i?.load===void 0&&(t.polygon=i=new oF(this._engine)),i.load(e?.polygon)}needsPlugin(t){return t?.polygon?.enable??(t?.polygon?.type!==void 0&&t.polygon.type!==L.none)}}async function oq(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new oU(t),e)}class oW{constructor(){this._createDirs=()=>{this.dirsList=[];for(let t=0;t<360;t+=360/this.options.sides){let e=this.options.angle+t;this.dirsList.push(H.OWs.create(Math.cos(e*Math.PI/180),Math.sin(e*Math.PI/180)))}},this.dirsList=[],this.options={sides:6,turnSteps:20,angle:30}}generate(t){let{sides:e}=this.options;void 0===t.hexStep&&(t.hexStep=0),void 0===t.hexDirection&&(t.hexDirection=6===e?(3*(0,H.sZz)()|0)*2:(0,H.sZz)()*e|0),void 0===t.hexSpeed&&(t.hexSpeed=t.velocity.length),t.hexStep%this.options.turnSteps==0&&(t.hexDirection=(0,H.sZz)()>.5?(t.hexDirection+1)%e:(t.hexDirection+e-1)%e),t.velocity.x=0,t.velocity.y=0,t.hexStep++;let i=this.dirsList[t.hexDirection];return H.OWs.create(i.x*t.hexSpeed,i.y*t.hexSpeed)}init(t){let e=t.actualOptions.particles.move.path.options;this.options.sides=e.sides>0?e.sides:6,this.options.angle=e.angle??30,this.options.turnSteps=e.turnSteps>=0?e.turnSteps:20,this._createDirs()}reset(t){delete t.hexStep,delete t.hexDirection,delete t.hexSpeed}update(){}}async function oZ(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("polygonPathGenerator",new oW,e)}let oQ=2*Math.PI;class oY{constructor(){this.validTypes=["rounded-polygon"]}draw(t){let{context:e,particle:i,radius:n}=t;!function(t,e,i){let n=e[0],s=e[1],o=e.length;t.moveTo((n.x+s.x)*.5,(n.y+s.y)*.5);for(let a=1;a<=o;a++)n=s,s=e[(a+1)%o],t.arcTo(n.x,n.y,(n.x+s.x)*.5,(n.y+s.y)*.5,i)}(e,function(t,e,i=0){let n=oQ/t,s=[];for(let o=0;o<t;o++)s.push({x:Math.cos(o*n+i)*e,y:Math.sin(o*n+i)*e});return s}(i.sides,n),i.borderRadius??5)}getSidesCount(t){let e=t.shapeData;return Math.round((0,H.Gu7)(e?.sides??5))}particleInit(t,e){let i=e.shapeData;e.borderRadius=Math.round((0,H.Gu7)(i?.radius??5))*t.retina.pixelRatio}}async function oK(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new oY,e)}let oX=Math.sqrt(2);class oJ{constructor(){this.validTypes=["rounded-rect"]}draw(t){let{context:e,particle:i,radius:n}=t,s=n/oX,o=2*s,a=i.borderRadius??5;"roundRect"in e?e.roundRect(-s,-s,o,o,a):function(t,e,i,n){let{x:s,y:o,width:a,height:r}={x:-e,y:-e,height:i,width:i},l=s+a,h=o+r;t.moveTo(s+n,o),t.lineTo(l-n,o),t.quadraticCurveTo(l,o,l,o+n),t.lineTo(l,o+r-n),t.quadraticCurveTo(l,h,l-n,h),t.lineTo(s+n,h),t.quadraticCurveTo(s,h,s,h-n),t.lineTo(s,o+n),t.quadraticCurveTo(s,o,s+n,o)}(e,s,o,a)}particleInit(t,e){let i=e.shapeData;e.borderRadius=(0,H.Gu7)(i?.radius??5)*t.retina.pixelRatio}}async function o0(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new oJ,e)}(v=D||(D={}))[v.normal=0]="normal",v[v.reverse=1]="reverse";class o1{constructor(){this._paths=[],this._reverse=!1,this._size={width:0,height:0},this._scale=1,this._offset={x:0,y:0,mode:H.lZr.percent},this._width=0}generate(t,e){let i=t.container.retina.pixelRatio;void 0===t.svgDirection&&(t.svgDirection=(0,H.sZz)()>H.vqy?D.normal:D.reverse),void 0===t.svgPathIndex&&(t.svgPathIndex=Math.floor(Math.random()*this._paths.length)),void 0===t.svgSpeed&&(t.svgSpeed=t.velocity.mult((t.retina.moveSpeed??1)*.5).length),void 0===t.svgStep&&(t.svgStep=(0,H.vdf)({min:0,max:this._paths[t.svgPathIndex].length})*i),void 0===t.svgOffset&&(t.svgOffset={width:(0,H.vdf)({min:-(.5*this._width),max:.5*this._width})*i,height:(0,H.vdf)({min:-(.5*this._width),max:.5*this._width})*i}),void 0===t.svgInitialPosition&&(t.svgInitialPosition={...t.position}),t.velocity.x=0,t.velocity.y=0,t.svgDirection===D.normal?t.svgStep+=t.svgSpeed*e.factor:t.svgStep-=t.svgSpeed*e.factor;let n=this._paths[t.svgPathIndex];if(n){let e=n.length;t.svgStep>=e?(t.svgPathIndex=t.svgPathIndex+1,t.svgPathIndex>=this._paths.length&&(this._reverse?(t.svgPathIndex=this._paths.length-1,t.svgDirection=D.reverse):(t.svgPathIndex=0,t.svgStep=0))):t.svgStep<=0&&(t.svgPathIndex=t.svgPathIndex-1,t.svgPathIndex<0&&(this._reverse?(t.svgPathIndex=0,t.svgDirection=D.normal):(t.svgPathIndex=this._paths.length-1,n=this._paths[t.svgPathIndex],t.svgStep=n.length))),n=this._paths[t.svgPathIndex]}if(n){let e=n.element.getPointAtLength(t.svgStep),s=t.container.canvas.size,o=(0,H.bti)(this._offset,s),a=this._scale*i;t.position.x=(e.x-.5*this._size.width)*a+t.svgInitialPosition.x+o.x+t.svgOffset.width,t.position.y=(e.y-.5*this._size.height)*a+t.svgInitialPosition.y+o.y+t.svgOffset.height}return H.OWs.origin}init(t){let e=t.actualOptions.particles.move.path.options,i=e.position??this._offset;if(this._reverse=e.reverse??this._reverse,this._scale=e.scale??1,this._offset.x=i.x,this._offset.y=i.y,this._offset.mode=i.mode,this._width=e.width??0,e.url&&!e.path){let t=e.url;(async()=>{let e=await fetch(t),i=await e.text(),n=new DOMParser().parseFromString(i,"image/svg+xml"),s=n.getElementsByTagName("svg")[0],o=s.getElementsByTagName("path");o.length||(o=n.getElementsByTagName("path")),this._paths=[];for(let t=0;t<o.length;t++){let e=o.item(t);e&&this._paths.push({element:e,length:e.getTotalLength()})}this._size.height=parseFloat(s.getAttribute("height")??"0"),this._size.width=parseFloat(s.getAttribute("width")??"0")})()}else if(e.path){let t=e.path;for(let e of(this._paths=[],t.data)){let t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",e),this._paths.push({element:t,length:t.getTotalLength()})}this._size.height=t.size.height,this._size.width=t.size.width}}reset(){}update(){}}async function o2(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("svgPathGenerator",new o1,e)}let o5={size:20,increment:.004,columns:0,rows:0,layers:0,width:0,height:0,offset:{x:4e4,y:4e4,z:4e4}};class o3{constructor(){let t=new tP;this._simplex=t.noise4d,this.field=[],this.noiseW=0,this.options=(0,H.ZBL)({},o5)}generate(t){let e=t.getPosition(),i={x:Math.max(Math.floor(e.x/this.options.size),0),y:Math.max(Math.floor(e.y/this.options.size),0),z:Math.max(Math.floor(e.z/this.options.size),0)},n=H.OWs.origin;return this.field?.[i.x]?.[i.y]?.[i.z]&&n.setTo(this.field[i.x][i.y][i.z]),n}init(t){this.container=t,this._setup()}reset(){}update(){this.container&&(this._calculateField(),this.noiseW+=this.options.increment)}_calculateField(){let t=this.options;for(let e=0;e<t.columns;e++)for(let i=0;i<t.rows;i++)for(let n=0;n<t.layers;n++)this.field[e][i][n].angle=this._simplex.noise(e/50,i/50,n/50,this.noiseW)*Math.PI*2,this.field[e][i][n].length=this._simplex.noise(e/100+t.offset.x,i/100+t.offset.y,n/100+t.offset.z,this.noiseW)}_initField(){this.field=Array(this.options.columns);for(let t=0;t<this.options.columns;t++){this.field[t]=Array(this.options.rows);for(let e=0;e<this.options.rows;e++){this.field[t][e]=Array(this.options.layers);for(let i=0;i<this.options.layers;i++)this.field[t][e][i]=H.OWs.origin}}}_resetField(){let t=this.container;if(!t)return;let e=t.actualOptions.particles.move.path.options;this.options.size=e.size>
10?e.size:o5.size,this.options.increment=e.increment>0?e.increment:o5.increment,this.options.width=t.canvas.size.width,this.options.height=t.canvas.size.height;let i=e.offset;this.options.offset.x=i?.x??o5.offset.x,this.options.offset.y=i?.y??o5.offset.y,this.options.offset.z=i?.z??o5.offset.z,this.options.seed=e.seed??o5.seed,this._simplex.seed(this.options.seed??(0,H.sZz)()),this.options.columns=Math.floor(this.options.width/this.options.size)+1,this.options.rows=Math.floor(this.options.height/this.options.size)+1,this.options.layers=Math.floor(t.zLayers/this.options.size)+1,this._initField()}_setup(){this.noiseW=0,this._resetField(),addEventListener("resize",()=>this._resetField())}}async function o4(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("simplexNoise",new o3,e)}class o9{constructor(){this.loop=!1,this.source=""}load(t){(0,H.Ft)(t)||((0,H.Kn2)(t)?(void 0!==t.loop&&(this.loop=t.loop),void 0!==t.source&&(this.source=t.source)):this.source=t)}}class o7{constructor(){this.duration=500,this.value=[]}load(t){(0,H.Ft)(t)||(void 0!==t.duration&&(this.duration=t.duration),void 0===t.value||(this.value=t.value))}}class o6{constructor(){this.loop=!1,this.melodies=[],this.notes=[]}load(t){(0,H.Ft)(t)||(void 0!==t.loop&&(this.loop=t.loop),void 0!==t.melodies&&(this.melodies=t.melodies.map(t=>{let e=new o6;return e.load(t),e})),void 0!==t.notes&&(this.notes=t.notes.map(t=>{let e=new o7;return e.load(t),e})))}}class o8{constructor(){this.event=[],this.notes=[]}load(t){if(!(0,H.Ft)(t)&&(void 0!==t.event&&(this.event=t.event),void 0!==t.audio&&((0,H.kJL)(t.audio)?this.audio=t.audio.map(t=>{let e=new o9;return e.load(t),e}):(this.audio=new o9,this.audio.load(t.audio))),void 0!==t.notes&&(this.notes=t.notes.map(t=>{let e=new o7;return e.load(t),e})),void 0!==t.melodies&&(this.melodies=t.melodies.map(t=>{let e=new o6;return e.load(t),e})),t.filter)){if((0,H.HD0)(t.filter)){let e=window[t.filter];(0,H.mf2)(e)&&(this.filter=e)}else this.filter=t.filter}}}class at{constructor(){this.width=24,this.height=24,this.style=""}load(t){(0,H.Ft)(t)||(void 0!==t.path&&(this.path=t.path),void 0!==t.svg&&(this.svg=t.svg),void 0!==t.width&&(this.width=t.width),void 0===t.height||(this.height=t.height))}}class ae{constructor(){this.mute=new at,this.unmute=new at,this.volumeDown=new at,this.volumeUp=new at,this.enable=!1,this.mute.svg=`<?xml version="1.0"?>
2<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"
3    xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
4    xmlns:xlink="http://www.w3.org/1999/xlink">
5    <g id="Layer_1">
6        <path fill="#fff" d="M19.707,5.293c-0.391-0.391-1.023-0.391-1.414,0l-1.551,1.551c-0.345-0.688-0.987-1.02-1.604-1.02c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C10.357,8.561,8.904,9,8,9c-1.654,0-3,1.346-3,3v2c0,1.237,0.754,2.302,1.826,2.76l-1.533,1.533c-0.391,0.391-0.391,1.023,0,1.414C5.488,19.902,5.744,20,6,20s0.512-0.098,0.707-0.293l2.527-2.527c0.697,0.174,1.416,0.455,1.875,0.762l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C16.035,20.176,17,19.495,17,18V9.414l2.707-2.707C20.098,6.316,20.098,5.684,19.707,5.293z M14.891,7.941c0.038-0.025,0.073-0.046,0.104-0.062C14.998,7.914,15,7.954,15,8v1.293l-2,2V9.202L14.891,7.941z M7,12c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v2.439l-2.83,2.83C8.757,15.046,8.356,15,8,15c-0.552,0-1-0.448-1-1V12z M10.301,15.406L12,13.707v2.439C11.519,15.859,10.925,15.604,10.301,15.406z M14.994,18.12c-0.03-0.016-0.065-0.036-0.104-0.062L13,16.798v-4.091l2-2V18C15,18.046,14.998,18.086,14.994,18.12z"/>
7    </g>
8</svg>`,this.unmute.svg=`<?xml version="1.0"?>
9<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"
10    xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
11    xmlns:xlink="http://www.w3.org/1999/xlink">
12    <g id="Layer_1">
13        <path fill="#fff" d="M17.138,5.824c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C12.357,8.561,10.904,9,10,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C18.035,20.176,19,19.495,19,18V8C19,6.505,18.035,5.824,17.138,5.824z M14,16.146C12.907,15.495,11.211,15,10,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146V16.146z M17,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L15,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C16.998,7.914,17,7.954,17,8V18z"/>
14    </g>
15</svg>`,this.volumeDown.svg=`<?xml version="1.0"?>
16<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"
17    xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
18    xmlns:xlink="http://www.w3.org/1999/xlink">
19    <g id="Layer_1">
20        <path fill="#fff" d="M15.138,5.824c-0.449,0-0.905,0.152-1.356,0.453l-2.672,1.781C10.357,8.561,8.904,9,8,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C16.035,20.176,17,19.495,17,18V8C17,6.505,16.035,5.824,15.138,5.824z M8,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v6.293C10.907,15.495,9.211,15,8,15z M15,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L13,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C14.998,7.914,15,7.954,15,8V18z"/>
21        <path fill="#fff" d="M18.292,10.294c-0.39,0.391-0.39,1.023,0.002,1.414c0.345,0.345,0.535,0.803,0.535,1.291c0,0.489-0.19,0.948-0.536,1.294c-0.391,0.39-0.391,1.023,0,1.414C18.488,15.902,18.744,16,19,16s0.512-0.098,0.707-0.293c0.724-0.723,1.122-1.685,1.122-2.708s-0.398-1.984-1.123-2.707C19.317,9.903,18.683,9.901,18.292,10.294z"/>
22    </g>
23</svg>`,this.volumeUp.svg=`<?xml version="1.0"?>
24<svg baseProfile="tiny" height="24px" version="1.2" viewBox="0 0 24 24" width="24px"
25    xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
26    xmlns:xlink="http://www.w3.org/1999/xlink">
27    <g id="Layer_1">
28        <path fill="#fff" d="M16.706,10.292c-0.389-0.389-1.023-0.391-1.414,0.002c-0.39,0.391-0.39,1.023,0.002,1.414c0.345,0.345,0.535,0.803,0.535,1.291c0,0.489-0.19,0.948-0.536,1.294c-0.391,0.39-0.391,1.023,0,1.414C15.488,15.902,15.744,16,16,16s0.512-0.098,0.707-0.293c0.724-0.723,1.122-1.685,1.122-2.708S17.431,11.
28015,16.706,10.292z"/>
29        <path fill="#fff" d="M18.706,8.292c-0.391-0.389-1.023-0.39-1.414,0.002c-0.39,0.391-0.39,1.024,0.002,1.414c0.879,0.877,1.363,2.044,1.364,3.287c0.001,1.246-0.484,2.417-1.365,3.298c-0.391,0.391-0.391,1.023,0,1.414C17.488,17.902,17.744,18,18,18s0.512-0.098,0.707-0.293c1.259-1.259,1.952-2.933,1.951-4.713C20.657,11.217,19.964,9.547,18.706,8.292z"/>
30        <path fill="#fff" d="M20.706,6.292c-0.391-0.389-1.023-0.39-1.414,0.002c-0.39,0.391-0.39,1.024,0.002,1.414c1.412,1.409,2.191,3.285,2.192,5.284c0.002,2.002-0.777,3.885-2.193,5.301c-0.391,0.391-0.391,1.023,0,1.414C19.488,19.902,19.744,20,20,20s0.512-0.098,0.707-0.293c1.794-1.794,2.781-4.18,2.779-6.717C23.485,10.457,22.497,8.078,20.706,6.292z"/>
31        <path fill="#fff" d="M12.138,5.824c-0.449,0-0.905,0.152-1.356,0.453L8.109,8.059C7.357,8.561,5.904,9,5,9c-1.654,0-3,1.346-3,3v2c0,1.654,1.346,3,3,3c0.904,0,2.357,0.439,3.109,0.941l2.672,1.781c0.451,0.301,0.907,0.453,1.356,0.453C13.035,20.176,14,19.495,14,18V8C14,6.505,13.035,5.824,12.138,5.824z M5,15c-0.552,0-1-0.448-1-1v-2c0-0.552,0.448-1,1-1c1.211,0,2.907-0.495,4-1.146v6.293C7.907,15.495,6.211,15,5,15z M12,18c0,0.046-0.002,0.086-0.006,0.12c-0.03-0.016-0.065-0.036-0.104-0.062L10,16.798V9.202l1.891-1.261c0.038-0.025,0.073-0.046,0.104-0.062C11.998,7.914,12,7.954,12,8V18z"/>
32    </g>
33</svg>`}load(t){(0,H.Ft)(t)||(void 0!==t.enable&&(this.enable=t.enable),this.mute.load(t.mute),this.unmute.load(t.unmute),this.volumeDown.load(t.volumeDown),this.volumeUp.load(t.volumeUp))}}class ai{constructor(){this.value=100,this.max=100,this.min=0,this.step=10}load(t){(0,H.Ft)(t)||((0,H.Kn2)(t)?(void 0!==t.max&&(this.max=t.max),void 0!==t.min&&(this.min=t.min),void 0!==t.step&&(this.step=t.step),void 0!==t.value&&(this.value=t.value)):this.value=t)}}class an{constructor(){this.autoPlay=!0,this.enable=!1,this.events=[],this.icons=new ae,this.volume=new ai}load(t){(0,H.Ft)(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.events&&(this.events=t.events.map(t=>{let e=new o8;return e.load(t),e})),this.icons.load(t.icons),void 0!==t.volume&&this.volume.load(t.volume))}}(w=F||(F={})).mute="soundsMuted",w.unmute="soundsUnmuted",(b=j||(j={})).Block="block",b.None="none";let as=new Map;as.set("C",[16.35,32.7,65.41,130.81,261.63,523.25,1046.5,2093,4186.01]),as.set("Db",[17.32,34.65,69.3,138.59,277.18,554.37,1108.73,2217.46,4434.92]),as.set("D",[18.35,36.71,73.42,146.83,293.66,587.33,1174.66,2349.32,4698.63]),as.set("Eb",[19.45,38.89,77.78,155.56,311.13,622.25,1244.51,2489.02,4978.03]),as.set("E",[20.6,41.2,82.41,164.81,329.63,659.25,1318.51,2637.02,5274.04]),as.set("F",[21.83,43.65,87.31,174.61,349.23,698.46,1396.91,2793.83,5587.65]),as.set("Gb",[23.12,46.25,92.5,185,369.99,739.99,1479.98,2959.96,5919.91]),as.set("G",[24.5,49,98,196,392,783.99,1567.98,3135.96,6271.93]),as.set("Ab",[25.96,51.91,103.83,207.65,415.3,830.61,1661.22,3322.44,6644.88]),as.set("A",[27.5,55,110,220,440,880,1760,3520,7040]),as.set("Bb",[29.14,58.27,116.54,233.08,466.16,932.33,1864.66,3729.31,7458.62]),as.set("B",[30.87,61.74,123.47,246.94,493.88,987.77,1975.53,3951.07,7902.13]),as.set("pause",[0]);let ao=!0,aa=()=>ao,ar=()=>{ao=!1};function al(t){var e,i,n;let s=document.createElement("img"),{clickCb:o,container:a,display:r,iconOptions:l,margin:h,options:c,pos:u,rightOffsets:d}=t,{width:p,path:f,style:g,svg:y}=l;return e=u.top+h,i=u.right-(h*(d.length+1)+p+d.reduce((t,e)=>t+e,0)),n=c.fullScreen.zIndex+1,s.style.userSelect="none",s.style.webkitUserSelect="none",s.style.position="absolute",s.style.top=`${e+h}px`,s.style.left=`${i-h-p}px`,s.style.display=r,s.style.zIndex=`${n+1}`,s.style.cssText+=g,s.src=f??(y?`data:image/svg+xml;base64,${btoa(y)}`:""),(a.canvas.element?.parentNode??document.body).append(s),s.addEventListener("click",()=>{o()}),s}function ah(t){t&&t.remove()}class ac{constructor(t,e){this._addBuffer=t=>{let e=t.createBufferSource();return this._audioSources.push(e),e},this._addOscillator=t=>{let e=t.createOscillator();return this._audioSources.push(e),e},this._initEvents=()=>{let t=this._container,e=t.actualOptions.sounds;if(e?.enable&&t.canvas.element)for(let t of e.events){let e=i=>{(async()=>{let n=t.filter&&!t.filter(i);if(this._container===i.container){if(!this._container||this._container.muted||this._container.destroyed){(0,H.KH1)(t.event,t=>{this._engine.removeEventListener(t,e)});return}if(!n){if(t.audio)this._playBuffer((0,H.wA_)(t.audio));
33else if(t.melodies){let e=(0,H.c86)(t.melodies);e.melodies.length?await Promise.allSettled(e.melodies.map(t=>this._playNote(t.notes,0,e.loop))):await this._playNote(e.notes,0,e.loop)}else if(t.notes){let e=(0,H.c86)(t.notes);await this._playNote([e],0,!1)}}}})()};(0,H.KH1)(t.event,t=>{this._engine.addEventListener(t,e)})}},this._mute=async()=>{let t=this._container,e=this._getAudioContext();for(let t of this._audioSources)this._removeAudioSource(t);this._gain&&this._gain.disconnect(),await e.close(),t.audioContext=void 0,this._engine.dispatchEvent(F.mute,{container:this._container})},this._playBuffer=t=>{let e=this._audioMap.get(t.source);if(!e)return;let i=this._container.audioContext;if(!i)return;let n=this._addBuffer(i);n.loop=t.loop,n.buffer=e,n.connect(this._gain??i.destination),n.start()},this._playFrequency=async(t,e)=>{if(!this._gain||this._container.muted)return;let i=this._getAudioContext(),n=this._addOscillator(i);return n.connect(this._gain),n.type="sine",n.frequency.value=t,n.start(),new Promise(t=>{setTimeout(()=>{this._removeAudioSource(n),t()},e)})},this._playMuteSound=()=>{if(this._container.muted)return;let t=this._getAudioContext(),e=t.createGain();e.connect(t.destination),e.gain.value=0;let i=t.createOscillator();i.connect(e),i.type="sine",i.frequency.value=1,i.start(),setTimeout(()=>{i.stop(),i.disconnect(),e.disconnect()})},this._playNote=async(t,e,i)=>{if(this._container.muted)return;let n=t[e];if(!n)return;let s=n.value,o=(0,H.KH1)(s,async(i,n)=>this._playNoteValue(t,e,n));await ((0,H.kJL)(o)?Promise.allSettled(o):o);let a=e+1;i&&a>=t.length&&(a%=t.length),this._container.muted||await this._playNote(t,a,i)},this._playNoteValue=async(t,e,i)=>{let n=t[e];if(!n)return;let s=(0,H.wA_)(n.value,i,!0);try{let t=function(t){let e=/(([A-G]b?)(\d))|pause/i.exec(t);if(!e?.length)return;let i=e[2]||e[0],n=as.get(i);if(n)return n[parseInt(e[3]||"0")]}(s);if(!(0,H.hj$)(t))return;await this._playFrequency(t,n.duration)}catch(t){(0,H.jl5)().error(t)}},this._removeAudioSource=t=>{t.stop(),t.disconnect(),this._audioSources.splice(this._audioSources.indexOf(t),1)},this._unmute=()=>{let t=this._container.actualOptions.sounds;if(!t)return;let e=this._getAudioContext();this._audioSources||(this._audioSources=[]);let i=e.createGain();i.connect(e.destination),i.gain.value=t.volume.value/H.tZy,this._gain=i,this._initEvents(),this._engine.dispatchEvent(F.unmute,{container:this._container})},this._updateMuteIcons=()=>{let t=this._container,e=t.actualOptions.sounds;if(!e?.enable||!e.icons.enable)return;let i=this._muteImg,n=this._unmuteImg;i&&(i.style.display=t.muted?"block":"none"),n&&(n.style.display=t.muted?"none":"block")},this._updateMuteStatus=async()=>{let t=this._container,e=this._getAudioContext();t.muted?(await e?.suspend(),await this._mute()):(await e?.resume(),this._unmute(),this._playMuteSound())},this._updateVolume=async()=>{let t=this._container,e=t.actualOptions.sounds;if(!e?.enable)return;(0,H.uZ5)(this._volume,e.volume.min,e.volume.max);let i=!1;this._volume<=0&&!t.muted?(this._volume=0,t.muted=!0,i=!0):this._volume>0&&t.muted&&(t.muted=!1,i=!0),i&&(this._updateMuteIcons(),await this._updateMuteStatus()),this._gain?.gain&&(this._gain.gain.value=this._volume/H.tZy)},this._container=t,this._engine=e,this._volume=0,this._audioSources=[],this._audioMap=new Map}
33async init(){let t=this._container.actualOptions.sounds;if(!t?.enable)return;if(t.autoPlay&&aa()){let t=()=>{removeEventListener(H.ZLc,t),removeEventListener(H.ReU,t),ar(),this.unmute()},e={capture:!0,once:!0};addEventListener(H.ZLc,t,e),addEventListener(H.ReU,t,e)}this._volume=t.volume.value;let e=t.events;for(let t of(this._audioMap=new Map,e)){if(!t.audio)continue;let e=(0,H.KH1)(t.audio,async t=>{let e=await fetch(t.source);if(!e.ok)return;let i=await e.arrayBuffer(),n=this._getAudioContext(),s=await n.decodeAudioData(i);this._audioMap.set(t.source,s)});e instanceof Promise?await e:await Promise.allSettled(e)}}async mute(){this._container.muted||await this.toggleMute()}async start(){let t=this._container,e=t.actualOptions,i=e.sounds;if(!i?.enable||!t.canvas.element)return;t.muted=!0;let n=t.canvas.element,s={top:n.offsetTop,right:n.offsetLeft+n.offsetWidth},{mute:o,unmute:a,volumeDown:r,volumeUp:l}=i.icons,h=async()=>{await this.toggleMute()},c=i.icons.enable?j.Block:j.None;this._muteImg=al({container:t,options:e,pos:s,display:c,iconOptions:o,margin:10,rightOffsets:[r.width,l.width],clickCb:h}),this._unmuteImg=al({container:t,options:e,pos:s,display:j.None,iconOptions:a,margin:10,rightOffsets:[r.width,l.width],clickCb:h}),this._volumeDownImg=al({container:t,options:e,pos:s,display:c,iconOptions:r,margin:10,rightOffsets:[l.width],clickCb:async()=>{await this.volumeDown()}}),this._volumeUpImg=al({container:t,options:e,pos:s,display:c,iconOptions:l,margin:10,rightOffsets:[],clickCb:async()=>{await this.volumeUp()}}),!aa()&&i.autoPlay&&await this.unmute()}stop(){this._container.muted=!0,(async()=>{await this._mute(),ah(this._muteImg),ah(this._unmuteImg),ah(this._volumeDownImg),ah(this._volumeUpImg)})()}async toggleMute(){let t=this._container;t.muted=!t.muted,this._updateMuteIcons(),await this._updateMuteStatus()}async unmute(){this._container.muted&&await this.toggleMute()}async volumeDown(){let t=this._container,e=t.actualOptions.sounds;e?.enable&&(t.muted&&(this._volume=0),this._volume-=e.volume.step,await this._updateVolume())}async volumeUp(){let t=this._container.actualOptions.sounds;t?.enable&&(this._volume+=t.volume.step,await this._updateVolume())}_getAudioContext(){let t=this._container;return t.audioContext||(t.audioContext=new AudioContext),t.audioContext}}let au=()=>{removeEventListener(H.ZLc,au),removeEventListener(H.ReU,au),ar()};class ad{constructor(t){this.id="sounds",this._engine=t;let e={capture:!0,once:!0};addEventListener(H.ZLc,au,e),addEventListener(H.ReU,au,e)}getPlugin(t){return Promise.resolve(new ac(t,this._engine))}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;let i=t.sounds;i?.load===void 0&&(t.sounds=i=new an),i.load(e?.sounds)}needsPlugin(t){return t?.sounds?.enable??!1}}async function ap(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPlugin(new ad(t),e)}class af{constructor(){this.validTypes=["spiral"]}draw(t){!function(t){let{context:e,particle:i,radius:n}=t;if(void 0===i.spiralInnerRadius||void 0===i.spiralLineSpacing||void 0===i.spiralWidthFactor)return;let s=(n-i.spiralInnerRadius)/i.spiralLineSpacing;for(let t=0;t<10*s;t++){let n=t/10,s=i.spiralInnerRadius+i.spiralLineSpacing*n,o={x:s*Math.cos(n),y:s*Math.sin(n)};e.lineTo(o.x,o.y)}}(t)}particleInit(t,e){let i=t.retina.pixelRatio,n=e.shapeData;e.spiralInnerRadius=(0,H.Gu7)(n?.innerRadius??1)*i,e.spiralLineSpacing=(0,H.Gu7)(n?.lineSpacing??1)*i,e.spiralWidthFactor=(0,H.Gu7)(n?.widthFactor??10)}}async function ag(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addShape(new af,e)}let ay={x:0,y:0},am={a:1,b:0,c:0,d:1};class av{draw(t){let{context:e,radius:i,particle:n,transformData:s}=t,o=2*i,a=n.container.retina.pixelRatio,r=n.getPosition(),l=n.trail;if(!l||!n.trailLength)return;let h=n.trailLength+i;if(l.push({color:e.fillStyle??e.strokeStyle,position:{x:r.x,y:r.y},transformData:{...t.transformData}}),l.length<2)return;for(;l.length>h;)l.shift();let c=Math.min(l.length,h),u={width:n.container.canvas.size.width+o,height:n.container.canvas.size.height+o},d=l[c-1].position;for(let t=c;t>0;t--){let i=l[t-1],s=i.position,r=n.trailTransform?i.transformData??am
33:am;e.setTransform(r.a,r.b,r.c,r.d,s.x,s.y),e.beginPath(),e.moveTo(d.x-s.x,d.y-s.y);let h={x:(d.x+u.width)%u.width,y:(d.y+u.height)%u.height};if(Math.abs(d.x-s.x)>.5*u.width||Math.abs(d.y-s.y)>.5*u.height){d=s;continue}e.lineTo(Math.abs(d.x-s.x)>.5*u.width?h.x:ay.x,Math.abs(d.y-s.y)>.5*u.height?h.y:ay.y);let p=Math.max(t/c*o,a,n.trailMinWidth??-1),f=e.globalAlpha;e.globalAlpha=n.trailFade?t/c:1,e.lineWidth=n.trailMaxWidth?Math.min(p,n.trailMaxWidth):p,e.strokeStyle=i.color,e.stroke(),e.globalAlpha=f,d=s}e.setTransform(s.a,s.b,s.c,s.d,r.x,r.y)}particleInit(t,e){e.trail=[];let i=e.effectData;e.trailFade=i?.fade??!0,e.trailLength=(0,H.Gu7)(i?.length??10)*t.retina.pixelRatio,e.trailMaxWidth=i?.maxWidth?(0,H.Gu7)(i.maxWidth)*t.retina.pixelRatio:void 0,e.trailMinWidth=i?.minWidth?(0,H.Gu7)(i.minWidth)*t.retina.pixelRatio:void 0,e.trailTransform=i?.transform??!1}}async function aw(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addEffect("trail",new av,e)}let ab=.5*Math.PI;class a_{constructor(){this.options={waveHeight:{min:0,max:3},waveLength:{min:0,max:5}}}generate(t,e){void 0===t.zigzag&&(t.zigzag={counter:(0,H.sZz)(),waveHeight:(0,H.Gu7)(this.options.waveHeight),waveLength:(0,H.Gu7)(this.options.waveLength)});let i=.5/t.zigzag.waveLength*e.factor;t.zigzag.counter+=i;let n=t.zigzag.waveHeight*Math.sin(t.zigzag.counter);return t.position.x+=n*Math.cos(t.velocity.angle+ab),t.position.y+=n*Math.sin(t.velocity.angle+ab),H.OWs.origin}init(t){let e=t.actualOptions.particles.move.path.options;this.options.waveLength=e.waveLength??this.options.waveLength,this.options.waveHeight=e.waveHeight??this.options.waveHeight}reset(){}update(){}}async function ax(t,e=!0){(0,H.j2P)(t,"3.7.1"),await t.addPathGenerator("zigZagPathGenerator",new a_,e)}async function aS(t,e=!0){(0,H.j2P)(t,"3.7.1"),U(t),await sO(t,!1),await sj(t,!1),await os(t,!1),await oh(t,!1),await tE(t,!1),await tM(t,!1),await tG(t,!1),await tV(t,!1),await tR(t,!1),await tI(t,!1),await tL(t,!1),await tD(t,!1),await t8(t,!1),await es(t,!1),await ec(t,!1),await th(t,!1),await sW(t,!1),await oe(t,!1),await oq(t,!1),await ap(t,!1),await ep(t,!1),await ey(t,!1),await e_(t,!1),await eC(t,!1),await eT(t,!1),await s9(t,!1),await ow(t,!1),await sR(t,!1),await oy(t,!1),await tA(t,!1),await tT(t,!1),await oT(t,!1),await oG(t,!1),await oZ(t,!1),await o2(t,!1),await ax(t,!1),await o4(t,!1),await Y(t,!1),await W(t,!1),await ty(t,!1),await tw(t,!1),await sL(t,!1),await sQ(t,!1),await o_(t,!1),await oK(t,!1),await o0(t,!1),await ag(t,!1),await aw(t,!1),await t.refresh(e)}},48876:function(t,e,i){"use strict";var n,s,o,a,r,l,h,c,u,d,p,f,g,y,m,v,w,b,_,x,S,P,C,O,T,k,z,A,E,M,G,V,R,I,L,D,F,j,H,B,N,$,U,q;i.d(e,{qHU:function(){return c},RC2:function(){return eB},PpY:function(){return eD},NV1:function(){return o},Cdc:function(){return ix},Dpx:function(){return y},Hyf:function(){return a},gqJ:function(){return p},nxi:function(){return P},L8z:function(){return ij},GLT:function(){return S},OzF:function(){return e_},Voc:function(){return m},DYc:function(){return r},Igb:function(){return b},$Sh:function(){return iH},lZr:function(){return l},AeJ:function(){return iS},RnL:function(){return x},a9w:function(){return h},SWe:function(){return eU},OWs:function(){return td},dUB:function(){return tF},j2P:function(){return t3},paW:function(){return tz},Gz$:function(){return tA},M_G:function(){return tB},kRC:function(){return tZ},gy4:function(){return tW},uZ5:function(){return tv},ocL:function(){return ea},ZBL:function(){return tN},Idc:function(){return tT},iCg:function(){return tq},XDe:function(){return tU},pSR:function(){return eg},gK4:function(){return J},KH1:function(){return tY},Spd:function(){return tO},oW6:function(){return tC},bS$:function(){return ec},BEi:function(){return er},Dt5:function(){return el},jl5:function(){return tG},bti:function(){return t1},sZz:function(){return tm},KIV:function(){return tS},UvP:function(){return tx},Gu7:function(){return t_},apW:function(){return t2},vzQ:function(){return eo},izR:function(){return es},vqy:function(){return te},veL:function(){return ee},Y6v:function(){return ei},V0:function(){return tJ},kJL:function(){return tl},wm$:function(){return t$},mf2:function(){return ta},dBL:function(){return tL},Ft:function(){return th},hj$:function(){return to},Kn2:function(){return tr},Ac:function(){return tH},KrJ:function(){return tR},HD0:function(){return ts},c86:function(){return tj},wA_:function(){return tK},mxw:function(){return tD},hTV:function(){return id},X5o:function(){return ti},ZLc:function(){return Z},aMP:function(){return Q},WtO:function(){return Y},BVM:function(){return tE},tZy:function(){return tt},vdf:function(){return tb},lNs:function(){return t6},tXk:function(){return t7}
33,dpV:function(){return tQ},lCU:function(){return t8},HYm:function(){return tI},Cst:function(){return tP},gE:function(){return et},ReU:function(){return K},S6T:function(){return iB},CrJ:function(){return t5},PBz:function(){return ep}});let W="generated",Z="pointerdown",Q="pointerleave",Y="pointermove",K="touchstart",X="touchend",J="tsParticles - Error",tt=100,te=.5,ti=1e3;function tn(t){return"boolean"==typeof t}function ts(t){return"string"==typeof t}function to(t){return"number"==typeof t}function ta(t){return"function"==typeof t}function tr(t){return"object"==typeof t&&null!==t}function tl(t){return Array.isArray(t)}function th(t){return null==t}(C=n||(n={})).bottom="bottom",C.bottomLeft="bottom-left",C.bottomRight="bottom-right",C.left="left",C.none="none",C.right="right",C.top="top",C.topLeft="top-left",C.topRight="top-right",C.outside="outside",C.inside="inside";let tc={x:0,y:0,z:0};class tu{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!to(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:tc.z;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??tc.z;else throw Error(`${J} Vector3d not initialized correctly`)}static get origin(){return tu.create(tc.x,tc.y,tc.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return tu.create(t.x,t.y,t.z)}static create(t,e,i){return new tu(t,e,i)}add(t){return tu.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return tu.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return tu.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return tu.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){let t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return tu.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),tc.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:tc.z}sub(t){return tu.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class td extends tu{constructor(t,e){super(t,e,tc.z)}static get origin(){return td.create(tc.x,tc.y)}static clone(t){return td.create(t.x,t.y)}static create(t,e){return new td(t,e)}}let tp=Math.random,tf=t=>requestAnimationFrame(t),tg=t=>cancelAnimationFrame(t),ty=2*Math.PI;function tm(){return tv(tp(),0,1-Number.EPSILON)}function tv(t,e,i){return Math.min(Math.max(t,e),i)}function tw(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function tb(t){let e=tS(t),i=tx(t);return e===i&&(i=0),tm()*(e-i)+i}function t_(t){return to(t)?t:tb(t)}function tx(t){return to(t)?t:t.min}function tS(t){return to(t)?t:t.max}function tP(t,e){if(t===e||void 0===e&&to(t))return t;let i=tx(t),n=tS(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:tP(i,n)}function tC(t,e){let i=t.x-e.x,n=t.y-e.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function tO(t,e){return tC(t,e).distance}function tT(t){return t*Math.PI/180}function tk(t,e,i,n){return td.create(t.x*(i-n)/(i+n)+2*e.x*n/(i+n),t.y)}function tz(t){return{x:(t.position?.x??tm()*tt)*t.size.width/tt,y:(t.position?.y??tm()*tt)*t.size.height/tt}}function tA(t){let e={x:t.position?.x!==void 0?t_(t.position.x):void 0,y:t.position?.y!==void 0?t_(t.position.y):void 0};return tz({size:t.size,position:e})}function tE(t){return t?t.endsWith("%")?parseFloat(t)/tt:parseFloat(t):1}(O=s||(s={})).auto="auto",O.increase="increase",O.decrease="decrease",O.random="random",(T=o||(o={})).increasing="increasing",T.decreasing="decreasing",(k=a||(a={})).none="none",k.max="max",k.min="min",(z=r||(r={})).bottom="bottom",z.left="left",z.right="right",z.top="top",(A=l||(l={})).precise="precise",A.percent="percent",(E=h||(h={})).max="max",E.min="min",E.random="random";let tM={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function tG(){return tM}function tV(t){let e={bounced:!1}
33,{pSide:i,pOtherSide:n,rectSide:s,rectOtherSide:o,velocity:a,factor:r}=t;return n.min<o.min||n.min>o.max||n.max<o.min||n.max>o.max||(i.max>=s.min&&i.max<=(s.max+s.min)*.5&&a>0||i.min<=s.max&&i.min>(s.max+s.min)*.5&&a<0)&&(e.velocity=-(a*r),e.bounced=!0),e}function tR(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function tI(t){if(!tR()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function tL(t,e){return t===e||tl(e)&&e.indexOf(t)>-1}async function tD(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function tF(t){return Math.floor(tm()*t.length)}function tj(t,e,i=!0){return t[void 0!==e&&i?e%t.length:tF(t)]}function tH(t,e,i,n,s){var o;let a;return o=tB(t,n??0),a=!0,s&&s!==r.bottom||(a=o.top<e.height+i.x),a&&(!s||s===r.left)&&(a=o.right>i.x),a&&(!s||s===r.right)&&(a=o.left<e.width+i.y),a&&(!s||s===r.top)&&(a=o.bottom>i.y),a}function tB(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function tN(t,...e){for(let i of e){if(null==i)continue;if(!tr(i)){t=i;continue}let e=Array.isArray(i);for(let n in e&&(tr(t)||!t||!Array.isArray(t))?t=[]:!e&&(tr(t)||!t||Array.isArray(t))&&(t={}),i){if("__proto__"===n)continue;let e=i[n],s=t;s[n]=tr(e)&&Array.isArray(e)?e.map(t=>tN(s[n],t)):tN(s[n],e)}}return t}function t$(t,e){return!!tX(e,e=>e.enable&&tL(t,e.mode))}function tU(t,e,i){tY(e,e=>{let n=e.mode;e.enable&&tL(t,n)&&tY(e.selectors,t=>{i(t,e)})})}function tq(t,e){if(e&&t)return tX(t,t=>(function(t,e){let i=tY(e,e=>t.matches(e));return tl(i)?i.some(t=>t):i})(e,t.selectors))}function tW(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:td.create(t_(t.options.bounce.horizontal.value),t_(t.options.bounce.vertical.value))}}function tZ(t,e){let{x:i,y:n}=t.velocity.sub(e.velocity),[s,o]=[t.position,e.position],{dx:a,dy:r}=tC(o,s);if(i*a+n*r<0)return;let l=-Math.atan2(r,a),h=t.mass,c=e.mass,u=t.velocity.rotate(l),d=e.velocity.rotate(l),p=tk(u,d,h,c),f=tk(d,u,h,c),g=p.rotate(-l),y=f.rotate(-l);t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function tQ(t,e){let i=tB(t.getPosition(),t.getRadius()),n=t.options.bounce,s=tV({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:t_(n.horizontal.value)});s.bounced&&(void 0!==s.velocity&&(t.velocity.x=s.velocity),void 0!==s.position&&(t.position.x=s.position));let o=tV({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:t_(n.vertical.value)});o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function tY(t,e){return tl(t)?t.map((t,i)=>e(t,i)):e(t,0)}function tK(t,e,i){return tl(t)?tj(t,e,i):t}function tX(t,e){return tl(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function tJ(t,e){let i=t.value,n=t.animation,a={delayTime:t_(n.delay)*ti,enable:n.enable,value:t_(t.value)*e,max:tS(i)*e,min:tx(i)*e,loops:0,maxLoops:t_(n.count),time:0};if(n.enable){switch(a.decay=1-t_(n.decay),n.mode){case s.increase:a.status=o.increasing;break;case s.decrease:a.status=o.decreasing;break;case s.random:a.status=tm()>=te?o.increasing:o.decreasing}let t=n.mode===s.auto;switch(n.startValue){case h.min:a.value=a.min,t&&(a.status=o.increasing);break;case h.max:a.value=a.max,t&&(a.status=o.decreasing);break;case h.random:default:a.value=tb(a),t&&(a.status=tm()>=te?o.increasing:o.decreasing)}}return a.initialValue=a.value,a}function t0(t,e){if(t.mode!==l.percent){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/tt*e.width,y:t.y/tt*e.height}:{width:t.width/tt*e.width,height:t.height/tt*e.height}}function t1(t,e){return t0(t,e)}function t2(t,e){return t0(t,e)}function t5(t,e,i,n,s){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let r=(e.velocity??0)*s.factor,l=e.min,h=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=s.value),!((e.delayTime??0)>
330)||!(e.time<(e.delayTime??0))){switch(e.status){case o.increasing:e.value>=h?(i?e.status=o.decreasing:e.value-=h,e.loops||(e.loops=0),e.loops++):e.value+=r;break;case o.decreasing:e.value<=l?(i?e.status=o.increasing:e.value+=h,e.loops||(e.loops=0),e.loops++):e.value-=r}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,n,s){switch(e){case a.max:i>=s&&t.destroy();break;case a.min:i<=n&&t.destroy()}}(t,n,e.value,l,h),t.destroyed||(e.value=tv(e.value,l,h))}}function t3(t,e){if(t.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${t.version}. Plugins version: ${e}`)}(M=c||(c={})).darken="darken",M.enlighten="enlighten";let t4="random";function t9(t,e){if(e){for(let i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}}function t7(t,e,i,n=!0){if(!e)return;let s=ts(e)?{value:e}:e;if(ts(s.value))return function t(e,i,n,s=!0){if(!i)return;let o=ts(i)?{value:i}:i;if(ts(o.value))return o.value===t4?en():t9(e,o.value);if(tl(o.value))return t(e,{value:tj(o.value,n,s)});for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}(t,s.value,i,n);if(tl(s.value))return t7(t,{value:tj(s.value,i,n)});for(let e of t.colorManagers.values()){let t=e.handleRangeColor(s);if(t)return t}}function t6(t,e,i,n=!0){let s=t7(t,e,i,n);return s?t8(s):void 0}function t8(t){let e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),a={h:0,l:(s+o)*.5,s:0};return s!==o&&(a.s=a.l<.5?(s-o)/(s+o):(s-o)/(2-s-o),a.h=e===s?(i-n)/(s-o):a.h=i===s?2+(n-e)/(s-o):4+(e-i)/(s-o)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function et(t,e){return t9(t,e)?.a}function ee(t){let e=(t.h%360+360)%360,i=Math.max(0,Math.min(100,t.s)),n=Math.max(0,Math.min(100,t.l)),s=e/360,o=i/100,a=n/100;if(0===i){let t=Math.round(255*a);return{r:t,g:t,b:t}}let r=(t,e,i)=>(i<0&&i++,i>1&&i--,6*i<1)?t+(e-t)*6*i:2*i<1?e:3*i<2?t+(e-t)*(.6666666666666666-i)*6:t,l=a<.5?a*(1+o):a+o-a*o,h=2*a-l;return{r:Math.round(Math.min(255,255*r(h,l,s+.3333333333333333))),g:Math.round(Math.min(255,255*r(h,l,s))),b:Math.round(Math.min(255,255*r(h,l,s-.3333333333333333)))}}function ei(t){let e=ee(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function en(t){let e=t??0;return{b:Math.floor(tb(tP(e,256))),g:Math.floor(tb(tP(e,256))),r:Math.floor(tb(tP(e,256)))}}function es(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function eo(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function ea(t,e,i,n){let s=t,o=e;return void 0===s.r&&(s=ee(t)),void 0===o.r&&(o=ee(e)),{b:tw(s.b,o.b,i,n),g:tw(s.g,o.g,i,n),r:tw(s.r,o.r,i,n)}}function er(t,e,i){if(i===t4)return en();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(i&&n&&e)return ea(i,n,t.getRadius(),e.getRadius());{let t=i??n;if(t)return ee(t)}}}function el(t,e,i,n){let s=ts(e)?e:e.value;return s===t4?n?t7(t,{value:s}):i?t4:"mid":"mid"===s?"mid":t7(t,{value:s})}function eh(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function ec(t,e,i){let n={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(eu(n.h,e.h,i),eu(n.s,e.s,i),eu(n.l,e.l,i)),n}function eu(t,e,i){t.enable=e.enable,t.enable?(t.velocity=t_(e.speed)/tt*i,t.decay=1-t_(e.decay),t.status=o.increasing,t.loops=0,t.maxLoops=t_(e.count),t.time=0,t.delayTime=t_(e.delay)*ti,e.sync||(t.velocity
33*=tm(),t.value*=tm()),t.initialValue=t.value,t.offset=tP(e.offset)):t.velocity=0}function ed(t,e,i,n){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;let s=t.offset?tb(t.offset):0,a=(t.velocity??0)*n.factor+3.6*s,r=t.decay??1,l=tS(e),h=tx(e);i&&t.status!==o.increasing?(t.value-=a,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=o.increasing)):(t.value+=a,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status=o.decreasing:t.value-=l)),t.velocity&&1!==r&&(t.velocity*=r),t.value=tv(t.value,h,l)}function ep(t,e){if(!t)return;let{h:i,s:n,l:s}=t,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};i&&ed(i,o.h,!1,e),n&&ed(n,o.s,!0,e),s&&ed(s,o.l,!0,e)}let ef={a:1,b:0,c:0,d:1};function eg(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function ey(t,e){t.clearRect(0,0,e.width,e.height)}function em(t,e,i=!1){if(!e||!t)return;let n=t.style;if(n)for(let t in e){let s=e[t];n.setProperty(t,s,i?"important":"")}}class ev{constructor(t,e){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,n,s,o)=>{for(let a of this._preDrawUpdaters){if(a.getColorStyles){let{fill:o,stroke:r}=a.getColorStyles(e,t,i,n);o&&(s.fill=o),r&&(s.stroke=r)}if(a.getTransformValues){let t=a.getTransformValues(e);for(let e in t)!function(t,e,i){let n=e[i];void 0!==n&&(t[i]=(t[i]??1)*n)}(o,t,e)}a.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(let n of this._colorPlugins)if(!e&&n.particleFillColor&&(e=t6(this._engine,n.particleFillColor(t))),!i&&n.particleStrokeColor&&(i=t6(this._engine,n.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){let i=t7(this._engine,e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=es(e,e.a)}}else await new Promise((e,i)=>{if(!t.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._coverImage={image:n,opacity:t.opacity},e()}),n.addEventListener("error",t=>{i(t.error)}),n.src=t.image})},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?(this._originalStyle=tN({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle(),e.style){if(!i||!e.style)continue;let n=e.style[i];n&&t.style.setProperty(i,n,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;let i=1/t.length;if(e.color){let t=t7(this._engine,e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise((t,n)=>{if(!e.image)return;let s=document.createElement("img");s.addEventListener("load",()=>{this._trailFill={image:s,opacity:i},t()}),s.addEventListener("error",t=>{n(t.error)}),s.src=e.image})},this._paintBase=t=>{this.draw(e=>{var i;return i=this.size,void(e.fillStyle=t??"rgba(0,0,0,0)",e.fillRect(0,0,i.width,i.height))})},this._paintImage=(t,e)=>{this.draw(i=>{var n;return n=this.size,void(t&&(i.globalAlpha=e,i.drawImage(t,0,0,n.width,n.height),i.globalAlpha=1))})},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(t=>
33t.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})}))},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;t&&e&&em(t,e)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let e=this.container.actualOptions.fullScreen.zIndex.toString(10);em(t,{position:"fixed","z-index":e,zIndex:e,top:"0",left:"0",width:"100%",height:"100%"},!0)},this._engine=e,this._standardSize={height:0,width:0};let i=t.retina.pixelRatio,n=this._standardSize;this.size={height:n.height*i,width:n.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(es(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(t=>{ey(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t?.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){let e=this._context;if(e)return t(e)}drawAsync(t){let e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;let i=t.getRadius();if(i<=0)return;let n=t.getFillColor(),s=t.getStrokeColor()??n,[o,a]=this._getPluginParticleColors(t);o||(o=n),a||(a=s),(o||a)&&this.draw(n=>{let s=this.container,r=s.actualOptions,l=t.options.zIndex,h=1-t.zIndexFactor,c=h**l.opacityRate,u=t.bubble.opacity??t.opacity?.value??1,d=t.strokeOpacity??u,p=u*c,f={},g={fill:o?eo(o,p):void 0};g.stroke=a?eo(a,d*c):g.fill,this._applyPreDrawUpdaters(n,t,i,p,g,f),function(t){let{container:e,context:i,particle:n,delta:s,colorStyles:o,backgroundMask:a,composite:r,radius:l,opacity:h,shadow:c,transform:u}=t,d=n.getPosition(),p=n.rotation+(n.pathRotation?n.velocity.angle:0),f={sin:Math.sin(p),cos:Math.cos(p)},g=!!p,y={a:f.cos*(u.a??ef.a),b:g?f.sin*(u.b??1):u.b??ef.b,c:g?-f.sin*(u.c??1):u.c??ef.c,d:f.cos*(u.d??ef.d)};i.setTransform(y.a,y.b,y.c,y.d,d.x,d.y),a&&(i.globalCompositeOperation=r);let m=n.shadowColor;c.enable&&m&&(i.shadowBlur=c.blur,i.shadowColor=es(m),i.shadowOffsetX=c.offset.x,i.shadowOffsetY=c.offset.y),o.fill&&(i.fillStyle=o.fill);let v=n.strokeWidth??0;i.lineWidth=v,o.stroke&&(i.strokeStyle=o.stroke);let w={container:e,context:i,particle:n,radius:l,opacity:h,delta:s,transformData:y,strokeWidth:v};(function(t){let{container:e,context:i,particle:n,radius:s,opacity:o,delta:a,strokeWidth:r,transformData:l}=t;if(!n.shape)return;let h=e.shapeDrawers.get(n.shape);h&&(i.beginPath(),h.draw({context:i,particle:n,radius:s,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),n.shapeClose&&i.closePath(),r>0&&i.stroke(),n.shapeFill&&i.fill())})(w),function(t){let{container:e,context:i,particle:n,radius:s,opacity:o,delta:a,transformData:r}=t;if(!n.shape)return;let l=e.shapeDrawers.get(n.shape);l?.afterDraw&&l.afterDraw({context:i,particle:n,radius:s,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}(w),function(t){let{container:e,context:i,particle:n,radius:s,opacity:o,delta:a,transformData:r}=t;if(!n.effect)return;let l=e.effectDrawers.get(n.effect);l&&l.draw({context:i,particle:n,radius:s,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}(w),i.globalCompositeOperation="source-over",i.resetTransform()}({container:s,context:n,particle:t,delta:e,colorStyles:g,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*h**l.sizeRate,opacity:p,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(n=>{t.drawParticle&&t.drawParticle(n,e,i)})}drawPlugin(t,e){this.draw(i=>{t.draw&&t.draw(i,e)})}
33async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=function(t){if(!tR()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){tM.error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let t=this.container.actualOptions.background,e=this.element;if(!e)return;let i=e.style;if(i){if(t.color){let e=t7(this._engine,t.color);i.backgroundColor=e?es(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){for(let t of(this._resizePlugins=[],this.container.plugins.values()))t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){for(let t of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&W in t.dataset?"true"===t.dataset[W]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=tN({},this.element.style);let e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;let i=this.container.retina.pixelRatio,n=this.size;t.height=n.height=e.height*i,t.width=n.width=e.width*i,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}
33),this.container.retina.init(),this.initBackground()}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(ey(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},n=t.retina.pixelRatio,s={width:i.width*n,height:i.height*n};if(i.height===e.height&&i.width===e.width&&s.height===this.element.height&&s.width===this.element.width)return!1;let o={...e};e.height=i.height,e.width=i.width;let a=this.size;return this.element.width=a.width=s.width,this.element.height=a.height=s.height,this.container.started&&t.particles.setResizeFactor({width:e.width/o.width,height:e.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>ey(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;let t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function ew(t,e,i,n,s){if(n){let n={passive:!0};tn(s)?n.capture=s:void 0!==s&&(n=s),t.addEventListener(e,i,n)}else t.removeEventListener(e,i,s)}(G=u||(u={})).canvas="canvas",G.parent="parent",G.window="window";class eb{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,n=t.position;if(!n)return;t.clickPosition={...n},t.clickTime=new Date().getTime(),tY(i.interactivity.events.onClick.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,n=i.defaultThemes,s=t.matches?n.dark:n.light,o=i.themes.find(t=>t.name===s);o?.default.auto&&e.loadTheme(s)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{let t=this.container.canvas;await t?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*ti)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,n=this.container,s=n.actualOptions,o=n.interactivity.element;if(!o)return;let a=n.canvas.element;a&&(a.style.pointerEvents=o===a?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(ew(o,Y,i.mouseMove,e),ew(o,K,i.touchStart,e),ew(o,"touchmove",i.touchMove,e),s.interactivity.events.onClick.enable?(ew(o,X,i.touchEndClick,e),ew(o,"pointerup",i.mouseUp,e),ew(o,Z,i.mouseDown,e)):ew(o,X,i.touchEnd,e),ew(o,t,i.mouseLeave,e),ew(o,"touchcancel",i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,n=i.actualOptions.interactivity.detectsOn,s=i.canvas.element,o=Q;n===u.window?(i.interactivity.element=window,o="pointerout"):n===u.parent&&s?i.interactivity.element=s.parentElement??s.parentNode:i.interactivity.element=s,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(o,t),document&&ew(document,"visibilitychange",e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=tI("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener){ew(i,"change",e.themeChange,t);return}void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange))}},this._manageResize=t=>{let e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver){ew(window,"resize",e.resize,t);return}let n=i.canvas.element;this._resizeObserver&&!t?(n&&this._resizeObserver.unobserve(n),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&n&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===n)&&this._handleWindowResize()}),this._resizeObserver.observe(n))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{let e=this.container,i=e.actualOptions,{mouse:n}=e.interactivity;n.inside=!0;let s=!1,o=n.position;if(o&&i.interactivity.events.onClick.enable){for(let t of e.plugins.values())if(t.clickPositionValid&&
33(s=t.clickPositionValid(o)))break;s||this._doMouseTouchClick(t),n.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=Q,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e;let i=this.container,n=i.actualOptions,s=i.interactivity,o=i.canvas.element;if(!s?.element)return;if(s.mouse.inside=!0,t.type.startsWith("pointer")){if(this._canPush=!0,s.element===window){if(o){let i=o.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(n.interactivity.detectsOn===u.parent){let i=t.target,n=t.currentTarget;if(i&&n&&o){let s=i.getBoundingClientRect(),a=n.getBoundingClientRect(),r=o.getBoundingClientRect();e={x:t.offsetX+2*s.left-(a.left+r.left),y:t.offsetY+2*s.top-(a.top+r.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===o&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==t.type,o){let i=t.touches[t.touches.length-1],n=o.getBoundingClientRect();e={x:i.clientX-(n.left??0),y:i.clientY-(n.top??0)}}let a=i.retina.pixelRatio;e&&(e.x*=a,e.y*=a),s.mouse.position=e,s.status=Y},this._touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}(V=d||(d={})).configAdded="configAdded",V.containerInit="containerInit",V.particlesSetup="particlesSetup",V.containerStarted="containerStarted",V.containerStopped="containerStopped",V.containerDestroyed="containerDestroyed",V.containerPaused="containerPaused",V.containerPlay="containerPlay",V.containerBuilt="containerBuilt",V.particleAdded="particleAdded",V.particleDestroyed="particleDestroyed",V.particleRemoved="particleRemoved";class e_{constructor(){this.value=""}static create(t,e){let i=new e_;return i.load(t),void 0!==e&&(ts(e)||tl(e)?i.load({value:e}):i.load(e)),i}load(t){!th(t)&&(th(t.value)||(this.value=t.value))}}class ex{constructor(){this.color=new e_,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){th(t)||(void 0!==t.color&&(this.color=e_.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 eS{constructor(){this.opacity=1}load(t){th(t)||(void 0!==t.color&&(this.color=e_.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0===t.opacity||(this.opacity=t.opacity))}}class eP{constructor(){this.composite="destination-out",this.cover=new eS,this.enable=!1}load(t){if(!th(t)){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=ts(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class eC{constructor(){this.enable=!0,this.zIndex=0}load(t){th(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.zIndex||(this.zIndex=t.zIndex))}}class eO{constructor(){this.enable=!1,this.mode=[]}load(t){th(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.mode||(this.mode=t.mode))}}(R=p||(p={})).circle="circle",R.rectangle="rectangle";class eT{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=p.circle}load(t){th(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0===t.type||(this.t
33ype=t.type))}}class ek{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){th(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 ez{constructor(){this.enable=!1,this.mode=[],this.parallax=new ek}load(t){th(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class eA{constructor(){this.delay=.5,this.enable=!0}load(t){th(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0===t.enable||(this.enable=t.enable))}}class eE{constructor(){this.onClick=new eO,this.onDiv=new eT,this.onHover=new ez,this.resize=new eA}load(t){if(th(t))return;this.onClick.load(t.onClick);let e=t.onDiv;void 0!==e&&(this.onDiv=tY(e,t=>{let e=new eT;return e.load(t),e})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class eM{constructor(t,e){this._engine=t,this._container=e}load(t){if(th(t)||!this._container)return;let e=this._engine.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class eG{constructor(t,e){this.detectsOn=u.window,this.events=new eE,this.modes=new eM(t,e)}load(t){if(th(t))return;let e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class eV{load(t){!th(t)&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??l.percent}),t.options&&(this.options=tN({},t.options)))}}(I=f||(f={})).screen="screen",I.canvas="canvas";class eR{constructor(){this.maxWidth=1/0,this.options={},this.mode=f.canvas}load(t){!th(t)&&(th(t.maxWidth)||(this.maxWidth=t.maxWidth),th(t.mode)||(t.mode===f.screen?this.mode=f.screen:this.mode=f.canvas),th(t.options)||(this.options=tN({},t.options)))}}(L=g||(g={})).any="any",L.dark="dark",L.light="light";class eI{constructor(){this.auto=!1,this.mode=g.any,this.value=!1}load(t){th(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 eL{constructor(){this.name="",this.default=new eI}load(t){th(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=tN({},t.options)))}}class eD{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){th(t)||(void 0!==t.count&&(this.count=tP(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=tP(t.speed)),void 0!==t.decay&&(this.decay=tP(t.decay)),void 0!==t.delay&&(this.delay=tP(t.delay)),void 0===t.sync||(this.sync=t.sync))}}class eF extends eD{constructor(){super(),this.mode=s.auto,this.startValue=h.random}load(t){super.load(t),th(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.startValue||(this.startValue=t.startValue))}}class ej extends eD{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),th(t)||void 0===t.offset||(this.offset=tP(t.offset))}}class eH{constructor(){this.h=new ej,this.s=new ej,this.l=new ej}load(t){th(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class eB extends e_{constructor(){super(),this.animation=new eH}static create(t,e){let i=new eB;return i.load(t),void 0!==e&&(ts(e)||tl(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),th(t))return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}(D=y||(y={})).absorb="absorb",D.bounce="bounce",D.destroy="destroy";class eN{constructor(){this.speed=2}load(t){th(t)||void 0===t.speed||(this.speed=t.speed)}}class e${constructor(){this.enable=!0,this.retries=0}load(t){th(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.retries||(this.retries=t.retries))}}class eU{constructor(){this.value=0}load(t){!th(t)&&(th(t.value)||(this.value=tP(t.value)))}}class eq extends eU{constructor(){super(),this.animation=new eD}load(t){if(super.load(t),th(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class eW extends eq{constructor(){super(),this.animation=new eF}load(t){super.load(t)}}class eZ extends eU{constructor(){super(),this.value=1}}class eQ{constructor(){this.horizontal=new eZ,this.vertical=new eZ}load(t){th(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class eY{constructor(){this.absorb=new eN,this.bounce=new eQ,this.enable=!1,this.maxSpeed=50,this.mode=y.bounce,this.overlap=new e$}load(t){th(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=tP(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class eK{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(th(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tN(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
33ype=t.type)}}class eX{constructor(){this.offset=0,this.value=90}load(t){th(t)||(void 0!==t.offset&&(this.offset=tP(t.offset)),void 0!==t.value&&(this.value=tP(t.value)))}}class eJ{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!th(t)&&(void 0!==t.distance&&(this.distance=tP(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){let e=t.rotate.x;void 0!==e&&(this.rotate.x=e);let i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class e0{constructor(){this.x=50,this.y=50,this.mode=l.percent,this.radius=0}load(t){th(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0===t.radius||(this.radius=t.radius))}}class e1{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){th(t)||(void 0!==t.acceleration&&(this.acceleration=tP(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=tP(t.maxSpeed)))}}class e2{constructor(){this.clamp=!0,this.delay=new eU,this.enable=!1,this.options={}}load(t){!th(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=tN(this.options,t.options)))}}class e5{load(t){th(t)||(void 0!==t.color&&(this.color=e_.create(this.color,t.color)),void 0===t.image||(this.image=t.image))}}class e3{constructor(){this.enable=!1,this.length=10,this.fill=new e5}load(t){th(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0===t.length||(this.length=t.length))}}(F=m||(m={})).bounce="bounce",F.none="none",F.out="out",F.destroy="destroy",F.split="split";class e4{constructor(){this.default=m.out}load(t){th(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class e9{constructor(){this.acceleration=0,this.enable=!1}load(t){!th(t)&&(void 0!==t.acceleration&&(this.acceleration=tP(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=tN({},t.position)))}}class e7{constructor(){this.angle=new eX,this.attract=new eJ,this.center=new e0,this.decay=0,this.distance={},this.direction=n.none,this.drift=0,this.enable=!1,this.gravity=new e1,this.path=new e2,this.outModes=new e4,this.random=!1,this.size=!1,this.speed=2,this.spin=new e9,this.straight=!1,this.trail=new e3,this.vibrate=!1,this.warp=!1}load(t){if(th(t))return;this.angle.load(to(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=tP(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=to(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=tP(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes;void 0!==e&&(tr(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=tP(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 e6 extends eF{constructor(){super(),this.destroy=a.none,this.speed=2}load(t){super.load(t),th(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class e8 extends eW{constructor(){super(),this.animation=new e6,this.value=1}load(t){if(th(t))return;super.load(t);let e=t.animation;void 0!==e&&this.animation.load(e)}}class it{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(th(t))return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width;void 0!==e&&(this.width=e);let i=t.height;void 0!==i&&(this.height=i)}}(j=v||(v={})).delete="delete",j.wait="wait";class ie{constructor(){this.mode=v.delete,this.value=0}load(t){th(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.value||(this.value=t.value))}}class ii{constructor(){this.density=new it,this.limit=new ie,this.value=0}load(t){th(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0===t.value||(this.value=t.value))}}class is{constructor(){this.blur=0,this.color=new e_,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){!th(t)&&(void 0!==t.blur&&(this.blur=t.blur),this.color=e_.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 io{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(th(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tN(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
33ype=t.type)}}class ia extends eF{constructor(){super(),this.destroy=a.none,this.speed=5}load(t){super.load(t),th(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class ir extends eW{constructor(){super(),this.animation=new ia,this.value=3}load(t){if(super.load(t),th(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class il{constructor(){this.width=0}load(t){th(t)||(void 0!==t.color&&(this.color=eB.create(this.color,t.color)),void 0!==t.width&&(this.width=tP(t.width)),void 0!==t.opacity&&(this.opacity=tP(t.opacity)))}}class ih extends eU{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),th(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 ic{constructor(t,e){this._engine=t,this._container=e,this.bounce=new eQ,this.collisions=new eY,this.color=new eB,this.color.value="#fff",this.effect=new eK,this.groups={},this.move=new e7,this.number=new ii,this.opacity=new e8,this.reduceDuplicates=!1,this.shadow=new is,this.shape=new io,this.size=new ir,this.stroke=new il,this.zIndex=new ih}load(t){if(th(t))return;if(void 0!==t.groups)for(let e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;let i=t.groups[e];void 0!==i&&(this.groups[e]=tN(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(eB.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=tN({},t.interactivity));let e=t.stroke;if(e&&(this.stroke=tY(e,t=>{let e=new il;return e.load(t),e})),this._container){let e=this._engine.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function iu(t,...e){for(let i of e)t.load(i)}function id(t,e,...i){let n=new ic(t,e);return iu(n,...i),n}class ip{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&t.default.mode===g.any),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new ex,this.backgroundMask=new eP,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new eC,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new eG(t,e),this.manualParticles=[],this.particles=id(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(th(t))return;void 0!==t.preset&&tY(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=tP(t.delay));let e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=tP(t.duration));let i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);let n=t.fullScreen;tn(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new eV;return e.load(t),e})),this.particles.load(t.particles),this.style=tN(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let e of s)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new eR;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(let e of t.themes){let t=this.themes.find(t=>t.name===e.name);if(t)t.load(e);else{let t=new eL;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(g.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(g.light)?.name}setResponsive(t,e,i){this.load(i);let n=this.responsive.find(i=>i.mode===f.screen&&screen?i.maxWidth>
33screen.availWidth:i.maxWidth*e>t);return this.load(n?.options),n?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=tI("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?g.dark:g.light);i&&this.load(i.options)}}}(H=w||(w={})).external="external",H.particles="particles";class ig{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode?.(t)}async init(){for(let t of(this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case w.external:this._externalInteractors.push(t);break;case w.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(let e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(let e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}(B=b||(b={})).normal="normal",B.inside="inside",B.outside="outside";let iy=0,im="random";function iv(t){if(!tL(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}class iw{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,n=iy)=>{var s;for(let n of t.plugins.values()){let t=void 0!==n.particlePosition?n.particlePosition(e,this):void 0;if(t)return tu.create(t.x,t.y,i)}let o=(s={size:t.canvas.size,position:e},{x:s.position?.x??tm()*s.size.width,y:s.position?.y??tm()*s.size.height}),a=tu.create(o.x,o.y,i),r=this.getRadius(),l=this.options.move.outModes,h=e=>{iv({outMode:e,checkModes:[m.bounce],coord:a.x,maxCoord:t.canvas.size.width,setCb:t=>a.x+=t,radius:r})},c=e=>{iv({outMode:e,checkModes:[m.bounce],coord:a.y,maxCoord:t.canvas.size.height,setCb:t=>a.y+=t,radius:r})};return(h(l.left??l.default),h(l.right??l.default),c(l.top??l.default),c(l.bottom??l.default),this._checkOverlap(a,n))?this._calcPosition(t,void 0,i,n+1):a},this._calculateVelocity=()=>{let t=(function(t){let e=td.origin;return e.length=1,e.angle=t,e})(this.direction).copy(),e=this.options.move;if(e.direction===n.inside||e.direction===n.outside)return t;let i=tT(t_(e.angle.value)),s=tT(t_(e.angle.offset)),o={left:s-.5*i,right:s+.5*i};return e.straight||(t.angle+=tb(tP(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=tm()),t},this._checkOverlap=(t,e=iy)=>{let i=this.options.collisions,n=this.getRadius();if(!i.enable)return!1;let s=i.overlap;if(s.enable)return!1;let o=s.retries;if(o>=0&&e>o)throw Error(`${J} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>tO(t,e.position)<n+e.getRadius())},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;let e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?.5*Math.PI:0;if(!(Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2))return t;if(this.backColor)return this.backColor;if(this.roll.alter){var n,s;return n=this.roll.alter.type,s=this.roll.alter.value,{h:t.h,s:t.s,l:t.l+(n===c.darken?-1:1)*s}}return t},this._initPosition=t=>{let e=this.container,i=t_(this.options.zIndex.value);this.position=this._calcPosition(e,t,tv(i,0,e.zLayers)),this.initialPosition=this.position.copy();let s=e.canvas.size;switch(this.moveCenter={...t0(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??l.percent},this.direction=function(t,e,i){if(to(t))return tT(t);switch(t){case n.top:return-(.5*Math.PI);case n.topRight:return-(.25*Math.PI);case n.right:return 0;case n.bottomRight:return .25*Math.PI;case n.bottom:return .5*Math.PI;case n.bottomLeft:return .75*Math.PI;case n.left:return Math.PI;case n.topLeft:return-(.75*Math.PI);case n.inside:return Math.atan2(i.y-e.y,i.x-e.x);case n.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return tm()*ty}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case n.inside:this.outType=b.inside;break;case n.outside:this.outType=b.outside}this.offset=td.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let e=this.container,i=this.pathGenerator,n=e.shapeDrawers.get(this.shape);
33for(let i of(n?.particleDestroy?.(this),e.plugins.values()))i.particleDestroyed?.(this,t);for(let i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(d.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){let e=this.container,i=e.canvas;for(let n of e.plugins.values())i.drawParticlePlugin(n,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??eh(this.color))}getMass(){return this.getRadius()**2*Math.PI*.5}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??eh(this.strokeColor))}init(t,e,i,n){let s=this.container,o=this._engine;this.id=t,this.group=n,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=b.normal,this.ignoresResizeRatio=!0;let a=s.retina.pixelRatio,r=s.actualOptions,l=id(this._engine,s,r.particles),{reduceDuplicates:h}=l,c=l.effect.type,u=l.shape.type;this.effect=tK(c,this.id,h),this.shape=tK(u,this.id,h);let d=l.effect,p=l.shape;if(i){if(i.effect?.type){let t=tK(i.effect.type,this.id,h);t&&(this.effect=t,d.load(i.effect))}if(i.shape?.type){let t=tK(i.shape.type,this.id,h);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===im){let t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(Math.random()*t.length)]}if(this.shape===im){let t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(Math.random()*t.length)]}this.effectData=function(t,e,i,n){let s=e.options[t];if(s)return tN({close:e.close,fill:e.fill},tK(s,i,n))}(this.effect,d,this.id,h),this.shapeData=function(t,e,i,n){let s=e.options[t];if(s)return tN({close:e.close,fill:e.fill},tK(s,i,n))}(this.shape,p,this.id,h),l.load(i);let f=this.effectData;f&&l.load(f.particles);let g=this.shapeData;g&&l.load(g.particles);let y=new eG(o,s);y.load(s.actualOptions.interactivity),y.load(l.interactivity),this.interactivity=y,this.effectFill=f?.fill??l.effect.fill,this.effectClose=f?.close??l.effect.close,this.shapeFill=g?.fill??l.shape.fill,this.shapeClose=g?.close??l.shape.close,this.options=l;let m=this.options.move.path;this.pathDelay=t_(m.delay.value)*ti,m.generator&&(this.pathGenerator=this._engine.getPathGenerator(m.generator),this.pathGenerator&&s.addPath(m.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=tJ(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-t_(this.options.move.decay);let v=s.particles;v.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let w=s.effectDrawers.get(this.effect);!w&&(w=this._engine.getEffectDrawer(this.effect))&&s.effectDrawers.set(this.effect,w),w?.loadEffect&&w.loadEffect(this);let _=s.shapeDrawers.get(this.shape);!_&&(_=this._engine.getShapeDrawer(this.shape))&&s.shapeDrawers.set(this.shape,_),_?.loadShape&&_.loadShape(this);let x=_?.getSidesCount;for(let t of(x&&(this.sides=x(this)),this.spawning=!1,this.shadowColor=t7(this._engine,this.options.shadow.color),v.updaters))t.init(this);for(let t of v.movers)t.init?.(this);for(let t of(w?.particleInit?.(s,this),_?.particleInit?.(s,this),s.plugins.values()))t.particleCreated?.(this)}isInsideCanvas(){let t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let t of this.container.particles.updaters)t.reset?.(this)}}class ib{constructor(t,e){this.position=t,this.particle=e}}(N=_||(_={})).circle="circle",N.rectangle="rectangle";class i_{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class ix extends i_{constructor(t,e,i){super(t,e,_.circle),this.radius=i}contains(t){return tO(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,n={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},s=this.radius;if(t instanceof ix||t.type===_.circle)return s+t.radius>Math.sqrt(n.x**2+n.y**2);if(t instanceof iS||t.type===_.rectangle){let{width:e,height:i}=t.size;
33return Math.pow(n.x-e,2)+Math.pow(n.y-i,2)<=s**2||n.x<=s+e&&n.y<=s+i||n.x<=e||n.y<=i}return!1}}class iS extends i_{constructor(t,e,i,n){super(t,e,_.rectangle),this.size={height:n,width:i}}contains(t){let e=this.size.width,i=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+i}intersects(t){if(t instanceof ix)return t.intersects(this);let e=this.size.width,i=this.size.height,n=this.position,s=t.position,o=t instanceof iS?t.size:{width:0,height:0},a=o.width,r=o.height;return s.x<n.x+e&&s.x+a>n.x&&s.y<n.y+i&&s.y+r>n.y}}class iP{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:n}=this.rectangle.size,{capacity:s}=this;for(let o=0;o<4;o++){let a=o%2;this._subs.push(new iP(new iS(t+.5*i*a,e+.5*n*(Math.round(.5*o)-a),.5*i,.5*n),s))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(e=>e.insert(t))))}query(t,e){let i=[];if(!t.intersects(this.rectangle))return[];for(let n of this._points)!t.contains(n.position)&&tO(t.position,n.position)>n.particle.getRadius()&&(!e||e(n.particle))||i.push(n.particle);if(this._divided)for(let n of this._subs)i.push(...n.query(t,e));return i}queryCircle(t,e,i){return this.query(new ix(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new iS(t.x,t.y,e.width,e.height),i)}}let iC=t=>{let{height:e,width:i}=t;return new iS(-.25*i,-.25*e,1.5*i,1.5*e)};class iO{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i)=>{let n=t.number;if(!t.number.density?.enable){void 0===i?this._limit=n.limit.value:n.limit&&this._groupLimits.set(i,n.limit.value);return}let s=this._initDensityFactor(n.density),o=n.value,a=n.limit.value>0?n.limit.value:o,r=Math.min(o,a)*s+e,l=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this._limit=n.limit.value*s:this._groupLimits.set(i,n.limit.value*s),l<r?this.push(Math.abs(r-l),void 0,t,i):l>r&&this.removeQuantity(l-r,i)},this._initDensityFactor=t=>{let e=this._container;if(!e.canvas.element||!t.enable)return 1;let i=e.canvas.element,n=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*n**2)},this._pushParticle=(t,e,i,n)=>{try{let s=this._pool.pop();s||(s=new iw(this._engine,this._container)),s.init(this._nextId,t,e,i);let o=!0;if(n&&(o=n(s)),!o)return;return this._array.push(s),this._zArray.push(s),this._nextId++,this._engine.dispatchEvent(d.particleAdded,{container:this._container,data:{particle:s}}),s}catch(t){tM.warning(`${J} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{let n=this._array[t];if(!n||n.group!==e)return!1;let s=this._zArray.indexOf(n);return this._array.splice(t,1),this._zArray.splice(s,1),n.destroy(i),this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:n}}),this._addToPool(n),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ig(t,e),this._pluginsInitialized=!1;let i=e.canvas.size;this.quadTree=new iP(iC(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let t=this._container;t.actualOptions.manualParticles.forEach(e=>this.addParticle(e.position?t0(e.position,t.canvas.size):void 0,e.options))}addParticle(t,e,i,n){let s=this._container.actualOptions.particles.number.limit.mode,o=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(o>0)switch(s){case v.delete:{let t=a+1-o;t>0&&this.removeQuantity(t);break}case v.wait:if(a>=o)return}return this._pushParticle(t,e,i,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){let e=this._container,i=e.canvas;for(let n of(i.clear(),this.update(t),e.plugins.values()))i.drawPlugin(n,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}
33async init(){let t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(let e of t.plugins.values())if(i=e.particlesInitialization?.()??i)break;if(this.addManualParticles(),!i){let t=e.particles,i=t.groups;for(let e in i){let n=i[e];for(let i=this.count,s=0;s<n.number?.value&&i<t.number.value;i++,s++)this.addParticle(void 0,n,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let t=this._container;for(let e of(this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init(),t.pathGenerators.values()))e.init(t)}push(t,e,i,n){for(let s=0;s<t;s++)this.addParticle(e?.position,i,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,n){if(t<0||t>this.count)return;let s=0;for(let o=t;s<e&&o<this.count;o++)this._removeParticle(o,i,n)&&(o--,s++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){let t=this._container.actualOptions,e=t.particles.groups;for(let t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){let e=this._container,i=new Set;for(let t of(this.quadTree=new iP(iC(e.canvas.size),4),e.pathGenerators.values()))t.update();for(let i of e.plugins.values())i.update?.(t);let n=this._resizeFactor;for(let e of this._array){for(let i of(n&&!e.ignoresResizeRatio&&(e.position.x*=n.width,e.position.y*=n.height,e.initialPosition.x*=n.width,e.initialPosition.y*=n.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e),this._container.plugins.values())){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(let i of this.movers)i.isEnabled(e)&&i.move(e,t);if(e.destroyed){i.add(e);continue}this.quadTree.insert(new ib(e.getPosition(),e))}if(i.size){let t=t=>!i.has(t);for(let e of(this._array=this.filter(t),this._zArray=this._zArray.filter(t),i))this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...i)}for(let e of(this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){let t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id),this._lastZIndex=t[t.length-1].position.z,this._needsSort=!1}}}class iT{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||tR()?1:window.devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio,n=t.canvas;if(n.element){let t=n.element;n.size.width=t.offsetWidth*i,n.size.height=t.offsetHeight*i}let s=e.particles,o=s.move;this.maxSpeed=t_(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=t_(s.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,n=e.move,s=n.distance,o=t.retina;o.moveDrift=t_(n.drift)*i,o.moveSpeed=t_(n.speed)*i,o.sizeAnimationSpeed=t_(e.size.animation.speed)*i;let a=o.maxDistance;a.horizontal=void 0!==s.horizontal?s.horizontal*i:void 0,a.vertical=void 0!==s.vertical?s.vertical*i:void 0,o.maxSpeed=t_(n.gravity.maxSpeed)*i}}function ik(t){return t&&!t.destroyed}function iz(t,e,...i){let n=new ip(t,e);return iu(n,...i),n}class iA{constructor(t,e,i){this._intersectionManager=t=>{if(ik(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+ti/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=t;let e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/ti}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>ti){this.draw(!1);return}if(this.particles.draw(e),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(t){tM.error(`${J} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new iT(this),this.canvas=new ev(this,this._engine),this.particles=new iO(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=iz(this._engine,this),this.actualOptions=iz(this._engine,this),this._eventListeners=new eb(this),this._intersectionObserver=function(t){if(!tR()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>this._intersectionManager(t)),this._engine.dispatchEvent(d.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&ik(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!ik(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,n)=>{if(!ik(this))return;let s=this.retina.pixelRatio,o={x:i.x*s,y:i.y*s};t(e,this.particles.quadTree.queryCircle(o,n*s))},n=!1,s=!1;for(let[t,o]of(this._clickHandlers.set("click",t=>{if(!ik(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)}),this._clickHandlers.set("touchstart",()=>{ik(this)&&(n=!0,s=!1)}),this._clickHandlers.set("touchmove",()=>{ik(this)&&(s=!0)}),this._clickHandlers.set("touchend",t=>{if(ik(this)){if(n&&!s){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let n=this.canvas.element,s=n?n.getBoundingClientRect():void 0;i(t,{x:e.clientX-(s?s.left:0),y:e.clientY-(s?s.top:0)},Math.max(e.radiusX,e.radiusY))}n=!1,s=!1}}),this._clickHandlers.set("touchcancel",()=>{ik(this)&&(n=!1,s=!1)}),this._clickHandlers))e.addEventListener(t,o)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!ik(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(ik(this)){for(let[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(ik(this)){for(let t of(this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy(),this.effectDrawers.values())
33)t.destroy?.(this);for(let t of this.shapeDrawers.values())t.destroy?.(this);for(let t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(let t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){let t=this._engine.items,e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1)}this._engine.dispatchEvent(d.containerDestroyed,{container:this})}}draw(t){if(!ik(this))return;let e=t,i=t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)};this._drawAnimationFrame=tf(t=>i(t))}async export(t,e={}){for(let i of this.plugins.values()){if(!i.export)continue;let n=await i.export(t,e);if(n.supported)return n.blob}tM.error(`${J} - Export plugin with type ${t} not found`)}handleClickMode(t){if(ik(this))for(let e of(this.particles.handleClickMode(t),this.plugins.values()))e.handleClickMode?.(t)}async init(){if(!ik(this))return;for(let t of this._engine.getSupportedEffects()){let e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}for(let t of this._engine.getSupp
33ortedShapes()){let e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}for(let[t,e]of(await this.particles.initPlugins(),this._options=iz(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=iz(this._engine,this,this._options),await this._engine.getAvailablePlugins(this)))this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:t,duration:e,delay:i,fpsLimit:n,smooth:s}=this.actualOptions;for(let o of(this.zLayers=t,this._duration=t_(e)*ti,this._delay=t_(i)*ti,this._lifeTime=0,this.fpsLimit=n>0?n:120,this._smooth=s,this.effectDrawers.values()))await o.init?.(this);for(let t of this.shapeDrawers.values())await t.init?.(this);for(let t of this.plugins.values())await t.init?.();for(let t of(this._engine.dispatchEvent(d.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity(),this.plugins.values()))t.particlesSetup?.();this._engine.dispatchEvent(d.particlesSetup,{container:this})}async loadTheme(t){ik(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(ik(this)&&(void 0!==this._drawAnimationFrame&&(tg(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(d.containerPaused,{container:this})}}play(t){if(!ik(this))return;let e=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),e)for(let t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(d.containerPlay,{container:this}),this.draw(e??!1)}async refresh(){if(ik(this))return this.stop(),this.start()}async reset(t){if(ik(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=iz(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=iz(this._engine,this,this._options),this.refresh()}async start(){ik(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{let e=async()=>{for(let t of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins.values()))await t.start?.();this._engine.dispatchEvent(d.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void e(),this._delay)}))}stop(){if(ik(this)&&this.started){for(let t of(this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element),this.plugins.values()))t.stop?.();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(d.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class iE{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){let i=this._listeners.get(t);i?.forEach(t=>t(e))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){let i=this._listeners.get(t);if(!i)return;let n=i.length,s=i.indexOf(e);s<0||(1===n?this._listeners.delete(t):i.splice(s,1))}}async function iM(t,e,i,n=!1){let s=e.get(t);return(!s||n)&&(s=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,s)),s}async function iG(t){let e=tK(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?await i.json():(tM.error(`${J} ${i.status} while retrieving config file`),t.fallback)}let iV="true",iR="false",iI="canvas",iL=t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===iI)(e=t).dataset[W]||(e.dataset[W]=iR);else{let i=t.getElementsByTagName(iI);i.length?(e=i[0]).dataset[W]=iR:((e=document.createElement(iI)).dataset[W]=iV,t.appendChild(e))}let i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e},iD=(t,e)=>{let i=e??document.getElementById(t);
33return i||((i=document.createElement("div")).id=t,i.dataset[W]=iV,document.body.append(i)),i};class iF{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new iE,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.7.1"}async addColorManager(t,e=!0){this.colorManagers.set(t.key,t),await this.refresh(e)}addConfig(t){let e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(d.configAdded,{data:{name:e,config:t}})}async addEasing(t,e,i=!0){this.getEasing(t)||(this.easingFunctions.set(t,e),await this.refresh(i))}async addEffect(t,e,i=!0){tY(t,t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,n=!0){(i||!this.getPreset(t))&&this.presets.set(t,e),await this.refresh(n)}async addShape(t,e=!0){for(let e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return iM(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return iM(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return iM(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){let{items:e}=this,i=e[t];if(!i||i.destroyed){e.splice(t,1);return}return i}async load(t){let e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*tm())}`,{index:i,url:n}=t,s=tK(n?await iG({fallback:t.options,url:n,index:i}):t.options,i),{items:o}=this,a=o.findIndex(t=>t.id.description===e),r=new iA(this,e,s);if(a>=0){let t=this.item(a);t&&!t.destroyed&&t.destroy(!1),o.splice(a,t?1:0,r)}else o.push(r);let l=iL(iD(e,t.element));return r.canvas.loadCanvas(l),await r.start(),r}loadOptions(t,e){this.plugins.forEach(i=>i.loadOptions?.(t,e))}loadParticlesOptions(t,e,...i){let n=this.updaters.get(t);n&&n.forEach(t=>t.loadOptions?.(e,...i))}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){let{items:e}=this;if(!e.length)throw Error(`${J} can only set click handlers after calling tsParticles.load()`);e.forEach(e=>e.addClickHandler(t))}}class ij{constructor(t){this.type=w.external,this.container=t}}class iH{constructor(t){this.type=w.particles,this.container=t}}($=x||(x={})).clockwise="clockwise",$.counterClockwise="counter-clockwise",$.random="random",(U=S||(S={})).linear="linear",U.radial="radial",U.random="random",(q=P||(P={})).easeInBack="ease-in-back",q.easeInCirc="ease-in-circ",q.easeInCubic="ease-in-cubic",q.easeInLinear="ease-in-linear",q.easeInQuad="ease-in-quad",q.easeInQuart="ease-in-quart",q.easeInQuint="ease-in-quint",q.easeInExpo="ease-in-expo",q.easeInSine="ease-in-sine",q.easeOutBack="ease-
33out-back",q.easeOutCirc="ease-out-circ",q.easeOutCubic="ease-out-cubic",q.easeOutLinear="ease-out-linear",q.easeOutQuad="ease-out-quad",q.easeOutQuart="ease-out-quart",q.easeOutQuint="ease-out-quint",q.easeOutExpo="ease-out-expo",q.easeOutSine="ease-out-sine",q.easeInOutBack="ease-in-out-back",q.easeInOutCirc="ease-in-out-circ",q.easeInOutCubic="ease-in-out-cubic",q.easeInOutLinear="ease-in-out-linear",q.easeInOutQuad="ease-in-out-quad",q.easeInOutQuart="ease-in-out-quart",q.easeInOutQuint="ease-in-out-quint",q.easeInOutExpo="ease-in-out-expo",q.easeInOutSine="ease-in-out-sine";let iB=function(){let t=new iF;return t.init(),t}();tR()||(window.tsParticles=iB)},98084:function(t,e,i){"use strict";i.d(e,{UG:function(){return y}});var n=i(45256),s=i(21072),o=i(75973),a=i(52322);i(2784);var r=i(37307),l=i(52536),h=i(50271),c=i(6355),u=i(51077);let d=[],p={allowDangerousHtml:!0},f=/^(https?|ircs?|mailto|xmpp)$/i,g=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function y(t){let e=function(t){let e=t.rehypePlugins||d,i=t.remarkPlugins||d,n=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...p}:p;return(0,h.l)().use(r.Z).use(i).use(l.Z,n).use(e)}(t),i=function(t){let e=t.children||"",i=new u.k;return"string"==typeof e?i.value=e:(0,n.t1)("Unexpected value `"+e+"` for `children` prop, expected `string`"),i}(t);return function(t,e){let i=e.allowedElements,r=e.allowElement,l=e.components,h=e.disallowedElements,u=e.skipHtml,d=e.unwrapDisallowed,p=e.urlTransform||m;for(let t of g)Object.hasOwn(e,t.from)&&(0,n.t1)("Unexpected `"+t.from+"` prop, "+(t.to?"use `"+t.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+t.id+"> for more info)");return i&&h&&(0,n.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,c.Vn)(t,function(t,e,n){if("raw"===t.type&&n&&"number"==typeof e)return u?n.children.splice(e,1):n.children[e]={type:"text",value:t.value},e;if("element"===t.type){let e;for(e in o.w)if(Object.hasOwn(o.w,e)&&Object.hasOwn(t.properties,e)){let i=t.properties[e],n=o.w[e];(null===n||n.includes(t.tagName))&&(t.properties[e]=p(String(i||""),e,t))}}if("element"===t.type){let s=i?!i.includes(t.tagName):!!h&&h.includes(t.tagName);if(!s&&r&&"number"==typeof e&&(s=!r(t,e,n)),s&&n&&"number"==typeof e)return d&&t.children?n.children.splice(e,1,...t.children):n.children.splice(e,1),e}}),(0,s.v)(t,{Fragment:a.Fragment,components:l,ignoreInvalidStyle:!0,jsx:a.jsx,jsxs:a.jsxs,passKeys:!0,passNode:!0})}(e.runSync(e.parse(i),i),t)}function m(t){let e=t.indexOf(":"),i=t.indexOf("?"),n=t.indexOf("#"),s=t.indexOf("/");return -1===e||-1!==s&&e>s||-1!==i&&e>i||-1!==n&&e>n||f.test(t.slice(0,e))?t:""}},16198:function(t,e,i){"use strict";if("undefined"!=typeof window&&!("onscrollend"in window)){let t=new Set;document.addEventListener("touchstart",e=>{for(let i of e.changedTouches)t.add(i.identifier)},{passive:!0}),document.addEventListener("touchend",e=>{for(let i of e.changedTouches)t.delete(i.identifier)},{passive:!0}),document.addEventListener("touchcancel",e=>{for(let i of e.changedTouches)t.delete(i.identifier)},{passive:!0});let e=new WeakMap;function n(t,e,i){let n=t[e];t[e]=function(){let t=Array.prototype.slice.apply(arguments,[0]);n.apply(this,t),t.unshift(n),i.apply(this,t)}}function s(i,n,s,o){if("scroll"!=n&&"scrollend"!=n)return;let a=this,r=e.get(a);if(void 0===r){let n=0;r={scrollListener:e=>{clearTimeout(n),n=setTimeout(()=>{t.size?setTimeout(r.scrollListener,100):(a&&a.dispatchEvent(new Event("scrollend")),n=0)},100)},listeners:0},i.apply(a,["scroll",r.scrollListener,{passive:!0}]),e.set(a,r)}r.listeners++}function o(t,i,n){if("scroll"!=i&&"scrollend"!=i)return;let s=e.get(this);void 0!==s&&(--s.listeners>0||(t.apply(this,["scroll",s.scrollListener]),e.delete(this)))}n(Element.prototype,"addEventListener",s),n(window,"addEventListener",s),n(document,"addEventListener",s),n(Element.prototype,"removeEventListener",o),n(window,"removeEventListener",o),n(document,"removeEventListener",o)}}
33,43841:function(t,e,i){"use strict";i.d(e,{U:function(){return h},o:function(){return r}});var n=i(2784);let s=t=>{let e;let i=new Set,n=(t,n)=>{let s="function"==typeof t?t(e):t;if(!Object.is(s,e)){let t=e;e=(null!=n?n:"object"!=typeof s||null===s)?s:Object.assign({},e,s),i.forEach(i=>i(e,t))}},s=()=>e,o={setState:n,getState:s,getInitialState:()=>a,subscribe:t=>(i.add(t),()=>i.delete(t))},a=e=t(n,s,o);return o},o=t=>t?s(t):s,a=t=>t;function r(t,e=a){let i=n.useSyncExternalStore(t.subscribe,n.useCallback(()=>e(t.getState()),[t,e]),n.useCallback(()=>e(t.getInitialState()),[t,e]));return n.useDebugValue(i),i}let l=t=>{let e=o(t),i=t=>r(e,t);return Object.assign(i,e),i},h=t=>t?l(t):l},6188:function(t,e,i){"use strict";i.d(e,{N:function(){return l}});var n=i(2784);let s=t=>Symbol.iterator in t,o=t=>"entries"in t,a=(t,e)=>{let i=t instanceof Map?t:new Map(t.entries()),n=e instanceof Map?e:new Map(e.entries());if(i.size!==n.size)return!1;for(let[t,e]of i)if(!n.has(t)||!Object.is(e,n.get(t)))return!1;return!0},r=(t,e)=>{let i=t[Symbol.iterator](),n=e[Symbol.iterator](),s=i.next(),o=n.next();for(;!s.done&&!o.done;){if(!Object.is(s.value,o.value))return!1;s=i.next(),o=n.next()}return!!s.done&&!!o.done};function l(t){let e=n.useRef(void 0);return i=>{var n;let l=t(i);return Object.is(n=e.current,l)||"object"==typeof n&&null!==n&&"object"==typeof l&&null!==l&&Object.getPrototypeOf(n)===Object.getPrototypeOf(l)&&(s(n)&&s(l)?o(n)&&o(l)?a(n,l):r(n,l):a({entries:()=>Object.entries(n)},{entries:()=>Object.entries(l)}))?e.current:e.current=l}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.