(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[217],{6691:function(t,e){"use strict";var i,s,o,n;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return r},ACTION_PREFETCH:function(){return h},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return u},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return s},PrefetchKind:function(){return i},isThenable:function(){return p}});let a="refresh",r="navigate",l="restore",c="server-patch",h="prefetch",d="fast-refresh",u="server-action";function p(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(o=i||(i={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(n=s||(s={})).fresh="fresh",n.reusable="reusable",n.expired="expired",n.stale="stale",("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4318:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});let s=i(8364);function o(t,e,o,n){{let a=i(9720).normalizeLocalePath,r=i(3656).detectDomainLocale,l=e||a(t,o).detectedLocale,c=r(n,void 0,l);if(c){let e="http"+(c.http?"":"s")+"://",i=l===c.defaultLocale?"":"/"+l;return""+e+c.domain+(0,s.normalizePathTrailingSlash)(""+i+t)}return!1}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6541:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return b}});let s=i(8754),o=i(1757),n=i(5893),a=o._(i(7294)),r=s._(i(3935)),l=s._(i(7828)),c=i(7367),h=i(7903),d=i(4938);i(1997);let u=i(9953),p=s._(i(6663)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function v(t,e,i,s,o,n,a){let r=null==t?void 0:t.src;t&&t["data-loaded-src"]!==r&&(t["data-loaded-src"]=r,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&o(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let s=!1,o=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>s,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{s=!0,e.preventDefault()},stopPropagation:()=>{o=!0,e.stopPropagation()}})}(null==s?void 0:s.current)&&s.current(t)}}))}function y(t){let[e,i]=a.version.split(".",2),s=parseInt(e,10),o=parseInt(i,10);return s>18||18===s&&o>=3?{fetchPriority:t}:{fetchpriority:t}}let m=(0,a.forwardRef)((t,e)=>{let{src:i,srcSet:s,sizes:o,height:r,width:l,decoding:c,className:h,style:d,fetchPriority:u,placeholder:p,loading:f,unoptimized:m,fill:g,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:_,setShowAltText:x,sizesInput:C,onLoad:k,onError:z,...P}=t;return(0,n.jsx)("img",{...P,...y(u),loading:f,width:l,height:r,decoding:c,"data-nimg":g?"fill":"1",className:h,style:d,sizes:o,srcSet:s,src:i,ref:(0,a.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(z&&(t.src=t.src),t.complete&&v(t,p,b,w,_,m,C))},[i,p,b,w,_,z,m,C,e]),onLoad:t=>{v(t.currentTarget,p,b,w,_,m,C)},onError:t=>{x(!0),"empty"!==p&&_(!0),z&&z(t)}})});function g(t){let{isAppRouter:e,imgAttributes:i}=t,s={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...y(i.fetchPriority)};return e&&r.default.preload?(r.default.preload(i.src,s),null):(0,n.jsx)(l.default,{children:(0,n.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...s},"__nimg-"+i.src+i.srcSet+i.sizes)})}let b=(0,a.forwardRef)((t,e)=>{let i=(0,a.useContext)(u.RouterContext),s=(0,a.useContext)(d.ImageConfigContext),o=(0,a.useMemo)(()=>{let t=f||s||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i}},[s]),{onLoad:r,onLoadingComplete:l}=t,v=(0,a.useRef)(r);(0,a.useEffect)(()=>{v.current=r},[r]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[b,w]=(0,a.useState)(!1),[_,x]=(0,a.useState)(!1),{props:C,meta:k}=(0,c.getImgProps)(t,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:_});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m,{...C,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:v,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:x,sizesInput:t.sizes,ref:e}),k.priority?(0,n.jsx)(g,{isAppRouter:!i,imgAttributes:C}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9577:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return w}});let s=i(8754),o=i(5893),n=s._(i(7294)),a=i(1401),r=i(2045),l=i(7420),c=i(7201),h=i(1443),d=i(9953),u=i(5320),p=i(2905),f=i(4318),v=i(953),y=i(6691),m=new Set;function g(t,e,i,s,o,n){if(n||(0,r.isLocalURL)(e)){if(!s.bypassPrefetchedCheck){let o=e+"%"+i+"%"+(void 0!==s.locale?s.locale:"locale"in t?t.locale:void 0);if(m.has(o))return;m.add(o)}Promise.resolve(n?t.prefetch(e,o):t.prefetch(e,i,s)).catch(t=>{})}}function b(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let w=n.default.forwardRef(function(t,e){let i,s;let{href:l,as:m,children:w,prefetch:_=null,passHref:x,replace:C,shallow:k,scroll:z,locale:P,onClick:O,onMouseEnter:M,onTouchStart:S,legacyBehavior:T=!1,...R}=t;i=w,T&&("string"==typeof i||"number"==typeof i)&&(i=(0,o.jsx)("a",{children:i}));let E=n.default.useContext(d.RouterContext),D=n.default.useContext(u.AppRouterContext),I=null!=E?E:D,A=!E,L=!1!==_,B=null===_?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:j,as:G}=n.default.useMemo(()=>{if(!E){let t=b(l);return{href:t,as:m?b(m):t}}let[t,e]=(0,a.resolveHref)(E,l,!0);return{href:t,as:m?(0,a.resolveHref)(E,m):e||t}},[E,l,m]),F=n.default.useRef(j),q=n.default.useRef(G);T&&(s=n.default.Children.only(i));let H=T?s&&"object"==typeof s&&s.ref:e,[W,V,Z]=(0,p.useIntersection)({rootMargin:"200px"}),U=n.default.useCallback(t=>{(q.current!==G||F.current!==j)&&(Z(),q.current=G,F.current=j),W(t),H&&("function"==typeof H?H(t):"object"==typeof H&&(H.current=t))},[G,H,j,Z,W]);n.default.useEffect(()=>{I&&V&&L&&g(I,j,G,{locale:P},{kind:B},A)},[G,j,V,P,L,null==E?void 0:E.locale,I,A,B]);let N={ref:U,onClick(t){T||"function"!=typeof O||O(t),T&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),I&&!t.defaultPrevented&&function(t,e,i,s,o,a,l,c,h){let{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,r.isLocalURL)(i)))return;t.preventDefault();let u=()=>{let t=null==l||l;"beforePopState"in e?e[o?"replace":"push"](i,s,{shallow:a,locale:c,scroll:t}):e[o?"replace":"push"](s||i,{scroll:t})};h?n.default.startTransition(u):u()}(t,I,j,G,C,k,z,P,A)},onMouseEnter(t){T||"function"!=typeof M||M(t),T&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(t),I&&(L||!A)&&g(I,j,G,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:B},A)},onTouchStart:function(t){T||"function"!=typeof S||S(t),T&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(t),I&&(L||!A)&&g(I,j,G,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:B},A)}};if((0,c.isAbsoluteUrl)(G))N.href=G;else if(!T||x||"a"===s.type&&!("href"in s.props)){let t=void 0!==P?P:null==E?void 0:E.locale,e=(null==E?void 0:E.isLocaleDomain)&&(0,f.getDomainLocale)(G,t,null==E?void 0:E.locales,null==E?void 0:E.domainLocales);N.href=e||(0,v.addBasePath)((0,h.addLocale)(G,t,null==E?void 0:E.defaultLocale))}return T?n.default.cloneElement(s,N):(0,o.jsx)("a",{...R,...N,children:i})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9720:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return s}});let s=(t,e)=>i(1808).normalizeLocalePath(t,e);("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2905:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let s=i(7294),o=i(3815),n="function"==typeof IntersectionObserver,a=new Map,r=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}=t,c=l||!n,[h,d]=(0,s.useState)(!1),u=(0,s.useRef)(null),p=(0,s.useCallback)(t=>{u.current=t},[]);return(0,s.useEffect)(()=>{if(n){if(c||h)return;let t=u.current;if(t&&t.tagName)return function(t,e,i){let{id:s,observer:o,elements:n}=function(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},s=r.find(t=>t.root===i.root&&t.margin===i.margin);if(s&&(e=a.get(s)))return e;let o=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=o.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:o},r.push(i),a.set(i,e),e}(i);return n.set(t,e),o.observe(t),function(){if(n.delete(t),o.unobserve(t),0===n.size){o.disconnect(),a.delete(s);let t=r.findIndex(t=>t.root===s.root&&t.margin===s.margin);t>-1&&r.splice(t,1)}}}(t,t=>t&&d(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!h){let t=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(t)}},[c,i,e,h,u.current]),[p,h,(0,s.useCallback)(()=>{d(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7367:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return r}}),i(1997);let s=i(9919),o=i(7903);function n(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function r(t,e){var i;let r,l,c,{src:h,sizes:d,unoptimized:u=!1,priority:p=!1,loading:f,className:v,quality:y,width:m,height:g,fill:b=!1,style:w,overrideSrc:_,onLoad:x,onLoadingComplete:C,placeholder:k="empty",blurDataURL:z,fetchPriority:P,layout:O,objectFit:M,objectPosition:S,lazyBoundary:T,lazyRoot:R,...E}=t,{imgConf:D,showAltText:I,blurComplete:A,defaultLoader:L}=e,B=D||o.imageConfigDefault;if("allSizes"in B)r=B;else{let t=[...B.deviceSizes,...B.imageSizes].sort((t,e)=>t-e),e=B.deviceSizes.sort((t,e)=>t-e);r={...B,allSizes:t,deviceSizes:e}}if(void 0===L)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let j=E.loader||L;delete E.loader,delete E.srcSet;let G="__next_img_default"in j;if(G){if("custom"===r.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=j;j=e=>{let{config:i,...s}=e;return t(s)}}if(O){"fill"===O&&(b=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];t&&(w={...w,...t});let e={responsive:"100vw",fill:"100vw"}[O];e&&!d&&(d=e)}let F="",q=a(m),H=a(g);if("object"==typeof(i=h)&&(n(i)||void 0!==i.src)){let t=n(h)?h.default:h;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,c=t.blurHeight,z=z||t.blurDataURL,F=t.src,!b){if(q||H){if(q&&!H){let e=q/t.width;H=Math.round(t.height*e)}else if(!q&&H){let e=H/t.height;q=Math.round(t.width*e)}}else q=t.width,H=t.height}}let W=!p&&("lazy"===f||void 0===f);(!(h="string"==typeof h?h:F)||h.startsWith("data:")||h.startsWith("blob:"))&&(u=!0,W=!1),r.unoptimized&&(u=!0),G&&h.endsWith(".svg")&&!r.dangerouslyAllowSVG&&(u=!0),p&&(P="high");let V=a(y),Z=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:S}:{},I?{}:{color:"transparent"},w),U=A||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,s.getImageBlurSvg)({widthInt:q,heightInt:H,blurWidth:l,blurHeight:c,blurDataURL:z||"",objectFit:Z.objectFit})+'")':'url("'+k+'")',N=U?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:U}:{},K=function(t){let{config:e,src:i,unoptimized:s,width:o,quality:n,sizes:a,loader:r}=t;if(s)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(t,e,i){let{deviceSizes:s,allSizes:o}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let s;s=t.exec(i);s)e.push(parseInt(s[2]));if(e.length){let t=.01*Math.min(...e);return{widths:o.filter(e=>e>=s[0]*t),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof e?{widths:s,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>o.find(e=>e>=t)||o[o.length-1]))],kind:"x"}}(e,o,a),h=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((t,s)=>r({config:e,src:i,quality:n,width:t})+" "+("w"===c?t:s+1)+c).join(", "),src:r({config:e,src:i,quality:n,width:l[h]})}}({config:r,src:h,unoptimized:u,width:q,quality:V,sizes:d,loader:j});return{props:{...E,loading:W?"lazy":f,fetchPriority:P,width:q,height:H,decoding:"async",className:v,style:{...Z,...N},sizes:K.sizes,srcSet:K.srcSet,src:_||K.src},meta:{unoptimized:u,priority:p,placeholder:k,fill:b}}}},9919:function(t,e){"use strict";function i(t){let{widthInt:e,heightInt:i,blurWidth:s,blurHeight:o,blurDataURL:n,objectFit:a}=t,r=s?40*s:e,l=o?40*o:i,c=r&&l?"viewBox='0 0 "+r+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+n+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},5666:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return r}});let s=i(8754),o=i(7367),n=i(6541),a=s._(i(6663));function r(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=n.Image},6663:function(t,e){"use strict";function i(t){let{config:e,src:i,width:s,quality:o}=t;return e.path+"?url="+encodeURIComponent(i)+"&w="+s+"&q="+(o||75)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}}),i.__next_img_default=!0;let s=i},9008:function(t,e,i){t.exports=i(7828)},5675:function(t,e,i){t.exports=i(5666)},1664:function(t,e,i){t.exports=i(9577)},6051:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var s=i(7294),o=i(4372);let n=t=>"object"==typeof t&&null!==t;function a(t,e,i=()=>!1){if(!n(t)||!n(e))return t===e;let s=Object.keys(t).filter(t=>!i(t)),o=Object.keys(e).filter(t=>!i(t));if(s.length!==o.length)return!1;for(let o of s){let s=t[o],r=e[o];if(n(s)&&n(r)){if(s===e&&r===t)continue;if(!a(s,r,i))return!1}else if(Array.isArray(s)&&Array.isArray(r)){if(!function t(e,i,s){if(e.length!==i.length)return!1;for(let o=0;ot.startsWith("_"))}componentDidUpdate(){this.refresh()}forceUpdate(){this.refresh().then(()=>{super.forceUpdate()})}componentDidMount(){(async()=>{this.props.init&&await this.props.init(o.S6),this.setState({init:!0},async()=>{await this.loadParticles()})})()}componentWillUnmount(){this.destroy()}render(){let{width:t,height:e,className:i,canvasClassName:o,id:n}=this.props;return s.createElement("div",{className:i,id:n},s.createElement("canvas",{className:o,style:{...this.props.style,width:t,height:e}}))}async refresh(){this.destroy(),await this.loadParticles()}async loadParticles(){if(!this.state.init)return;let t=this.props.id??l.defaultProps.id??r,e=await o.S6.load({url:this.props.url,id:t,options:this.props.options??this.props.params});this.props.container&&(this.props.container.current=e),this.setState({library:e}),this.props.loaded&&await this.props.loaded(e)}}l.defaultProps={width:"100%",height:"100%",options:{},style:{},url:void 0,id:r};var c=l},1495:function(t,e,i){"use strict";i.d(e,{C:function(){return a}});var s=i(9624),o=i(6323),n=i(2322);class a extends s.e{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return(0,n.Sp)(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,s={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},n=this.radius;if(t instanceof a)return n+t.radius>Math.sqrt(s.x**2+s.y**2);if(t instanceof o.A){let{width:e,height:i}=t.size;return Math.pow(s.x-e,2)+Math.pow(s.y-i,2)<=n**2||s.x<=n+e&&s.y<=n+i||s.x<=e||s.y<=i}return!1}}},9907:function(t,e,i){"use strict";i.d(e,{$o:function(){return h},G1:function(){return r},QL:function(){return f},Re:function(){return c},VH:function(){return u},Wt:function(){return l},YU:function(){return s},ZL:function(){return o},aM:function(){return a},gK:function(){return v},rR:function(){return p},zX:function(){return d},zw:function(){return n}});let s="generated",o="pointerdown",n="pointerup",a="pointerleave",r="pointerout",l="pointermove",c="touchstart",h="touchend",d="touchmove",u="touchcancel",p="resize",f="visibilitychange",v="tsParticles - Error"},9624:function(t,e,i){"use strict";i.d(e,{e:function(){return s}});class s{constructor(t,e){this.position={x:t,y:e}}}},6323:function(t,e,i){"use strict";i.d(e,{A:function(){return n}});var s=i(1495),o=i(9624);class n extends o.e{constructor(t,e,i,s){super(t,e),this.size={height:s,width:i}}contains(t){let e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){t instanceof s.C&&t.intersects(this);let e=this.size.width,i=this.size.height,o=this.position,a=t.position,r=t instanceof n?t.size:{width:0,height:0},l=r.width,c=r.height;return a.xo.x&&a.yo.y}}},8850:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var s=i(9914);class o extends s.U{constructor(t,e){super(t,e,0)}static get origin(){return o.create(0,0)}static clone(t){return o.create(t.x,t.y)}static create(t,e){return new o(t,e)}}},9914:function(t,e,i){"use strict";i.d(e,{U:function(){return n}});var s=i(9907),o=i(3248);class n{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!(0,o.hj)(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:0;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??0;else throw Error(`${s.gK} Vector3d not initialized correctly`)}static get origin(){return n.create(0,0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return n.create(t.x,t.y,t.z)}static create(t,e,i){return new n(t,e,i)}add(t){return n.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 n.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return n.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 n.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 n.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),0)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:0}sub(t){return n.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}}},9826:function(t,e,i){"use strict";i.d(e,{R:function(){return l}});var s=i(3248),o=i(2322);class n{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.delay=0,this.decay=0,this.sync=!0}load(t){t&&(void 0!==t.count&&(this.count=(0,o.Cs)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=(0,o.Cs)(t.offset)),void 0!==t.speed&&(this.speed=(0,o.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.Cs)(t.decay)),void 0!==t.delay&&(this.delay=(0,o.Cs)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class a{constructor(){this.h=new n,this.s=new n,this.l=new n}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}var r=i(1968);class l extends r.O{constructor(){super(),this.animation=new a}static create(t,e){let i=new l;return i.load(t),void 0!==e&&((0,s.HD)(e)||(0,s.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}},9099:function(t,e,i){"use strict";i.d(e,{B:function(){return n},P:function(){return o}});var s=i(2322);class o{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=(0,s.Cs)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,s.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,s.Cs)(t.decay)),void 0!==t.delay&&(this.delay=(0,s.Cs)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class n extends o{constructor(){super(),this.mode="auto",this.startValue="random"}load(t){super.load(t),t&&(void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},1968:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var s=i(3248);class o{constructor(){this.value=""}static create(t,e){let i=new o;return i.load(t),void 0!==e&&((0,s.HD)(e)||(0,s.kJ)(e)?i.load({value:e}):i.load(e)),i}load(t){t?.value!==void 0&&(this.value=t.value)}}},1588:function(t,e,i){"use strict";i.d(e,{SW:function(){return a}}),i(9099);class s{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}var o=i(3248),n=i(2322);class a{constructor(){this.random=new s,this.value=0}load(t){t&&((0,o.jn)(t.random)?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=(0,n.Cs)(t.value,this.random.enable?this.random.minimumValue:void 0)))}}},4133:function(t,e,i){"use strict";i.d(e,{$F:function(){return d},C3:function(){return r},PL:function(){return u},TQ:function(){return a},Wd:function(){return n},ZH:function(){return l},Zw:function(){return h},pS:function(){return o},zv:function(){return c}});var s=i(4808);function o(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function n(t,e,i,s){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(s.x,s.y),t.closePath()}function a(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height)}function r(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,0,0,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(0,0,e.width,e.height)}function c(t){let{container:e,context:i,particle:o,delta:n,colorStyles:a,backgroundMask:r,composite:l,radius:c,opacity:h,shadow:d,transform:u}=t,p=o.getPosition(),f=o.rotation+(o.pathRotation?o.velocity.angle:0),v={sin:Math.sin(f),cos:Math.cos(f)},y={a:v.cos*(u.a??1),b:v.sin*(u.b??1),c:-v.sin*(u.c??1),d:v.cos*(u.d??1)};i.setTransform(y.a,y.b,y.c,y.d,p.x,p.y),i.beginPath(),r&&(i.globalCompositeOperation=l);let m=o.shadowColor;d.enable&&m&&(i.shadowBlur=d.blur,i.shadowColor=(0,s.iz)(m),i.shadowOffsetX=d.offset.x,i.shadowOffsetY=d.offset.y),a.fill&&(i.fillStyle=a.fill);let g=o.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke),function(t,e,i,s,o,n){if(!i.shape)return;let a=t.drawers.get(i.shape);a&&a.draw(e,i,s,o,n,t.retina.pixelRatio)}(e,i,o,c,h,n),g>0&&i.stroke(),o.close&&i.closePath(),o.fill&&i.fill(),function(t,e,i,s,o,n){if(!i.shape)return;let a=t.drawers.get(i.shape);a&&a.afterEffect&&a.afterEffect(e,i,s,o,n,t.retina.pixelRatio)}(e,i,o,c,h,n),i.globalCompositeOperation="source-over",i.setTransform(1,0,0,1,0,0)}function h(t,e,i){e.draw&&e.draw(t,i)}function d(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}function u(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}},4808:function(t,e,i){"use strict";i.d(e,{BE:function(){return g},Dt:function(){return b},VI:function(){return r},Y6:function(){return p},bS:function(){return _},gW:function(){return w},iz:function(){return v},lC:function(){return d},lN:function(){return h},oc:function(){return m},tX:function(){return c},ve:function(){return u},vz:function(){return y}});var s=i(2322),o=i(3248);let n="random",a=new Map;function r(t){a.set(t.key,t)}function l(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 c(t,e,i=!0){if(!t)return;let s=(0,o.HD)(t)?{value:t}:t;if((0,o.HD)(s.value))return function t(e,i,s=!0){if(!e)return;let r=(0,o.HD)(e)?{value:e}:e;if((0,o.HD)(r.value))return r.value===n?f():function(t){for(let[,e]of a)if(t.startsWith(e.stringPrefix))return e.parseString(t);let e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,(t,e,i,s,o)=>e+e+i+i+s+s+(void 0!==o?o+o:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e);return i?{a:void 0!==i[4]?parseInt(i[4],16)/255:1,b:parseInt(i[3],16),g:parseInt(i[2],16),r:parseInt(i[1],16)}:void 0}(r.value);if((0,o.kJ)(r.value))return t({value:(0,o.c8)(r.value,i,s)});for(let[,t]of a){let e=t.handleColor(r);if(e)return e}}(s.value,e,i);if((0,o.kJ)(s.value))return c({value:(0,o.c8)(s.value,e,i)});for(let[,t]of a){let e=t.handleRangeColor(s);if(e)return e}}function h(t,e,i=!0){let s=c(t,e,i);return s?d(s):void 0}function d(t){let e=t.r/255,i=t.g/255,s=t.b/255,o=Math.max(e,i,s),n=Math.min(e,i,s),a={h:0,l:(o+n)/2,s:0};return o!==n&&(a.s=a.l<.5?(o-n)/(o+n):(o-n)/(2-o-n),a.h=e===o?(i-s)/(o-n):a.h=i===o?2+(s-e)/(o-n):4+(e-i)/(o-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function u(t){let e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(i.s){let t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,s=2*i.l-t;e.r=l(s,t,i.h+1/3),e.g=l(s,t,i.h),e.b=l(s,t,i.h-1/3)}else e.r=e.g=e.b=i.l;return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function p(t){let e=u(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function f(t){let e=t??0;return{b:Math.floor((0,s.vd)((0,s.Cs)(e,256))),g:Math.floor((0,s.vd)((0,s.Cs)(e,256))),r:Math.floor((0,s.vd)((0,s.Cs)(e,256)))}}function v(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function y(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function m(t,e,i,o){let n=t,a=e;return void 0===n.r&&(n=u(t)),void 0===a.r&&(a=u(e)),{b:(0,s.CD)(n.b,a.b,i,o),g:(0,s.CD)(n.g,a.g,i,o),r:(0,s.CD)(n.r,a.r,i,o)}}function g(t,e,i){if(i===n)return f();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return m(i,s,t.getRadius(),e.getRadius());{let t=i??s;if(t)return u(t)}}}function b(t,e,i){let s=(0,o.HD)(t)?t:t.value;return s===n?i?c({value:s}):e?n:"mid":"mid"===s?"mid":c({value:s})}function w(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function _(t,e,i){let s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(x(s.h,e.h,i),x(s.s,e.s,i),x(s.l,e.l,i)),s}function x(t,e,i){t.enable=e.enable,t.enable?(t.velocity=(0,s.Gu)(e.speed)/100*i,t.decay=1-(0,s.Gu)(e.decay),t.status="increasing",t.loops=0,t.maxLoops=(0,s.Gu)(e.count),t.time=0,t.delayTime=1e3*(0,s.Gu)(e.delay),e.sync||(t.velocity*=(0,s.sZ)(),t.value*=(0,s.sZ)()),t.initialValue=t.value):t.velocity=0}},2322:function(t,e,i){"use strict";i.d(e,{BV:function(){return P},CD:function(){return d},Cs:function(){return y},Gk:function(){return w},Gu:function(){return p},Gz:function(){return k},KI:function(){return v},NA:function(){return m},Sp:function(){return b},Uv:function(){return f},_X:function(){return l},bx:function(){return r},hA:function(){return x},lQ:function(){return _},mC:function(){return z},oW:function(){return g},p:function(){return C},sZ:function(){return c},uZ:function(){return h},vd:function(){return u}});var s=i(3248),o=i(8850);let n=Math.random,a=new Map;function r(t,e){a.get(t)||a.set(t,e)}function l(t){return a.get(t)||(t=>t)}function c(){return h(n(),0,1-1e-16)}function h(t,e,i){return Math.min(Math.max(t,e),i)}function d(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function u(t){let e=v(t),i=f(t);return e===i&&(i=0),c()*(e-i)+i}function p(t){return(0,s.hj)(t)?t:u(t)}function f(t){return(0,s.hj)(t)?t:t.min}function v(t){return(0,s.hj)(t)?t:t.max}function y(t,e){if(t===e||void 0===e&&(0,s.hj)(t))return t;let i=f(t),o=v(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:y(i,o)}function m(t){let e=t.random,{enable:i,minimumValue:o}=(0,s.jn)(e)?{enable:e,minimumValue:0}:e;return i?p(y(t.value,o)):p(t.value)}function g(t,e){let i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function b(t,e){return g(t,e).distance}function w(t,e,i){if((0,s.hj)(t))return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return -3*Math.PI/4;case"inside":return Math.atan2(i.y-e.y,i.x-e.x);case"outside":return Math.atan2(e.y-i.y,e.x-i.x);default:return c()*Math.PI*2}}function _(t){let e=o.O.origin;return e.length=1,e.angle=t,e}function x(t,e,i,s){return o.O.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function C(t){return{x:(t.position?.x??100*c())*t.size.width/100,y:(t.position?.y??100*c())*t.size.height/100}}function k(t){let e={x:t.position?.x!==void 0?p(t.position.x):void 0,y:t.position?.y!==void 0?p(t.position.y):void 0};return C({size:t.size,position:e})}function z(t){return{x:t.position?.x??c()*t.size.width,y:t.position?.y??c()*t.size.height}}function P(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}},5518:function(t,e,i){"use strict";i.d(e,{h:function(){return q},x:function(){return H}});var s=i(3248),o=i(9826);class n{constructor(){this.speed=2}load(t){t&&void 0!==t.speed&&(this.speed=t.speed)}}class a{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}var r=i(1588);class l extends r.SW{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class c{constructor(){this.horizontal=new l,this.vertical=new l}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}var h=i(2322);class d{constructor(){this.absorb=new n,this.bounce=new c,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new a}load(t){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=(0,h.Cs)(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class u{constructor(){this.offset=0,this.value=90}load(t){t&&(void 0!==t.offset&&(this.offset=(0,h.Cs)(t.offset)),void 0!==t.value&&(this.value=(0,h.Cs)(t.value)))}}class p{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){if(!t)return;void 0!==t.distance&&(this.distance=(0,h.Cs)(t.distance)),void 0!==t.enable&&(this.enable=t.enable);let e=t.rotate?.x??t.rotateX;void 0!==e&&(this.rotate.x=e);let i=t.rotate?.y??t.rotateY;void 0!==i&&(this.rotate.y=i)}}class f{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(t){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 v{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,h.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,h.Cs)(t.maxSpeed)))}}class y{constructor(){this.clamp=!0,this.delay=new r.SW,this.enable=!1,this.options={}}load(t){t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,s.ZB)(this.options,t.options)))}}var m=i(1968);class g{load(t){t&&(void 0!==t.color&&(this.color=m.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class b{constructor(){this.enable=!1,this.length=10,this.fill=new g}get fillColor(){return this.fill.color}set fillColor(t){this.fill.load({color:t})}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),(void 0!==t.fill||void 0!==t.fillColor)&&this.fill.load(t.fill||{color:t.fillColor}),void 0!==t.length&&(this.length=t.length))}}class w{constructor(){this.default="out"}load(t){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 _{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=(0,h.Cs)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,s.ZB)({},t.position)))}}class x{constructor(){this.angle=new u,this.attract=new p,this.center=new f,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new v,this.path=new y,this.outModes=new w,this.random=!1,this.size=!1,this.speed=2,this.spin=new _,this.straight=!1,this.trail=new b,this.vibrate=!1,this.warp=!1}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get collisions(){return!1}set collisions(t){}get noise(){return this.path}set noise(t){this.path=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}load(t){if(!t)return;this.angle.load((0,s.hj)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,h.Cs)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,s.hj)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,h.Cs)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes??t.outMode??t.out_mode;void 0!==e&&((0,s.Kn)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path??t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,h.Cs)(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)}}var C=i(9099);class k extends C.B{constructor(){super(),this.destroy="none",this.speed=2}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){t?.opacity_min!==void 0&&void 0===t.minimumValue&&(t.minimumValue=t.opacity_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class z extends r.SW{constructor(){super(),this.animation=new k,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(!t)return;super.load(t);let e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=(0,h.Cs)(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class P{constructor(){this.enable=!1,this.width=1920,this.height=1080}get area(){return this.width}set area(t){this.width=t}get factor(){return this.height}set factor(t){this.height=t}get value_area(){return this.area}set value_area(t){this.area=t}load(t){if(!t)return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width??t.area??t.value_area;void 0!==e&&(this.width=e);let i=t.height??t.factor;void 0!==i&&(this.height=i)}}class O{constructor(){this.density=new P,this.limit=0,this.value=0}get max(){return this.limit}set max(t){this.limit=t}load(t){if(!t)return;this.density.load(t.density);let e=t.limit??t.max;void 0!==e&&(this.limit=e),void 0!==t.value&&(this.value=t.value)}}class M{constructor(){this.blur=0,this.color=new m.O,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=m.O.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)))}}let S="character",T="char",R="image",E="images",D="polygon",I="star";class A{constructor(){this.loadShape=(t,e,i,o)=>{if(!t)return;let n=(0,s.kJ)(t),a=n?[]:{},r=n!==(0,s.kJ)(this.options[e]),l=n!==(0,s.kJ)(this.options[i]);r&&(this.options[e]=a),l&&o&&(this.options[i]=a),this.options[e]=(0,s.ZB)(this.options[e]??a,t),(!this.options[i]||o)&&(this.options[i]=(0,s.ZB)(this.options[i]??a,t))},this.close=!0,this.fill=!0,this.options={},this.type="circle"}get character(){return this.options[S]??this.options[T]}set character(t){this.options[T]=this.options[S]=t}get custom(){return this.options}set custom(t){this.options=t}get image(){return this.options[R]??this.options[E]}set image(t){this.options[E]=this.options[R]=t}get images(){return this.image}set images(t){this.image=t}get polygon(){return this.options[D]??this.options[I]}set polygon(t){this.options[I]=this.options[D]=t}get stroke(){return[]}set stroke(t){}load(t){if(!t)return;let e=t.options??t.custom;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=(0,s.ZB)(this.options[t]??{},i))}this.loadShape(t.character,S,T,!0),this.loadShape(t.polygon,D,I,!1),this.loadShape(t.image??t.images,R,E,!0),void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class L extends C.B{constructor(){super(),this.destroy="none",this.speed=5}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){t?.size_min!==void 0&&void 0===t.minimumValue&&(t.minimumValue=t.size_min),super.load(t),t&&void 0!==t.destroy&&(this.destroy=t.destroy)}}class B extends r.SW{constructor(){super(),this.animation=new L,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){if(super.load(t),!t)return;let e=t.animation??t.anim;void 0!==e&&(this.animation.load(e),this.value=(0,h.Cs)(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class j{constructor(){this.width=0}load(t){t&&(void 0!==t.color&&(this.color=o.R.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,h.Cs)(t.width)),void 0!==t.opacity&&(this.opacity=(0,h.Cs)(t.opacity)))}}class G extends r.SW{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class F{constructor(t,e){this._engine=t,this._container=e,this.bounce=new c,this.collisions=new d,this.color=new o.R,this.color.value="#fff",this.groups={},this.move=new x,this.number=new O,this.opacity=new z,this.reduceDuplicates=!1,this.shadow=new M,this.shape=new A,this.size=new B,this.stroke=new j,this.zIndex=new G}load(t){if(!t)return;if(this.bounce.load(t.bounce),this.color.load(o.R.create(this.color,t.color)),void 0!==t.groups)for(let e in t.groups){let i=t.groups[e];void 0!==i&&(this.groups[e]=(0,s.ZB)(this.groups[e]??{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex);let e=t.move?.collisions??t.move?.bounce;void 0!==e&&(this.collisions.enable=e),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=(0,s.ZB)({},t.interactivity));let i=t.stroke??t.shape?.stroke;if(i&&(this.stroke=(0,s.KH)(i,t=>{let e=new j;return e.load(t),e})),this._container){let e=this._engine.plugins.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.plugins.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function q(t,...e){for(let i of e)t.load(i)}function H(t,e,...i){let s=new F(t,e);return q(s,...i),s}},3248:function(t,e,i){"use strict";i.d(e,{Ac:function(){return v},HD:function(){return R},HY:function(){return c},KH:function(){return C},Kn:function(){return I},Kr:function(){return l},M_:function(){return y},V0:function(){return P},XD:function(){return g},ZB:function(){return function t(e,...i){for(let s of i){if(null==s)continue;if(!I(s)){e=s;continue}let i=Array.isArray(s);for(let o in i&&(I(e)||!e||!Array.isArray(e))?e=[]:!i&&(I(e)||!e||Array.isArray(e))&&(e={}),s){if("__proto__"===o)continue;let i=s[o],n=e;n[o]=I(i)&&Array.isArray(i)?i.map(e=>t(n[o],e)):t(n[o],i)}}return e}},ap:function(){return S},bt:function(){return M},c8:function(){return f},dB:function(){return d},dU:function(){return p},dp:function(){return x},gy:function(){return w},hj:function(){return E},iC:function(){return b},jl:function(){return a},jn:function(){return T},kJ:function(){return A},kR:function(){return _},mf:function(){return D},mx:function(){return u},wA:function(){return k},wm:function(){return m},yf:function(){return h}});var s=i(2322),o=i(8850);let n={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function a(){return n}function r(t){let e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:o,rectOtherSide:n,velocity:a,factor:r}=t;return s.minn.max||s.maxn.max||(i.max>=o.min&&i.max<=(o.max+o.min)/2&&a>0||i.min<=o.max&&i.min>(o.max+o.min)/2&&a<0)&&(e.velocity=-(a*r),e.bounced=!0),e}function l(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function c(t){if(!l()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function h(t){if(!l()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function d(t,e){return t===e||A(e)&&e.indexOf(t)>-1}async function u(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function p(t){return Math.floor((0,s.sZ)()*t.length)}function f(t,e,i=!0){return t[void 0!==e&&i?e%t.length:p(t)]}function v(t,e,i,s,o){var n;let a;return n=y(t,s??0),a=!0,o&&"bottom"!==o||(a=n.topi.x),a&&(!o||"right"===o)&&(a=n.lefti.y),a}function y(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function m(t,e){return!!z(e,e=>e.enable&&d(t,e.mode))}function g(t,e,i){C(e,e=>{let s=e.mode;e.enable&&d(t,s)&&C(e.selectors,t=>{i(t,e)})})}function b(t,e){if(e&&t)return z(t,t=>(function(t,e){let i=C(e,e=>t.matches(e));return A(i)?i.some(t=>t):i})(e,t.selectors))}function w(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:o.O.create((0,s.NA)(t.options.bounce.horizontal),(0,s.NA)(t.options.bounce.vertical))}}function _(t,e){let{x:i,y:o}=t.velocity.sub(e.velocity),[n,a]=[t.position,e.position],{dx:r,dy:l}=(0,s.oW)(a,n);if(i*r+o*l<0)return;let c=-Math.atan2(l,r),h=t.mass,d=e.mass,u=t.velocity.rotate(c),p=e.velocity.rotate(c),f=(0,s.hA)(u,p,h,d),v=(0,s.hA)(p,u,h,d),y=f.rotate(-c),m=v.rotate(-c);t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y,e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y}function x(t,e){let i=y(t.getPosition(),t.getRadius()),o=r({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:(0,s.NA)(t.options.bounce.horizontal)});o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));let n=r({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:(0,s.NA)(t.options.bounce.vertical)});n.bounced&&(void 0!==n.velocity&&(t.velocity.y=n.velocity),void 0!==n.position&&(t.position.y=n.position))}function C(t,e){return A(t)?t.map((t,i)=>e(t,i)):e(t,0)}function k(t,e,i){return A(t)?f(t,e,i):t}function z(t,e){return A(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function P(t,e){let i=t.value,o=t.animation,n={delayTime:1e3*(0,s.Gu)(o.delay),enable:o.enable,value:(0,s.Gu)(t.value)*e,max:(0,s.KI)(i)*e,min:(0,s.Uv)(i)*e,loops:0,maxLoops:(0,s.Gu)(o.count),time:0};if(o.enable){switch(n.decay=1-(0,s.Gu)(o.decay),o.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=(0,s.sZ)()>=.5?"increasing":"decreasing"}let t="auto"===o.mode;switch(o.startValue){case"min":n.value=n.min,t&&(n.status="increasing");break;case"max":n.value=n.max,t&&(n.status="decreasing");break;default:n.value=(0,s.vd)(n),t&&(n.status=(0,s.sZ)()>=.5?"increasing":"decreasing")}}return n.initialValue=n.value,n}function O(t,e){if("percent"!==t.mode){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function M(t,e){return O(t,e)}function S(t,e){return O(t,e)}function T(t){return"boolean"==typeof t}function R(t){return"string"==typeof t}function E(t){return"number"==typeof t}function D(t){return"function"==typeof t}function I(t){return"object"==typeof t&&null!==t}function A(t){return Array.isArray(t)}},4372:function(t,e,i){"use strict";i.d(e,{S6:function(){return Q}});var s=i(9907),o=i(3248),n=i(4133),a=i(4808);class r{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw&&e.afterDraw(t)},this._applyPreDrawUpdaters=(t,e,i,s,o,n)=>{for(let a of this._preDrawUpdaters){if(a.getColorStyles){let{fill:n,stroke:r}=a.getColorStyles(e,t,i,s);n&&(o.fill=n),r&&(o.stroke=r)}if(a.getTransformValues){let t=a.getTransformValues(e);for(let e in t)!function(t,e,i){let s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}(n,t,e)}a.beforeDraw&&a.beforeDraw(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize&&t.resize()},this._getPluginParticleColors=t=>{let e,i;for(let s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=(0,a.lN)(s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=(0,a.lN)(s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color,i=(0,a.tX)(e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=(0,a.iz)(e,e.a)}},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?(this._originalStyle=(0,o.ZB)({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle(),e.style){if(!i||!e.style)continue;let s=e.style[i];s&&t.style.setProperty(i,s,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions,e=t.particles.move.trail,i=e.fill;if(e.enable){if(i.color){let e=(0,a.tX)(i.color);if(!e)return;let s=t.particles.move.trail;this._trailFill={color:{...e},opacity:1/s.length}}else await new Promise((t,s)=>{if(!i.image)return;let o=document.createElement("img");o.addEventListener("load",()=>{this._trailFill={image:o,opacity:1/e.length},t()}),o.addEventListener("error",t=>{s(t.error)}),o.src=i.image})}},this._paintBase=t=>{this.draw(e=>(0,n.TQ)(e,this.size,t))},this._paintImage=(t,e)=>{this.draw(i=>(0,n.C3)(i,this.size,t,e))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(t=>t.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(e=>e.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;if(!(t&&e))return;let i=t.style;i.position=e.position,i.zIndex=e.zIndex,i.top=e.top,i.left=e.left,i.width=e.width,i.height=e.height},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let e="important",i=t.style;i.setProperty("position","fixed",e),i.setProperty("z-index",this.container.actualOptions.fullScreen.zIndex.toString(10),e),i.setProperty("top","0",e),i.setProperty("left","0",e),i.setProperty("width","100%",e),i.setProperty("height","100%",e)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let 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((0,a.iz)(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):this.draw(t=>{(0,n.ZH)(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t&&t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(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 s=t.getFillColor(),o=t.getStrokeColor()??s,[r,l]=this._getPluginParticleColors(t);r||(r=s),l||(l=o),(r||l)&&this.draw(s=>{let o=this.container,c=o.actualOptions,h=t.options.zIndex,d=(1-t.zIndexFactor)**h.opacityRate,u=t.bubble.opacity??t.opacity?.value??1,p=t.strokeOpacity??u,f=u*d,v={},y={fill:r?(0,a.vz)(r,f):void 0};y.stroke=l?(0,a.vz)(l,p*d):y.fill,this._applyPreDrawUpdaters(s,t,i,f,y,v),(0,n.zv)({container:o,context:s,particle:t,delta:e,colorStyles:y,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:i*(1-t.zIndexFactor)**h.sizeRate,opacity:f,shadow:t.options.shadow,transform:v}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(s=>(0,n.$F)(s,t,e,i))}drawPlugin(t,e){this.draw(i=>(0,n.Zw)(i,t,e))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=(0,o.yf)(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this._initCover();try{await this._initTrail()}catch(t){(0,o.jl)().error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&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=(0,a.tX)(t.color);i.backgroundColor=e?(0,a.iz)(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))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&&s.YU in t.dataset?"true"===t.dataset[s.YU]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,o.ZB)({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?((0,n.ZH)(e,this.size),this._paintBase(this._coverColorStyle)):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,s={width:this.element.offsetWidth*e,height:this.element.offsetHeight*e};if(s.height===i.height&&s.width===i.width&&s.height===this.element.height&&s.width===this.element.width)return!1;let o={...i};return this.element.width=i.width=this.element.offsetWidth*e,this.element.height=i.height=this.element.offsetHeight*e,this.container.started&&(this.resizeFactor={width:i.width/o.width,height:i.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>(0,n.ZH)(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 l(t,e,i,s,n){if(s){let s={passive:!0};(0,o.jn)(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else t.removeEventListener(e,i,n)}class c{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=new Date().getTime();let n=i.interactivity.events.onClick;(0,o.KH)(n.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,s=i.defaultThemes,o=t.matches?s.dark:s.light,n=i.themes.find(t=>t.name===o);n&&n.default.auto&&e.loadTheme(o)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))},this._handleWindowResize=async()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout),this._resizeTimeout=setTimeout(async()=>{let t=this.container.canvas;t&&await t.windowResize()},1e3*this.container.actualOptions.interactivity.events.resize.delay)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,o=this.container,n=o.actualOptions,a=o.interactivity.element;if(!a)return;let r=o.canvas.element;r&&(r.style.pointerEvents=a===r?"initial":"none"),(n.interactivity.events.onHover.enable||n.interactivity.events.onClick.enable)&&(l(a,s.Wt,i.mouseMove,e),l(a,s.Re,i.touchStart,e),l(a,s.zX,i.touchMove,e),n.interactivity.events.onClick.enable?(l(a,s.$o,i.touchEndClick,e),l(a,s.zw,i.mouseUp,e),l(a,s.ZL,i.mouseDown,e)):l(a,s.$o,i.touchEnd,e),l(a,t,i.mouseLeave,e),l(a,s.VH,i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,o=i.actualOptions.interactivity.detectsOn,n=i.canvas.element,a=s.aM;"window"===o?(i.interactivity.element=window,a=s.G1):"parent"===o&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(a,t),document&&l(document,s.QL,e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=(0,o.HY)("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener){l(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){l(window,s.rR,e.resize,t);return}let o=i.canvas.element;this._resizeObserver&&!t?(o&&this._resizeObserver.unobserve(o),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&o&&(this._resizeObserver=new ResizeObserver(async t=>{t.find(t=>t.target===o)&&await this._handleWindowResize()}),this._resizeObserver.observe(o))},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:s}=e.interactivity;s.inside=!0;let o=!1,n=s.position;if(n&&i.interactivity.events.onClick.enable){for(let[,t]of e.plugins)if(t.clickPositionValid&&(o=t.clickPositionValid(n)))break;o||this._doMouseTouchClick(t),s.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=s.aM,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e;let i=this.container,o=i.actualOptions,n=i.interactivity,a=i.canvas.element;if(!n||!n.element)return;if(n.mouse.inside=!0,t.type.startsWith("pointer")){if(this._canPush=!0,n.element===window){if(a){let i=a.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if("parent"===o.interactivity.detectsOn){let i=t.target,s=t.currentTarget;if(i&&s&&a){let o=i.getBoundingClientRect(),n=s.getBoundingClientRect(),r=a.getBoundingClientRect();e={x:t.offsetX+2*o.left-(n.left+r.left),y:t.offsetY+2*o.top-(n.top+r.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===a&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==t.type,a){let i=t.touches[t.touches.length-1],s=a.getBoundingClientRect();e={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}let r=i.retina.pixelRatio;e&&(e.x*=r,e.y*=r),n.mouse.position=e,n.status=s.Wt},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)}}var h=i(1968);class d{constructor(){this.color=new h.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=h.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class u{constructor(){this.color=new h.O,this.color.value="#fff",this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=h.O.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class p{constructor(){this.composite="destination-out",this.cover=new u,this.enable=!1}load(t){if(t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=(0,o.HD)(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class f{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class v{constructor(){this.enable=!1,this.mode=[]}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class y{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get el(){return this.elementId}set el(t){this.elementId=t}get elementId(){return this.ids}set elementId(t){this.ids=t}get ids(){return(0,o.KH)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,o.KH)(t,t=>`#${t}`)}load(t){if(!t)return;let e=t.ids??t.elementId??t.el;void 0!==e&&(this.ids=e),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class m{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){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 g{constructor(){this.enable=!1,this.mode=[],this.parallax=new m}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class b{constructor(){this.delay=.5,this.enable=!0}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class w{constructor(){this.onClick=new v,this.onDiv=new y,this.onHover=new g,this.resize=new b}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){if(!t)return;this.onClick.load(t.onClick??t.onclick);let e=t.onDiv??t.ondiv;void 0!==e&&(this.onDiv=(0,o.KH)(e,t=>{let e=new y;return e.load(t),e})),this.onHover.load(t.onHover??t.onhover),(0,o.jn)(t.resize)?this.resize.enable=t.resize:this.resize.load(t.resize)}}class _{constructor(t,e){this._engine=t,this._container=e}load(t){if(!t||!this._container)return;let e=this._engine.plugins.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class x{constructor(t,e){this.detectsOn="window",this.events=new w,this.modes=new _(t,e)}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){if(!t)return;let e=t.detectsOn??t.detect_on;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class C{load(t){t&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??"percent"}),t.options&&(this.options=(0,o.ZB)({},t.options)))}}class k{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=(0,o.ZB)({},t.options)))}}class z{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class P{constructor(){this.name="",this.default=new z}load(t){t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,o.ZB)({},t.options)))}}var O=i(5518),M=i(2322);class S{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&"any"===t.default.mode),this._importPreset=t=>{this.load(this._engine.plugins.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new d,this.backgroundMask=new p,this.defaultThemes={},this.delay=0,this.fullScreen=new f,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new x(t,e),this.manualParticles=[],this.particles=(0,O.x)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}load(t){if(!t)return;void 0!==t.preset&&(0,o.KH)(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.delay&&(this.delay=(0,M.Cs)(t.delay));let e=t.detectRetina??t.retina_detect;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,M.Cs)(t.duration));let i=t.fpsLimit??t.fps_limit;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 s=t.fullScreen??t.backgroundMode;(0,o.jn)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new C;return e.load(t),e})),this.particles.load(t.particles),this.style=(0,o.ZB)(this.style,t.style),this._engine.plugins.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let n=this._engine.plugins.interactors.get(this._container);if(n)for(let e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new k;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 P;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(t,e,i){this.load(i);let s=this.responsive.find(i=>"screen"===i.mode&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t);return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=(0,o.HY)("(prefers-color-scheme: dark)"),e=t&&t.matches,i=this._findDefaultTheme(e?"dark":"light");i&&this.load(i.options)}}}class T{constructor(t,e){this.container=e,this._engine=t,this._interactors=t.plugins.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&await e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode&&e.handleClickMode(t)}init(){for(let t of(this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case"external":this._externalInteractors.push(t);break;case"particles":this._particleInteractors.push(t)}t.init()}}async particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}async 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)}}var R=i(8850),E=i(9914);let D=t=>{if(!(0,o.dB)(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord{for(let[,s]of t.plugins){let t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return E.U.create(t.x,t.y,i)}let o=t.canvas.size,n=(0,M.mC)({size:o,position:e}),a=E.U.create(n.x,n.y,i),r=this.getRadius(),l=this.options.move.outModes,c=e=>{D({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:a.x,maxCoord:t.canvas.size.width,setCb:t=>a.x+=t,radius:r})},h=e=>{D({outMode:e,checkModes:["bounce","bounce-vertical"],coord:a.y,maxCoord:t.canvas.size.height,setCb:t=>a.y+=t,radius:r})};return(c(l.left??l.default),c(l.right??l.default),h(l.top??l.default),h(l.bottom??l.default),this._checkOverlap(a,s))?this._calcPosition(t,void 0,i,s+1):a},this._calculateVelocity=()=>{let t=(0,M.lQ)(this.direction).copy(),e=this.options.move;if("inside"===e.direction||"outside"===e.direction)return t;let i=Math.PI/180*(0,M.Gu)(e.angle.value),s=Math.PI/180*(0,M.Gu)(e.angle.offset),o={left:s-i/2,right:s+i/2};return e.straight||(t.angle+=(0,M.vd)((0,M.Cs)(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=(0,M.sZ)()),t},this._checkOverlap=(t,e=0)=>{let i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;let n=i.overlap;if(n.enable)return!1;let a=n.retries;if(a>=0&&e>a)throw Error(`${s.gK} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>(0,M.Sp)(t,e.position){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?Math.PI/2:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?(0,n.PL)(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{let e=this.container,i=(0,M.Gu)(this.options.zIndex.value);this.position=this._calcPosition(e,t,(0,M.uZ)(i,0,e.zLayers)),this.initialPosition=this.position.copy();let s=e.canvas.size;switch(this.moveCenter={...(0,o.bt)(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??"percent"},this.direction=(0,M.Gk)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside"}this.offset=R.O.origin},this._loadShapeData=(t,e)=>{let i=t.options[this.shape];if(i)return(0,o.ZB)({close:t.close,fill:t.fill},(0,o.wA)(i,this.id,e))},this._engine=t,this.init(e,a,r,l)}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;for(let[,i]of e.plugins)i.particleDestroyed&&i.particleDestroyed(this,t);for(let i of e.particles.updaters)i.particleDestroyed&&i.particleDestroyed(this,t);i&&i.reset(this)}draw(t){let e=this.container;for(let[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??(0,a.gW)(this.color))}getMass(){return this.getRadius()**2*Math.PI/2}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??(0,a.gW)(this.strokeColor))}init(t,e,i,s){let n=this.container,r=this._engine;this.id=t,this.group=s,this.fill=!0,this.pathRotation=!1,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;let l=n.retina.pixelRatio,c=n.actualOptions,h=(0,O.x)(this._engine,n,c.particles),d=h.shape.type,{reduceDuplicates:u}=h;this.shape=(0,o.wA)(d,this.id,u);let p=h.shape;if(i&&i.shape&&i.shape.type){let t=i.shape.type,e=(0,o.wA)(t,this.id,u);e&&(this.shape=e,p.load(i.shape))}this.shapeData=this._loadShapeData(p,u),h.load(i);let f=this.shapeData;f&&h.load(f.particles);let v=new x(r,n);v.load(n.actualOptions.interactivity),v.load(h.interactivity),this.interactivity=v,this.fill=f?.fill??h.shape.fill,this.close=f?.close??h.shape.close,this.options=h;let y=this.options.move.path;this.pathDelay=1e3*(0,M.NA)(y.delay),y.generator&&(this.pathGenerator=this._engine.plugins.getPathGenerator(y.generator),this.pathGenerator&&n.addPath(y.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=(0,o.V0)(this.options.size,l),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-(0,M.Gu)(this.options.move.decay);let m=n.particles;m.needsSort=m.needsSort||m.lastZIndex=-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&&t.reset(this)}}class A{constructor(t,e){this.position=t,this.particle=e}}var L=i(1495),B=i(6323);class j{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:o}=this;for(let n=0;n<4;n++)this._subs.push(new j(new B.A(t+i/2*(n%2),e+s/2*(Math.round(n/2)-n%2),i/2,s/2),o));this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.lengthe.insert(t))))}query(t,e,i){let s=i||[];if(!t.intersects(this.rectangle))return[];for(let i of this._points)!t.contains(i.position)&&(0,M.Sp)(t.position,i.position)>i.particle.getRadius()&&(!e||e(i.particle))||s.push(i.particle);if(this._divided)for(let i of this._subs)i.query(t,e,s);return s}queryCircle(t,e,i){return this.query(new L.C(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new B.A(t.x,t.y,e.width,e.height),i)}}let G=t=>new B.A(-t.width/4,-t.height/4,3*t.width/2,3*t.height/2);class F{constructor(t,e){this._applyDensity=(t,e,i)=>{if(!t.number.density?.enable)return;let s=t.number,o=this._initDensityFactor(s.density),n=s.value,a=s.limit>0?s.limit:n,r=Math.min(n,a)*o+e,l=Math.min(this.count,this.filter(t=>t.group===i).length);this.limit=s.limit*o,lr&&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,s=e.retina.pixelRatio;return i.width*i.height/(t.factor*s**2*t.area)},this._pushParticle=(t,e,i,n)=>{try{let s=this.pool.pop();s?s.init(this._nextId,t,e,i):s=new I(this._engine,this._nextId,this._container,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("particleAdded",{container:this._container,data:{particle:s}}),s}catch(t){(0,o.jl)().warning(`${s.gK} adding particle: ${t}`);return}},this._removeParticle=(t,e,i)=>{let s=this._array[t];if(!s||s.group!==e)return!1;s.destroy(i);let o=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(o,1),this.pool.push(s),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:s}}),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this.pool=[],this.limit=0,this.needsSort=!1,this.lastZIndex=0,this._interactionManager=new T(t,e);let i=e.canvas.size;this.quadTree=new j(G(i),4),this.movers=this._engine.plugins.getMovers(e,!0),this.updaters=this._engine.plugins.getUpdaters(e,!0)}get count(){return this._array.length}addManualParticles(){let t=this._container;for(let e of t.actualOptions.manualParticles)this.addParticle(e.position?(0,o.bt)(e.position,t.canvas.size):void 0,e.options)}addParticle(t,e,i,s){let o=this._container.actualOptions.particles.number.limit;if(o>0){let t=this.count+1-o;t>0&&this.removeQuantity(t)}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(t){let e=this._container;for(let[,i]of(e.canvas.clear(),await this.update(t),e.plugins))e.canvas.drawPlugin(i,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}handleClickMode(t){this._interactionManager.handleClickMode(t)}init(){let t=this._container,e=t.actualOptions;this.lastZIndex=0,this.needsSort=!1;let i=!1;for(let[,e]of(this.updaters=this._engine.plugins.getUpdaters(t,!0),this._interactionManager.init(),t.plugins))if(void 0!==e.particlesInitialization&&(i=e.particlesInitialization()),i)break;for(let[,e]of(this._interactionManager.init(),t.pathGenerators))e.init(t);if(this.addManualParticles(),!i){for(let t in e.particles.groups){let i=e.particles.groups[t];for(let s=this.count,o=0;othis.count)return;let o=0;for(let n=t;o!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t),this.pool.push(...i)}for(let e of(await this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||await this._interactionManager.particlesInteract(e,t)}if(delete e.canvas.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 q{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||(0,o.Kr)()?1:window.devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio;if(t.canvas.element){let e=t.canvas.element;t.canvas.size.width=e.offsetWidth*i,t.canvas.size.height=e.offsetHeight*i}let s=e.particles,n=s.move;this.attractDistance=(0,M.Gu)(n.attract.distance)*i,this.maxSpeed=(0,M.Gu)(n.gravity.maxSpeed)*i,this.sizeAnimationSpeed=(0,M.Gu)(s.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,s=e.move,o=s.distance,n=t.retina;n.attractDistance=(0,M.Gu)(s.attract.distance)*i,n.moveDrift=(0,M.Gu)(s.drift)*i,n.moveSpeed=(0,M.Gu)(s.speed)*i,n.sizeAnimationSpeed=(0,M.Gu)(e.size.animation.speed)*i;let a=n.maxDistance;a.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,a.vertical=void 0!==o.vertical?o.vertical*i:void 0,n.maxSpeed=(0,M.Gu)(s.gravity.maxSpeed)*i}}function H(t){return t&&!t.destroyed}function W(t,e,...i){let s=new S(t,e);return(0,O.h)(s,...i),s}let V={generate:t=>t.velocity,init:()=>{},update:()=>{},reset:()=>{}};class Z{constructor(t,e,i){this.id=e,this._intersectionManager=t=>{if(H(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play:this.pause)()},this._nextFrame=async t=>{try{if(!this.smooth&&void 0!==this.lastFrameTime&&t1e3){this.draw(!1);return}if(await this.particles.draw(e),!this.alive()){this.destroy();return}this.getAnimationStatus()&&this.draw(!1)}catch(t){(0,o.jl)().error(`${s.gK} in animation loop`,t)}},this._engine=t,this.fpsLimit=120,this.smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new q(this),this.canvas=new r(this),this.particles=new F(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.drawers=new Map,this._options=W(this._engine,this),this.actualOptions=W(this._engine,this),this._eventListeners=new c(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this._intersectionObserver=new IntersectionObserver(t=>this._intersectionManager(t))),this._engine.dispatchEvent("containerBuilt",{container:this})}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!H(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,s)=>{if(!H(this))return;let o=this.retina.pixelRatio,n={x:i.x*o,y:i.y*o};t(e,this.particles.quadTree.queryCircle(n,s*o))},s=!1,o=!1;e.addEventListener("click",t=>{if(!H(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)}),e.addEventListener("touchstart",()=>{H(this)&&(s=!0,o=!1)}),e.addEventListener("touchmove",()=>{H(this)&&(o=!0)}),e.addEventListener("touchend",t=>{if(H(this)){if(s&&!o){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let s=this.canvas.element,o=s?s.getBoundingClientRect():void 0;i(t,{x:e.clientX-(o?o.left:0),y:e.clientY-(o?o.top:0)},Math.max(e.radiusX,e.radiusY))}s=!1,o=!1}}),e.addEventListener("touchcancel",()=>{H(this)&&(s=!1,o=!1)})}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!H(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e??V),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!H(this))return;for(let[,t]of(this.stop(),this.particles.destroy(),this.canvas.destroy(),this.drawers))t.destroy&&t.destroy(this);for(let t of this.drawers.keys())this.drawers.delete(t);this._engine.plugins.destroy(this),this.destroyed=!0;let t=this._engine.dom(),e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(t){if(!H(this))return;let e=t;this._drawAnimationFrame=requestAnimationFrame(async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this._nextFrame(t)})}async export(t,e={}){for(let[,i]of this.plugins){if(!i.export)continue;let s=await i.export(t,e);if(s.supported)return s.blob}(0,o.jl)().error(`${s.gK} - Export plugin with type ${t} not found`)}getAnimationStatus(){return!this._paused&&!this.pageHidden&&H(this)}handleClickMode(t){if(H(this))for(let[,e]of(this.particles.handleClickMode(t),this.plugins))e.handleClickMode&&e.handleClickMode(t)}async init(){if(H(this)){for(let t of this._engine.plugins.getSupportedShapes()){let e=this._engine.plugins.getShapeDrawer(t);e&&this.drawers.set(t,e)}for(let[t,e]of(this._options=W(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=W(this._engine,this,this._options),this._engine.plugins.getAvailablePlugins(this)))this.plugins.set(t,e);for(let[,t]of(this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=1e3*(0,M.Gu)(this.actualOptions.duration),this._delay=1e3*(0,M.Gu)(this.actualOptions.delay),this._lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this.smooth=this.actualOptions.smooth,this.drawers))t.init&&await t.init(this);for(let[,t]of this.plugins)t.init&&await t.init();for(let[,t]of(this._engine.dispatchEvent("containerInit",{container:this}),this.particles.init(),this.particles.setDensity(),this.plugins))t.particlesSetup&&t.particlesSetup();this._engine.dispatchEvent("particlesSetup",{container:this})}}async loadTheme(t){H(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(H(this)&&(void 0!==this._drawAnimationFrame&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(t){if(!H(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)t.play&&t.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(e||!1)}async refresh(){if(H(this))return this.stop(),this.start()}async reset(){if(H(this))return this._initialSourceOptions=void 0,this._options=W(this._engine,this),this.actualOptions=W(this._engine,this,this._options),this.refresh()}setNoise(t,e,i){H(this)&&this.setPath(t,e,i)}setPath(t,e,i){if(!t||!H(this))return;let s={...V};(0,o.mf)(t)?(s.generate=t,e&&(s.init=e),i&&(s.update=i)):(s.generate=t.generate||s.generate,s.init=t.init||s.init,s.update=t.update||s.update),this.addPath("default",s,!0)}async start(){H(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{this._delayTimeout=setTimeout(async()=>{for(let[,t]of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins))t.start&&await t.start();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),t()},this._delay)}))}stop(){if(H(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))t.stop&&t.stop();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("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 U{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&&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 s=i.length,o=i.indexOf(e);o<0||(1===s?this._listeners.delete(t):i.splice(o,1))}}function N(t,e,i,s=!1){let o=e.get(t);return(!o||s)&&(o=[...i.values()].map(e=>e(t)),e.set(t,o)),o}class K{constructor(t){this._engine=t,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}addInteractor(t,e){this._initializers.interactors.set(t,e)}addParticleMover(t,e){this._initializers.movers.set(t,e)}addParticleUpdater(t,e){this._initializers.updaters.set(t,e)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){(i||!this.getPreset(t))&&this.presets.set(t,e)}addShapeDrawer(t,e){(0,o.KH)(t,t=>{this.getShapeDrawer(t)||this.drawers.set(t,e)})}destroy(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}getInteractors(t,e=!1){return N(t,this.interactors,this._initializers.interactors,e)}getMovers(t,e=!1){return N(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.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getUpdaters(t,e=!1){return N(t,this.updaters,this._initializers.updaters,e)}loadOptions(t,e){for(let i of this.plugins)i.loadOptions(t,e)}loadParticlesOptions(t,e,...i){let s=this.updaters.get(t);if(s)for(let t of s)t.loadOptions&&t.loadOptions(e,...i)}}async function $(t){let e=(0,o.wA)(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?i.json():((0,o.jl)().error(`${s.gK} ${i.status} while retrieving config file`),t.fallback)}class X{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new U,this._initialized=!1,this.plugins=new K(this)}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get version(){return"2.12.0"}addConfig(t,e){(0,o.HD)(t)?e&&(e.name=t,this._configs.set(t,e)):this._configs.set(t.name??"default",t)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this.plugins.addInteractor(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this.plugins.addParticleMover(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this.plugins.addParticleUpdater(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.plugins.addPathGenerator(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.plugins.addPlugin(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){this.plugins.addPreset(t,e,i),await this.refresh(s)}async addShape(t,e,i,s,n,a=!0){let r;let l=a,c,h,d;(0,o.jn)(i)?(l=i,c=void 0):c=i,(0,o.jn)(s)?(l=s,h=void 0):h=s,(0,o.jn)(n)?(l=n,d=void 0):d=n,r=(0,o.mf)(e)?{afterEffect:h,destroy:d,draw:e,init:c}:e,this.plugins.addShapeDrawer(t,r),await this.refresh(l)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this._domArray}domItem(t){let e=this.dom(),i=e[t];if(!i||i.destroyed){e.splice(t,1);return}return i}init(){this._initialized||(this._initialized=!0)}async load(t,e){return this.loadFromArray(t,e)}async loadFromArray(t,e,i){let s;return t.id||t.element||t.url||t.options?s=t:(s={},(0,o.HD)(t)?s.id=t:s.options=t,(0,o.hj)(e)?s.index=e:s.options=e??s.options,s.index=i??s.index),this._loadParams(s)}async loadJSON(t,e,i){let s,n;return(0,o.hj)(e)||void 0===e?s=t:(n=t,s=e),this._loadParams({id:n,url:s,index:i})}async refresh(t=!0){t&&this.dom().forEach(t=>t.refresh())}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}async set(t,e,i,s){let n={index:s};return(0,o.HD)(t)?n.id=t:n.element=t,e instanceof HTMLElement?n.element=e:n.options=e,(0,o.hj)(i)?n.index=i:n.options=i??n.options,this._loadParams(n)}async setJSON(t,e,i,s){let o={};return t instanceof HTMLElement?(o.element=t,o.url=e,o.index=i):(o.id=t,o.element=e,o.url=i,o.index=s),this._loadParams(o)}setOnClickHandler(t){let e=this.dom();if(!e.length)throw Error(`${s.gK} can only set click handlers after calling tsParticles.load()`);for(let i of e)i.addClickHandler(t)}async _loadParams(t){let e;let i=t.id??`tsparticles${Math.floor(1e4*(0,M.sZ)())}`,{index:n,url:a}=t,r=a?await $({fallback:t.options,url:a,index:n}):t.options,l=t.element??document.getElementById(i);l||((l=document.createElement("div")).id=i,document.body.append(l));let c=(0,o.wA)(r,n),h=this.dom(),d=h.findIndex(t=>t.id===i);if(d>=0){let t=this.domItem(d);t&&!t.destroyed&&(t.destroy(),h.splice(d,1))}if("canvas"===l.tagName.toLowerCase())(e=l).dataset[s.YU]="false";else{let t=l.getElementsByTagName("canvas");t.length?(e=t[0]).dataset[s.YU]="false":((e=document.createElement("canvas")).dataset[s.YU]="true",l.appendChild(e))}e.style.width||(e.style.width="100%"),e.style.height||(e.style.height="100%");let u=new Z(this,i,c);return d>=0?h.splice(d,0,u):h.push(u),u.canvas.loadCanvas(e),await u.start(),u}}class Y{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,a.ve)(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,a.ve)({h:(0,M.Gu)(e.h),l:(0,M.Gu)(e.l),s:(0,M.Gu)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;let e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?(0,a.Y6)({a:e.length>4?(0,M.BV)(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}}class J{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,M.Gu)(e.r),g:(0,M.Gu)(e.g),b:(0,M.Gu)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,M.BV)(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}}let Q=function(){let t=new J,e=new Y;(0,a.VI)(t),(0,a.VI)(e);let i=new X;return i.init(),i}();(0,o.Kr)()||(window.tsParticles=Q)},7918:function(t,e,i){"use strict";i.d(e,{R:function(){return ia}});var s=i(3248),o=i(1968),n=i(2322),a=i(1588);class r{constructor(){this.radius=0,this.mass=0}load(t){t&&(void 0!==t.mass&&(this.mass=t.mass),void 0!==t.radius&&(this.radius=t.radius))}}class l extends a.SW{constructor(){super(),this.density=5,this.value=50,this.limit=new r}load(t){t&&(super.load(t),void 0!==t.density&&(this.density=t.density),(0,s.hj)(t.limit)?this.limit.radius=t.limit:this.limit.load(t.limit))}}class c{constructor(){this.color=new o.O,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new l}load(t){void 0!==t&&(void 0!==t.color&&(this.color=o.O.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,n.Cs)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,n.Cs)(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))}}var h=i(8850),d=i(4808);class u{constructor(t,e,i,s){this.absorbers=t,this.container=e,this._calcPosition=()=>{let t=(0,n.Gz)({size:this.container.canvas.size,position:this.options.position});return h.O.create(t.x,t.y)},this._updateParticlePosition=(t,e)=>{if(t.destroyed)return;let i=this.container,s=i.canvas.size;if(t.needsNewPosition){let e=(0,n.p)({size:s});t.position.setTo(e),t.velocity.setTo(t.initialVelocity),t.absorberOrbit=void 0,t.needsNewPosition=!1}if(this.options.orbits){if(void 0===t.absorberOrbit&&(t.absorberOrbit=h.O.create(0,0),t.absorberOrbit.length=(0,n.Sp)(t.getPosition(),this.position),t.absorberOrbit.angle=(0,n.sZ)()*Math.PI*2),t.absorberOrbit.length<=this.size&&!this.options.destroy){let e=Math.min(s.width,s.height);t.absorberOrbit.length=e*(1+(.2*(0,n.sZ)()-.1))}void 0===t.absorberOrbitDirection&&(t.absorberOrbitDirection=t.velocity.x>=0?"clockwise":"counter-clockwise");let o=t.absorberOrbit.length,a=t.absorberOrbit.angle,r=t.absorberOrbitDirection;t.velocity.setTo(h.O.origin);let l={x:"clockwise"===r?Math.cos:Math.sin,y:"clockwise"===r?Math.sin:Math.cos};t.position.x=this.position.x+o*l.x(a),t.position.y=this.position.y+o*l.y(a),t.absorberOrbit.length-=e.length,t.absorberOrbit.angle+=(t.retina.moveSpeed??0)*i.retina.pixelRatio/100*i.retina.reduceFactor}else{let i=h.O.origin;i.length=e.length,i.angle=e.angle,t.velocity.addTo(i)}},this.initialPosition=s?h.O.create(s.x,s.y):void 0,i instanceof c?this.options=i:(this.options=new c,this.options.load(i)),this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=(0,n.Gu)(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,d.tX)(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,n.Sp)(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 s=t.getPosition(),{dx:o,dy:a,distance:r}=(0,n.oW)(this.position,s),l=h.O.create(o,a);if(l.length=this.mass/Math.pow(r,2)*e.retina.reduceFactor,rt.getRadius()&&rvoid 0===t||(0,s.hj)(t)?this.array[t||0]:this.array.find(e=>e.name===t),t.addAbsorber=(t,e)=>this.addAbsorber(t,e)}addAbsorber(t,e){let i=new u(this,this.container,t,e);return this.array.push(i),i}draw(t){for(let e of this.array)e.draw(t)}handleClickMode(t){let e=this.absorbers,i=this.interactivityAbsorbers;if("absorber"===t){let t=(0,s.wA)(i)??(0,s.wA)(e),o=this.container.interactivity.mouse.clickPosition;this.addAbsorber(t,o)}}async init(){this.absorbers=this.container.actualOptions.absorbers,this.interactivityAbsorbers=this.container.actualOptions.interactivity.modes.absorbers,(0,s.KH)(this.absorbers,t=>{this.addAbsorber(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 f{constructor(){this.id="absorbers"}getPlugin(t){return new p(t)}loadOptions(t,e){(this.needsPlugin(t)||this.needsPlugin(e))&&(e?.absorbers&&(t.absorbers=(0,s.KH)(e.absorbers,t=>{let e=new c;return e.load(t),e})),t.interactivity.modes.absorbers=(0,s.KH)(e?.interactivity?.modes?.absorbers,t=>{let e=new c;return e.load(t),e}))}needsPlugin(t){if(!t)return!1;let e=t.absorbers;return(0,s.kJ)(e)?!!e.length:!!(e||t.interactivity?.events?.onClick?.mode&&(0,s.dB)("absorber",t.interactivity.events.onClick.mode))}}async function v(t,e=!0){await t.addPlugin(new f,e)}class y{load(t){t&&(void 0!==t.bottom&&(this.bottom=(0,n.Cs)(t.bottom)),void 0!==t.left&&(this.left=(0,n.Cs)(t.left)),void 0!==t.right&&(this.right=(0,n.Cs)(t.right)),void 0!==t.top&&(this.top=(0,n.Cs)(t.top)))}}class m extends a.SW{constructor(){super(),this.value=3}}class g extends a.SW{constructor(){super(),this.value={min:4,max:9}}}class b{constructor(){this.count=1,this.factor=new m,this.rate=new g,this.sizeOffset=!0}load(t){t&&(void 0!==t.color&&(this.color=o.O.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,s.KH)(t.particles,t=>(0,s.ZB)({},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 w{constructor(){this.bounds=new y,this.mode="none",this.split=new b}load(t){t&&(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}var _=i(5518);class x{constructor(t,e){this.engine=t,this.container=e}init(t){let e=this.container,i=t.options.destroy;if(!i)return;t.splitCount=0;let s=i.bounds;t.destroyBounds||(t.destroyBounds={});let{bottom:o,left:a,right:r,top:l}=s,{destroyBounds:c}=t,h=e.canvas.size;o&&(c.bottom=(0,n.Gu)(o)*h.height/100),a&&(c.left=(0,n.Gu)(a)*h.width/100),r&&(c.right=(0,n.Gu)(r)*h.width/100),l&&(c.top=(0,n.Gu)(l)*h.height/100)}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.destroy||(t.destroy=new w),e))t.destroy.load(i?.destroy)}particleDestroyed(t,e){if(e)return;let i=t.options.destroy;i&&"split"===i.mode&&function(t,e,i){let o=i.options.destroy;if(!o)return;let a=o.split;if(a.count>=0&&(void 0===i.splitCount||i.splitCount++>a.count))return;let r=(0,n.NA)(a.rate),l=(0,s.wA)(a.particles);for(let o=0;o!(t.size.value<.5)&&(t.velocity.length=(0,n.vd)((0,n.Cs)(i.velocity.length,t.velocity.length)),t.splitCount=(i.splitCount??0)+1,t.unbreakable=!0,setTimeout(()=>{t.unbreakable=!1},500),!0))}(t,e,i,l)}(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 C(t,e=!0){await t.addParticleUpdater("destroy",e=>new x(t,e),e)}class k{randomPosition(t,e,i){let[s,o]=[e.width/2,e.height/2],a=((t,e)=>{let i=Math.atan(e/t*Math.tan(2*Math.PI*((0,n.sZ)()/4))),s=(0,n.sZ)();return s<.25?i:s<.5?Math.PI-i:s<.75?Math.PI+i:-i})(s,o),r=s*o/Math.sqrt((o*Math.cos(a))**2+(s*Math.sin(a))**2),l=i?r*Math.sqrt((0,n.sZ)()):r;return{x:t.x+l*Math.cos(a),y:t.y+l*Math.sin(a)}}}var z=i(9826);class P{constructor(){this.wait=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,n.Cs)(t.delay)),void 0!==t.duration&&(this.duration=(0,n.Cs)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class O{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=(0,n.Cs)(t.quantity)),void 0!==t.delay&&(this.delay=(0,n.Cs)(t.delay)))}}class M{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==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 S{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new P,this.rate=new O,this.shape="square",this.startCount=0}load(t){t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size||(this.size=new M),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,s.KH)(t.particles,t=>(0,s.ZB)({},t)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,n.Cs)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,n.Cs)(t.position.y))),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new z.R),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class T{constructor(t,e,i,o,a){this.emitters=e,this.container=i,this._calcPosition=()=>(0,n.Gz)({size:this.container.canvas.size,position:this.options.position}),this._destroy=()=>{this.emitters.removeEmitter(this),this._engine.dispatchEvent("emitterDestroyed",{container:this.container,data:{emitter:this}})},this._emit=()=>{if(this._paused)return;let t=(0,n.Gu)(this.options.rate.quantity);this._emitParticles(t)},this._emitParticles=t=>{let e=this.getPosition(),i=this.getSize(),o=(0,s.wA)(this._particlesOptions);for(let n=0;n{if(this._paused)return;let t=this.options.life?.duration!==void 0?(0,n.Gu)(this.options.life.duration):void 0;this.container.retina.reduceFactor&&(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=1e3*t)},this._setColorAnimation=(t,e,i)=>{let s=this.container;if(!t.enable)return e;let o=(0,n.vd)(t.offset),a=1e3*(0,n.Gu)(this.options.rate.delay)/s.retina.reduceFactor;return(e+(0,n.Gu)(t.speed??0)*s.fpsLimit/a+3.6*o)%i},this._engine=t,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,o instanceof S?this.options=o:(this.options=new S,this.options.load(o)),this._spawnDelay=1e3*(0,n.Gu)(this.options.life.delay??0)/this.container.retina.reduceFactor,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this._shape=this._engine.emitterShapeManager?.getShape(this.options.shape),this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;let r=(0,s.ZB)({},this.options.particles);r??={},r.move??={},r.move.direction??=this.options.direction,this.options.spawnColor&&(this.spawnColor=(0,d.lN)(this.options.spawnColor)),this._paused=!this.options.autoPlay,this._particlesOptions=r,this.size=this.options.size??(()=>{let t=new M;return t.load({height:0,mode:"percent",width:0}),t})(),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this._engine.dispatchEvent("emitterCreated",{container:i,data:{emitter:this}}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}getPosition(){if(this.options.domId){let t=this.container,e=document.getElementById(this.options.domId);if(e){let i=e.getBoundingClientRect();return{x:(i.x+i.width/2)*t.retina.pixelRatio,y:(i.y+i.height/2)*t.retina.pixelRatio}}}return this.position}getSize(){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}}}return(0,s.ap)(this.size,t.canvas.size)}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,n.Gu)(this.options.rate.delay);this._emitDelay=1e3*t/this.container.retina.reduceFactor}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}}resize(){let t=this._initialPosition;this.position=t&&(0,s.Ac)(t,this.container.canvas.size,h.O.origin)?t:this._calcPosition()}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._spawnDelay=1e3*(0,n.Gu)(this.options.life.delay??0)/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)))}}class R{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,s.hj)(t)?this.array[t||0]:this.array.find(e=>e.name===t),e.addEmitter=(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()}}addEmitter(t,e){let i=new S;i.load(t);let s=new T(this._engine,this,this.container,i,e);return this.array.push(s),s}handleClickMode(t){let e;let i=this.emitters,o=this.interactivityEmitters;if("emitter"!==t)return;if(o&&(0,s.kJ)(o.value)){if(o.value.length>0&&o.random.enable){e=[];let t=[];for(let i=0;i{this.addEmitter(t,a)})}async init(){if(this.emitters=this.container.actualOptions.emitters,this.interactivityEmitters=this.container.actualOptions.interactivity.modes.emitters,this.emitters){if((0,s.kJ)(this.emitters))for(let t of this.emitters)this.addEmitter(t);else 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)}}let E=new Map;class D{constructor(t){this._engine=t}addShape(t,e){this.getShape(t)||E.set(t,e)}getShape(t){return E.get(t)}getSupportedShapes(){return E.keys()}}function I(t,e){return t+e*((0,n.sZ)()-.5)}class A{randomPosition(t,e,i){if(i)return{x:I(t.x,e.width),y:I(t.y,e.height)};{let i=e.width/2,s=e.height/2,o=Math.floor(4*(0,n.sZ)()),a=((0,n.sZ)()-.5)*2;switch(o){case 0:return{x:t.x+a*i,y:t.y-s};case 1:return{x:t.x-i,y:t.y+a*s};case 2:return{x:t.x+a*i,y:t.y+s};default:return{x:t.x+i,y:t.y+a*s}}}}}class L{constructor(t){this._engine=t,this.id="emitters"}getPlugin(t){return new R(this._engine,t)}loadOptions(t,e){if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;e?.emitters&&(t.emitters=(0,s.KH)(e.emitters,t=>{let e=new S;return e.load(t),e}));let i=e?.interactivity?.modes?.emitters;if(i){if((0,s.kJ)(i))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:i.map(t=>{let e=new S;return e.load(t),e})};else if(void 0!==i.value){if((0,s.kJ)(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 S;return e.load(t),e})};else{let e=new S;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 S}).value.load(i)}}needsPlugin(t){if(!t)return!1;let e=t.emitters;return(0,s.kJ)(e)&&!!e.length||void 0!==e||!!t.interactivity?.events?.onClick?.mode&&(0,s.dB)("emitter",t.interactivity.events.onClick.mode)}}async function B(t,e=!0){t.emitterShapeManager||(t.emitterShapeManager=new D(t)),t.addEmitterShape||(t.addEmitterShape=(e,i)=>{t.emitterShapeManager?.addShape(e,i)});let i=new L(t);await t.addPlugin(i,e),t.addEmitterShape("circle",new k),t.addEmitterShape("square",new A)}class j{constructor(t){this.container=t,this.type="external"}}class G{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=(0,s.ZB)({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class F extends j{constructor(t){super(t),this._delay=0}clear(){}init(){}async interact(t){let e=this.container,{interactivity:i}=e;if(!e.retina.reduceFactor)return;let s=e.actualOptions.interactivity.modes.trail;if(!s)return;let o=1e3*s.delay/this.container.retina.reduceFactor;if(this._delaynew F(t),e)}class H{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=(0,n.Cs)(t.value)))}}class W{constructor(){this.darken=new H,this.enable=!1,this.enlighten=new H,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=o.O.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,n.Cs)(t.speed)))}}class V{getTransformValues(t){let e=t.roll?.enable&&t.roll,i=e&&e.horizontal,s=e&&e.vertical;return{a:i?Math.cos(e.angle):void 0,d:s?Math.sin(e.angle):void 0}}init(t){!function(t){let e=t.options.roll;if(!e?.enable){t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0};return}if(t.roll={enable:e.enable,horizontal:"horizontal"===e.mode||"both"===e.mode,vertical:"vertical"===e.mode||"both"===e.mode,angle:(0,n.sZ)()*Math.PI*2,speed:(0,n.Gu)(e.speed)/360},e.backColor)t.backColor=(0,d.lN)(e.backColor);else if(e.darken.enable&&e.enlighten.enable){let i=(0,n.sZ)()>=.5?"darken":"enlighten";t.roll.alter={type:i,value:(0,n.Gu)("darken"===i?e.darken.value:e.enlighten.value)}}else e.darken.enable?t.roll.alter={type:"darken",value:(0,n.Gu)(e.darken.value)}:e.enlighten.enable&&(t.roll.alter={type:"enlighten",value:(0,n.Gu)(e.enlighten.value)})}(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 W),e))t.roll.load(i?.roll)}update(t,e){this.isEnabled(t)&&function(t,e){let i=t.options.roll,s=t.roll;if(!s||!i?.enable)return;let o=s.speed*e.factor,n=2*Math.PI;s.angle+=o,s.angle>n&&(s.angle-=n)}(t,e)}}async function Z(t,e=!0){await t.addParticleUpdater("roll",()=>new V,e)}var U=i(4372);class N{static init(t){let e=new N,i=t.selector;if(!i)throw Error("No selector provided");let s=document.querySelector(i);if(!s)throw Error("No element found for selector");return U.S6.set(i.replace(".","").replace("!",""),s,{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&&t.destroy()}pauseAnimation(){let t=this._container;t&&t.pause()}resumeAnimation(){let t=this._container;t&&t.play()}}let K=t=>{let e=(e,i)=>t.load(e,i);return e.load=(e,i,s)=>{t.loadJSON(e,i).then(t=>{t&&s(t)}).catch(()=>{s(void 0)})},e.setOnClickHandler=e=>{t.setOnClickHandler(e)},{particlesJS:e,pJSDom:t.dom()}},$=t=>{let{particlesJS:e,pJSDom:i}=K(t);return window.particlesJS=e,window.pJSDom=i,window.Particles=N,{particlesJS:e,pJSDom:i,Particles:N}};class X{constructor(){this._initSpin=t=>{let e=t.container,i=t.options.move.spin;if(!i.enable)return;let s=i.position??{x:50,y:50},o={x:s.x/100*e.canvas.size.width,y:s.y/100*e.canvas.size.height},a=t.getPosition(),r=(0,n.Sp)(a,o),l=(0,n.Gu)(i.acceleration);t.retina.spinAcceleration=l*e.retina.pixelRatio,t.spin={center:o,direction:t.velocity.x>=0?"clockwise":"counter-clockwise",angle:t.velocity.angle,radius:r,acceleration:t.retina.spinAcceleration}}}init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:(0,n.Gu)(e.acceleration),inverse:e.inverse},this._initSpin(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,s=i.move;if(!s.enable)return;let o=t.container,a=o.retina.pixelRatio,r=t.slow.inRange?t.slow.factor:1,l=(t.retina.moveSpeed??=(0,n.Gu)(s.speed)*a)*o.retina.reduceFactor,c=t.retina.moveDrift??=(0,n.Gu)(t.options.move.drift)*a,h=(0,n.KI)(i.size.value)*a,d=l*(s.size?t.getRadius()/h:1)*r*(e.factor||1)/2,u=t.retina.maxSpeed??o.retina.maxSpeed;s.spin.enable?function(t,e){let i=t.container;if(!t.spin)return;let s={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*s.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*s.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;let o=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>o/2?(t.spin.radius=o/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/o)}(t,d):function(t,e,i,s,o,a){(function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=(0,n.uZ)(t.velocity.x,-1,1),t.velocity.y=(0,n.uZ)(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay})(t,a);let r=t.gravity,l=r?.enable&&r.inverse?-1:1;o&&i&&(t.velocity.x+=o*a.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=r.acceleration*a.factor*l/(60*i));let c=t.moveDecay;t.velocity.multTo(c);let h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));let d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u);let{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y)),p.y+=Math.cos(p.y*Math.sin(p.x)))}(t,s,d,u,c,e),function(t){let e=t.initialPosition,{dx:i,dy:s}=(0,n.oW)(e,t.position),o=Math.abs(i),a=Math.abs(s),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(l||c){if((l&&o>=l||c&&a>=c)&&!t.misplaced)t.misplaced=!!l&&o>l||!!c&&a>c,l&&(t.velocity.x=t.velocity.y/2-t.velocity.x),c&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!l||oe.x&&s.x>0)&&(s.x*=-(0,n.sZ)()),c&&(i.ye.y&&s.y>0)&&(s.y*=-(0,n.sZ)())}}}(t)}}async function Y(t,e=!0){await t.addMover("base",()=>new X,e)}class J{draw(t,e,i){e.circleRange||(e.circleRange={min:0,max:2*Math.PI});let s=e.circleRange;t.arc(0,0,i,s.min,s.max,!1)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,o=i?.angle??{max:360,min:0};e.circleRange=(0,s.Kn)(o)?{min:o.min*Math.PI/180,max:o.max*Math.PI/180}:{min:0,max:o*Math.PI/180}}}async function Q(t,e=!0){await t.addShape("circle",new J,e)}function tt(t,e,i,s,o){if(!e||!i.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let a=(0,n.vd)(i.offset),r=(e.velocity??0)*t.factor+3.6*a,l=e.decay??1;o&&"increasing"!==e.status?(e.value-=r,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)):(e.value+=r,e.value>s&&(e.loops||(e.loops=0),e.loops++,o&&(e.status="decreasing",e.value-=e.value%s))),e.velocity&&1!==l&&(e.velocity*=l),e.value>s&&(e.value%=s)}class te{constructor(t){this.container=t}init(t){let e=(0,d.lN)(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=(0,d.bS)(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:s}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&(o?.h.value!==void 0&&e.enable||o?.s.value!==void 0&&i.enable||o?.l.value!==void 0&&s.enable)}update(t,e){!function(t,e){let{h:i,s:s,l:o}=t.options.color.animation,{color:n}=t;if(!n)return;let{h:a,s:r,l}=n;a&&tt(e,a,i,360,!1),r&&tt(e,r,s,100,!0),l&&tt(e,l,o,100,!0)}(t,e)}}async function ti(t,e=!0){await t.addParticleUpdater("color",t=>new te(t),e)}class ts{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=(0,s.V0)(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=(0,n.Gu)(i.speed)/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=(0,n.sZ)()))}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)&&function(t,e){let i=t.opacity;if(t.destroyed||!i?.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;let s=i.min,o=i.max,a=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0)||!(i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=o?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=(i.velocity??0)*e.factor;break;case"decreasing":i.value<=s?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=(i.velocity??0)*e.factor}i.velocity&&1!==i.decay&&(i.velocity*=a),function(t,e,i,s){switch(t.options.opacity.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,s,o),t.destroyed||(i.value=(0,n.uZ)(i.value,s,o))}}(t,e)}}async function to(t,e=!0){await t.addParticleUpdater("opacity",t=>new ts(t),e)}class tn{constructor(t){this.container=t,this.modes=["bounce","bounce-vertical","bounce-horizontal","bounceVertical","bounceHorizontal","split"]}update(t,e,i,o){if(!this.modes.includes(o))return;let a=this.container,r=!1;for(let[,s]of a.plugins)if(void 0!==s.particleBounce&&(r=s.particleBounce(t,i,e)),r)break;if(r)return;let l=t.getPosition(),c=t.offset,h=t.getRadius(),d=(0,s.M_)(l,h),u=a.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode||"left"!==t.direction&&"right"!==t.direction)return;t.bounds.right<0&&"left"===t.direction?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&"right"===t.direction&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){let e=(0,n.NA)(t.particle.options.bounce.horizontal);t.particle.velocity.x*=-e,i=!0}if(!i)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&"right"===t.direction?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&"left"===t.direction&&(t.particle.position.x=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:e,bounds:d,canvasSize:u,offset:c,size:h}),function(t){if("bounce"!==t.outMode&&"bounce-vertical"!==t.outMode&&"bounceVertical"!==t.outMode&&"split"!==t.outMode||"bottom"!==t.direction&&"top"!==t.direction)return;t.bounds.bottom<0&&"top"===t.direction?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&"bottom"===t.direction&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){let e=(0,n.NA)(t.particle.options.bounce.vertical);t.particle.velocity.y*=-e,i=!0}if(!i)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&"bottom"===t.direction?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&"top"===t.direction&&(t.particle.position.y=s),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:e,bounds:d,canvasSize:u,offset:c,size:h})}}class ta{constructor(t){this.container=t,this.modes=["destroy"]}update(t,e,i,o){if(!this.modes.includes(o))return;let a=this.container;switch(t.outType){case"normal":case"outside":if((0,s.Ac)(t.position,a.canvas.size,h.O.origin,t.getRadius(),e))return;break;case"inside":{let{dx:e,dy:i}=(0,n.oW)(t.position,t.moveCenter),{x:s,y:o}=t.velocity;if(s<0&&e>t.moveCenter.radius||o<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||o>=0&&i<-t.moveCenter.radius)return}}a.particles.remove(t,void 0,!0)}}class tr{constructor(t){this.container=t,this.modes=["none"]}update(t,e,i,o){if(!this.modes.includes(o)||t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;let n=t.options.move.gravity,a=this.container,r=a.canvas.size,l=t.getRadius();if(n.enable){let i=t.position;(!n.inverse&&i.y>r.height+l&&"bottom"===e||n.inverse&&i.y<-l&&"top"===e)&&a.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=r.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=r.width+l||t.velocity.x<0&&t.position.x>=-l)return;(0,s.Ac)(t.position,a.canvas.size,h.O.origin,l,e)||a.particles.remove(t)}}}class tl{constructor(t){this.container=t,this.modes=["out"]}update(t,e,i,o){if(!this.modes.includes(o))return;let a=this.container;if("inside"===t.outType){let{x:e,y:i}=t.velocity,s=h.O.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(h.O.create(t.moveCenter));let{dx:o,dy:r}=(0,n.oW)(t.position,s);if(e<=0&&o>=0||i<=0&&r>=0||e>=0&&o<=0||i>=0&&r<=0)return;t.position.x=Math.floor((0,n.vd)({min:0,max:a.canvas.size.width})),t.position.y=Math.floor((0,n.vd)({min:0,max:a.canvas.size.height}));let{dx:l,dy:c}=(0,n.oW)(t.position,t.moveCenter);t.direction=Math.atan2(-c,-l),t.velocity.angle=t.direction}else{if((0,s.Ac)(t.position,a.canvas.size,h.O.origin,t.getRadius(),e))return;switch(t.outType){case"outside":{t.position.x=Math.floor((0,n.vd)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,n.vd)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=(0,n.oW)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case"normal":{let i=t.options.move.warp,o=a.canvas.size,r={bottom:o.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:o.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},l=t.getRadius(),c=(0,s.M_)(t.position,l);"right"===e&&c.left>o.width+t.offset.x?(t.position.x=r.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,n.sZ)()*o.height,t.initialPosition.y=t.position.y)):"left"===e&&c.right<-t.offset.x&&(t.position.x=r.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,n.sZ)()*o.height,t.initialPosition.y=t.position.y)),"bottom"===e&&c.top>o.height+t.offset.y?(i||(t.position.x=(0,n.sZ)()*o.width,t.initialPosition.x=t.position.x),t.position.y=r.top,t.initialPosition.y=t.position.y):"top"===e&&c.bottom<-t.offset.y&&(i||(t.position.x=(0,n.sZ)()*o.width,t.initialPosition.x=t.position.x),t.position.y=r.bottom,t.initialPosition.y=t.position.y)}}}}}class tc{constructor(t){this.container=t,this._updateOutMode=(t,e,i,s)=>{for(let o of this.updaters)o.update(t,s,e,i)},this.updaters=[new tn(t),new ta(t),new tl(t),new tr(t)]}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,"bottom"),this._updateOutMode(t,e,i.left??i.default,"left"),this._updateOutMode(t,e,i.right??i.default,"right"),this._updateOutMode(t,e,i.top??i.default,"top")}}async function th(t,e=!0){await t.addParticleUpdater("outModes",t=>new tc(t),e)}class td{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/100*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,n.sZ)()))}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)&&function(t,e){let i=t.size;if(t.destroyed||!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0))return;let s=(i.velocity??0)*e.factor,o=i.min,a=i.max,r=i.decay??1;if(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=e.value),!((i.delayTime??0)>0)||!(i.time<(i.delayTime??0))){switch(i.status){case"increasing":i.value>=a?(i.status="decreasing",i.loops||(i.loops=0),i.loops++):i.value+=s;break;case"decreasing":i.value<=o?(i.status="increasing",i.loops||(i.loops=0),i.loops++):i.value-=s}i.velocity&&1!==r&&(i.velocity*=r),function(t,e,i,s){switch(t.options.size.animation.destroy){case"max":e>=s&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,i.value,o,a),t.destroyed||(i.value=(0,n.uZ)(i.value,o,a))}}(t,e)}}async function tu(t,e=!0){await t.addParticleUpdater("size",()=>new td,e)}async function tp(t,e=!0){await Y(t,!1),await Q(t,!1),await ti(t,!1),await to(t,!1),await th(t,!1),await tu(t,!1),await t.refresh(e)}async function tf(){(0,n.bx)("ease-in-quad",t=>t**2),(0,n.bx)("ease-out-quad",t=>1-(1-t)**2),(0,n.bx)("ease-in-out-quad",t=>t<.5?2*t**2:1-(-2*t+2)**2/2)}var tv=i(1495),ty=i(9907);class tm{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class tg extends j{constructor(t,e){super(e),this._clickAttract=()=>{let t=this.container;t.attract||(t.attract={particles:[]});let{attract:e}=t;if(e.finish||(e.count||(e.count=0),e.count++,e.count!==t.particles.count||(e.finish=!0)),e.clicking){let e=t.interactivity.mouse.clickPosition,i=t.retina.attractModeDistance;if(!i||i<0||!e)return;this._processAttract(e,i,new tv.C(e.x,e.y,i))}else!1===e.clicking&&(e.particles=[])},this._hoverAttract=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.attractModeDistance;i&&!(i<0)&&e&&this._processAttract(e,i,new tv.C(e.x,e.y,i))},this._processAttract=(t,e,i)=>{let s=this.container,o=s.actualOptions.interactivity.modes.attract;if(o)for(let a of s.particles.quadTree.query(i,t=>this.isEnabled(t))){let{dx:i,dy:s,distance:r}=(0,n.oW)(a.position,t),l=o.speed*o.factor,c=(0,n.uZ)((0,n._X)(o.easing)(1-r/e)*l,0,o.maxSpeed),d=h.O.create(0===r?l:i/r*c,0===r?l:s/r*c);a.position.subFrom(d)}},this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&"attract"===t){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)},1e3*i.duration)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===ty.Wt,o=e.interactivity.events,n=o.onHover.enable,a=o.onHover.mode,r=o.onClick.enable,l=o.onClick.mode;i&&n&&(0,s.dB)("attract",a)?this._hoverAttract():r&&(0,s.dB)("attract",l)&&this._clickAttract()}isEnabled(t){let e=this.container,i=e.actualOptions,o=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events;if((!o.position||!n.onHover.enable)&&(!o.clickPosition||!n.onClick.enable))return!1;let a=n.onHover.mode,r=n.onClick.mode;return(0,s.dB)("attract",a)||(0,s.dB)("attract",r)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new tm),e))t.attract.load(i?.attract)}reset(){}}async function tb(t,e=!0){await t.addInteractor("externalAttract",e=>new tg(t,e),e)}var tw=i(6323);class t_{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class tx extends j{constructor(t){super(t),this._processBounce=(t,e,i)=>{for(let o of this.container.particles.quadTree.query(i,t=>this.isEnabled(t)))i instanceof tv.C?(0,s.kR)((0,s.gy)(o),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:h.O.origin,factor:h.O.origin}):i instanceof tw.A&&(0,s.dp)(o,(0,s.M_)(t,e))},this._processMouseBounce=()=>{let t=this.container,e=t.retina.pixelRatio,i=t.interactivity.mouse.position,s=t.retina.bounceModeDistance;s&&!(s<0)&&i&&this._processBounce(i,s,new tv.C(i.x,i.y,s+10*e))},this._singleSelectorBounce=(t,e)=>{let i=this.container,s=document.querySelectorAll(t);s.length&&s.forEach(t=>{let s=i.retina.pixelRatio,o={x:(t.offsetLeft+t.offsetWidth/2)*s,y:(t.offsetTop+t.offsetHeight/2)*s},n=t.offsetWidth/2*s,a=10*s,r="circle"===e.type?new tv.C(o.x,o.y,n+a):new tw.A(t.offsetLeft*s-a,t.offsetTop*s-a,t.offsetWidth*s+2*a,t.offsetHeight*s+2*a);this._processBounce(o,n,r)})}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===ty.Wt,o=e.onHover.enable,n=e.onHover.mode,a=e.onDiv;i&&o&&(0,s.dB)("bounce",n)?this._processMouseBounce():(0,s.XD)("bounce",a,(t,e)=>this._singleSelectorBounce(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,o=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv;return o.position&&n.onHover.enable&&(0,s.dB)("bounce",n.onHover.mode)||(0,s.wm)("bounce",a)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new t_),e))t.bounce.load(i?.bounce)}reset(){}}async function tC(t,e=!0){await t.addInteractor("externalBounce",t=>new tx(t),e)}class tk{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(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,s.kJ)(this.color)?void 0:this.color;this.color=(0,s.KH)(t.color,t=>o.O.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class tz extends tk{constructor(){super(),this.selectors=[]}get ids(){return(0,s.KH)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,s.KH)(t,t=>`#${t}`)}load(t){super.load(t),t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class tP extends tk{load(t){super.load(t),t&&(this.divs=(0,s.KH)(t.divs,t=>{let e=new tz;return e.load(t),e}))}}function tO(t,e,i,s){return e>=i?(0,n.uZ)(t+(e-i)*s,t,e):e{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});let o=t.retina.bubbleModeDistance;if(!o||o<0)return;let a=t.particles.quadTree.queryCircle(i,o,t=>this.isEnabled(t)),{bubble:r}=t;for(let e of a){if(!r.clicking)continue;e.bubble.inRange=!r.durationEnd;let a=e.getPosition(),l=(0,n.Sp)(a,i),c=(new Date().getTime()-(t.interactivity.mouse.clickTime||0))/1e3;c>s.duration&&(r.durationEnd=!0),c>2*s.duration&&(r.clicking=!1,r.durationEnd=!1);let h={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:(0,n.KI)(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:"size"};this._process(e,l,c,h);let d={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:(0,n.KI)(e.options.opacity.value),value:e.opacity?.value??1},type:"opacity"};this._process(e,l,c,d),!r.durationEnd&&l<=o?this._hoverBubbleColor(e,l):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&void 0!==e)for(let s of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){s.bubble.inRange=!0;let o=s.getPosition(),a=(0,n.Sp)(o,e),r=1-a/i;a<=i?r>=0&&t.interactivity.status===ty.Wt&&(this._hoverBubbleSize(s,r),this._hoverBubbleOpacity(s,r),this._hoverBubbleColor(s,r)):this.reset(s),t.interactivity.status===ty.aM&&this.reset(s)}},this._hoverBubbleColor=(t,e,i)=>{let o=this.container.actualOptions,n=i??o.interactivity.modes.bubble;if(n){if(!t.bubble.finalColor){let e=n.color;if(!e)return;let i=(0,s.wA)(e);t.bubble.finalColor=(0,d.lN)(i)}if(t.bubble.finalColor){if(n.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?(0,d.lC)((0,d.oc)(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}},this._hoverBubbleOpacity=(t,e,i)=>{let s=this.container.actualOptions,o=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!o)return;let a=t.options.opacity.value,r=tO(t.opacity?.value??1,o,(0,n.KI)(a),e);void 0!==r&&(t.bubble.opacity=r)},this._hoverBubbleSize=(t,e,i)=>{let s=this.container,o=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===o)return;let a=(0,n.KI)(t.options.size.value)*s.retina.pixelRatio,r=tO(t.size.value,o,a,e);void 0!==r&&(t.bubble.radius=r)},this._process=(t,e,i,s)=>{let o=this.container,n=s.bubbleObj.optValue,a=o.actualOptions.interactivity.modes.bubble;if(!a||void 0===n)return;let r=a.duration,l=o.retina.bubbleModeDistance,c=s.particlesObj.optValue,h=s.bubbleObj.value,d=s.particlesObj.value||0,u=s.type;if(l&&!(l<0)&&n!==c){if(o.bubble||(o.bubble={}),o.bubble.durationEnd)h&&("size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity);else if(e<=l){if((h??d)!==n){let e=d-i*(d-n)/r;"size"===u&&(t.bubble.radius=e),"opacity"===u&&(t.bubble.opacity=e)}}else"size"===u&&delete t.bubble.radius,"opacity"===u&&delete t.bubble.opacity}},this._singleSelectorHover=(t,e,i)=>{let o=this.container,n=document.querySelectorAll(e),a=o.actualOptions.interactivity.modes.bubble;a&&n.length&&n.forEach(e=>{let n=o.retina.pixelRatio,r={x:(e.offsetLeft+e.offsetWidth/2)*n,y:(e.offsetTop+e.offsetHeight/2)*n},l=e.offsetWidth/2*n,c="circle"===i.type?new tv.C(r.x,r.y,l):new tw.A(e.offsetLeft*n,e.offsetTop*n,e.offsetWidth*n,e.offsetHeight*n);for(let i of o.particles.quadTree.query(c,t=>this.isEnabled(t))){if(!c.contains(i.getPosition()))continue;i.bubble.inRange=!0;let o=a.divs,n=(0,s.iC)(o,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,n),this._hoverBubbleOpacity(i,1,n),this._hoverBubbleColor(i,1,n)}})},t.bubble||(t.bubble={}),this.handleClickMode=e=>{"bubble"===e&&(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))}async interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,o=e.onClick,n=i.enable,a=i.mode,r=o.enable,l=o.mode,c=e.onDiv;n&&(0,s.dB)("bubble",a)?this._hoverBubble():r&&(0,s.dB)("bubble",l)?this._clickBubble():(0,s.XD)("bubble",c,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,o=e.interactivity.mouse,{onClick:n,onDiv:a,onHover:r}=(t?.interactivity??i.interactivity).events,l=(0,s.wm)("bubble",a);return(!!l||!!r.enable&&!!o.position||!!n.enable&&!!o.clickPosition)&&((0,s.dB)("bubble",r.mode)||(0,s.dB)("bubble",n.mode)||l)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new tP),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function tS(t,e=!0){await t.addInteractor("externalBubble",t=>new tM(t),e)}class tT{constructor(){this.opacity=.5}load(t){t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class tR{constructor(){this.distance=80,this.links=new tT,this.radius=60}get lineLinked(){return this.links}set lineLinked(t){this.links=t}get line_linked(){return this.links}set line_linked(t){this.links=t}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links??t.lineLinked??t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}var tE=i(4133);class tD extends j{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)}async interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position;if(!t.retina.connectModeDistance||t.retina.connectModeDistance<0||!t.retina.connectModeRadius||t.retina.connectModeRadius<0||!e)return;let i=Math.abs(t.retina.connectModeRadius),s=t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t)),o=0;for(let e of s){let i=e.getPosition();for(let n of s.slice(o+1)){let s=n.getPosition(),o=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-s.x),r=Math.abs(i.y-s.y);a{var o;let n=function(t,e,i,s){let o=t.actualOptions.interactivity.modes.connect;if(o)return function(t,e,i,s){let o=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;let r=e.getPosition(),l=i.getPosition(),c=(0,d.oc)(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,(0,d.vz)(n,s)),h.addColorStop(o>1?1:o,(0,d.iz)(c,s)),h.addColorStop(1,(0,d.vz)(a,s)),h}(e,i,s,o.links.opacity)}(t,s,e,i);if(!n)return;let a=e.getPosition(),r=i.getPosition();o=e.retina.linksWidth??0,(0,tE.pS)(s,a,r),s.lineWidth=o,s.strokeStyle=n,s.stroke()})}(t,e,n)}++o}}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,o=(t?.interactivity??e.actualOptions.interactivity).events;return!!o.onHover.enable&&!!i.position&&(0,s.dB)("connect",o.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new tR),e))t.connect.load(i?.connect)}reset(){}}async function tI(t,e=!0){await t.addInteractor("externalConnect",t=>new tD(t),e)}class tA{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=o.O.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class tL{constructor(){this.distance=100,this.links=new tA}get lineLinked(){return this.links}set lineLinked(t){this.links=t}get line_linked(){return this.links}set line_linked(t){this.links=t}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links??t.lineLinked??t.line_linked))}}class tB extends j{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==ty.Wt)return;let i=t.interactivity.mouse.position;if(!i)return;let s=t.retina.grabModeDistance;if(s&&!(s<0))for(let o of t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t))){let a=o.getPosition(),r=(0,n.Sp)(a,i);if(r>s)continue;let l=e.modes.grab.links,c=l.opacity,h=c-r*c/s;if(h<=0)continue;let u=l.color??o.options.links?.color;if(!t.particles.grabLineColor&&u){let i=e.modes.grab.links;t.particles.grabLineColor=(0,d.Dt)(u,i.blink,i.consent)}let p=(0,d.BE)(o,void 0,t.particles.grabLineColor);p&&function(t,e,i,s,o){t.canvas.draw(t=>{var n;let a=e.getPosition();n=e.retina.linksWidth??0,(0,tE.pS)(t,a,o),t.strokeStyle=(0,d.iz)(i,s),t.lineWidth=n,t.stroke()})}(t,o,p,h,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,o=(t?.interactivity??e.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&(0,s.dB)("grab",o.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new tL),e))t.grab.load(i?.grab)}reset(){}}async function tj(t,e=!0){await t.addInteractor("externalGrab",t=>new tB(t),e)}class tG extends j{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.getAnimationStatus()?e.pause():e.play()}}clear(){}init(){}async interact(){}isEnabled(){return!0}reset(){}}async function tF(t,e=!0){await t.addInteractor("externalPause",t=>new tG(t),e)}class tq{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,n.Cs)(t)}load(t){if(!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??t.particles_nb;void 0!==e&&(this.quantity=(0,n.Cs)(e))}}class tH extends j{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 o=(0,n.Gu)(i.quantity);if(o<=0)return;let a=(0,s.c8)([void 0,...i.groups]),r=void 0!==a?e.actualOptions.particles.groups[a]:void 0;e.particles.push(o,e.interactivity.mouse,r,a)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new tq),e))t.push.load(i?.push)}reset(){}}async function tW(t,e=!0){await t.addInteractor("externalPush",t=>new tH(t),e)}class tV{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=(0,n.Cs)(t)}load(t){if(!t)return;let e=t.quantity??t.particles_nb;void 0!==e&&(this.quantity=(0,n.Cs)(e))}}class tZ extends j{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let s=(0,n.Gu)(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}async interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new tV),e))t.remove.load(i?.remove)}reset(){}}async function tU(t,e=!0){await t.addInteractor("externalRemove",t=>new tZ(t),e)}class tN{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class tK extends tN{constructor(){super(),this.selectors=[]}get ids(){return(0,s.KH)(this.selectors,t=>t.replace("#",""))}set ids(t){this.selectors=(0,s.KH)(t,t=>`#${t}`)}load(t){super.load(t),t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class t$ extends tN{load(t){super.load(t),t&&(this.divs=(0,s.KH)(t.divs,t=>{let e=new tK;return e.load(t),e}))}}class tX extends j{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 s=t.retina.repulseModeDistance;if(!s||s<0)return;let o=Math.pow(s/6,3),a=t.interactivity.mouse.clickPosition;if(void 0===a)return;let r=new tv.C(a.x,a.y,o);for(let s of t.particles.quadTree.query(r,t=>this.isEnabled(t))){let{dx:t,dy:r,distance:l}=(0,n.oW)(a,s.position),c=l**2,d=-o*e.speed/c;if(c<=o){i.particles.push(s);let e=h.O.create(t,r);e.length=d,s.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 tv.C(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{let o=this.container,a=o.particles.quadTree.query(i,t=>this.isEnabled(t)),r=o.actualOptions.interactivity.modes.repulse;if(r)for(let i of a){let{dx:o,dy:a,distance:l}=(0,n.oW)(i.position,t),c=(s?.speed??r.speed)*r.factor,d=(0,n.uZ)((0,n._X)(r.easing)(1-l/e)*c,0,r.maxSpeed),u=h.O.create(0===l?c:o/l*d,0===l?c:a/l*d);i.position.addTo(u)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,o=i.actualOptions.interactivity.modes.repulse;if(!o)return;let n=document.querySelectorAll(t);n.length&&n.forEach(t=>{let n=i.retina.pixelRatio,a={x:(t.offsetLeft+t.offsetWidth/2)*n,y:(t.offsetTop+t.offsetHeight/2)*n},r=t.offsetWidth/2*n,l="circle"===e.type?new tv.C(a.x,a.y,r):new tw.A(t.offsetLeft*n,t.offsetTop*n,t.offsetWidth*n,t.offsetHeight*n),c=o.divs,h=(0,s.iC)(c,t);this._processRepulse(a,r,l,h)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||"repulse"!==t)return;e.repulse||(e.repulse={particles:[]});let s=e.repulse;for(let t of(s.clicking=!0,s.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{e.destroyed||(s.clicking=!1)},1e3*i.duration)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}async interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===ty.Wt,o=e.interactivity.events,n=o.onHover,a=n.enable,r=n.mode,l=o.onClick,c=l.enable,h=l.mode,d=o.onDiv;i&&a&&(0,s.dB)("repulse",r)?this._hoverRepulse():c&&(0,s.dB)("repulse",h)?this._clickRepulse():(0,s.XD)("repulse",d,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,o=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,a=n.onDiv,r=n.onHover,l=n.onClick,c=(0,s.wm)("repulse",a);if(!(c||r.enable&&o.position||l.enable&&o.clickPosition))return!1;let h=r.mode,d=l.mode;return(0,s.dB)("repulse",h)||(0,s.dB)("repulse",d)||c}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new t$),e))t.repulse.load(i?.repulse)}reset(){}}async function tY(t,e=!0){await t.addInteractor("externalRepulse",e=>new tX(t,e),e)}class tJ{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class tQ extends j{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)}async interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,o=(t?.interactivity??e.actualOptions.interactivity).events;return o.onHover.enable&&!!i.position&&(0,s.dB)("slow",o.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new tJ),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,o=e.retina.slowModeRadius,a=i.interactivity.modes.slow;if(!a||!o||o<0||!s)return;let r=t.getPosition(),l=(0,n.Sp)(s,r),c=a.factor,{slow:h}=t;l>o||(h.inRange=!0,h.factor=l/o/c)}}async function t0(t,e=!0){await t.addInteractor("externalSlow",t=>new tQ(t),e)}let t1=[0,4,2,1],t2=[8,8,4,2];class t3{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=0,e=0;for(let i=0;0!==(t=this.data[this.pos+i]);i+=t+1)e+=t;let i=new Uint8Array(e);for(let e=0;0!==(t=this.data[this.pos++]);)for(let s=t;--s>=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++}}function t5(t,e){let i=[];for(let s=0;s>>5,o.disposalMethod=(28&n)>>>2,o.userInputDelayFlag=(2&n)==2,o.delayTime=10*t.nextTwoBytes();let a=t.nextByte();(1&n)==1&&s(a),t.pos++;break}case 255:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case 254:e.comments.push([i(!1),t.readSubBlocks()]);break;case 1: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()}}async function t4(t,e,i,s,o,n){let a=e.frames[s(!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=t5(t,1<<(7&r)+1));let c=t=>{let{r:s,g:n,b:r}=(l?a.localColorTable:e.globalColorTable)[t];return{r:s,g:n,b:r,a:t===o(null)?i?~~((s+n+r)/3):0:255}},h=(()=>{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==h)throw EvalError("GIF frame size is to large");let d=t.nextByte(),u=t.readSubBlocksBin(),p=1<{let i=t>>>3,s=7&t;return(u[i]+(u[i+1]<<8)+(u[i+2]<<16)&(1<>>s};if((64&r)==64){for(let i=0,o=d+1,r=0,l=[[0]],u=0;u<4;u++){if(t1[u]=l.length?l.push(l[s].concat(l[s][0])):s!==p&&l.push(l[s].concat(l[i][0]));for(let s=0;s=a.height))break}n?.(t.pos/(t.data.length-1),s(!1)+1,h,{x:a.left,y:a.top},{width:e.width,height:e.height})}a.image=h,a.bitmap=await createImageBitmap(h)}else{for(let t=0,e=d+1,i=0,s=[[0]],o=-4;;){let n=t;if(t=f(i,e),i+=e,t===p){e=d+1,s.length=p+2;for(let t=0;t=s.length?s.push(s[n].concat(s[n][0])):n!==p&&s.push(s[n].concat(s[t][0]));for(let e=0;e=1<>>4,n.sortFlag=(8&r)==8;let c=a.nextByte();n.pixelAspectRatio=a.nextByte(),0!==n.pixelAspectRatio&&(n.pixelAspectRatio=(n.pixelAspectRatio+15)/64),l&&(n.globalColorTable=t5(a,1<<(7&r)+1));let h=(()=>{try{return new ImageData(n.width,n.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==h)throw Error("GIF frame size is to large");let{r:d,g:u,b:p}=n.globalColorTable[c];h.data.set(l?[d,u,p,255]:[0,0,0,0]);for(let t=4;t(t&&(v=!0),f),g=t=>(null!=t&&(y=t),y);try{do v&&(n.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),f++,y=-1,v=!1);while(!await t6(a,n,i,m,g,e));for(let t of(n.frames.length--,n.frames)){if(t.userInputDelayFlag&&0===t.delayTime){n.totalTime=1/0;break}n.totalTime+=t.delayTime}return n}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${f} "${t.message}"`);throw t}}let t7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function et(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,s.jl)().error(`${ty.gK} loading image: ${t.source}`),e()}),i.src=t.source})}async function ee(t){if("gif"!==t.type){await et(t);return}t.loading=!0;try{t.gifData=await t9(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,0===t.gifLoopCount&&(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}async function ei(t){if("svg"!==t.type){await et(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():((0,s.jl)().error(`${ty.gK} Image not found`),t.error=!0),t.loading=!1}class es{constructor(t){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${ty.gK} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??t.replace_color??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t,e,i,s,o){let n=e.image,a=n?.element;if(n){if(t.globalAlpha=s,n.gif&&n.gifData){let s=new OffscreenCanvas(n.gifData.width,n.gifData.height),a=s.getContext("2d");if(!a)throw Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(0,0,s.width,s.height),void 0===e.gifLoopCount&&(e.gifLoopCount=n.gifLoopCount??0);let r=e.gifFrame??0,l={x:-(.5*n.gifData.width),y:-(.5*n.gifData.height)},c=n.gifData.frames[r];if(void 0===e.gifTime&&(e.gifTime=0),!c.bitmap)return;switch(t.scale(i/n.gifData.width,i/n.gifData.height),c.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height);break;case 1:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y);break;case 2:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),0===n.gifData.globalColorTable.length?a.putImageData(n.gifData.frames[0].image,l.x+c.left,l.y+c.top):a.putImageData(n.gifData.backgroundImage,l.x,l.y);break;case 3:{let e=a.getImageData(0,0,s.width,s.height);a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,l.x,l.y),a.clearRect(0,0,s.width,s.height),a.putImageData(e,0,0)}}if(e.gifTime+=o.value,e.gifTime>c.delayTime){if(e.gifTime-=c.delayTime,++r>=n.gifData.frames.length){if(--e.gifLoopCount<=0)return;r=0,a.clearRect(0,0,s.width,s.height)}e.gifFrame=r}t.scale(n.gifData.width/i,n.gifData.height/i)}else if(a){let e=n.ratio,s={x:-i,y:-i};t.drawImage(a,s.x,s.y,2*i,2*i/e)}t.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;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,s=e.shapeData,o=e.getFillColor(),n=i.find(t=>t.name===s.name||t.source===s.src);if(!n)return;let a=s.replaceColor??s.replace_color??n.replaceColor;if(n.loading){setTimeout(()=>{this.particleInit(t,e)});return}(async()=>{let t;(t=n.svgData&&o?await function(t,e,i,s){let o=function(t,e,i){let{svgData:s}=t;if(!s)return"";let o=(0,d.vz)(e,i);if(s.includes("fill"))return s.replace(t7,()=>o);let n=s.indexOf(">");return`${s.substring(0,n)} fill="${o}"${s.substring(n)}`}(t,i,s.opacity?.value??1),n={color:i,gif:e.gif,data:{...t,svgData:o},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor??e.replace_color,source:e.src};return new Promise(e=>{let i=new Blob([o],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,a=s.createObjectURL(i),r=new Image;r.addEventListener("load",()=>{n.loaded=!0,n.element=r,e(n),s.revokeObjectURL(a)}),r.addEventListener("error",async()=>{s.revokeObjectURL(a);let i={...t,error:!1,loading:!0};await et(i),n.loaded=!0,n.element=i.element,e(n)}),r.src=a})}(n,s,o,e):{color:o,data:n,element:n.element,gif:n.gif,gifData:n.gifData,gifLoopCount:n.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:n.ratio??1,replaceColor:a,source:s.src}).ratio||(t.ratio=1);let i=s.fill??e.fill,r=s.close??e.close;e.image=t,e.fill=i,e.close=r})()}}class eo{constructor(){this.src="",this.gif=!1}load(t){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 en{constructor(t){this.id="imagePreloader",this._engine=t}getPlugin(){return{}}loadOptions(t,e){if(!e||!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 eo;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function ea(t,e=!0){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${ty.gK} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i={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(i);let s=e.gif?ee:e.replaceColor?ei:et;await s(i)}catch{throw Error(`${ty.gK} ${e.name??e.src} not found`)}});let i=new en(t);await t.addPlugin(i,e),await t.addShape(["image","images"],new es(t),e)}class er extends a.SW{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class el extends a.SW{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class ec{constructor(){this.count=0,this.delay=new er,this.duration=new el}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class eh{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?(0,n.Gu)(i.delay.value)*(i.delay.sync?1:(0,n.sZ)())/e.retina.reduceFactor*1e3:0,delayTime:0,duration:e.retina.reduceFactor?(0,n.Gu)(i.duration.value)*(i.duration.sync?1:(0,n.sZ)())/e.retina.reduceFactor*1e3: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 ec),e))t.life.load(i?.life)}update(t,e){if(!this.isEnabled(t)||!t.life)return;let i=t.life,s=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;s=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration||t.spawning||(s?i.time=0:i.time+=e.value,i.time0&&t.life.count--,0===t.life.count){t.destroy();return}let o=this.container.canvas.size,a=(0,n.Cs)(0,o.width),r=(0,n.Cs)(0,o.width);t.position.x=(0,n.vd)(a),t.position.y=(0,n.vd)(r),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();let l=t.options.life;l&&(i.delay=1e3*(0,n.Gu)(l.delay.value),i.duration=1e3*(0,n.Gu)(l.duration.value))}}async function ed(t,e=!0){await t.addParticleUpdater("life",t=>new eh(t),e)}class eu{draw(t,e,i){let s=e.shapeData;t.moveTo(-i/2,0),t.lineTo(i/2,0),t.lineCap=s?.cap??"butt"}getSidesCount(){return 1}}async function ep(t,e=!0){await t.addShape("line",new eu,e)}class ef{init(){}isEnabled(t){return!(0,s.Kr)()&&!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,s.Kr)()||!i.enable)return;let o=i.force,n=e.interactivity.mouse.position;if(!n)return;let a=e.canvas.size,r={x:a.width/2,y:a.height/2},l=i.smooth,c=t.getRadius()/o,h={x:(n.x-r.x)*c,y:(n.y-r.y)*c},{offset:d}=t;d.x+=(h.x-d.x)/l,d.y+=(h.y-d.y)/l}}async function ev(t,e=!0){await t.addMover("parallax",()=>new ef,e)}class ey{constructor(t){this.container=t,this.type="particles"}}class em extends ey{constructor(t){super(t)}clear(){}init(){}async interact(t){let e=this.container,i=t.retina.attractDistance??e.retina.attractDistance,s=t.getPosition();for(let o of e.particles.quadTree.queryCircle(s,i)){if(t===o||!o.options.move.attract.enable||o.destroyed||o.spawning)continue;let e=o.getPosition(),{dx:i,dy:a}=(0,n.oW)(s,e),r=t.options.move.attract.rotate,l=i/(1e3*r.x),c=a/(1e3*r.y),h=o.size.value/t.size.value,d=1/h;t.velocity.x-=l*h,t.velocity.y-=c*h,o.velocity.x+=l*d,o.velocity.y+=c*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function eg(t,e=!0){await t.addInteractor("particlesAttract",t=>new em(t),e)}function eb(t,e,i,s,o,a){let r=(0,n.uZ)(t.options.collisions.absorb.speed*o.factor/10,0,s);t.size.value+=r/2,i.size.value-=r,s<=a&&(i.size.value=0,i.destroy())}let ew=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=(0,n.Gu)(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function e_(t,e){(0,s.kR)((0,s.gy)(t),(0,s.gy)(e)),ew(t),ew(e)}class ex extends ey{constructor(t){super(t)}clear(){}init(){}async interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,s=t.getPosition(),o=t.getRadius();for(let a of i.particles.quadTree.queryCircle(s,2*o)){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let r=a.getPosition(),l=a.getRadius();!(Math.abs(Math.round(s.z)-Math.round(r.z))>o+l)&&((0,n.Sp)(s,r)>o+l||function(t,e,i,s){switch(t.options.collisions.mode){case"absorb":!function(t,e,i,s){let o=t.getRadius(),n=e.getRadius();void 0===o&&void 0!==n?t.destroy():void 0!==o&&void 0===n?e.destroy():void 0!==o&&void 0!==n&&(o>=n?eb(t,o,e,n,i,s):eb(e,n,t,o,i,s))}(t,e,i,s);break;case"bounce":e_(t,e);break;case"destroy":t.unbreakable||e.unbreakable||e_(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,a,e,i.retina.pixelRatio))}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function eC(t,e=!0){await t.addInteractor("particlesCollisions",t=>new ex(t),e)}class ek extends tv.C{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){let{width:e,height:i}=this.canvasSize,{x:s,y:o}=t;return super.contains(t)||super.contains({x:s-e,y:o})||super.contains({x:s-e,y:o-i})||super.contains({x:s,y:o-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 tv.C(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new tw.A(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class ez{constructor(){this.blur=5,this.color=new o.O,this.color.value="#000",this.enable=!1}load(t){t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=o.O.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class eP{constructor(){this.enable=!1,this.frequency=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.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 eO{constructor(){this.blink=!1,this.color=new o.O,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new ez,this.triangles=new eP,this.width=1,this.warp=!1}load(t){t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=o.O.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class eM extends ey{constructor(t){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this.linkContainer,i=t.options.links,s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;let o=i.color;s=(0,d.Dt)(o,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}async interact(t){if(!t.options.links)return;t.links=[];let e=t.getPosition(),i=this.container,s=i.canvas.size;if(e.x<0||e.y<0||e.x>s.width||e.y>s.height)return;let o=t.options.links,a=o.opacity,r=t.retina.linksDistance??0,l=o.warp,c=l?new ek(e.x,e.y,r,s):new tv.C(e.x,e.y,r);for(let h of i.particles.quadTree.query(c)){let i=h.options.links;if(t===h||!i?.enable||o.id!==i.id||h.spawning||h.destroyed||!h.links||t.links.some(t=>t.destination===h)||h.links.some(e=>e.destination===t))continue;let c=h.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;let d=function(t,e,i,s,o){let{dx:a,dy:r,distance:l}=(0,n.oW)(t,e);if(!o||l<=i)return l;let c={x:Math.abs(a),y:Math.abs(r)},h={x:Math.min(c.x,s.width-c.x),y:Math.min(c.y,s.height-c.y)};return Math.sqrt(h.x**2+h.y**2)}(e,c,r,s,l&&i.warp);if(d>r)continue;let u=(1-d/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 eO),e))t.links.load(i?.links??i?.lineLinked??i?.line_linked)}reset(){}}async function eS(t,e=!0){await t.addInteractor("particlesLinks",t=>new eM(t),e)}function eT(t,e){var i;let s=((i=t.map(t=>t.id)).sort((t,e)=>t-e),i.join("_")),o=e.get(s);return void 0===o&&(o=(0,n.sZ)(),e.set(s,o)),o}class eR{constructor(t){this.container=t,this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let s=this.container,o=s.actualOptions,a=e.destination,r=t.getPosition(),l=a.getPosition(),c=e.opacity;s.canvas.draw(e=>{let h;let u=t.options.twinkle?.lines;if(u?.enable){let t=u.frequency,e=(0,d.tX)(u.color);(0,n.sZ)(){let s=t.options.links;if(!s?.enable)return;let o=s.triangles;if(!o.enable)return;let a=this.container,r=a.actualOptions,l=e.destination,c=i.destination,h=o.opacity??(e.opacity+i.opacity)/2;h<=0||a.canvas.draw(e=>{let i=t.getPosition(),u=l.getPosition(),p=c.getPosition(),f=t.retina.linksDistance??0;if((0,n.Sp)(i,u)>f||(0,n.Sp)(p,u)>f||(0,n.Sp)(p,i)>f)return;let v=(0,d.tX)(o.color);if(!v){let e=void 0!==s.id?a.particles.linksColors.get(s.id):a.particles.linksColor;v=(0,d.BE)(t,l,e)}v&&function(t){let{context:e,pos1:i,pos2:s,pos3:o,backgroundMask:n,colorTriangle:a,opacityTriangle:r}=t;(0,tE.Wd)(e,i,s,o),n.enable&&(e.globalCompositeOperation=n.composite),e.fillStyle=(0,d.iz)(a,r),e.fill()}({context:e,pos1:i,pos2:u,pos3:p,backgroundMask:r.backgroundMask,colorTriangle:v,opacityTriangle:h})})},this._drawTriangles=(t,e,i,s)=>{let o=i.destination;if(!(t.links?.triangles.enable&&o.options.links?.triangles.enable))return;let n=o.links?.filter(t=>{let e=this._getLinkFrequency(o,t.destination);return o.options.links&&e<=o.options.links.frequency&&s.findIndex(e=>e.destination===t.destination)>=0});if(n?.length)for(let s of n){let n=s.destination;this._getTriangleFrequency(e,o,n)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>eT([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>eT([t,e,i],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,e){let{links:i,options:s}=e;if(!i||i.length<=0)return;let o=i.filter(t=>s.links&&this._getLinkFrequency(e,t.destination)<=s.links.frequency);for(let t of o)this._drawTriangles(s,e,t,o),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this.container.retina.pixelRatio,{retina:i}=t,{distance:s,width:o}=t.options.links;i.linksDistance=s*e,i.linksWidth=o*e}particleDestroyed(t){t.links=[]}}class eE{constructor(){this.id="links"}getPlugin(t){return new eR(t)}loadOptions(){}needsPlugin(){return!0}}async function eD(t,e=!0){let i=new eE;await t.addPlugin(i,e)}async function eI(t,e=!0){await eS(t,e),await eD(t,e)}class eA{draw(t,e,i){let s=this.getCenter(e,i),o=this.getSidesData(e,i),n=o.count.numerator*o.count.denominator,a=o.count.numerator/o.count.denominator,r=Math.PI-180*(a-2)/a*Math.PI/180;if(t){t.beginPath(),t.translate(s.x,s.y),t.moveTo(0,0);for(let e=0;e0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}let s=e.animation;s.enable&&(t.rotate.decay=1-(0,n.Gu)(s.decay),t.rotate.velocity=(0,n.Gu)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,n.sZ)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&e.animation.enable&&!e.path}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new eH),e))t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(!function(t,e){let i=t.rotate,s=t.options.rotate;if(!i||!s)return;let o=s.animation,n=(i.velocity??0)*e.factor,a=2*Math.PI,r=i.decay??1;o.enable&&("increasing"===i.status?(i.value+=n,i.value>a&&(i.value-=a)):(i.value-=n,i.value<0&&(i.value+=a)),i.velocity&&1!==r&&(i.velocity*=r))}(t,e),t.rotation=t.rotate?.value??0)}}async function eV(t,e=!0){await t.addParticleUpdater("rotate",t=>new eW(t),e)}let eZ=Math.sqrt(2);class eU{draw(t,e,i){let s=i/eZ,o=2*s;t.rect(-s,-s,o,o)}getSidesCount(){return 4}}async function eN(t,e=!0){await t.addShape(["edge","square"],new eU,e)}class eK{draw(t,e,i){let s=e.sides,o=e.starInset??2;t.moveTo(0,0-i);for(let e=0;e0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=t.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let a=(0,n.vd)(i.offset),r=(e.velocity??0)*t.factor+3.6*a,l=e.decay??1;o&&"increasing"!==e.status?(e.value-=r,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status="increasing",e.value+=e.value)):(e.value+=r,e.value>s&&(e.loops||(e.loops=0),e.loops++,o&&(e.status="decreasing",e.value-=e.value%s))),e.velocity&&1!==l&&(e.velocity*=l),e.value>s&&(e.value%=s)}class eY{constructor(t){this.container=t}init(t){let e=this.container,i=t.options,o=(0,s.wA)(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=(0,n.Gu)(o.width)*e.retina.pixelRatio,t.strokeOpacity=(0,n.Gu)(o.opacity??1),t.strokeAnimation=o.color?.animation;let a=(0,d.lN)(o.color)??t.getFillColor();a&&(t.strokeColor=(0,d.bS)(a,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)&&function(t,e){if(!t.strokeColor||!t.strokeAnimation)return;let{h:i,s,l:o}=t.strokeColor,{h:n,s:a,l:r}=t.strokeAnimation;i&&eX(e,i,n,360,!1),s&&eX(e,s,a,100,!0),o&&eX(e,o,r,100,!0)}(t,e)}}async function eJ(t,e=!0){await t.addParticleUpdater("strokeColor",t=>new eY(t),e)}let eQ=["text","character","char"];class e0{draw(t,e,i,o){let n=e.shapeData;if(void 0===n)return;let a=n.value;if(void 0===a)return;void 0===e.text&&(e.text=(0,s.wA)(a,e.randomIndexData));let r=e.text,l=n.style??"",c=n.weight??"400",h=n.font??"Verdana",d=e.fill,u=r.length*i/2;t.font=`${l} ${c} ${2*Math.round(i)}px "${h}"`;let p={x:-u,y:i/2};t.globalAlpha=o,d?t.fillText(r,p.x,p.y):t.strokeText(r,p.x,p.y),t.globalAlpha=1}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(eQ.find(t=>(0,s.dB)(t,e.particles.shape.type))){let t=eQ.map(t=>e.particles.shape.options[t]).find(t=>!!t),i=[];(0,s.KH)(t,t=>{i.push((0,s.mx)(t.font,t.weight))}),await Promise.all(i)}}particleInit(t,e){if(!e.shape||!eQ.includes(e.shape))return;let i=e.shapeData;if(void 0===i)return;let o=i.value;void 0!==o&&(e.text=(0,s.wA)(o,e.randomIndexData))}}async function e1(t,e=!0){await t.addShape(eQ,new e0,e)}async function e2(t,e=!0){$(t),await ev(t,!1),await tb(t,!1),await tC(t,!1),await tS(t,!1),await tI(t,!1),await tj(t,!1),await tF(t,!1),await tW(t,!1),await tU(t,!1),await tY(t,!1),await t0(t,!1),await eg(t,!1),await eC(t,!1),await eI(t,!1),await tf(),await ea(t,!1),await ep(t,!1),await eF(t,!1),await eN(t,!1),await e$(t,!1),await e1(t,!1),await ed(t,!1),await eV(t,!1),await eJ(t,!1),await tp(t,e)}class e3{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,n.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,n.Cs)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class e5 extends a.SW{constructor(){super(),this.animation=new e3,this.direction="clockwise",this.enable=!1,this.value=0}load(t){super.load(t),t&&(this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class e8{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,n.Gu)(e.value)*Math.PI/180,sinDirection:(0,n.sZ)()>=.5?1:-1,cosDirection:(0,n.sZ)()>=.5?1:-1};let i=e.direction;switch("random"===i&&(i=Math.floor(2*(0,n.sZ)())>0?"counter-clockwise":"clockwise"),i){case"counter-clockwise":case"counterClockwise":t.tilt.status="decreasing";break;case"clockwise":t.tilt.status="increasing"}let s=t.options.tilt?.animation;s?.enable&&(t.tilt.decay=1-(0,n.Gu)(s.decay),t.tilt.velocity=(0,n.Gu)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.tilt.velocity*=(0,n.sZ)()))}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 e5),e))t.tilt.load(i?.tilt)}update(t,e){this.isEnabled(t)&&function(t,e){if(!t.tilt||!t.options.tilt)return;let i=t.options.tilt.animation,s=(t.tilt.velocity??0)*e.factor,o=2*Math.PI,n=t.tilt.decay??1;i.enable&&("increasing"===t.tilt.status?(t.tilt.value+=s,t.tilt.value>o&&(t.tilt.value-=o)):(t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=o)),t.tilt.velocity&&1!==n&&(t.tilt.velocity*=n))}(t,e)}}async function e4(t,e=!0){await t.addParticleUpdater("tilt",t=>new e8(t),e)}class e6{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){t&&(void 0!==t.color&&(this.color=o.O.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,n.Cs)(t.opacity)))}}class e9{constructor(){this.lines=new e6,this.particles=new e6}load(t){t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class e7{getColorStyles(t,e,i,s){let o=t.options.twinkle;if(!o)return{};let a=o.particles,r=a.enable&&(0,n.sZ)()new e7,e)}class ie{constructor(){this.angle=50,this.move=10}load(t){t&&(void 0!==t.angle&&(this.angle=(0,n.Cs)(t.angle)),void 0!==t.move&&(this.move=(0,n.Cs)(t.move)))}}class ii{constructor(){this.distance=5,this.enable=!1,this.speed=new ie}load(t){if(t&&(void 0!==t.distance&&(this.distance=(0,n.Cs)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed)){if((0,s.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)}}}}class is{constructor(t){this.container=t}init(t){let e=t.options.wobble;e?.enable?t.wobble={angle:(0,n.sZ)()*Math.PI*2,angleSpeed:(0,n.Gu)(e.speed.angle)/360,moveSpeed:(0,n.Gu)(e.speed.move)/10}:t.wobble={angle:0,angleSpeed:0,moveSpeed:0},t.retina.wobbleDistance=(0,n.Gu)(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 ii),e))t.wobble.load(i?.wobble)}update(t,e){this.isEnabled(t)&&function(t,e){let{wobble:i}=t.options,{wobble:s}=t;if(!i?.enable||!s)return;let o=s.angleSpeed*e.factor,n=s.moveSpeed*e.factor,a=(t.retina.wobbleDistance??0)*e.factor*n/(1e3/60),r=2*Math.PI,{position:l}=t;s.angle+=o,s.angle>r&&(s.angle-=r),l.x+=a*Math.cos(s.angle),l.y+=a*Math.abs(Math.sin(s.angle))}(t,e)}}async function io(t,e=!0){await t.addParticleUpdater("wobble",t=>new is(t),e)}async function ia(t,e=!0){await C(t,!1),await Z(t,!1),await e4(t,!1),await it(t,!1),await io(t,!1),await q(t,!1),await v(t,!1),await B(t,!1),await e2(t,e)}},5955:function(t,e,i){"use strict";i.d(e,{w_:function(){return h}});var s=i(7294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=s.createContext&&s.createContext(o),a=["attr","size","title"];function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;es.createElement(d,r({attr:c({},t.attr)},e),function t(e){return e&&e.map((e,i)=>s.createElement(e.tag,c({key:i},e.attr),t(e.child)))}(t.child))}function d(t){var e=e=>{var i,{attr:o,size:n,title:l}=t,h=function(t,e){if(null==t)return{};var i,s,o=function(t,e){if(null==t)return{};var i={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){if(e.indexOf(s)>=0)continue;i[s]=t[s]}return i}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}(t,a),d=n||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),s.createElement("svg",r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,h,{className:i,style:c(c({color:t.color||e.color},e.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&s.createElement("title",null,l),t.children)};return void 0!==n?s.createElement(n.Consumer,null,t=>e(t)):e(o)}}}]);