1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{43:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var n=i(2115);function s(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},63:(e,t,i)=>{"use strict";i.r(t);var n=i(7260),s={};for(let e in n)"default"!==e&&(s[e]=()=>n[e]);i.d(t,s)},87:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>s.a});var n=i(3360),s=i.n(n),r={};for(let e in n)"default"!==e&&(r[e]=()=>n[e]);i.d(t,r)},413:e=>{(()=>{"use strict";"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var t={};(()=>{function e(e,t){void 0===t&&(t={});for(var i=function(e){for(var t=[],i=0;i<e.length;){var n=e[i];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:i,value:e[i++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:i++,value:e[i++]});continue}if("{"===n){t.push({type:"OPEN",index:i,value:e[i++]});continue}if("}"===n){t.push({type:"CLOSE",index:i,value:e[i++]});continue}if(":"===n){for(var s="",r=i+1;r<e.length;){var a=e.charCodeAt(r);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||95===a){s+=e[r++];continue}break}if(!s)throw TypeError("Missing parameter name at ".concat(i));t.push({type:"NAME",index:i,value:s}),i=r;continue}if("("===n){var o=1,l="",r=i+1;if("?"===e[r])throw TypeError('Pattern cannot start with "?" at '.concat(r));for(;r<e.length;){if("\\"===e[r]){l+=e[r++]+e[r++];continue}if(")"===e[r]){if(0==--o){r++;break}}else if("("===e[r]&&(o++,"?"!==e[r+1]))throw TypeError("Capturing groups are not allowed at ".concat(r));l+=e[r++]}if(o)throw TypeError("Unbalanced pattern at ".concat(i));if(!l)throw TypeError("Missing pattern at ".concat(i));t.push({type:"PATTERN",index:i,value:l}),i=r;continue}t.push({type:"CHAR",index:i,value:e[i++]})}return t.push({type:"END",index:i,value:""}),t}(e),n=t.prefixes,r=void 0===n?"./":n,a=t.delimiter,o=void 0===a?"/#?":a,l=[],c=0,h=0,u="",d=function(e){if(h<i.length&&i[h].type===e)return i[h++].value},p=function(e){var t=d(e);if(void 0!==t)return t;var n=i[h],s=n.type,r=n.index;throw TypeError("Unexpected ".concat(s," at ").concat(r,", expected ").concat(e))},f=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t},m=function(e){for(var t=0;t<o.length;t++){var i=o[t];if(e.indexOf(i)>-1)return!0}return!1},g=function(e){var t=l[l.length-1],i=e||(t&&"string"==typeof t?t:"");if(t&&!i)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!i||m(i)?"[^".concat(s(o),"]+?"):"(?:(?!".concat(s(i),")[^").concat(s(o),"])+?")};h<i.length;){var v=d("CHAR"),y=d("NAME"),b=d("PATTERN");if(y||b){var w=v||"";-1===r.indexOf(w)&&(u+=w,w=""),u&&(l.push(u),u=""),l.push({name:y||c++,prefix:w,suffix:"",pattern:b||g(w),modifier:d("MODIFIER")||""});continue}var x=v||d("ESCAPED_CHAR");if(x){u+=x;continue}if(u&&(l.push(u),u=""),d("OPEN")){var w=f(),_=d("NAME")||"",P=d("PATTERN")||"",E=f();p("CLOSE"),l.push({name:_||(P?c++:""),pattern:_&&!P?g(w):P,prefix:w,suffix:E,modifier:d("MODIFIER")||""});continue}p("END")}return l}function i(e,t){void 0===t&&(t={});var i=r(t),n=t.encode,s=void 0===n?function(e){return e}:n,a=t.validate,o=void 0===a||a,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),i)});return function(t){for(var i="",n=0;n<e.length;n++){var r=e[n];if("string"==typeof r){i+=r;continue}var a=t?t[r.name]:void 0,c="?"===r.modifier||"*"===r.modifier,h="*"===r.modifier||"+"===r.modifier;if(Array.isArray(a)){if(!h)throw TypeError('Expected "'.concat(r.name,'" to not repeat, but got an array'));if(0===a.length){if(c)continue;throw TypeError('Expected "'.concat(r.name,'" to not be empty'))}for(var u=0;u<a.length;u++){var d=s(a[u],r);if(o&&!l[n].test(d))throw TypeError('Expected all "'.concat(r.name,'" to match "').concat(r.pattern,'", but got "').concat(d,'"'));i+=r.prefix+d+r.suffix}continue}if("string"==typeof a||"number"==typeof a){var d=s(String(a),r);if(o&&!l[n].test(d))throw TypeError('Expected "'.concat(r.name,'" to match "').concat(r.pattern,'", but got "').concat(d,'"'));i+=r.prefix+d+r.suffix;continue}if(!c){var p=h?"an array":"a string";throw TypeError('Expected "'.concat(r.name,'" to be ').concat(p))}}return i}}function n(e,t,i){void 0===i&&(i={});var n=i.decode,s=void 0===n?function(e){return e}:n;return function(i){var n=e.exec(i);if(!n)return!1;for(var r=n[0],a=n.index,o=Object.create(null),l=1;l<n.length;l++)!function(e){if(void 0!==n[e]){var i=t[e-1];"*"===i.modifier||"+"===i.modifier?o[i.name]=n[e].split(i.prefix+i.suffix
1).map(function(e){return s(e,i)}):o[i.name]=s(n[e],i)}}(l);return{path:r,index:a,params:o}}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function r(e){return e&&e.sensitive?"":"i"}function a(e,t,i){void 0===i&&(i={});for(var n=i.strict,a=void 0!==n&&n,o=i.start,l=i.end,c=i.encode,h=void 0===c?function(e){return e}:c,u=i.delimiter,d=i.endsWith,p="[".concat(s(void 0===d?"":d),"]|$"),f="[".concat(s(void 0===u?"/#?":u),"]"),m=void 0===o||o?"^":"",g=0;g<e.length;g++){var v=e[g];if("string"==typeof v)m+=s(h(v));else{var y=s(h(v.prefix)),b=s(h(v.suffix));if(v.pattern)if(t&&t.push(v),y||b)if("+"===v.modifier||"*"===v.modifier){var w="*"===v.modifier?"?":"";m+="(?:".concat(y,"((?:").concat(v.pattern,")(?:").concat(b).concat(y,"(?:").concat(v.pattern,"))*)").concat(b,")").concat(w)}else m+="(?:".concat(y,"(").concat(v.pattern,")").concat(b,")").concat(v.modifier);else{if("+"===v.modifier||"*"===v.modifier)throw TypeError('Can not repeat "'.concat(v.name,'" without a prefix and suffix'));m+="(".concat(v.pattern,")").concat(v.modifier)}else m+="(?:".concat(y).concat(b,")").concat(v.modifier)}}if(void 0===l||l)a||(m+="".concat(f,"?")),m+=i.endsWith?"(?=".concat(p,")"):"$";else{var x=e[e.length-1],_="string"==typeof x?f.indexOf(x[x.length-1])>-1:void 0===x;a||(m+="(?:".concat(f,"(?=").concat(p,"))?")),_||(m+="(?=".concat(f,"|").concat(p,")"))}return new RegExp(m,r(i))}function o(t,i,n){if(t instanceof RegExp){var s;if(!i)return t;for(var l=/\((?:\?<(.*?)>)?(?!\?)/g,c=0,h=l.exec(t.source);h;)i.push({name:h[1]||c++,prefix:"",suffix:"",modifier:"",pattern:""}),h=l.exec(t.source);return t}return Array.isArray(t)?(s=t.map(function(e){return o(e,i,n).source}),new RegExp("(?:".concat(s.join("|"),")"),r(n))):a(e(t,n),i,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=e,t.compile=function(t,n){return i(e(t,n),n)},t.tokensToFunction=i,t.match=function(e,t){var i=[];return n(o(e,i,t),i,t)},t.regexpToFunction=n,t.tokensToRegexp=a,t.pathToRegexp=o})(),e.exports=t})()},441:(e,t,i)=>{"use strict";function n(e,t,i){return Math.max(t,Math.min(e,i))}function s(e,t){return"rtl"===t?(1-e)*100:(-1+e)*100}function r(e,t,i){if("string"==typeof t)void 0!==i&&(e.style[t]=i);else for(let i in t)if(t.hasOwnProperty(i)){let n=t[i];void 0!==n&&(e.style[i]=n)}}function a(e,t){e.classList.add(t)}function o(e,t){e.classList.remove(t)}function l(e){e&&e.parentNode&&e.parentNode.removeChild(e)}i.r(t),i.d(t,{NProgress:()=>c});var c=class{static settings={minimum:.08,maximum:1,template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>',easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",direction:"ltr"};static status=null;static pending=[];static isPaused=!1;static configure(e){return Object.assign(this.settings,e),this}static isStarted(){return"number"==typeof this.status}static set(e){if(this.isPaused)return this;let t=this.isStarted();e=n(e,this.settings.minimum,this.settings.maximum),this.status=e===this.settings.maximum?null:e;let i=this.render(!t),s=i.querySelector(this.settings.barSelector),a=this.settings.speed,o=this.settings.easing;return i.offsetWidth,this.queue(t=>{""===this.settings.positionUsing&&(this.settings.positionUsing=this.getPositioningCSS()),r(s,this.barPositionCSS(e,a,o)),e===this.settings.maximum?(r(i,{transition:"none",opacity:"1"}),i.offsetWidth,setTimeout(()=>{r(i,{transition:`all ${a}ms linear`,opacity:"0.5"}),setTimeout(()=>{this.remove(),t()},a)},a)):setTimeout(t,a)}),this}static start(){this.status||this.set(0);let e=()=>{this.isPaused||setTimeout(()=>{this.status&&(this.trickle(),e())},this.settings.trickleSpeed)};return this.settings.trickle&&e(),this}static done(e){return e||this.status?this.inc(.3+.5*Math.random()).set(1):this}static inc(e){if(this.isPaused)return this;let t=this.status;return t?t>1?this:("number"!=typeof e&&(e=t>=0&&t<.2?.1:t>=.2&&t<.5?.04:t>=.5&&t<.8?.02:.005*(t>=.8&&t<.99)),t=n(t+e,0,.994),this.set(t)):this.start()}static trickle(){return this.isPaused?this:this.inc()}static promise(e){if(!e||"resolved"===e.state())return this;let t=0,i=0;return this.start(),t++,i++,e.always(()=>{0==--i?(t=0,this.done()):this.set((t-i)/t)}),this}static render(e=!1){if(this.isRendered())return document.getElementById("nprogress");a(document.documentElement,"nprogress-busy");let t=document.createElement("div");t.id="nprogress",t.innerHTML=this.settings.template;let i=t.querySelector(this.settings.barSelector),n=e?s(0,this.settings.direction):`${s(this.status||0,this.settings.direction)}
1`,o="string"==typeof this.settings.parent?document.querySelector(this.settings.parent):this.settings.parent;if(r(i,{transition:"all 0 linear",transform:`translate3d(${n}%,0,0)`}),!this.settings.showSpinner){let e=t.querySelector(this.settings.spinnerSelector);e&&l(e)}return o!==document.body&&a(o,"nprogress-custom-parent"),o.appendChild(t),t}static remove(){o(document.documentElement,"nprogress-busy"),o("string"==typeof this.settings.parent?document.querySelector(this.settings.parent):this.settings.parent,"nprogress-custom-parent");let e=document.getElementById("nprogress");e&&l(e)}static pause(){return this.isPaused=!0,this}static resume(){return this.isPaused=!1,this}static isRendered(){return!!document.getElementById("nprogress")}static getPositioningCSS(){let e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return`${t}Perspective`in e?"translate3d":`${t}Transform`in e?"translate":"margin"}static queue(e){this.pending.push(e),1===this.pending.length&&this.next()}static next(){let e=this.pending.shift();e&&e(this.next.bind(this))}static barPositionCSS(e,t,i){let n={};return(n="translate3d"===this.settings.positionUsing?{transform:`translate3d(${s(e,this.settings.direction)}%,0,0)`}:"translate"===this.settings.positionUsing?{transform:`translate(${s(e,this.settings.direction)}%,0)`}:{"margin-left":`${s(e,this.settings.direction)}%`}).transition=`all ${t}ms ${i}`,n}}},579:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return r}});let n=i(2296),s=i(3078);function r(e,t,i){void 0===i&&(i=!0);let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:o,searchParams:l,search:c,hash:h,href:u,origin:d}=new URL(e,a);if(d!==r.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:o,query:i?(0,s.searchParamsToUrlQuery)(l):void 0,search:c,hash:h,href:u.slice(d.length),slashes:void 0}}},749:(e,t)=>{"use strict";function i(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}})},935:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});let n=i(3078),s=i(7670),r=i(3644),a=i(2296),o=i(1239),l=i(8607),c=i(5287),h=i(2471),u=i(8156),d=i(2385);function p(e,t,i){let p,f="string"==typeof t?t:(0,s.formatWithValidation)(t),m=f.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?f.slice(m[0].length):f;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(g);f=(m?m[0]:"")+t}if(!(0,l.isLocalURL)(f))return i?[f]:f;try{let t=f.startsWith("#")?e.asPath:e.pathname;if(f.startsWith("?")&&(t=e.asPath,(0,c.isDynamicRoute)(e.pathname))){t=e.pathname;let i=(0,u.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(i)(e.asPath)||(t=e.asPath)}p=new URL(t,"http://n")}catch(e){p=new URL("/","http://n")}try{let e=new URL(f,p);e.pathname=(0,o.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&i){let i=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:a,params:o}=(0,h.interpolateAs)(e.pathname,e.pathname,i);a&&(t=(0,s.formatWithValidation)({pathname:a,hash:e.hash,query:(0,r.omit)(i,o)}))}let a=e.origin===p.origin?e.href.slice(e.origin.length):e.href;return i?[a,t||a]:a}catch(e){return i?[f]:f}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},998:(e,t,i)=>{"use strict";i.d(t,{B:()=>n});let n="undefined"!=typeof window},1402:(e,t,i)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g}});let n=i(8140),s=i(9417),r=i(5155),a=n._(i(7650)),o=s._(i(2115)),l=i(2073),c=i(4681),h=i(4853),u=i(9001),d=new Map,p=new Set,f=e=>{let{src:t,id:i,onLoad:n=()=>{},onReady:s=null,dangerouslySetInnerHTML:r,children:o="",strategy:l="afterInteractive",onError:h,stylesheets:u}=e,f=i||t;if(f&&p.has(f))return;if(d.has(t)){p.add(f),d.get(t).then(n,h);return}let m=()=>{s&&s(),p.add(f)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){h&&h(e)});r?(g.innerHTML=r.__html||"",m()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(g.src=t,d.set(t,v)),(0,c.setAttributesFromProps)(g,e),"worker"===l&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",l),u&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}})(u),document.body.appendChild(g)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function v(e){let{id:t,src:i="",onLoad:n=()=>{},onReady:s=null,strategy:c="afterInteractive",onError:d,stylesheets:m,...g}=e,{updateScripts:v,scripts:y,getIsSsr:b,appDir:w,nonce:x}=(0,o.useContext)(l.HeadManagerContext);x=g.nonce||x;let _=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||i;_.current||(s&&e&&p.has(e)&&s(),_.current=!0)},[s,t,i]);let P=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{if(!P.current){if("afterInteractive"===c)f(e);else"lazyOnload"===c&&("complete"===document.readyState?(0,h.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,h.requestIdleCallback)(()=>f(e))}));P.current=!0}},[e,c]),("beforeInteractive"===c||"worker"===c)&&(v?(y[c]=(y[c]||[]).concat([{id:t,src:i,onLoad:n,onReady:s,onError:d,...g,nonce:x}]),v(y)):b&&b()?p.add(t||i):b&&!b()&&f({...e,nonce:x})),w){if(m&&m.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)if(!i)return g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,r.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,u.htmlEscapeJsonString)(JSON.stringify([0,{...g,id:t}]))+")"}});else return a.default.preload(i,g.integrity?{as:"script",integrity:g.integrity,nonce:x,crossOrigin:g.crossOrigin}:{as:"script",nonce:x,crossOrigin:g.crossOrigin}),(0,r.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,u.htmlEscapeJsonString)(JSON.stringify([i,{...g,id:t}]))+")"}});"afterInteractive"===c&&i&&a.default.preload(i,g.integrity?{as:"script",integrity:g.integrity,nonce:x,crossOrigin:g.crossOrigin}:{as:"script",nonce:x,crossOrigin:g.crossOrigin})}return null}Object.defineProperty(v,"__nextScript",{value:!0});let y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{hasAdjacentParameterIssues:function(){return n},normalizeAdjacentParameters:function(){return s},normalizeTokensForRegexp:function(){return r},stripParameterSeparators:function(){return a}});let i="_NEXTSEP_";function n(e){return"string"==typeof e&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(e)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function s(e){let t=e;return(t=t.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${i}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${i}`)}function r(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function a(e){let t={};for(let[n,s]of Object.entries(e))"string"==typeof s?t[n]=s.replace(RegExp(`^${i}`),""):Array.isArray(s)?t[n]=s.map(e=>"string"==typeof e?e.replace(RegExp(`^${i}`),""):e):t[n]=s;return t}},1727:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return i}});class i{static from(e,t){void 0===t&&(t=1e-4);let n=new i(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let i=1;i<=this.numHashes;i++){let n=function(e){let t=0;for(let i=0;i<e.length;i++)t=Math.imul(t^e.charCodeAt(i),0x5bd1e995),t^=t>>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+i)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},1898:(e,t,i)=>{"use strict";let n;function s(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function r(e){let t=[{},{}];return null==e||e.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function a(e,t,i,n){if("function"==typeof t){let[s,a]=r(n);t=t(void 0!==i?i:e.custom,s,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[s,a]=r(n);t=t(void 0!==i?i:e.custom,s,a)}return t}function o(e,t,i){let n=e.getProps();return a(n,t,void 0!==i?i:n.custom,e)}function l(e,t){return e?e[t]||e.default||e:void 0}i.d(t,{P:()=>ra});let c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(c),u=new Set(["width","height","top","left","right","bottom",...c]),d=e=>Array.isArray(e),p=e=>d(e)?e[e.length-1]||0:e,f={skipAnimations:!1,useManualTiming:!1},m=e=>e,g=["read","resolveKeyframes","update","preRender","render","postRender"],v={value:null,addProjectionMetrics:null};function y(e,t){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=g.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(h.schedule(t),e()),l++,t(o)}let h={schedule:(e,t=!1,r=!1)=>{let o=r&&s?i:n;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,s){r=!0;return}s=!0,[i,n]=[n,i],i.forEach(c),t&&v.value&&v.value.frameloop[t].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(e))}};return h}(r,t?i:void 0),e),{}),{read:o,resolveKeyframes:l,update:c,preRender:h,render:u,postRender:d}=a,p=()=>{let r=f.useManualTiming?s.timestamp:performance.now();i=!1,f.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),l.process(s),c.process(s),h.process(s),u.process(s),d.process(s),s.isProcessing=!1,i&&t&&(n=!1,e(p))};return{schedule:g.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||e(p)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<g.length;t++)a[g[t]].cancel(e)},state:s,steps:a}}let{schedule:b,cancel:w,state:x,steps:_}=y("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:m,!0);function P(){n=void 0}let E={now:()=>(void 0===n&&E.set(x.isProcessing||f.useManualTiming?x.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(P)}};function S(e,t){-1===e.indexOf(t)&&e.push(t)}function R(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class T{constructor(){this.subscriptions=[]}add(e){return S(this.subscriptions,e),()=>R(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let C={current:void 0};class k{constructor(e,t={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let i=E.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=E.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new T);let i=this.events[e].add(t);return"change"===e?()=>{i(),b.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return C.current&&C.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=E.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function O(e,t){return new k(e,t)}let M=e=>!!(e&&e.getVelocity);function A(e,t){let i=e.getValue("willChange");if(M(i)&&i.add)return i.add(t)}let D=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),I="data-"+D("framerAppearId");function L(e){let t;return()=>(void 0===t&&(t=e()),t)}let j=L(()=>void 0!==window.ScrollTimeline);class z{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=t}attachTimeline(e,t){let i=this.animations.map(i=>j()&&i.attachTimeline?i.attachTimeline(e):"function"==typeof t?t(i):void 0);return()=>
1{i.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class V extends z{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}let N=e=>1e3*e,F={current:!1};function B(e){return"function"==typeof e}function U(e,t){e.timeline=t,e.onfinish=null}let H=e=>Array.isArray(e)&&"number"==typeof e[0],W={linearEasing:void 0},q=function(e,t){let i=L(e);return()=>{var e;return null!=(e=W[t])?e:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),G=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n},$=(e,t,i=10)=>{let n="",s=Math.max(Math.round(t/i),2);for(let t=0;t<s;t++)n+=e(G(0,s-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`},X=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,Y={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:X([0,.65,.55,1]),circOut:X([.55,0,1,.45]),backIn:X([.31,.01,.66,-.59]),backOut:X([.33,1.53,.69,.99])},K=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function J(e,t,i,n){return e===t&&i===n?m:s=>0===s||1===s?s:K(function(e,t,i,n,s){let r,a,o=0;do(r=K(a=t+(i-t)/2,n,s)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12);return a}(s,0,1,e,i),t,n)}let Z=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q=e=>t=>1-e(1-t),ee=J(.33,1.53,.69,.99),et=Q(ee),ei=Z(et),en=e=>(e*=2)<1?.5*et(e):.5*(2-Math.pow(2,-10*(e-1))),es=e=>1-Math.sin(Math.acos(e)),er=Q(es),ea=Z(es),eo=e=>/^0[^.\s]+$/u.test(e),el=(e,t,i)=>i>t?t:i<e?e:i,ec={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eh={...ec,transform:e=>el(0,1,e)},eu={...ec,default:1},ed=e=>Math.round(1e5*e)/1e5,ep=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ef=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,em=(e,t)=>i=>!!("string"==typeof i&&ef.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),eg=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(ep);return{[e]:parseFloat(s),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},ev={...ec,transform:e=>Math.round(el(0,255,e))},ey={test:em("rgb","red"),parse:eg("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+ev.transform(e)+", "+ev.transform(t)+", "+ev.transform(i)+", "+ed(eh.transform(n))+")"},eb={test:em("#"),parse:function(e){let t="",i="",n="",s="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),s=e.substring(4,5),t+=t,i+=i,n+=n,s+=s),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:ey.transform},ew=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ex=ew("deg"),e_=ew("%"),eP=ew("px"),eE=ew("vh"),eS=ew("vw"),eR={...e_,parse:e=>e_.parse(e)/100,transform:e=>e_.transform(100*e)},eT={test:em("hsl","hue"),parse:eg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+e_.transform(ed(t))+", "+e_.transform(ed(i))+", "+ed(eh.transform(n))+")"},eC={test:e=>ey.test(e)||eb.test(e)||eT.test(e),parse:e=>ey.test(e)?ey.parse(e):eT.test(e)?eT.parse(e):eb.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ey.transform(e):eT.transform(e)},ek=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eO="number",eM="color",eA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eD(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=t.replace(eA,e=>(eC.test(e)?(n.color.push(r),s.push(eM),i.push(eC.parse(e))):e.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(e)):(n.number.push(r),s.push(eO),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function eI(e){return eD(e).values}function eL(e){let{split:t,types:i}=eD(e),n=t.length;return e=>{let s="";for(let r=0;r<n;r++)if(s+=t[r],void 0!==e[r]){let t=i[r];t===eO?s+=ed(e[r]):t===eM?s+=eC.transform(e[r]):s+=e[r]}return s}}let ej=e=>"number"==typeof e?0:e,ez={test:function(e){var t,i;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(ep))?void 0:t.length)||0)+((null==(i=e.match(ek))?void 0:i.length)||0)>0},parse:eI,createTransformer:eL,getAnimatableNone:function(e){let t=eI(e);return eL(e)(t.map(ej))}},eV=new Set(["brightness","contrast","saturate","opacity"]);function eN(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(ep)||[];
1if(!n)return e;let s=i.replace(n,""),r=+!!eV.has(t);return n!==i&&(r*=100),t+"("+r+s+")"}let eF=/\b([a-z-]*)\(.*?\)/gu,eB={...ez,getAnimatableNone:e=>{let t=e.match(eF);return t?t.map(eN).join(" "):e}},eU={...ec,transform:Math.round},eH={borderWidth:eP,borderTopWidth:eP,borderRightWidth:eP,borderBottomWidth:eP,borderLeftWidth:eP,borderRadius:eP,radius:eP,borderTopLeftRadius:eP,borderTopRightRadius:eP,borderBottomRightRadius:eP,borderBottomLeftRadius:eP,width:eP,maxWidth:eP,height:eP,maxHeight:eP,top:eP,right:eP,bottom:eP,left:eP,padding:eP,paddingTop:eP,paddingRight:eP,paddingBottom:eP,paddingLeft:eP,margin:eP,marginTop:eP,marginRight:eP,marginBottom:eP,marginLeft:eP,backgroundPositionX:eP,backgroundPositionY:eP,rotate:ex,rotateX:ex,rotateY:ex,rotateZ:ex,scale:eu,scaleX:eu,scaleY:eu,scaleZ:eu,skew:ex,skewX:ex,skewY:ex,distance:eP,translateX:eP,translateY:eP,translateZ:eP,x:eP,y:eP,z:eP,perspective:eP,transformPerspective:eP,opacity:eh,originX:eR,originY:eR,originZ:eP,zIndex:eU,size:eP,fillOpacity:eh,strokeOpacity:eh,numOctaves:eU},eW={...eH,color:eC,backgroundColor:eC,outlineColor:eC,fill:eC,stroke:eC,borderColor:eC,borderTopColor:eC,borderRightColor:eC,borderBottomColor:eC,borderLeftColor:eC,filter:eB,WebkitFilter:eB},eq=e=>eW[e];function eG(e,t){let i=eq(e);return i!==eB&&(i=ez),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let e$=new Set(["auto","none","0"]),eX=e=>e===ec||e===eP,eY=(e,t)=>parseFloat(e.split(", ")[t]),eK=(e,t)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let s=n.match(/^matrix3d\((.+)\)$/u);if(s)return eY(s[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?eY(t[1],e):0}},eJ=new Set(["x","y","z"]),eZ=c.filter(e=>!eJ.has(e)),eQ={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eK(4,13),y:eK(5,14)};eQ.translateX=eQ.x,eQ.translateY=eQ.y;let e0=new Set,e1=!1,e2=!1;function e5(){if(e2){let e=Array.from(e0).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t=function(e){let t=[];return eZ.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t}(e);t.length&&(i.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{var n;null==(n=e.getValue(t))||n.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}e2=!1,e1=!1,e0.forEach(e=>e.complete()),e0.clear()}function e3(){e0.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e2=!0)})}class e4{constructor(e,t,i,n,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(e0.add(this),e1||(e1=!0,b.read(e3),b.resolveKeyframes(e5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;for(let s=0;s<e.length;s++)if(null===e[s])if(0===s){let s=null==n?void 0:n.get(),r=e[e.length-1];if(void 0!==s)e[0]=s;else if(i&&t){let n=i.readValue(t,r);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=r),n&&void 0===s&&n.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),e0.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,e0.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let e8=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e6=e=>t=>"string"==typeof t&&t.startsWith(e),e9=e6("--"),e7=e6("var(--"),te=e=>!!e7(e)&&tt.test(e.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ti=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tn=e=>t=>t.test(e),ts=[ec,eP,e_,ex,eS,eE,{test:e=>"auto"===e,parse:e=>e}],tr=e=>ts.find(tn(e));class ta extends e4{constructor(e,t,i,n,s){super(e,t,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&te(n=n.trim())){let s=function e(t,i,n=1){m(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[s,r]=function(e){let t=ti.exec(e);if(!t)return[,];let[,i,n,s]=t;return[`--${null!=i?i:n}`,s]}(t);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let e=a.trim();return e8(e)?parseFloat(e):e}return te(r)?e(r,i,n+1):r}(n,t.current);void 0!==s&&(e[i]=s),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!u.has(i)||2!==e.length)return;let[n,s]=e,r=tr(n),a=tr(s);if(r!==a)if(eX(r)&&eX(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++){var n;("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||eo(n))&&i.push(t)}i.length&&function(e,t,i){let n,s=0;for(;s<e.length&&!n;){let t=e[s];"string"==typeof t&&!e$.has(t)&&eD(t).values.length&&(n=e[s]),s++}if(n&&i)for(let s of t)e[s]=eG(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eQ[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:i,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let s=t.getValue(i);s&&s.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=eQ[i](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let to=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(ez.test(e)||"0"===e)&&!e.startsWith("url(")),tl=e=>null!==e;function tc(e,{repeat:t,repeatType:i="loop"},n){let s=e.filter(tl),r=t&&"loop"!==i&&t%2==1?0:s.length-1;return r&&void 0!==n?n:s[r]}class th{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=E.now(),this.options={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:s,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(e3(),e5()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=E.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:s,delay:r,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,i,n){let s=e[0];if(null===s)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=to(s,t),o=to(r,t);return m(a===o,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||B(i))&&n)}(e,i,n,s))if(F.current||!r){o&&o(tc(e,this.options,t)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function tu(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let td={layout:0,mainThread:0,waapi:0},tp=(e,t,i)=>e+(t-e)*i;function tf(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function tm(e,t){return i=>i>0?t:e}let tg=(e,t,i)=>{let n=e*e,s=i*(t*t-n)+n;return s<0?0:Math.sqrt(s)},tv=[eb,ey,eT];function ty(e){let t=tv.find(t=>t.test(e));if(m(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let i=t.parse(e);return t===eT&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let s=0,r=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;s=tf(o,n,e+1/3),r=tf(o,n,e),a=tf(o,n,e-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let tb=(e,t)=>{let i=ty(e),n=ty(t);if(!i||!n)return tm(e,t);let s={...i};return e=>(s.red=tg(i.red,n.red,e),s.green=tg(i.green,n.green,e),s.blue=tg(i.blue,n.blue,e),s.alpha=tp(i.alpha,n.alpha,e),ey.transform(s))},tw=(e,t)=>i=>t(e(i)),tx=(...e)=>e.reduce(tw),t_=new Set(["none","hidden"]);function tP(e,t){return i=>tp(e,t,i)}function tE(e){return"number"==typeof e?tP:"string"==typeof e?te(e)?tm:eC.test(e)?tb:tT:Array.isArray(e)?tS:"object"==typeof e?eC.test(e)?tb:tR:tm}function tS(e,t){let i=[...e],n=i.length,s=e.map((e,i)=>tE(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=s[t](e);return i}}function tR(e,t){let i={...e,...t},n={};for(let s in i)void 0!==e[s]&&void 0!==t[s]&&(n[s]=tE(e[s])(e[s],t[s]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let tT=(e,t)=>{let i=ez.createTransformer(t),n=eD(e),s=eD(t);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?t_.has(e)&&!s.values.length||t_.has(t)&&!n.values.length?function(e,t){return t_.has(e)?i=>i<=0?e:t:i=>i>=1?t:e}(e,t):tx(tS(function(e,t){var i;let n=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let a=t.types[r],o=e.indexes[a][s[a]],l=null!=(i=e.values[o])?i:0;n[r]=l,s[a]++}return n}(n,s),s.values),i):(m(!0,`Complex values '${e}' and '${t}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tm(e,t))};function tC(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tp(e,t,i):tE(e)(e,t)}function tk(e,t,i){var n,s;let r=Math.max(t-5,0);return n=i-e(r),(s=t-r)?1e3/s*n:0}let tO={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tM(e,t){return e*Math.sqrt(1-t*t)}let tA=["duration","bounce"],tD=["stiffness","damping","mass"];function tI(e,t){return t.some(t=>void 0!==e[t])}function tL(e=tO.visualDuration,t=tO.bounce){let i,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:h,mass:u,duration:d,velocity:p,isResolvedFromDuration:f}=function(e){let t={velocity:tO.velocity,stiffness:tO.stiffness,damping:tO.damping,mass:tO.mass,isResolvedFromDuration:!1,...e};if(!tI(e,tD)&&tI(e,tA))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,s=2*el(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:tO.mass,stiffness:n,damping:s}}else{let i=function({duration:e=tO.duration,bounce:t=tO.bounce,velocity:i=tO.velocity,mass:n=tO.mass}){let s,r;m(e<=N(tO.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=el(tO.minDamping,tO.maxDamping,a),e=el(tO.minDuration,tO.maxDuration,e/1e3),a<1?(s=t=>{let n=t*a,s=n*e;return .001-(n-i)/tM(t,a)*Math.exp(-s)},r=t=>{let n=t*a*e,r=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=tM(Math.pow(t,2),a);return(n*i+i-r)*o*(-s(t)+.001>0?-1:1)/l}):(s=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(s,r,5/e);if(e=N(e),isNaN(o))return{stiffness:tO.stiffness,damping:tO.damping,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...i,mass:tO.mass}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),g=p||0,v=h/(2*Math.sqrt(c*u)),y=o-a,b=Math.sqrt(c/u)/1e3,w=5>Math.abs(y);if(s||(s=w?tO.restSpeed.granular:tO.restSpeed.default),r||(r=w?tO.restDelta.granular:tO.restDelta.default),v<1){let e=tM(b,v);i=t=>o-Math.exp(-v*b*t)*((g+v*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===v)i=e=>o-Math.exp(-b*e)*(y+(g+b*y)*e);else{let e=b*Math.sqrt(v*v-1);i=t=>{let i=Math.exp(-v*b*t),n=Math.min(e*t,300);return o-i*((g+v*b*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}let x={calculatedDuration:f&&d||null,next:e=>{let t=i(e);if(f)l.done=e>=d;else{let n=0;v<1&&(n=0===e?N(g):tk(i,e,t));let a=Math.abs(o-t)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(tu(x),2e4),t=$(t=>x.next(e*t).value,e,30);return e+"ms "+t}};return x}function tj({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:h}){let u,d,p=e[0],f={done:!1,value:p},m=i*t,g=p+m,v=void 0===a?g:a(g);v!==g&&(m=v-p);let y=e=>-m*Math.exp(-e/n),b=e=>v+y(e),w=e=>{let t=y(e),i=b(e);f.done=Math.abs(t)<=c,f.value=f.done?v:i},x=e=>{let t;if(t=f.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;u=e,d=tL({keyframes:[f.value,(i=f.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:tk(b,e,f.value),damping:s,stiffness:r,restDelta:c,restSpeed:h})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==u||(t=!0,w(e),x(e)),void 0!==u&&e>=u)?d.next(e-u):(t||w(e),f)}}}let tz=J(.42,0,1,1),tV=J(0,0,.58,1),tN=J(.42,0,.58,1),tF={linear:m,easeIn:tz,easeInOut:tN,easeOut:tV,circIn:es,circInOut:ea,circOut:er,backIn:et,backInOut:ei,backOut:ee,anticipate:en},tB=e=>{if(H(e)){m(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,i,n,s]=e;return J(t,i,n,s)}return"string"==typeof e?(m(void 0!==tF[e],`Invalid easing type '${e}'`),tF[e]):e};function tU({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(tB):tB(n),a={done:!1,value:t[0]},o=function(e,t,{clamp:i=!0,ease:n,mixer:s}={}){let r=e.length;if(m(r===t.length,"Both input and output ranges must be the same length"),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>
1e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let n=[],s=i||tC,r=e.length-1;for(let i=0;i<r;i++){let r=s(e[i],e[i+1]);t&&(r=tx(Array.isArray(t)?t[i]||m:t,r)),n.push(r)}return n}(t,n,s),l=o.length,c=i=>{if(a&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let s=G(e[n],e[n+1],i);return o[n](s)};return i?t=>c(el(e[0],e[r-1],t)):c}((s=i&&i.length===t.length?i:function(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let s=G(0,t,n);e.push(tp(i,1,s))}}(t,e.length-1),t}(t),s.map(t=>t*e)),t,{ease:Array.isArray(r)?r:t.map(()=>r||tN).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}let tH=e=>{let t=({timestamp:t})=>e(t);return{start:()=>b.update(t,!0),stop:()=>w(t),now:()=>x.isProcessing?x.timestamp:E.now()}},tW={decay:tj,inertia:tj,tween:tU,keyframes:tU,spring:tL},tq=e=>e/100;class tG extends th{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:i,element:n,keyframes:s}=this.options,r=(null==n?void 0:n.KeyframeResolver)||e4,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new r(s,a,t,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,i,{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=this.options,l=B(n)?n:tW[n]||tU;l!==tU&&"number"!=typeof e[0]&&(t=tx(tq,tC(e[0],e[1])),e=[0,100]);let c=l({...this.options,keyframes:e});"mirror"===a&&(i=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=tu(c));let{calculatedDuration:h}=c,u=h+r;return{generator:c,mirroredGenerator:i,mapPercentToKeyframes:t,calculatedDuration:h,resolvedDuration:u,totalDuration:u*(s+1)-r}}onPostResolved(){let{autoplay:e=!0}=this.options;td.mainThread++,this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:i}=this;if(!i){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:s,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:c,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:u,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-u*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=s;if(d){let e=Math.min(this.currentTime,c)/h,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(b=r)),y=el(0,1,i)*h}let w=v?{done:!1,value:o[0]}:b.next(y);a&&(w.value=a(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return _&&void 0!==n&&(w.value=tc(o,this.options,n)),m&&m(w.value),_&&this.finish(),w}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=N(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=tH,onPlay:t,startTime:i}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),td.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let t$=new Set(["opacity","clipPath","filter","transform"]),tX=L(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tY={anticipate:en,backInOut:ei,circInOut:ea};class tK extends th{constructor(e){super(e);let{name:t,motionValue:i,element:n,keyframes:s}=this.options;this.resolver=new ta(s,(e,t)=>this.onKeyframesResolved(e,t),t,i,n),this.resolver.scheduleResolve()}initPlayback(e,t){var i;let{duration:n=300,times:s,ease:r,type:a,motionValue:o,name:l,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof r&&q()&&r in tY&&(r=tY[r]),B((i=this.options).type)||"spring"===i.type||!function e(t){return!!("function"==typeof t&&q()||!t||"string"==typeof t&&(t in Y||q())||H(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let{onComplete:t,onUpdate:i,motionValue:o,element:l,...c}=this.options,h=function(e,t){let i=new tG({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},s=[],r=0;for(;!n.done&&r<2e4;)s.push((n=i.sample(r)).value),r+=10;return{times:void 0,keyframes:s,duration:r-10,ease:"linear"}}(e,c);1===(e=h.keyframes).length&&(e[1]=e[0]),n=h.duration,s=h.times,r=h.ease,a="keyframes"}let h=function(e,t,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let c={[t]:i};l&&(c.offset=l);let h=function e(t,i){if(t)return"function"==typeof t&&q()?$(t,i):H(t)?X(t):Array.isArray(t)?t.map(t=>e(t,i)||Y.easeOut):Y[t]}(o,s);Array.isArray(h)&&(c.easing=h),v.value&&td.waapi++;let u=e.animate(c,{delay:n,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"});return v.value&&u.finished.finally(()=>{td.waapi--}),u}(o.owner.current,l,e,{...this.options,duration:n,times:s,ease:r});return h.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(U(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;o.set(tc(e,this.options,t)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:s,type:a,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.currentTime=N(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:i}=t;i.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return m;let{animation:i}=t;U(i,e)}else this.pendingTimeline=e;return m}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:i,duration:n,type:s,ease:r,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...c}=this.options,h=new tG({...c,keyframes:i,duration:n,type:s,ease:r,times:a,isGenerator:!0}),u=N(this.time);e.setWithVelocity(h.sample(u-10).value,h.sample(u).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}
1static supports(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return tX()&&i&&t$.has(i)&&!o&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}}let tJ={type:"spring",stiffness:500,damping:25,restSpeed:10},tZ={type:"keyframes",duration:.8},tQ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t0=(e,t,i,n={},s,r)=>a=>{let o=l(n,e)||{},c=o.delay||n.delay||0,{elapsed:u=0}=n;u-=N(c);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:s};!function({when:e,delay:t,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:c,...h}){return!!Object.keys(h).length}(o)&&(d={...d,...((e,{keyframes:t})=>t.length>2?tZ:h.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tJ:tQ)(e,d)}),d.duration&&(d.duration=N(d.duration)),d.repeatDelay&&(d.repeatDelay=N(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(p=!0)),(F.current||f.skipAnimations)&&(p=!0,d.duration=0,d.delay=0),p&&!r&&void 0!==t.get()){let e=tc(d.keyframes,o);if(void 0!==e)return b.update(()=>{d.onUpdate(e),d.onComplete()}),new V([])}return!r&&tK.supports(d)?new tK(d):new tG(d)};function t1(e,t,{delay:i=0,transitionOverride:n,type:s}={}){var r;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...h}=t;n&&(a=n);let d=[],f=s&&e.animationState&&e.animationState.getState()[s];for(let t in h){let n=e.getValue(t,null!=(r=e.latestValues[t])?r:null),s=h[t];if(void 0===s||f&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(f,t))continue;let o={delay:i,...l(a||{},t)},c=!1;if(window.MotionHandoffAnimation){let i=e.props[I];if(i){let e=window.MotionHandoffAnimation(i,t,b);null!==e&&(o.startTime=e,c=!0)}}A(e,t),n.start(t0(t,n,s,e.shouldReduceMotion&&u.has(t)?{type:!1}:o,e,c));let p=n.animation;p&&d.push(p)}return c&&Promise.all(d).then(()=>{b.update(()=>{c&&function(e,t){let{transitionEnd:i={},transition:n={},...s}=o(e,t)||{};for(let t in s={...s,...i}){let i=p(s[t]);e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,O(i))}}(e,c)})}),d}function t2(e,t,i={}){var n;let s=o(e,t,"exit"===i.type?null==(n=e.presenceContext)?void 0:n.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let a=s?()=>Promise.all(t1(e,s,i)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,n=0,s=1,r){let a=[],o=(e.variantChildren.size-1)*n,l=1===s?(e=0)=>e*n:(e=0)=>o-e*n;return Array.from(e.variantChildren).sort(t5).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(t2(e,t,{...r,delay:i+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,s+n,a,o,i)}:()=>Promise.resolve(),{when:c}=r;if(!c)return Promise.all([a(),l(i.delay)]);{let[e,t]="beforeChildren"===c?[a,l]:[l,a];return e().then(()=>t())}}function t5(e,t){return e.sortNodePosition(t)}function t3(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function t4(e){return"string"==typeof e||Array.isArray(e)}let t8=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t6=["initial",...t8],t9=t6.length,t7=[...t8].reverse(),ie=t8.length;function it(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ii(){return{animate:it(!0),whileInView:it(),whileHover:it(),whileTap:it(),whileDrag:it(),whileFocus:it(),exit:it()}}class is{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ir extends is{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>t2(e,t,i)));else if("string"==typeof t)n=t2(e,t,i);else{let s="function"==typeof t?o(e,t,i.custom):t;n=Promise.all(t1(e,s,i))}return n.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,i))),i=ii(),n=!0,r=t=>(i,n)=>{var s;let r=o(e,n,"exit"===t?null==(s=e.presenceContext)?void 0:s.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function a(a){let{props:l}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<t9;e++){let n=t6[e],s=t.props[n];(t4(s)||!1===s)&&(i[n]=s)}return i}(e.parent)||{},h=[],u=new Set,p={},f=1/0;for(let t=0;t<ie;t++){var m,g;let o=t7[t],v=i[o],y=void 0!==l[o]?l[o]:c[o],b=t4(y),w=o===a?v.isActive:null;!1===w&&(f=t);let x=y===c[o]&&y!==l[o]&&b;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys={...p},!v.isActive&&null===w||!y&&!v.prevProp||s(y)||"boolean"==typeof y)continue;let _=(m=v.prevProp,"string"==typeof(g=y)?g!==m:!!Array.isArray(g)&&!t3(g,m)),P=_||o===a&&v.isActive&&!x&&b||t>f&&b,E=!1,S=Array.isArray(y)?y:[y],R=S.reduce(r(o),{});!1===w&&(R={});let{prevResolvedValues:T={}}=v,C={...T,...R},k=t=>{P=!0,u.has(t)&&(E=!0,u.delete(t)),v.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in C){let t=R[e],i=T[e];if(!p.hasOwnProperty(e))(d(t)&&d(i)?t3(t,i):t===i)?void 0!==t&&u.has(e)?k(e):v.protectedKeys[e]=!0:null!=t?k(e):u.add(e)}v.prevProp=y,v.prevResolvedValues=R,v.isActive&&(p={...p,...R}),n&&e.blockInitialAnimation&&(P=!1);let O=!(x&&_)||E;P&&O&&h.push(...S.map(e=>({animation:e,options:{type:o}})))}if(u.size){let t={};if("boolean"!=typeof l.initial){let i=o(e,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(t.transition=i.transition)}u.forEach(i=>{let n=e.getBaseTarget(i),s=e.getValue(i);s&&(s.liveStyle=!0),t[i]=null!=n?n:null}),h.push({animation:t})}let v=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,v?t(h):Promise.resolve()}return{animateChanges:a,setActive:function(t,n){var s;if(i[t].isActive===n)return Promise.resolve();null==(s=e.variantChildren)||s.forEach(e=>{var i;return null==(i=e.animationState)?void 0:i.setActive(t,n)}),i[t].isActive=n;let r=a(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=ii(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();s(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let ia=0;class io extends is{constructor(){super(...arguments),this.id=ia++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let il={x:!1,y:!1},ic=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ih(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}function iu(e){return{point:{x:e.pageX,y:e.pageY}}}function id(e,t,i,n){return ih(e,t,e=>ic(e)&&i(e,iu(e)),n)}let ip=(e,t)=>Math.abs(e-t);class im{constructor(e,t,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iy(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,i=function(e,t){return Math.sqrt(ip(e.x,t.x)**2+ip(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!i)return;let{point:n}=e,{timestamp:s}=x;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;t||(r&&r(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
1{this.lastMoveEvent=e,this.lastMoveEventInfo=ig(t,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=iy("pointercancel"===e.type?this.lastMoveEventInfo:ig(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),n&&n(e,r)},!ic(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=i,this.contextWindow=n||window;let r=ig(iu(e),this.transformPagePoint),{point:a}=r,{timestamp:o}=x;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,iy(r,this.history)),this.removeListeners=tx(id(this.contextWindow,"pointermove",this.handlePointerMove),id(this.contextWindow,"pointerup",this.handlePointerUp),id(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),w(this.updatePoint)}}function ig(e,t){return t?{point:t(e.point)}:e}function iv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iy({point:e},t){return{point:e,delta:iv(e,ib(t)),offset:iv(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,s=ib(e);for(;i>=0&&(n=e[i],!(s.timestamp-n.timestamp>N(.1)));)i--;if(!n)return{x:0,y:0};let r=(s.timestamp-n.timestamp)/1e3;if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function ib(e){return e[e.length-1]}function iw(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ix(e){return e.max-e.min}function i_(e,t,i,n=.5){e.origin=n,e.originPoint=tp(t.min,t.max,e.origin),e.scale=ix(i)/ix(t),e.translate=tp(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function iP(e,t,i,n){i_(e.x,t.x,i.x,n?n.originX:void 0),i_(e.y,t.y,i.y,n?n.originY:void 0)}function iE(e,t,i){e.min=i.min+t.min,e.max=e.min+ix(t)}function iS(e,t,i){e.min=t.min-i.min,e.max=e.min+ix(t)}function iR(e,t,i){iS(e.x,t.x,i.x),iS(e.y,t.y,i.y)}function iT(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function iC(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function ik(e,t,i){return{min:iO(e,t),max:iO(e,i)}}function iO(e,t){return"number"==typeof e?e:e[t]||0}let iM=()=>({translate:0,scale:1,origin:0,originPoint:0}),iA=()=>({x:iM(),y:iM()}),iD=()=>({min:0,max:0}),iI=()=>({x:iD(),y:iD()});function iL(e){return[e("x"),e("y")]}function ij({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function iz(e){return void 0===e||1===e}function iV({scale:e,scaleX:t,scaleY:i}){return!iz(e)||!iz(t)||!iz(i)}function iN(e){return iV(e)||iF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iF(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function iB(e,t,i,n,s){return void 0!==s&&(e=n+s*(e-n)),n+i*(e-n)+t}function iU(e,t=0,i=1,n,s){e.min=iB(e.min,t,i,n,s),e.max=iB(e.max,t,i,n,s)}function iH(e,{x:t,y:i}){iU(e.x,t.translate,t.scale,t.originPoint),iU(e.y,i.translate,i.scale,i.originPoint)}function iW(e,t){e.min=e.min+t,e.max=e.max+t}function iq(e,t,i,n,s=.5){let r=tp(e.min,e.max,s);iU(e,t,i,r,n)}function iG(e,t){iq(e.x,t.x,t.scaleX,t.scale,t.originX),iq(e.y,t.y,t.scaleY,t.scale,t.originY)}function i$(e,t){return ij(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let iX=({current:e})=>e?e.ownerDocument.defaultView:null,iY=new WeakMap;class iK{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(iu(e).point)},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(il[e])return null;else return il[e]=!0,()=>{il[e]=!1};return il.x||il.y?null:(il.x=il.y=!0,()=>{il.x=il.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iL(e=>{let t=this.getAxisMotionValue(e).get()||0;if(e_.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=ix(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),s&&b.postRender(()=>s(e,t)),A(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(e,t)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&r(e,t)},a=(e,t)=>this.stop(e,t),o=()=>iL(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new im(e,{onSessionStart:n,onStart:s,onMove:r,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iX(this.visualElement)})}stop(e,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&b.postRender(()=>s(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!iJ(e,n,this.currentDirection))return;let s=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?tp(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?tp(i,e,n.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),s.set(r)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,s=this.constraints;t&&iw(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:i,bottom:n,right:s}){return{x:iT(e.x,i,s),y:iT(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ik(e,"left","right"),y:ik(e,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iL(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let i={};return void 0!==t.min&&(i.min=t.min-e.min),void 0!==t.max&&(i.max=t.max-e.min),i}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iw(t))return!1;let n=t.current;m(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(e,t,i){let n=i$(e,i),{scroll:s}=t;return s&&(iW(n.x,s.offset.x),iW(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(e=s.layout.layoutBox,{x:iC(e.x,r.x),y:iC(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ij(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iL(a=>
1{if(!iJ(a,t,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let c={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return A(this.visualElement,e),i.start(t0(e,i,0,t,this.visualElement,!1))}stopAnimation(){iL(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){iL(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){iL(t=>{let{drag:i}=this.getProps();if(!iJ(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[t];s.set(e[t]-tp(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iw(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iL(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let i=t.get();n[e]=function(e,t){let i=.5,n=ix(e),s=ix(t);return s>n?i=G(t.min,t.max-n,e.min):n>s&&(i=G(e.min,e.max-s,t.min)),el(0,1,i)}({min:i,max:i},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iL(t=>{if(!iJ(t,e,null))return;let i=this.getAxisMotionValue(t),{min:s,max:r}=this.constraints[t];i.set(tp(s,r,n[t]))})}addListeners(){if(!this.visualElement.current)return;iY.set(this.visualElement,this);let e=id(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();iw(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),b.read(t);let s=ih(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iL(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),e(),n(),r&&r()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function iJ(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}class iZ extends is{constructor(e){super(e),this.removeGroupControls=m,this.removeListeners=m,this.controls=new iK(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||m}unmount(){this.removeGroupControls(),this.removeListeners()}}let iQ=e=>(t,i)=>{e&&b.postRender(()=>e(t,i))};class i0 extends is{constructor(){super(...arguments),this.removePointerDownListener=m}onPointerDown(e){this.session=new im(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iX(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:iQ(e),onStart:iQ(t),onMove:i,onEnd:(e,t)=>{delete this.session,n&&b.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=id(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i1,i2,i5=i(5155),i3=i(2115),i4=i(3924),i8=i(2007);let i6=(0,i3.createContext)({}),i9={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ne={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!eP.test(e))return e;else e=parseFloat(e);let i=i7(e,t.target.x),n=i7(e,t.target.y);return`${i}% ${n}%`}},nt={},{schedule:ni,cancel:nn}=y(queueMicrotask,!1);class ns extends i3.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=e;for(let e in na)nt[e]=na[e],e9(e)&&(nt[e].isCSSVariable=!0);s&&(t.group&&t.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),i9.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:s}=this.props,r=i.projection;return r&&(r.isPresent=s,n||e.layoutDependency!==t||void 0===t?r.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?r.promote():r.relegate()||b.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ni.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nr(e){let[t,i]=(0,i4.xQ)(),n=(0,i3.useContext)(i8.L);return(0,i5.jsx)(ns,{...e,layoutGroup:n,switchLayoutGroup:(0,i3.useContext)(i6),isPresent:t,safeToRemove:i})}let na={borderRadius:{...ne,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomLeftRadius:ne,borderBottomRightRadius:ne,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=ez.parse(e);if(n.length>5)return e;let s=ez.createTransformer(e),r=+("number"!=typeof n[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;n[0+r]/=a,n[1+r]/=o;let l=tp(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}},no=(e,t)=>e.depth-t.depth;class nl{constructor(){this.children=[],this.isDirty=!1}add(e){S(this.children,e),this.isDirty=!0}remove(e){R(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(no),this.isDirty=!1,this.children.forEach(e)}}function nc(e){let t=M(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let nh=["TopLeft","TopRight","BottomLeft","BottomRight"],nu=nh.length,nd=e=>"string"==typeof e?parseFloat(e):e,np=e=>"number"==typeof e||eP.test(e);function nf(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nm=nv(0,.5,er),ng=nv(.5,.95,m);function nv(e,t,i){return n=>n<e?0:n>t?1:i(G(e,t,n))}function ny(e,t){e.min=t.min,e.max=t.max}function nb(e,t){ny(e.x,t.x),ny(e.y,t.y)}function nw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nx(e,t,i,n,s){return e-=t,e=n+1/i*(e-n),void 0!==s&&(e=n+1/s*(e-n)),e}function n_(e,t,[i,n,s],r,a){!function(e,t=0,i=1,n=.5,s,r=e,a=e){if(e_.test(t)&&(t=parseFloat(t),t=tp(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tp(r.min,r.max,n);e===r&&(o-=t),e.min=nx(e.min,t,i,o,s),e.max=nx(e.max,t,i,o,s)}(e,t[i],t[n],t[s],t.scale,r,a)}let nP=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nS(e,t,i,n){n_(e.x,t,nP,i?i.x:void 0,n?n.x:void 0),n_(e.y,t,nE,i?i.y:void 0,n?n.y:void 0)}function nR(e){return 0===e.translate&&1===e.scale}function nT(e){return nR(e.x)&&nR(e.y)}function nC(e,t){return e.min===t.min&&e.max===t.max}function nk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nO(e,t){return nk(e.x,t.x)&&nk(e.y,t.y)}function nM(e){return ix(e.x)/ix(e.y)}function nA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nD{constructor(){this.members=[]}add(e){S(this.members,e),e.scheduleRender()}remove(e){if(R(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nI={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nL=["","X","Y","Z"],nj={visibility:"hidden"},nz=0;function nV(e,t,i,n){let{latestValues:s}=t;s[e]&&(i[e]=s[e],t.setStaticValue(e,0),n&&(n[e]=0))}function nN({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(e={},i=null==t?void 0:t()){this.id=nz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,v.value&&(nI.nodes=nI.calculatedTargetDeltas=nI.calculatedProjections=0),this.nodes.forEach(nU),this.nodes.forEach(nY),this.nodes.forEach(nK),this.nodes.forEach(nH),v.addProjectionMetrics&&v.addProjectionMetrics(nI)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new T),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||n)&&(this.isLayoutDirty=!0),e){let i,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(e,t){let i=E.now(),n=({timestamp:t})=>{let s=t-i;s>=250&&(w(n),e(s-250))};return b.read(n,!0),()=>w(n)}(n,250),i9.hasAnimatedSinceResize&&(i9.hasAnimatedSinceResize=!1,this.nodes.forEach(nX))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&r&&(n||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||n2,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),c=!this.targetLayout||!nO(this.targetLayout,n),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...l(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,w(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(nJ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[I];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",b,!(e||i))}let{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&e(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nq);return}this.isUpdating||this.nodes.forEach(nG),this.isUpdating=!1,this.nodes.forEach(n$),this.nodes.forEach(nF),this.nodes.forEach(nB),this.clearAllSnapshots();let e=E.now();x.delta=el(0,1e3/60,e-x.timestamp),x.timestamp=e,x.isProcessing=!0,_.update.process(x),_.preRender.process(x),_.render.process(x),x.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ni.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nW),this.sharedNodes.forEach(nZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ix(this.snapshot.measuredBox.x)||ix(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!s)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nT(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;e&&(t||iN(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),n4((t=n).x),n4(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return iI();let i=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(n6))){let{scroll:e}=this.root;e&&(iW(i.x,e.offset.x),iW(i.y,e.offset.y))}return i}removeElementScroll(e){var t;let i=iI();if(nb(i,e),null==(t=this.scroll)?void 0:t.wasRoot)return i;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&nb(i,e),iW(i.x,s.offset.x),iW(i.y,s.offset.y))}return i}applyTransform(e,t=!1){let i=iI();nb(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iG(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),iN(n.latestValues)&&iG(i,n.latestValues)}return iN(this.latestValues)&&iG(i,this.latestValues),i}removeTransform(e){let t=iI();nb(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!iN(i.latestValues))continue;iV(i.latestValues)&&i.updateSnapshot();let n=iI();nb(n,i.measurePageBox()),nS(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return iN(this.latestValues)&&nS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==x.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,i,n,s;let r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==r;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=x.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iI(),this.relativeTargetOrigin=iI(),iR(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iI(),this.targetWithTransforms=iI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,s=this.relativeParent.target,iE(i.x,n.x,s.x),iE(i.y,n.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nb(this.target,this.layout.layoutBox),iH(this.target,this.targetDelta)):nb(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iI(),this.relativeTargetOrigin=iI(),iR(this.relativeTargetOrigin,this.target,e.target),nb(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}
1v.value&&nI.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iV(this.parent.latestValues)||iF(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),i=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===x.timestamp&&(n=!1),n)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;nb(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,i,n=!1){let s,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iG(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,iH(e,r)),n&&iN(s.latestValues)&&iG(e,s.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iI());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nw(this.prevProjectionDelta.x,this.projectionDelta.x),nw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&nA(this.projectionDelta.x,this.prevProjectionDelta.x)&&nA(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),v.value&&nI.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iA(),this.projectionDelta=iA(),this.projectionDeltaWithTransform=iA()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=iA();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=iI(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),h=!c||c.members.length<=1,u=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n1));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(nQ(a.x,e.x,n),nQ(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,d,p,f,m,g;iR(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,g=n,n0(p.x,f.x,m.x,g),n0(p.y,f.y,m.y,g),i&&(c=this.relativeTarget,d=i,nC(c.x,d.x)&&nC(c.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iI()),nb(i,this.relativeTarget)}l&&(this.animationValues=r,function(e,t,i,n,s,r){s?(e.opacity=tp(0,void 0!==i.opacity?i.opacity:1,nm(n)),e.opacityExit=tp(void 0!==t.opacity?t.opacity:1,0,ng(n))):r&&(e.opacity=tp(void 0!==t.opacity?t.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let s=0;s<nu;s++){let r=`border${nh[s]}Radius`,a=nf(t,r),o=nf(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||np(a)===np(o)?(e[r]=Math.max(tp(nd(a),nd(o),n),0),(e_.test(o)||e_.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=tp(t.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,u,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(w(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{i9.hasAnimatedSinceResize=!0,td.layout++,this.currentAnimation=function(e,t,i){let n=M(0)?0:O(e);return n.start(t0("",n,1e3,i)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{td.layout--},onComplete:()=>{td.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:s}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&n8(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iI();let t=ix(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=ix(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}nb(t,i),iG(t,s),iP(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nD),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}
1resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&nV("z",e,n,this.animationValues);for(let t=0;t<nL.length;t++)nV(`rotate${nL[t]}`,e,n,this.animationValues),nV(`skew${nL[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nj;let n={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nc(null==e?void 0:e.pointerEvents)||"",n.transform=s?s(this.latestValues,""):"none",n;let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nc(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!iN(this.latestValues)&&(t.transform=s?s({},""):"none",this.hasProjected=!1),t}let a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,i){let n="",s=e.x.translate/t.x,r=e.y.translate/t.y,a=(null==i?void 0:i.z)||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),s&&(n.transform=s(a,n.transform));let{x:o,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,r.animationValues?n.opacity=r===this?null!=(i=null!=(t=a.opacity)?t:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,nt){if(void 0===a[e])continue;let{correct:t,applyTo:i,isCSSVariable:s}=nt[e],o="none"===n.transform?a[e]:t(a[e],r);if(i){let e=i.length;for(let t=0;t<e;t++)n[i[t]]=o}else s?this.options.visualElement.renderState.vars[e]=o:n[e]=o}return this.options.layoutId&&(n.pointerEvents=r===this?nc(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(nq),this.root.sharedNodes.clear()}}}function nF(e){e.updateLayout()}function nB(e){var t;let i=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:s}=e.options,r=i.source!==e.layout.source;"size"===s?iL(e=>{let n=r?i.measuredBox[e]:i.layoutBox[e],s=ix(n);n.min=t[e].min,n.max=n.min+s}):n8(s,i.layoutBox,t)&&iL(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],a=ix(t[n]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=iA();iP(a,t,i.layoutBox);let o=iA();r?iP(o,e.applyTransform(n,!0),i.measuredBox):iP(o,t,i.layoutBox);let l=!nT(a),c=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=iI();iR(a,i.layoutBox,s.layoutBox);let o=iI();iR(o,t,r.layoutBox),nO(a,o)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nU(e){v.value&&nI.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nW(e){e.clearSnapshot()}function nq(e){e.clearMeasurements()}function nG(e){e.isLayoutDirty=!1}function n$(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nY(e){e.resolveTargetDelta()}function nK(e){e.calcProjection()}
1function nJ(e){e.resetSkewAndRotation()}function nZ(e){e.removeLeadSnapshot()}function nQ(e,t,i){e.translate=tp(t.translate,0,i),e.scale=tp(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function n0(e,t,i,n){e.min=tp(t.min,i.min,n),e.max=tp(t.max,i.max,n)}function n1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n2={duration:.45,ease:[.4,0,.1,1]},n5=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n3=n5("applewebkit/")&&!n5("chrome/")?Math.round:m;function n4(e){e.min=n3(e.min),e.max=n3(e.max)}function n8(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nM(t)-nM(i)))}function n6(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let n9=nN({attachResizeListener:(e,t)=>ih(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n7={current:void 0},se=nN({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n7.current){let e=new n9({});e.mount(window),e.setOptions({layoutScroll:!0}),n7.current=e}return n7.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function st(e,t){let i=function(e,t,i){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function si(e){return!("touch"===e.pointerType||il.x||il.y)}function sn(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&b.postRender(()=>s(t,iu(t)))}class ss extends is{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,r]=st(e,i),a=e=>{if(!si(e))return;let{target:i}=e,n=t(i,e);if("function"!=typeof n||!i)return;let r=e=>{si(e)&&(n(e),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(e=>{e.addEventListener("pointerenter",a,s)}),r}(e,(e,t)=>(sn(this.node,t,"Start"),e=>sn(this.node,e,"End"))))}unmount(){}}class sr extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tx(ih(this.node.current,"focus",()=>this.onFocus()),ih(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let sa=(e,t)=>!!t&&(e===t||sa(e,t.parentElement)),so=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sl=new WeakSet;function sc(e){return t=>{"Enter"===t.key&&e(t)}}function sh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function su(e){return ic(e)&&!(il.x||il.y)}function sd(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&b.postRender(()=>s(t,iu(t)))}class sp extends is{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,s,r]=st(e,i),a=e=>{let n=e.currentTarget;if(!su(e)||sl.has(n))return;sl.add(n);let r=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),su(e)&&sl.has(n)&&(sl.delete(n),"function"==typeof r&&r(e,{success:t}))},o=e=>{a(e,i.useGlobalTarget||sa(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(e=>{so.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,s),e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sc(()=>{if(sl.has(i))return;sh(i,"down");let e=sc(()=>{sh(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sh(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)}
1)(e,s),s)}),r}(e,(e,t)=>(sd(this.node,t,"Start"),(e,{success:t})=>sd(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sf=new WeakMap,sm=new WeakMap,sg=e=>{let t=sf.get(e.target);t&&t(e)},sv=e=>{e.forEach(sg)},sy={some:0,all:1};class sb extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:s}=e,r={root:t?t.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sy[n]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};var o=this.node.current;let l=function({root:e,...t}){let i=e||document;sm.has(i)||sm.set(i,{});let n=sm.get(i),s=JSON.stringify(t);return n[s]||(n[s]=new IntersectionObserver(sv,{root:e,...t})),n[s]}(r);return sf.set(o,a),l.observe(o),()=>{sf.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}let sw=(0,i3.createContext)({strict:!1});var sx=i(4634);let s_=(0,i3.createContext)({});function sP(e){return s(e.animate)||t6.some(t=>t4(e[t]))}function sE(e){return!!(sP(e)||e.variants)}function sS(e){return Array.isArray(e)?e.join(" "):e}var sR=i(998);let sT={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},sC={};for(let e in sT)sC[e]={isEnabled:t=>sT[e].some(e=>!!t[e])};let sk=Symbol.for("motionComponentSymbol");var sO=i(4275),sM=i(5124);function sA(e,{layout:t,layoutId:i}){return h.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!nt[e]||"opacity"===e)}let sD=(e,t)=>t&&"number"==typeof e?t.transform(e):e,sI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sL=c.length;function sj(e,t,i){let{style:n,vars:s,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(h.has(e)){a=!0;continue}if(e9(e)){s[e]=i;continue}{let t=sD(i,eH[e]);e.startsWith("origin")?(o=!0,r[e]=t):n[e]=t}}if(!t.transform&&(a||i?n.transform=function(e,t,i){let n="",s=!0;for(let r=0;r<sL;r++){let a=c[r],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let e=sD(o,eH[a]);if(!l){s=!1;let t=sI[a]||a;n+=`${t}(${e}) `}i&&(t[a]=e)}}return n=n.trim(),i?n=i(t,s?"":n):s&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;n.transformOrigin=`${e} ${t} ${i}`}}let sz=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sV(e,t,i){for(let n in t)M(t[n])||sA(n,i)||(e[n]=t[n])}let sN=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sF(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||sN.has(e)}let sB=e=>!sF(e);try{!function(e){e&&(sB=t=>t.startsWith("on")?!sF(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let sU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sH(e){if("string"!=typeof e||e.includes("-"));else if(sU.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let sW={offset:"stroke-dashoffset",array:"stroke-dasharray"},sq={offset:"strokeDashoffset",array:"strokeDasharray"};function sG(e,t,i){return"string"==typeof e?e:eP.transform(t+i*e)}function s$(e,{attrX:t,attrY:i,attrScale:n,originX:s,originY:r,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c}
1,h,u){if(sj(e,c,u),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p,dimensions:f}=e;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==s||void 0!==r||p.transform)&&(p.transformOrigin=function(e,t,i){let n=sG(t,e.x,e.width),s=sG(i,e.y,e.height);return`${n} ${s}`}(f,void 0!==s?s:.5,void 0!==r?r:.5)),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==a&&function(e,t,i=1,n=0,s=!0){e.pathLength=1;let r=s?sW:sq;e[r.offset]=eP.transform(-n);let a=eP.transform(t),o=eP.transform(i);e[r.array]=`${a} ${o}`}(d,a,o,l,!1)}let sX=()=>({...sz(),attrs:{}}),sY=e=>"string"==typeof e&&"svg"===e.toLowerCase();var sK=i(43);let sJ=e=>(t,i)=>{let n=(0,i3.useContext)(s_),r=(0,i3.useContext)(sO.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:i},n,r,o){let l={latestValues:function(e,t,i,n){let r={},o=n(e,{});for(let e in o)r[e]=nc(o[e]);let{initial:l,animate:c}=e,h=sP(e),u=sE(e);t&&u&&!h&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===c&&(c=t.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===l)?c:l;if(p&&"boolean"!=typeof p&&!s(p)){let t=Array.isArray(p)?p:[p];for(let i=0;i<t.length;i++){let n=a(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(n,r,o,e),renderState:t()};return i&&(l.onMount=e=>i({props:n,current:e,...l}),l.onUpdate=e=>i(e)),l})(e,t,n,r);return i?o():(0,sK.M)(o)};function sZ(e,t,i){var n;let{style:s}=e,r={};for(let a in s)(M(s[a])||t.style&&M(t.style[a])||sA(a,e)||(null==(n=null==i?void 0:i.getValue(a))?void 0:n.liveStyle)!==void 0)&&(r[a]=s[a]);return r}let sQ={useVisualState:sJ({scrapeMotionValuesFromProps:sZ,createRenderState:sz})};function s0(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}function s1(e,{style:t,vars:i},n,s){for(let r in Object.assign(e.style,t,s&&s.getProjectionStyles(n)),i)e.style.setProperty(r,i[r])}let s2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function s5(e,t,i,n){for(let i in s1(e,t,void 0,n),t.attrs)e.setAttribute(s2.has(i)?i:D(i),t.attrs[i])}function s3(e,t,i){let n=sZ(e,t,i);for(let i in e)(M(e[i])||M(t[i]))&&(n[-1!==c.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}let s4=["x","y","width","height","cx","cy","r"],s8={useVisualState:sJ({scrapeMotionValuesFromProps:s3,createRenderState:sX,onUpdate:({props:e,prevProps:t,current:i,renderState:n,latestValues:s})=>{if(!i)return;let r=!!e.drag;if(!r){for(let e in s)if(h.has(e)){r=!0;break}}if(!r)return;let a=!t;if(t)for(let i=0;i<s4.length;i++){let n=s4[i];e[n]!==t[n]&&(a=!0)}a&&b.read(()=>{s0(i,n),b.render(()=>{s$(n,s,sY(i.tagName),e.transformTemplate),s5(i,n)})})}})},s6={current:null},s9={current:!1},s7=[...ts,eC,ez],re=new WeakMap,rt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ri{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e4,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=E.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,b.render(this.render,!1,!0))};let{latestValues:o,renderState:l,onUpdate:c}=r;this.onUpdate=c,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=sP(t),this.isVariantNode=sE(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];void 0!==o[e]&&M(t)&&t.set(o[e],!1)}}mount(e){this.current=e,re.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),s9.current||function(){if(s9.current=!0,sR.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>s6.current=e.matches;e.addListener(t),t()}else s6.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s6.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),w(this.notifyUpdate),w(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=h.has(e);n&&this.onBindTransform&&this.onBindTransform();let s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&b.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in sC){let t=sC[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iI()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<rt.length;t++){let i=rt[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let s=t[n],r=i[n];if(M(s))e.addValue(n,s);else if(M(r))e.addValue(n,O(s,{owner:e}));else if(r!==s)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(s):t.hasAnimated||t.set(s)}else{let t=e.getStaticValue(n);e.addValue(n,O(void 0!==t?t:s,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=O(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){var i;let n=void 0===this.latestValues[e]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,e))?i:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){if("string"==typeof n&&(e8(n)||eo(n)))n=parseFloat(n);else{let i;i=n,!s7.find(tn(i))&&ez.test(t)&&(n=eG(e,t))}this.setBaseTarget(e,M(n)?n.get():n)}return M(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let s=a(this.props,n,null==(t=this.presenceContext)?void 0:t.custom);s&&(i=s[e])}if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||M(s)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new T),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class rn extends ri{constructor(){super(...arguments),this.KeyframeResolver=ta}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;M(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class rs extends rn{constructor(){super(...arguments),this.type="html",this.renderInstance=s1}readValueFromInstance(e,t){if(h.has(t)){let e=eq(t);return e&&e.default||0}{let i=window.getComputedStyle(e),n=(e9(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return i$(e,t)}build(e,t,i){sj(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return sZ(e,t,i)}}class rr extends rn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iI,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&s0(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(h.has(t)){let e=eq(t);return e&&e.default||0}return t=s2.has(t)?t:D(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return s3(e,t,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&b.postRender(this.updateDimensions)}build(e,t,i){s$(e,t,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,i,n){s5(e,t,i,n)}mount(e){this.isSVGTag=sY(e.tagName),super.mount(e)}}let ra=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(i,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}((i1={animation:{Feature:ir},exit:{Feature:io},inView:{Feature:sb},tap:{Feature:sp},focus:{Feature:sr},hover:{Feature:ss},pan:{Feature:i0},drag:{Feature:iZ,ProjectionNode:se,MeasureLayout:nr},layout:{ProjectionNode:se,MeasureLayout:nr}},i2=(e,t)=>
1sH(e)?new rr(t):new rs(t,{allowProjection:e!==i3.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:a,Component:o}=e;function l(e,t){var i;let n,l={...(0,i3.useContext)(sx.Q),...e,layoutId:function(e){let{layoutId:t}=e,i=(0,i3.useContext)(i8.L).id;return i&&void 0!==t?i+"-"+t:t}(e)},{isStatic:c}=l,h=function(e){let{initial:t,animate:i}=function(e,t){if(sP(e)){let{initial:t,animate:i}=e;return{initial:!1===t||t4(t)?t:void 0,animate:t4(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,i3.useContext)(s_));return(0,i3.useMemo)(()=>({initial:t,animate:i}),[sS(t),sS(i)])}(e),u=a(e,c);if(!c&&sR.B){(0,i3.useContext)(sw).strict;let e=function(e){let{drag:t,layout:i}=sC;if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==i?void 0:i.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=e.MeasureLayout,h.visualElement=function(e,t,i,n,s){var r,a;let{visualElement:o}=(0,i3.useContext)(s_),l=(0,i3.useContext)(sw),c=(0,i3.useContext)(sO.t),h=(0,i3.useContext)(sx.Q).reducedMotion,u=(0,i3.useRef)(null);n=n||l.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:h}));let d=u.current,p=(0,i3.useContext)(i6);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(e,t,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&iw(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}(u.current,i,s,p);let f=(0,i3.useRef)(!1);(0,i3.useInsertionEffect)(()=>{d&&f.current&&d.update(i,c)});let m=i[I],g=(0,i3.useRef)(!!m&&!(null==(r=window.MotionHandoffIsComplete)?void 0:r.call(window,m))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,m)));return(0,sM.E)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ni.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,i3.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),g.current=!1))}),d}(o,u,l,s,e.ProjectionNode)}return(0,i5.jsxs)(s_.Provider,{value:h,children:[n&&h.visualElement?(0,i5.jsx)(n,{visualElement:h.visualElement,...l}):null,r(o,e,(i=h.visualElement,(0,i3.useCallback)(e=>{e&&u.onMount&&u.onMount(e),i&&(e?i.mount(e):i.unmount()),t&&("function"==typeof t?t(e):iw(t)&&(t.current=e))},[i])),u,c,h.visualElement)]})}n&&function(e){for(let t in e)sC[t]={...sC[t],...e[t]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!=(i=null!=(t=o.displayName)?t:o.name)?i:"",")"));let c=(0,i3.forwardRef)(l);return c[sk]=o,c}({...sH(e)?s8:sQ,preloadedFeatures:i1,useRender:function(e=!1){return(t,i,n,{latestValues:s},r)=>{let a=(sH(t)?function(e,t,i,n){let s=(0,i3.useMemo)(()=>{let i=sX();return s$(i,t,sY(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};sV(t,e.style,e),s.style={...t,...s.style}}return s}:function(e,t){let i={},n=function(e,t){let i=e.style||{},n={};return sV(n,i,e),Object.assign(n,function({transformTemplate:e},t){return(0,i3.useMemo)(()=>{let i=sz();return sj(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,s,r,t),o=function(e,t,i){let n={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(sB(s)||!0===i&&sF(s)||!t&&!sF(s)||e.draggable&&s.startsWith("onDrag"))&&(n[s]=e[s]);return n}(i,"string"==typeof t,e),l=t!==i3.Fragment?{...o,...a,ref:n}:{},{children:c}=i,h=(0,i3.useMemo)(()=>M(c)?c.get():c,[c]);return(0,i3.createElement)(t,{...l,children:h})}}(t),createVisualElement:i2,Component:e})}))},1940:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let i=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let s=i.get(t);s||(s=t.map(e=>e.toLowerCase()),i.set(t,s));let r=e.split("/",2);if(!r[1])return{pathname:e};let a=r[1].toLowerCase(),o=s.indexOf(a);return o<0?{pathname:e}:(n=t[o],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},2007:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});let n=(0,i(2115).createContext)({})},2025:(e,t)=>{"use strict";function i(){let e=Object.create(null);return{on(t,i){(e[t]||(e[t]=[])).push(i)},off(t,i){e[t]&&e[t].splice(e[t].indexOf(i)>>>0,1)},emit(t){for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];(e[t]||[]).slice().map(e=>{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}})},2385:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let n=i(2296),s=i(4738);function r(e){let{re:t,groups:i}=e;return(0,s.safeRouteMatcher)(e=>{let s=t.exec(e);if(!s)return!1;let r=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},a={};for(let[e,t]of Object.entries(i)){let i=s[t.pos];void 0!==i&&(t.repeat?a[e]=i.split("/").map(e=>r(e)):a[e]=r(i))}return a})}},2410:e=>{e.exports={style:{fontFamily:"'geistSans', 'geistSans Fallback'"},className:"__className_1e4310",variable:"__variable_1e4310"}},2421:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a}});let n=i(7630),s=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,r=/\/\[[^/]+\](?=\/|$)/;function a(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?r.test(e):s.test(e)}},2461:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return r}});let n=i(5287),s=i(8305);function r(e){let t=(0,s.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},2471:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});let n=i(2385),s=i(8156);function r(e,t,i){let r="",a=(0,s.getRouteRegex)(e),o=a.groups,l=(t!==e?(0,n.getRouteMatcher)(a)(t):"")||i;r=e;let c=Object.keys(o);return c.every(e=>{let t=l[e]||"",{repeat:i,optional:n}=o[e],s="["+(i?"...":"")+e+"]";return n&&(s=(t?"":"/")+"["+s+"]"),i&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(r=r.replace(s,i?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(r=""),{params:c,result:r}}},2742:(e,t)=>{"use strict";function i(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return i}})},2894:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=i(7700),s=i(3879),r=i(7886),a=i(6997);function o(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,r.addPathSuffix)((0,s.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,s.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,r.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},3314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return s}});let i=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function s(e){return i.test(e)?e.replace(n,"\\$&"):e}},3360:(e,t,i)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{Router:function(){return r.default},createRouter:function(){return m},default:function(){return p},makePublicRouterInstance:function(){return g},useRouter:function(){return f},withRouter:function(){return l.default}});let n=i(8140),s=n._(i(2115)),r=n._(i(5729)),a=i(9862),o=n._(i(2444)),l=n._(i(5657)),c={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},h=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],u=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!c.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return c.router}Object.defineProperty(c,"events",{get:()=>r.default.events}),h.forEach(e=>{Object.defineProperty(c,e,{get:()=>d()[e]})}),u.forEach(e=>{c[e]=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return d()[e](...i)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{c.ready(()=>{r.default.events.on(e,function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];let s="on"+e.charAt(0).toUpperCase()+e.substring(1);if(c[s])try{c[s](...i)}catch(e){console.error("Error when running the Router event: "+s),console.error((0,o.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=c;function f(){let e=s.default.useContext(a.RouterContext);if(!e)throw Object.defineProperty(Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted"),"__NEXT_ERROR_CODE",{value:"E509",enumerable:!1,configurable:!0});return e}function m(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return c.router=new r.default(...t),c.readyCallbacks.forEach(e=>e()),c.readyCallbacks=[],c.router}function g(e){let t={};for(let i of h){if("object"==typeof e[i]){t[i]=Object.assign(Array.isArray(e[i])?[]:{},e[i]);continue}t[i]=e[i]}return t.events=r.default.events,u.forEach(i=>{t[i]=function(){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];return e[i](...n)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3644:(e,t)=>{"use strict";function i(e,t){let i={};return Object.keys(e).forEach(n=>{t.includes(n)||(i[n]=e[n])}),i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return i}})},3924:(e,t,i)=>{"use strict";i.d(t,{xQ:()=>r});var n=i(2115),s=i(4275);function r(e=!0){let t=(0,n.useContext)(s.t);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=t,l=(0,n.useId)();(0,n.useEffect)(()=>{e&&o(l)},[e]);let c=(0,n.useCallback)(()=>e&&a&&a(l),[l,a,e]);return!i&&a?[!1,c]:[!0]}},4275:(e,t,i)=>{"use strict";i.d(t,{t:()=>n});let n=(0,i(2115).createContext)(null)},4362:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{createRouteLoader:function(){return g},getClientBuildManifest:function(){return f},isAssetError:function(){return h},markAssetError:function(){return c}}),i(8140),i(749);let n=i(5e3),s=i(4853),r=i(8301),a=i(7278);function o(e,t,i){let n,s=t.get(e);if(s)return"future"in s?s.future:Promise.resolve(s);let r=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:r}),i?i().then(e=>(n(e),e)).catch(i=>{throw t.delete(e),i}):r}let l=Symbol("ASSET_LOAD_ERROR");function c(e){return Object.defineProperty(e,l,{})}function h(e){return e&&l in e}let u=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,r.getDeploymentIdQueryOrEmptyString)();function p(e,t,i){return new Promise((n,r)=>{let a=!1;e.then(e=>{a=!0,n(e)}).catch(r),(0,s.requestIdleCallback)(()=>setTimeout(()=>{a||r(i)},t))})}function f(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,c(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,
1configurable:!0})))}function m(e,t){return f().then(i=>{if(!(t in i))throw c(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let s=i[t].map(t=>e+"/_next/"+(0,a.encodeURIPath)(t));return{scripts:s.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:s.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function g(e){let t=new Map,i=new Map,n=new Map,r=new Map;function a(e){{var t;let n=i.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(i.set(e.toString(),n=new Promise((i,n)=>{(t=document.createElement("script")).onload=i,t.onerror=()=>n(c(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw c(e)})),t}return{whenEntrypoint:e=>o(e,t),onEntrypoint(e,i){(i?Promise.resolve().then(()=>i()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(i=>{let n=t.get(e);n&&"resolve"in n?i&&(t.set(e,i),n.resolve(i)):(i?t.set(e,i):t.delete(e),r.delete(e))})},loadRoute(i,n){return o(i,r,()=>{let s;return p(m(e,i).then(e=>{let{scripts:n,css:s}=e;return Promise.all([t.has(i)?[]:Promise.all(n.map(a)),Promise.all(s.map(l))])}).then(e=>this.whenEntrypoint(i).then(t=>({entrypoint:t,styles:e[1]}))),3800,c(Object.defineProperty(Error("Route did not complete loading: "+i),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:i}=e,n=Object.assign({styles:i},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==s?void 0:s())})},prefetch(t){let i;return(i=navigator.connection)&&(i.saveData||/2g/.test(i.effectiveType))?Promise.resolve():m(e,t).then(e=>Promise.all(u?e.scripts.map(e=>{var t,i,n;return t=e.toString(),i="script",new Promise((e,s)=>{let r='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(r))return e();n=document.createElement("link"),i&&(n.as=i),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>s(c(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,s.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4634:(e,t,i)=>{"use strict";i.d(t,{Q:()=>n});let n=(0,i(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},4652:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return o}});let n=i(8140),s=i(5040),r=i(1356),a=n._(i(1124));function o(e){let{props:t}=(0,s.getImgProps)(e,{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[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=r.Image},4738:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{safeCompile:function(){return a},safePathToRegexp:function(){return r},safeRegexpToFunction:function(){return o},safeRouteMatcher:function(){return l}});let n=i(413),s=i(1693);function r(e,t,i){if("string"!=typeof e)return(0,n.pathToRegexp)(e,t,i);let r=(0,s.hasAdjacentParameterIssues)(e),a=r?(0,s.normalizeAdjacentParameters)(e):e;try{return(0,n.pathToRegexp)(a,t,i)}catch(a){if(!r)try{let r=(0,s.normalizeAdjacentParameters)(e);return(0,n.pathToRegexp)(r,t,i)}catch(e){}throw a}}function a(e,t){let i=(0,s.hasAdjacentParameterIssues)(e),r=i?(0,s.normalizeAdjacentParameters)(e):e;
1try{return(0,n.compile)(r,t)}catch(r){if(!i)try{let i=(0,s.normalizeAdjacentParameters)(e);return(0,n.compile)(i,t)}catch(e){}throw r}}function o(e,t){let i=(0,n.regexpToFunction)(e,t||[]);return e=>{let t=i(e);return!!t&&{...t,params:(0,s.stripParameterSeparators)(t.params)}}}function l(e){return t=>{let i=e(t);return!!i&&(0,s.stripParameterSeparators)(i)}}},4761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getSortedRouteObjects:function(){return s},getSortedRoutes:function(){return n}});class i{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let i=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&i.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});i.unshift(t)}return null!==this.restSlugName&&i.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&i.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let s=e[0];if(s.startsWith("[")&&s.endsWith("]")){let i=s.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+i+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+i+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(i.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+i+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function r(e,i){if(null!==e&&e!==i)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+i+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===i)throw Object.defineProperty(Error('You cannot have the same slug name "'+i+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===s.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+i+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(i)}if(n)if(a){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});r(this.optionalRestSlugName,i),this.optionalRestSlugName=i,s="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});r(this.restSlugName,i),this.restSlugName=i,s="[...]"}else{if(a)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,
1configurable:!0});r(this.slugName,i),this.slugName=i,s="[]"}}this.children.has(s)||this.children.set(s,new i),this.children.get(s)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new i;return e.forEach(e=>t.insert(e)),t.smoosh()}function s(e,t){let i={},s=[];for(let n=0;n<e.length;n++){let r=t(e[n]);i[r]=n,s[n]=r}return n(s).map(t=>e[i[t]])}},4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5e3:(e,t)=>{"use strict";let i;function n(e){var t;return(null==(t=function(){if(void 0===i){var e;i=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return i}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return i}});let i=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5124:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(2115);let s=i(998).B?n.useLayoutEffect:n.useEffect},5239:(e,t,i)=>{"use strict";i.d(t,{default:()=>s.a});var n=i(4652),s=i.n(n)},5287:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return s.isDynamicRoute}});let n=i(4761),s=i(2421)},5305:e=>{e.exports={style:{fontFamily:"'PT Sans', 'PT Sans Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_d7f62f",variable:"__variable_d7f62f"}},5379:(e,t,i)=>{"use strict";i.d(t,{D:()=>c,N:()=>h});var n=i(2115),s=(e,t,i,n,s,r,a,o)=>{let l=document.documentElement,c=["light","dark"];function h(t){var i;(Array.isArray(e)?e:[e]).forEach(e=>{let i="class"===e,n=i&&r?s.map(e=>r[e]||e):s;i?(l.classList.remove(...n),l.classList.add(t)):l.setAttribute(e,t)}),i=t,o&&c.includes(i)&&(l.style.colorScheme=i)}if(n)h(n);else try{let e=localStorage.getItem(t)||i,n=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;h(n)}catch(e){}},r=["light","dark"],a="(prefers-color-scheme: dark)",o=n.createContext(void 0),l={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=n.useContext(o))?e:l},h=e=>n.useContext(o)?n.createElement(n.Fragment,null,e.children):n.createElement(d,{...e}),u=["light","dark"],d=e=>{let{forcedTheme:t,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:l=!0,storageKey:c="theme",themes:h=u,defaultTheme:d=s?"system":"light",attribute:v="data-theme",value:y,children:b,nonce:w,scriptProps:x}=e,[_,P]=n.useState(()=>f(c,d)),[E,S]=n.useState(()=>f(c)),R=y?Object.values(y):h,T=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&s&&(t=g());let n=y?y[t]:t,a=i?m(w):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...R),n&&o.classList.add(n)):e.startsWith("data-")&&(n?o.setAttribute(e,n):o.removeAttribute(e))};if(Array.isArray(v)?v.forEach(c):c(v),l){let e=r.includes(d)?d:null,i=r.includes(t)?t:e;o.style.colorScheme=i}null==a||a()},[w]),C=n.useCallback(e=>{let t="function"==typeof e?e(_):e;P(t);try{localStorage.setItem(c,t)}catch(e){}},[_]),k=n.useCallback(e=>{S(g(e)),"system"===_&&s&&!t&&T("system")},[_,t]);n.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),n.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?P(e.newValue):C(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[C]),n.useEffect(()=>{T(null!=t?t:_)},[t,_]);let O=n.useMemo(()=>({theme:_,setTheme:C,forcedTheme:t,resolvedTheme:"system"===_?E:_,themes:s?[...h,"system"]:h,systemTheme:s?E:void 0}),[_,C,t,E,s,h]);return n.createElement(o.Provider,{value:O},n.createElement(p,{forcedTheme:t,storageKey:c,attribute:v,enableSystem:s,enableColorScheme:l,defaultTheme:d,value:y,themes:h,nonce:w,scriptProps:x}),b)},p=n.memo(e=>{let{forcedTheme:t,storageKey:i,attribute:r,enableSystem:a,enableColorScheme:o,defaultTheme:l,value:c,themes:h,nonce:u,scriptProps:d}=e,p=JSON.stringify([r,i,l,t,h,c,a,o]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(s.toString(),")(").concat(p,")")}})}),f=(e,t)=>{let i;try{i=localStorage.getItem(e)||void 0}catch(e){}return i||t},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>
1(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},5403:(e,t)=>{"use strict";function i(e,t,i,n,r){let a=e[t];if(r&&r.has(t)?a=r.get(t):Array.isArray(a)?a=a.map(e=>encodeURIComponent(e)):"string"==typeof a&&(a=encodeURIComponent(a)),!a){let r="oc"===i;if("c"===i||r)return r?{param:t,value:null,type:i,treeSegment:[t,"",i]}:{param:t,value:a=n.split("/").slice(1).flatMap(t=>{var i;let n=s(t);return null!=(i=e[n.key])?i:n.key}),type:i,treeSegment:[t,a.join("/"),i]}}return{param:t,value:a,treeSegment:[t,Array.isArray(a)?a.join("/"):a,i],type:i}}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{PARAMETER_PATTERN:function(){return n},getDynamicParam:function(){return i},parseMatchedParameter:function(){return r},parseParameter:function(){return s}});let n=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function s(e){let t=e.match(n);return t?r(t[2]):r(e)}function r(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let i=e.startsWith("...");return i&&(e=e.slice(3)),{key:e,repeat:i,optional:t}}},5657:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),i(8140);let n=i(5155);i(2115);let s=i(3360);function r(e){function t(t){return(0,n.jsx)(e,{router:(0,s.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5729:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{createKey:function(){return W},default:function(){return $},matchesMiddleware:function(){return j}});let n=i(8140),s=i(9417),r=i(7700),a=i(4362),o=i(1402),l=s._(i(2444)),c=i(2461),h=i(1940),u=n._(i(2025)),d=i(2296),p=i(2421),f=i(579),m=i(2385),g=i(8156),v=i(7670);i(5078);let y=i(5240),b=i(9785),w=i(8518),x=i(1755),_=i(6058),P=i(2929),E=i(935),S=i(2742),R=i(6293),T=i(2894),C=i(9649),k=i(8607),O=i(3913),M=i(3644),A=i(2471),D=i(4170),I=i(6832);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function j(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:i}=(0,y.parsePath)(e.asPath),n=(0,P.hasBasePath)(i)?(0,x.removeBasePath)(i):i,s=(0,_.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(s))}
1function z(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function V(e,t,i){let[n,s]=(0,E.resolveHref)(e,t,!0),r=(0,d.getLocationOrigin)(),a=n.startsWith(r),o=s&&s.startsWith(r);n=z(n),s=s?z(s):s;let l=a?n:(0,_.addBasePath)(n),c=i?z((0,E.resolveHref)(e,i)):s||n;return{url:l,as:o?c:(0,_.addBasePath)(c)}}function N(e,t){let i=(0,r.removeTrailingSlash)((0,c.denormalizePagePath)(e));return"/404"===i||"/_error"===i?e:(t.includes(i)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(i))return e=t,!0}),(0,r.removeTrailingSlash)(e))}async function F(e){if(!await j(e)||!e.fetchData)return null;let t=await e.fetchData(),i=await function(e,t,i){let n={basePath:i.router.basePath,i18n:{locales:i.router.locales},trailingSlash:!1},s=t.headers.get("x-nextjs-rewrite"),o=s||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(I.MATCHED_PATH_HEADER);if(!l||o||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(o=l),o){if(o.startsWith("/")){let t=(0,f.parseRelativeUrl)(o),l=(0,R.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),c=(0,r.removeTrailingSlash)(l.pathname);return Promise.all([i.router.pageLoader.getPageList(),(0,a.getClientBuildManifest)()]).then(r=>{let[a,{__rewrites:o}]=r,u=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(u)||!s&&a.includes((0,h.normalizeLocalePath)((0,x.removeBasePath)(u),i.router.locales).pathname)){let i=(0,R.getNextPathnameInfo)((0,f.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});t.pathname=u=(0,_.addBasePath)(i.pathname)}if(!a.includes(c)){let e=N(c,a);e!==c&&(c=e)}let d=a.includes(c)?c:N((0,h.normalizeLocalePath)((0,x.removeBasePath)(t.pathname),i.router.locales).pathname,a);if((0,p.isDynamicRoute)(d)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(d))(u);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,y.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,T.formatNextPathnameInfo)({...(0,R.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:i.router.defaultLocale,buildId:""})+t.query+t.hash})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,y.parsePath)(c),t=(0,T.formatNextPathnameInfo)({...(0,R.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:i.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:i}}let B=Symbol("SSG_DATA_NOT_FOUND");function U(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){let{dataHref:t,inflightCache:i,isPrefetch:n,hasMiddleware:s,isServerRender:r,parseJSON:o,persistCache:l,isBackground:c,unstable_skipClientCache:h}=e,{href:u}=new URL(t,window.location.href),d=e=>{var c;return(function e(t,i,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(s=>!s.ok&&i>1&&s.status>=500?e(t,i-1,n):s)})(t,r?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&s?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(c=null==e?void 0:e.method)?c:"GET"}).then(i=>i.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:i,text:"",json:{},cacheKey:u}:i.text().then(e=>{if(!i.ok){if(s&&[301,302,307,308].includes(i.status))return{dataHref:t,response:i,text:e,json:{},cacheKey:u};if(404===i.status){var n;if(null==(n=U(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:B},response:i,text:e,cacheKey:u}}let o=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw r||(0,a.markAssetError)(o),o}return{dataHref:t,json:o?U(e):null,response:i,text:e,cacheKey:u}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete i[u],e)).catch(e=>{throw h||delete i[u],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,a.markAssetError)(e),e})};return h&&l?d({}).then(e=>
1("no-cache"!==e.response.headers.get("x-middleware-cache")&&(i[u]=Promise.resolve(e)),e)):void 0!==i[u]?i[u]:i[u]=d(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:i}=e;if(t===(0,_.addBasePath)((0,b.addLocale)(i.asPath,i.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let G=e=>{let{route:t,router:i}=e,n=!1,s=i.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}s===i.clc&&(i.clc=null)}};class ${reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,i){return void 0===i&&(i={}),{url:e,as:t}=V(this,e,t),this.change("pushState",e,t,i)}replace(e,t,i){return void 0===i&&(i={}),{url:e,as:t}=V(this,e,t),this.change("replaceState",e,t,i)}async _bfl(e,t,n,s){{if(!this._bfl_s&&!this._bfl_d){let t,r,{BloomFilter:o}=i(1727);try{({__routerFilterStatic:t,__routerFilterDynamic:r}=await (0,a.getClientBuildManifest)())}catch(t){if(console.error(t),s)return!0;return q({url:(0,_.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new o(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==r?void 0:r.numHashes)&&(this._bfl_d=new o(r.numItems,r.errorRate),this._bfl_d.import(r))}let h=!1,u=!1;for(let{as:i,allowMatchCurrent:a}of[{as:e},{as:t}])if(i){let t=(0,r.removeTrailingSlash)(new URL(i,"http://n").pathname),d=(0,_.addBasePath)((0,b.addLocale)(t,n||this.locale));if(a||t!==(0,r.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,l,c;for(let e of(h=h||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e<t.length+1;e++){let i=t.slice(0,e).join("/");if(i&&(null==(c=this._bfl_d)?void 0:c.contains(i))){u=!0;break}}}if(h||u){if(s)return!0;return q({url:(0,_.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,i,n,s){var c,h,u,E,S,R,T,O,D;let I,z;if(!(0,k.isLocalURL)(t))return q({url:t,router:this}),!1;let F=1===n._h;F||n.shallow||await this._bfl(i,void 0,n.locale);let U=F||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(i).pathname,H={...this.state},W=!0!==this.isReady;this.isReady=!0;let G=this.isSsr;if(F||(this.isSsr=!1),F&&this.clc)return!1;let X=H.locale;d.ST&&performance.mark("routeChange");let{shallow:Y=!1,scroll:K=!0}=n,J={shallow:Y};this._inFlightRoute&&this.clc&&(G||$.events.emit("routeChangeError",L(),this._inFlightRoute,J),this.clc(),this.clc=null),i=(0,_.addBasePath)((0,b.addLocale)((0,P.hasBasePath)(i)?(0,x.removeBasePath)(i):i,n.locale,this.defaultLocale));let Z=(0,w.removeLocale)((0,P.hasBasePath)(i)?(0,x.removeBasePath)(i):i,H.locale);this._inFlightRoute=i;let Q=X!==H.locale;if(!F&&this.onlyAHashChange(Z)&&!Q){H.asPath=Z,$.events.emit("hashChangeStart",i,J),this.changeState(e,t,i,{...n,scroll:!1}),K&&this.scrollToHash(Z);try{await this.set(H,this.components[H.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,Z,J),e}return $.events.emit("hashChangeComplete",i,J),!0}let ee=(0,f.parseRelativeUrl)(t),{pathname:et,query:ei}=ee;try{[I,{__rewrites:z}]=await Promise.all([this.pageLoader.getPageList(),(0,a.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:i,router:this}),!1}this.urlIsNew(Z)||Q||(e="replaceState");let en=i;et=et?(0,r.removeTrailingSlash)((0,x.removeBasePath)(et)):et;let es=(0,r.removeTrailingSlash)(et),er=i.startsWith("/")&&(0,f.parseRelativeUrl)(i).pathname;if(null==(c=this.components[et])?void 0:c.__appRouter)return q({url:i,router:this}),new Promise(()=>{});let ea=!!(er&&es!==er&&(!(0,p.isDynamicRoute)(es)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(es))(er))),eo=!n.shallow&&await j({asPath:i,locale:H.locale,router:this});if(F&&eo&&(U=!1),U&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=N(et,I),ee.pathname!==et&&(et=ee.pathname,ee.pathname=(0,_.addBasePath)(et),eo||(t=(0,v.formatWithValidation)(ee)))),!(0,k.isLocalURL)(i))return q({url:i,router:this}),!1;en=(0,w.removeLocale)((0,x.removeBasePath)(en),H.locale),es=(0,r.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(es)){let e=(0,f.parseRelativeUrl)(en),n=e.pathname,s=(0,g.getRouteRegex)(es);el=(0,m.getRouteMatcher)(s)(n);let r=es===n,a=r?(0,A.interpolateAs)(es,n,ei):{};if(el&&(!r||a.result))r?i=(0,v.formatWithValidation)(Object.assign({},e,{pathname:a.result,query:(0,M.omit)(ei,a.params)})):Object.assign(ei,el);else{let e=Object.keys(s.groups).filter(e=>!ei[e]&&!s.groups[e].optional);if(e.length>0&&!eo)throw Object.defineProperty(Error((r?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+es+"). ")+"Read more: https://nextjs.org/docs/messages/"+(r?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,
1configurable:!0})}}F||$.events.emit("routeChangeStart",i,J);let ec="/404"===this.pathname||"/_error"===this.pathname;try{let r=await this.getRouteInfo({route:es,pathname:et,query:ei,as:i,resolvedAs:en,routeProps:J,locale:H.locale,isPreview:H.isPreview,hasMiddleware:eo,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:F&&!this.isFallback,isMiddlewareRewrite:ea});if(F||n.shallow||await this._bfl(i,"resolvedAs"in r?r.resolvedAs:void 0,H.locale),"route"in r&&eo){es=et=r.route||es,J.shallow||(ei=Object.assign({},r.query||{},ei));let e=(0,P.hasBasePath)(ee.pathname)?(0,x.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&ei[e]===el[e]&&delete ei[e]}),(0,p.isDynamicRoute)(et)){let e=!J.shallow&&r.resolvedAs?r.resolvedAs:(0,_.addBasePath)((0,b.addLocale)(new URL(i,location.href).pathname,H.locale),!0);(0,P.hasBasePath)(e)&&(e=(0,x.removeBasePath)(e));let t=(0,g.getRouteRegex)(et),n=(0,m.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(ei,n)}}if("type"in r)if("redirect-internal"===r.type)return this.change(e,r.newUrl,r.newAs,n);else return q({url:r.destination,router:this}),new Promise(()=>{});let a=r.Component;if(a&&a.unstable_scriptLoader&&[].concat(a.unstable_scriptLoader()).forEach(e=>{(0,o.handleClientScriptLoad)(e.props)}),(r.__N_SSG||r.__N_SSP)&&r.props){if(r.props.pageProps&&r.props.pageProps.__N_REDIRECT){n.locale=!1;let t=r.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==r.props.pageProps.__N_REDIRECT_BASE_PATH){let i=(0,f.parseRelativeUrl)(t);i.pathname=N(i.pathname,I);let{url:s,as:r}=V(this,t,t);return this.change(e,s,r,n)}return q({url:t,router:this}),new Promise(()=>{})}if(H.isPreview=!!r.props.__N_PREVIEW,r.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(r=await this.getRouteInfo({route:e,pathname:e,query:ei,as:i,resolvedAs:en,routeProps:{shallow:!1},locale:H.locale,isPreview:H.isPreview,isNotFound:!0}),"type"in r)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}F&&"/_error"===this.pathname&&(null==(u=self.__NEXT_DATA__.props)||null==(h=u.pageProps)?void 0:h.statusCode)===500&&(null==(E=r.props)?void 0:E.pageProps)&&(r.props.pageProps.statusCode=500);let c=n.shallow&&H.route===(null!=(S=r.route)?S:es),d=null!=(R=n.scroll)?R:!F&&!c,v=null!=s?s:d?{x:0,y:0}:null,y={...H,route:es,pathname:et,query:ei,asPath:Z,isFallback:!1};if(F&&ec){if(r=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:ei,as:i,resolvedAs:en,routeProps:{shallow:!1},locale:H.locale,isPreview:H.isPreview,isQueryUpdating:F&&!this.isFallback}),"type"in r)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(O=self.__NEXT_DATA__.props)||null==(T=O.pageProps)?void 0:T.statusCode)===500&&(null==(D=r.props)?void 0:D.pageProps)&&(r.props.pageProps.statusCode=500);try{await this.set(y,r,v)}catch(e){throw(0,l.default)(e)&&e.cancelled&&$.events.emit("routeChangeError",e,Z,J),e}return!0}if($.events.emit("beforeHistoryChange",i,J),this.changeState(e,t,i,n),!(F&&!v&&!W&&!Q&&(0,C.compareRouterStates)(y,this.state))){try{await this.set(y,r,v)}catch(e){if(e.cancelled)r.error=r.error||e;else throw e}if(r.error)throw F||$.events.emit("routeChangeError",r.error,Z,J),r.error;F||$.events.emit("routeChangeComplete",i,J),d&&/#.+$/.test(i)&&this.scrollToHash(i)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,i,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==i)&&(this._shallow=n.shallow,window.history[e]({url:t,as:i,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",i))}async handleRouteInfoError(e,t,i,n,s,r){if(e.cancelled)throw e;if((0,a.isAssetError)(e)||r)throw $.events.emit("routeChangeError",e,n,s),q({url:n,router:this}),L();console.error(e);try{let n,{page:s,styleSheets:r}=await this.fetchComponent("/_error"),a={props:n,Component:s,styleSheets:r,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(s,{err:e,pathname:t,query:i})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0}),t,i,n,s,!0)}}async getRouteInfo(e){let{route:t,pathname:i,query:n,as:s,resolvedAs:a,routeProps:o,locale:c,hasMiddleware:u,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:f,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,w,_,P;let e=this.components[y];if(o.shallow&&e&&this.route===y)return e;let t=G({route:y,router:this});u&&(e=void 0);let l=!e||"initial"in e?void 0:e,E={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:i,query:n}),skipInterpolation:!0,asPath:g?"/404":a,locale:c}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:f},R=f&&!m?null:await F({fetchData:()=>H(E),asPath:g?"/404":a,locale:c,router:this}).catch(e=>{if(f)return null;throw e});if(R&&("/_error"===i||"/404"===i)&&(R.effect=void 0),f&&(R?R.json=self.__NEXT_DATA__.props:R={json:self.__NEXT_DATA__.props}),t(),(null==R||null==(b=R.effect)?void 0:b.type)==="redirect-internal"||(null==R||null==(w=R.effect)?void 0:w.type)==="redirect-external")return R.effect;if((null==R||null==(_=R.effect)?void 0:_.type)==="rewrite"){let t=(0,r.removeTrailingSlash)(R.effect.resolvedHref),s=await this.pageLoader.getPageList();if((!f||s.includes(t))&&(y=t,i=R.effect.resolvedHref,n={...n,...R.effect.parsedAs.query},a=(0,x.removeBasePath)((0,h.normalizeLocalePath)(R.effect.parsedAs.pathname,this.locales).pathname),e=this.components[y],o.shallow&&e&&this.route===y&&!u))return{...e,route:y}}if((0,S.isAPIRoute)(y))return q({url:s,router:this}),new Promise(()=>{});let T=l||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),C=null==R||null==(P=R.response)?void 0:P.headers.get("x-middleware-skip"),k=T.__N_SSG||T.__N_SSP;C&&(null==R?void 0:R.dataHref)&&delete this.sdc[R.dataHref];let{props:O,cacheKey:M}=await this._getData(async()=>{if(k){if((null==R?void 0:R.json)&&!C)return{cacheKey:R.cacheKey,props:R.json};let e=(null==R?void 0:R.dataHref)?R.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:i,query:n}),asPath:a,locale:c}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:C?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(T.Component,{pathname:i,query:n,asPath:s,locale:c,locales:this.locales,defaultLocale:this.defaultLocale})}});return T.__N_SSP&&E.dataHref&&M&&delete this.sdc[M],this.isPreview||!T.__N_SSG||f||H(Object.assign({},E,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),O.pageProps=Object.assign({},O.pageProps),T.props=O,T.route=y,T.query=n,T.resolvedAs=a,this.components[y]=T,T}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),i,n,s,o)}}set(e,t,i){return this.state=e,this.sub(t,this.components["/_app"].Component,i)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,i]=this.asPath.split("#",2),[n,s]=e.split("#",2);return!!s&&t===n&&i===s||t===n&&i!==s}scrollToHash(e){let[,t=""]=e.split("#",2);(0,D.disableSmoothScrollDuringRouteTransition)(()=>{if(""===t||"top"===t)return void window.scrollTo(0,0);let e=decodeURIComponent(t),i=document.getElementById(e);if(i)return void i.scrollIntoView();let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,i){if(void 0===t&&(t=e),void 0===i&&(i={}),(0,O.isBot)(window.navigator.userAgent))return;let n=(0,f.parseRelativeUrl)(e),s=n.pathname,{pathname:a,query:o}=n,l=a,c=await this.pageLoader.getPageList(),h=t,u=void 0!==i.locale?i.locale||void 0:this.locale,d=await j({asPath:t,locale:u,router:this});n.pathname=N(n.pathname,c),(0,p.isDynamicRoute)(n.pathname)&&(a=n.pathname,n.pathname=a,Object.assign(o,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),d||(e=(0,v.formatWithValidation)(n)));let b=await F({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:l,query:o}),skipInterpolation:!0,asPath:h,locale:u}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persist
1Cache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:u,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,a=b.effect.resolvedHref,o={...o,...b.effect.parsedAs.query},h=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let w=(0,r.removeTrailingSlash)(a);await this._bfl(t,h,i.locale,!0)&&(this.components[s]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&H({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:h,locale:u}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:i.unstable_skipClientCache||i.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[i.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=G({route:e,router:this});try{let i=await this.pageLoader.loadPage(e);return t(),i}catch(e){throw t(),e}}_getData(e){let t=!1,i=()=>{t=!0};return this.clc=i,e().then(e=>{if(i===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:i}=this.components["/_app"],n=this._wrapApp(i);return t.AppTree=n,(0,d.loadGetInitialProps)(i,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,i,{initialProps:n,pageLoader:s,App:a,wrapApp:o,Component:l,err:c,subscription:h,isFallback:u,locale:m,locales:g,defaultLocale:y,domainLocales:b,isPreview:w}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t,{isFirstPopStateEvent:i}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,_.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA)return void window.location.reload();if(!n.__N||i&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:s,as:r,options:a,key:o}=n;this._key=o;let{pathname:l}=(0,f.parseRelativeUrl)(s);(!this.isSsr||r!==(0,_.addBasePath)(this.asPath)||l!==(0,_.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",s,r,Object.assign({},a,{shallow:a.shallow&&this._shallow,locale:a.locale||this.defaultLocale,_h:0}),t)};let x=(0,r.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[x]={Component:l,initial:!0,props:n,err:c,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=$.events,this.pageLoader=s;let P=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=h,this.clc=null,this._wrapApp=o,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!P&&!self.location.search),this.state={route:x,pathname:e,query:t,asPath:P?e:i,isPreview:!!w,locale:void 0,isFallback:u},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!i.startsWith("//")){let n={locale:m},s=(0,d.getURL)();this._initialMatchesMiddlewarePromise=j({router:this,locale:m,asPath:s}).then(r=>(n._shouldResolveHref=i!==e,this.changeState("replaceState",r?s:(0,v.formatWithValidation)({pathname:(0,_.addBasePath)(e),query:t}),s,n),r))}window.addEventListener("popstate",this.onPopState)}}$.events=(0,u.default)()},6293:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let n=i(1940),s=i(6726),r=i(2018);function a(e,t){var i,a;let{basePath:o,i18n:l,trailingSlash:c}=null!=(i=t.nextConfig)?i:{},h={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};o&&(0,r.pathHasPrefix)(h.pathname,o)&&(h.pathname=(0,s.removePathPrefix)(h.pathname,o),h.basePath=o);let u=h.pathname;if(h.pathname.startsWith("/_next/data/")&&h.pathname.endsWith(".json")){let e=h.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");
1h.buildId=e[0],u="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(h.pathname=u)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(h.pathname):(0,n.normalizeLocalePath)(h.pathname,l.locales);h.locale=e.detectedLocale,h.pathname=null!=(a=e.pathname)?a:h.pathname,!e.detectedLocale&&h.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,n.normalizeLocalePath)(u,l.locales)).detectedLocale&&(h.locale=e.detectedLocale)}return h}},6429:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>a,iC:()=>o});var n=i(7815),s=i(5155),r=i(2115);let a=e=>{let t=e.id??"tsparticles";return(0,r.useEffect)(()=>{let i;return n.$k3.load({id:t,url:e.url,options:e.options}).then(t=>{var n;i=t,null==(n=e.particlesLoaded)||n.call(e,t)}),()=>{null==i||i.destroy()}},[t,e,e.url,e.options]),(0,s.jsx)("div",{id:t,className:e.className})};async function o(e){await e(n.$k3)}},6563:(e,t,i)=>{"use strict";i.d(t,{N:()=>v});var n=i(5155),s=i(2115),r=i(2007),a=i(43),o=i(4275),l=i(4634);class c extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=e instanceof HTMLElement&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:i,anchorX:r}=e,a=(0,s.useId)(),o=(0,s.useRef)(null),h=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:s,right:l}=h.current;if(i||!o.current||!e||!t)return;o.current.dataset.motionPopId=a;let c=document.createElement("style");return u&&(c.nonce=u),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(a,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n ").concat("left"===r?"left: ".concat(s):"right: ".concat(l),"px !important;\n top: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(c)}},[i]),(0,n.jsx)(c,{isPresent:i,childRef:o,sizeRef:h,children:s.cloneElement(t,{ref:o})})}let u=e=>{let{children:t,initial:i,isPresent:r,onExitComplete:l,custom:c,presenceAffectsLayout:u,mode:p,anchorX:f}=e,m=(0,a.M)(d),g=(0,s.useId)(),v=(0,s.useCallback)(e=>
1{for(let t of(m.set(e,!0),m.values()))if(!t)return;l&&l()},[m,l]),y=(0,s.useMemo)(()=>({id:g,initial:i,isPresent:r,custom:c,onExitComplete:v,register:e=>(m.set(e,!1),()=>m.delete(e))}),u?[Math.random(),v]:[r,v]);return(0,s.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[r]),s.useEffect(()=>{r||m.size||!l||l()},[r]),"popLayout"===p&&(t=(0,n.jsx)(h,{isPresent:r,anchorX:f,children:t})),(0,n.jsx)(o.t.Provider,{value:y,children:t})};function d(){return new Map}var p=i(3924);let f=e=>e.key||"";function m(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}var g=i(5124);let v=e=>{let{children:t,custom:i,initial:o=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:h="sync",propagate:d=!1,anchorX:v="left"}=e,[y,b]=(0,p.xQ)(d),w=(0,s.useMemo)(()=>m(t),[t]),x=d&&!y?[]:w.map(f),_=(0,s.useRef)(!0),P=(0,s.useRef)(w),E=(0,a.M)(()=>new Map),[S,R]=(0,s.useState)(w),[T,C]=(0,s.useState)(w);(0,g.E)(()=>{_.current=!1,P.current=w;for(let e=0;e<T.length;e++){let t=f(T[e]);x.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[T,x.length,x.join("-")]);let k=[];if(w!==S){let e=[...w];for(let t=0;t<T.length;t++){let i=T[t],n=f(i);x.includes(n)||(e.splice(t,0,i),k.push(i))}return"wait"===h&&k.length&&(e=k),C(m(e)),R(w),null}let{forceRender:O}=(0,s.useContext)(r.L);return(0,n.jsx)(n.Fragment,{children:T.map(e=>{let t=f(e),s=(!d||!!y)&&(w===T||x.includes(t));return(0,n.jsx)(u,{isPresent:s,initial:(!_.current||!!o)&&void 0,custom:i,presenceAffectsLayout:c,mode:h,onExitComplete:s?void 0:()=>{if(!E.has(t))return;E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==O||O(),C(P.current),d&&(null==b||b()),l&&l())},anchorX:v,children:e},t)})})}},6724:(e,t,i)=>{"use strict";i.d(t,{k5:()=>h});var n=i(2115),s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=n.createContext&&n.createContext(s),a=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach(function(t){var n,s,r;n=e,s=t,r=i[t],(s=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(s))in n?Object.defineProperty(n,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[s]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function h(e){return t=>n.createElement(u,o({attr:c({},e.attr)},t),function e(t){return t&&t.map((t,i)=>n.createElement(t.tag,c({key:i},t.attr),e(t.child)))}(e.child))}function u(e){var t=t=>{var i,{attr:s,size:r,title:l}=e,h=function(e,t){if(null==e)return{};var i,n,s=function(e,t){if(null==e)return{};var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;i[n]=e[n]}return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)i=r[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(s[i]=e[i])}return s}(e,a),u=r||t.size||"1em";return t.className&&(i=t.className),e.className&&(i=(i?i+" ":"")+e.className),n.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,s,h,{className:i,style:c(c({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==r?n.createElement(r.Consumer,null,e=>t(e)):t(s)}},6726:(e,t,i)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return s}});let n=i(2018);function s(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let i=e.slice(t.length);return i.startsWith("/")?i:"/"+i}},6832:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return R},DOT_NEXT_ALIAS:function(){return A},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return X},GSSP_COMPONENT_MEMBER_ERROR:function(){return J},GSSP_NO_RETURNED_VALUE:function(){return Y},HTML_CONTENT_TYPE_HEADER:function(){return n},INFINITE_CACHE:function(){return T},INSTRUMENTATION_HOOK_FILENAME:function(){return O},JSON_CONTENT_TYPE_HEADER:function(){return s},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return k},NEXT_BODY_SUFFIX:function(){return v},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return b},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return w},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return E},NEXT_CACHE_TAGS_HEADER:function(){return y},NEXT_CACHE_TAG_MAX_ITEMS:function(){return _},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return m},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return g},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return x},NON_STANDARD_NODE_ENV:function(){return Z},PAGES_DIR_ALIAS:function(){return M},PRERENDER_REVALIDATE_HEADER:function(){return l},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return c},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return U},ROOT_DIR_ALIAS:function(){return D},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return B},RSC_ACTION_ENCRYPTION_ALIAS:function(){return F},RSC_ACTION_PROXY_ALIAS:function(){return z},RSC_ACTION_VALIDATE_ALIAS:function(){return j},RSC_CACHE_WRAPPER_ALIAS:function(){return V},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return N},RSC_MOD_REF_PROXY_ALIAS:function(){return L},RSC_PREFETCH_SUFFIX:function(){return h},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return d},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return $},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return W},SERVER_PROPS_SSG_CONFLICT:function(){return q},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Q},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return H},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return G},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return i},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return K},WEBPACK_LAYERS:function(){return en},WEBPACK_RESOURCE_QUERIES:function(){return es}});let i="text/plain",n="text/html; charset=utf-8",s="application/json; charset=utf-8",r="nxtP",a="nxtI",o="x-matched-path",l="x-prerender-revalidate",c="x-prerender-revalidate-if-generated",h=".prefetch.rsc",u=".segments",d=".segment.rsc",p=".rsc",f=".action",m=".json",g=".meta",v=".body",y="x-next-cache-tags",b="x-next-revalidated-tags",w="x-next-revalidate-tag-token",x="next-resume",_=128,P=256,E=1024,S="_N_T_",R=31536e3,T=0xfffffffe,C="middleware",k=`(?:src/)?${C}`,O="instrumentation",M="private-next-pages",A="private-dot-next",D="private-next-root-dir",I="private-next-app-dir",L="private-next-rsc-mod-ref-proxy",j="private-next-rsc-action-validate",z="private-next-rsc-server-reference",V="private-next-rsc-cache-wrapper",N="private-next-rsc-track-dynamic-import",F="private-next-rsc-action-encryption",B="private-next-rsc-action-client-wrapper",U="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",H="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",W="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",q="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",G="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",$="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",X="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Y="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",K="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",J="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Z='You are using a non-standard "NODE_ENV" value in y
1our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Q="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ei={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},en={...ei,GROUP:{builtinReact:[ei.reactServerComponents,ei.actionBrowser],serverOnly:[ei.reactServerComponents,ei.actionBrowser,ei.instrument,ei.middleware],neutralTarget:[ei.apiNode,ei.apiEdge],clientOnly:[ei.serverSideRendering,ei.appPagesBrowser],bundled:[ei.reactServerComponents,ei.actionBrowser,ei.serverSideRendering,ei.appPagesBrowser,ei.shared,ei.instrument,ei.middleware],appPages:[ei.reactServerComponents,ei.serverSideRendering,ei.appPagesBrowser,ei.actionBrowser]}},es={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},6997:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});let n=i(3879),s=i(2018);function r(e,t,i,r){if(!t||t===i)return e;let a=e.toLowerCase();return!r&&((0,s.pathHasPrefix)(a,"/api")||(0,s.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},7051:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_e97114",variable:"__variable_e97114"}},7815:(e,t,i)=>{"use strict";var n,s,r,a,o,l,c,h,u,d,p,f,m,g,v,y,b,w,x,_,P,E;i.d(t,{H_P:()=>r,jlt:()=>tZ,_or:()=>g,VKE:()=>a,Q5V:()=>p,mgy:()=>E,sJd:()=>it,FWc:()=>n,Oit:()=>e1,Yzx:()=>v,v5k:()=>o,x_I:()=>w,U4p:()=>ii,M_G:()=>tQ,pTR:()=>_,PVU:()=>tm,Miz:()=>$,AEc:()=>ey,pEn:()=>eE,Tgl:()=>eP,qE8:()=>J,EYT:()=>eB,puj:()=>ea,NVT:()=>e_,U6C:()=>ex,V6E:()=>eY,dIx:()=>k,wJ2:()=>eR,YfF:()=>er,vrU:()=>es,pzy:()=>eq,_hh:()=>eU,PGG:()=>eH,tZQ:()=>eh,G0i:()=>K,W9e:()=>ei,VGA:()=>ee,LCf:()=>eF,xxz:()=>eN,YLU:()=>ej,ayx:()=>ez,XsS:()=>ek,cyL:()=>W,iKf:()=>ew,hnD:()=>ef,kZJ:()=>q,Gvm:()=>H,Tj8:()=>ev,B90:()=>ed,Vh1:()=>eg,TA3:()=>eT,AlN:()=>em,XuV:()=>M,Z04:()=>R,RbF:()=>T,M3Y:()=>el,a56:()=>O,U43:()=>Q,R5R:()=>eI,BN0:()=>eD,jon:()=>eS,K6u:()=>eL,DT4:()=>en,$k3:()=>is,UC0:()=>eM,JvX:()=>eX});let S="generated",R="pointerleave",T="pointermove",C="touchend",k="tsParticles - Error",O=100,M=1e3,A={x:0,y:0,z:0},D={a:1,b:0,c:0,d:1},I="random",L=2*Math.PI,j="true",z="false",V="canvas",N=0;function F(e){return"boolean"==typeof e}function B(e){return"string"==typeof e}function U(e){return"number"==typeof e}function H(e){return"object"==typeof e&&null!==e}function W(e){return Array.isArray(e)}function q(e){return null==e}!function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"}(n||(n={}));class G{constructor(e,t,i){if(this._updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t},!U(e)&&e)this.x=e.x,this.y=e.y,this.z=e.z?e.z:A.z;else if(void 0!==e&&void 0!==t)this.x=e,this.y=t,this.z=i??A.z;else throw Error(`${k} Vector3d not initialized correctly`)}static get origin(){return G.create(A.x,A.y,A.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return G.create(e.x,e.y,e.z)}static create(e,t,i){return new G(e,t,i)}add(e){return G.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return G.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return G.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**2+this.y**2}mult(e){return G.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;0!=e&&this.multTo(1/e)}rotate(e){return G.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),A.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:A.z}sub(e){return G.create(this.x-e.x,this.y-e.y,this.z-e.z)}
1subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class $ extends G{constructor(e,t){super(e,t,A.z)}static get origin(){return $.create(A.x,A.y)}static clone(e){return $.create(e.x,e.y)}static create(e,t){return new $(e,t)}}let X=Math.random,Y={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)};function K(){return J(X(),0,1-Number.EPSILON)}function J(e,t,i){return Math.min(Math.max(e,t),i)}function Z(e,t,i,n){return Math.floor((e*i+t*n)/(i+n))}function Q(e){let t=ei(e),i=et(e);return t===i&&(i=0),K()*(t-i)+i}function ee(e){return U(e)?e:Q(e)}function et(e){return U(e)?e:e.min}function ei(e){return U(e)?e:e.max}function en(e,t){if(e===t||void 0===t&&U(e))return e;let i=et(e),n=ei(e);return void 0!==t?{min:Math.min(i,t),max:Math.max(n,t)}:en(i,n)}function es(e,t){let i=e.x-t.x,n=e.y-t.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function er(e,t){return es(e,t).distance}function ea(e){return e*Math.PI/180}function eo(e,t,i,n){return $.create(e.x*(i-n)/(i+n)+2*t.x*n/(i+n),e.y)}function el(e){return e?e.endsWith("%")?parseFloat(e)/O:parseFloat(e):1}!function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(s||(s={})),function(e){e.increasing="increasing",e.decreasing="decreasing"}(r||(r={})),function(e){e.none="none",e.max="max",e.min="min"}(a||(a={})),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(o||(o={})),function(e){e.precise="precise",e.percent="percent"}(l||(l={})),function(e){e.max="max",e.min="min",e.random="random"}(c||(c={}));let ec={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function eh(){return ec}function eu(e){let t={bounced:!1},{pSide:i,pOtherSide:n,rectSide:s,rectOtherSide:r,velocity:a,factor:o}=e;return n.min<r.min||n.min>r.max||n.max<r.min||n.max>r.max||(i.max>=s.min&&i.max<=(s.max+s.min)*.5&&a>0||i.min<=s.max&&i.min>(s.max+s.min)*.5&&a<0)&&(t.velocity=-(a*o),t.bounced=!0),t}function ed(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function ep(e){if(!ed()&&"undefined"!=typeof matchMedia)return matchMedia(e)}function ef(e,t){return e===t||W(t)&&t.indexOf(e)>-1}async function em(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function eg(e,t,i=!0){return e[void 0!==t&&i?t%e.length:Math.floor(K()*e.length)]}function ev(e,t,i,n,s){var r,a,l,c;let h;return r=ey(e,n??0),a=t,l=i,h=!0,(c=s)&&c!==o.bottom||(h=r.top<a.height+l.x),h&&(!c||c===o.left)&&(h=r.right>l.x),h&&(!c||c===o.right)&&(h=r.left<a.width+l.y),h&&(!c||c===o.top)&&(h=r.bottom>l.y),h}function ey(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function eb(e,...t){for(let i of t){if(null==i)continue;if(!H(i)){e=i;continue}let t=Array.isArray(i);for(let n in t&&(H(e)||!e||!Array.isArray(e))?e=[]:!t&&(H(e)||!e||Array.isArray(e))&&(e={}),i){if("__proto__"===n)continue;let t=i[n],s=e;s[n]=H(t)&&Array.isArray(t)?t.map(e=>eb(s[n],e)):eb(s[n],t)}}return e}function ew(e,t){return!!eC(t,t=>t.enable&&ef(e,t.mode))}function ex(e,t,i){eR(t,t=>{var n,s;let r=t.mode;t.enable&&ef(e,r)&&(n=t,s=i,eR(n.selectors,e=>{s(e,n)}))})}function e_(e,t){if(t&&e)return eC(e,e=>(function(e,t){let i=eR(t,t=>e.matches(t));return W(i)?i.some(e=>e):i})(t,e.selectors))}function eP(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:$.create(ee(e.options.bounce.horizontal.value),ee(e.options.bounce.vertical.value))}}function eE(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[s,r]=[e.position,t.position],{dx:a,dy:o}=es(r,s);if(i*a+n*o<0)return;let l=-Math.atan2(o,a),c=e.mass,h=t.mass,u=e.velocity.rotate(l),d=t.velocity.rotate(l),p=eo(u,d,c,h),f=eo(d,u,c,h),m=p.rotate(-l),g=f.rotate(-l);e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y,t.velocity.x=g.x*t.factor.x,t.velocity.y=g.y*t.factor.y}function eS(e,t){let i=ey(e.getPosition(),e.getRadius()),n=e.options.bounce,s=eu({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:ee(n.horizontal.value)});s.bounced&&(void 0!==s.velocity&&(e.velocity.x=s.velocity),void 0!==s.position&&(e.position.x=s.position));let r=eu({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:ee(n.vertical.value)});r.bounced&&(void 0!==r.velocity&&(e.velocity.y=r.velocity),void 0!==r.position&&(e.position.y=r.position))}function eR(e,t){return W(e)?e.map((e,i)=>t(e,i)):t(e,0)}function eT(e,t,i){return W(e)?eg(e,t,i):e}function eC(e,t){return W(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function ek(e,t){let i=e.value,n=e.animation,a={delayTime:ee(n.delay)*M,enable:n.enable,value:ee(e.value)*t,max:ei(i)*t,min:et(i)*t,loops:0,maxLoops:ee(n.count),time:0};if(n.enable){switch(a.decay=1-ee(n.decay),n.mode){case s.increase:a.status=r.increasing;break;case s.decrease:a.status=r.decreasing;break;case s.random:a.status=K()>=.5?r.increasing:r.decreasing}let e=n.mode===s.auto;switch(n.startValue){case c.min:a.value=a.min,e&&(a.status=r.increasing);break;case c.max:a.value=a.max,e&&(a.status=r.decreasing);break;case c.random:default:a.value=Q(a),e&&(a.status=K()>=.5?r.increasing:r.decreasing)}}return a.initialValue=a.value,a}function eO(e,t){if(e.mode!==l.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/O*t.width,y:e.y/O*t.height}:{width:e.width/O*t.width,height:e.height/O*t.height}}function eM(e,t,i,n,s){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*s.factor,l=t.min,c=t.max,h=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),!((t.delayTime??0)>
10)||!(t.time<(t.delayTime??0))){switch(t.status){case r.increasing:t.value>=c?(i?t.status=r.decreasing:t.value-=c,t.loops||(t.loops=0),t.loops++):t.value+=o;break;case r.decreasing:t.value<=l?(i?t.status=r.increasing:t.value+=c,t.loops||(t.loops=0),t.loops++):t.value-=o}t.velocity&&1!==h&&(t.velocity*=h);var u=t.value;switch(n){case a.max:u>=c&&e.destroy();break;case a.min:u<=l&&e.destroy()}e.destroyed||(t.value=J(t.value,l,c))}}let eA=function(e){let t=new Map;return(...i)=>{let n=JSON.stringify(i);if(t.has(n))return t.get(n);let s=e(...i);return t.set(n,s),s}}(function(e){let t=document.createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let n=i[e];t.setProperty(e,n)}return t});function eD(e,t,i,n=!0){if(!t)return;let s=B(t)?{value:t}:t;if(B(s.value))return function e(t,i,n,s=!0){if(!i)return;let r=B(i)?{value:i}:i;if(B(r.value))return r.value===I?eV():function(e,t){if(t){for(let i of e.colorManagers.values())if(t.startsWith(i.stringPrefix))return i.parseString(t)}}(t,r.value);if(W(r.value))return e(t,{value:eg(r.value,n,s)});for(let e of t.colorManagers.values()){let t=e.handleColor(r);if(t)return t}}(e,s.value,i,n);if(W(s.value))return eD(e,{value:eg(s.value,i,n)});for(let t of e.colorManagers.values()){let e=t.handleRangeColor(s);if(e)return e}}function eI(e,t,i,n=!0){let s=eD(e,t,i,n);return s?eL(s):void 0}function eL(e){let t=e.r/255,i=e.g/255,n=e.b/255,s=Math.max(t,i,n),r=Math.min(t,i,n),a={h:0,l:(s+r)*.5,s:0};return s!==r&&(a.s=a.l<.5?(s-r)/(s+r):(s-r)/(2-s-r),a.h=t===s?(i-n)/(s-r):a.h=i===s?2+(n-t)/(s-r):4+(t-i)/(s-r)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a.h>=360&&(a.h-=360),a}function ej(e){let t=(e.h%360+360)%360,i=Math.max(0,Math.min(100,e.s)),n=Math.max(0,Math.min(100,e.l)),s=t/360,r=i/100,a=n/100;if(0===i){let e=Math.round(255*a);return{r:e,g:e,b:e}}let o=(e,t,i)=>(i<0&&i++,i>1&&i--,6*i<1)?e+(t-e)*6*i:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e,l=a<.5?a*(1+r):a+r-a*r,c=2*a-l,h=Math.min(255,255*o(c,l,s+.3333333333333333));return{r:Math.round(h),g:Math.round(Math.min(255,255*o(c,l,s))),b:Math.round(Math.min(255,255*o(c,l,s-.3333333333333333)))}}function ez(e){let t=ej(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function eV(e){let t=e??0;return{b:Math.floor(Q(en(t,256))),g:Math.floor(Q(en(t,256))),r:Math.floor(Q(en(t,256)))}}function eN(e,t){return`rgba(${e.r}, ${e.g}, ${e.b}, ${t??1})`}function eF(e,t){return`hsla(${e.h}, ${e.s}%, ${e.l}%, ${t??1})`}function eB(e,t,i,n){let s=e,r=t;return void 0===s.r&&(s=ej(e)),void 0===r.r&&(r=ej(t)),{b:Z(s.b,r.b,i,n),g:Z(s.g,r.g,i,n),r:Z(s.r,r.r,i,n)}}function eU(e,t,i){if(i===I)return eV();if("mid"!==i)return i;{let i=e.getFillColor()??e.getStrokeColor(),n=t?.getFillColor()??t?.getStrokeColor();if(i&&n&&t)return eB(i,n,e.getRadius(),t.getRadius());{let e=i??n;if(e)return ej(e)}}}function eH(e,t,i,n){let s=B(t)?t:t.value;return s===I?n?eD(e,{value:s}):i?I:"mid":"mid"===s?"mid":eD(e,{value:s})}function eW(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function eq(e,t,i){let n={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(eG(n.h,t.h,i),eG(n.s,t.s,i),eG(n.l,t.l,i)),n}function eG(e,t,i){e.enable=t.enable,e.enable?(e.velocity=ee(t.speed)/O*i,e.decay=1-ee(t.decay),e.status=r.increasing,e.loops=0,e.maxLoops=ee(t.count),e.time=0,e.delayTime=ee(t.delay)*M,t.sync||(e.velocity*=K(),e.value*=K()),e.initialValue=e.value,e.offset=en(t.offset)):e.velocity=0}function e$(e,t,i,n){if(!e||!e.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+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?Q(e.offset):0,a=(e.velocity??0)*n.factor+3.6*s,o=e.decay??1,l=ei(t),c=et(t);i&&e.status!==r.increasing?(e.value-=a,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status=r.increasing)):(e.value+=a,e.value>l&&(e.loops||(e.loops=0),e.loops++,i?e.status=r.decreasing:e.value-=l)),e.velocity&&1!==o&&(e.velocity*=o),e.value=J(e.value,c,l)}function eX(e,t){if(!e)return;let{h:i,s:n,l:s}=e;i&&e$(i,{min:0,max:360},!1,t),n&&e$(n,{min:0,max:100},!0,t),s&&e$(s,{min:0,max:100},!0,t)}function eY(e,t,i){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.closePath()}function eK(e,t){e.clearRect(A.x,A.y,t.width,t.height)}function eJ(e,t,i=!1){if(!t||!e)return;let n=e.style;if(!n)return;let s=new Set;for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&s.add(n[e]);for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&s.add(t[e]);for(let e of s){let s=t.getPropertyValue(e);s?n.setProperty(e,s,i?"important":""):n.removeProperty(e)}}!function(e){e.darken="darken",e.enlighten="enlighten"}(h||(h={}));class eZ{constructor(e,t){this.container=e,this._applyPostDrawUpdaters=e=>{for(let t of this._postDrawUpdaters)t.afterDraw?.(e)},this._applyPreDrawUpdaters=(e,t,i,n,s,r)=>{for(let a of this._preDrawUpdaters){if(a.getColorStyles){let{fill:r,stroke:o}=a.getColorStyles(t,e,i,n);r&&(s.fill=r),o&&(s.stroke=o)}if(a.getTransformValues){let e=a.getTransformValues(t);for(let t in e)!function(e,t,i){let n=t[i];void 0!==n&&(e[i]=(e[i]??1)*n)}(r,e,t)}a.beforeDraw?.(t)}},this._applyResizePlugins=()=>{for(let e of this._resizePlugins)e.resize?.()},this._getPluginParticleColors=e=>{let t,i;for(let n of this._colorPlugins)if(!t&&n.particleFillColor&&(t=eI(this._engine,n.particleFillColor(e))),!i&&n.particleStrokeColor&&(i=eI(this._engine,n.particleStrokeColor(e))),t&&i)break;return[t,i]},this._initCover=async()=>{let e=this.container.actualOptions.backgroundMask.cover,t=e.color;if(t){let i=eD(this._engine,t);if(i){let t={...i,a:e.opacity};this._coverColorStyle=eN(t,t.a)}}else await new Promise((t,i)=>{if(!e.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._coverImage={image:n,opacity:e.opacity},t()}),n.addEventListener("error",e=>{i(e.error)}),n.src=e.image})},this._initStyle=()=>{let e=this.element,t=this.container.actualOptions;if(e)for(let i in this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle(),t.style){if(!i||!t.style||!Object.prototype.hasOwnProperty.call(t.style,i))continue;let n=t.style[i];n&&e.style.setProperty(i,n,"important")}}
1,this._initTrail=async()=>{let e=this.container.actualOptions.particles.move.trail,t=e.fill;if(!e.enable)return;let i=1/e.length;if(t.color){let e=eD(this._engine,t.color);if(!e)return;this._trailFill={color:{...e},opacity:i}}else await new Promise((e,n)=>{if(!t.image)return;let s=document.createElement("img");s.addEventListener("load",()=>{this._trailFill={image:s,opacity:i},e()}),s.addEventListener("error",e=>{n(e.error)}),s.src=t.image})},this._paintBase=e=>{this.draw(t=>(function(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(A.x,A.y,t.width,t.height)})(t,this.size,e))},this._paintImage=(e,t)=>{this.draw(i=>(function(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,A.x,A.y,t.width,t.height),e.globalAlpha=1)})(i,this.size,e,t))},this._repairStyle=()=>{let e=this.element;e&&(this._safeMutationObserver(e=>e.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(t=>{e&&e instanceof Node&&t.observe(e,{attributes:!0})}))},this._resetOriginalStyle=()=>{let e=this.element,t=this._originalStyle;e&&t&&eJ(e,t,!0)},this._safeMutationObserver=e=>{this._mutationObserver&&e(this._mutationObserver)},this._setFullScreenStyle=()=>{let e=this.element;e&&eJ(e,eA(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=t,this._standardSize={height:0,width:0};let i=e.retina.pixelRatio,n=this._standardSize;this.size={height:n.height*i,width:n.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let e=this.container.actualOptions,t=e.particles.move.trail,i=this._trailFill;e.backgroundMask.enable?this.paint():t.enable&&t.length>0&&i?i.color?this._paintBase(eN(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):e.clear&&this.draw(e=>{eK(e,this.size)})}destroy(){if(this.stop(),this._generated){let e=this.element;e?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){let t=this._context;if(t)return e(t)}drawAsync(e){let t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;let i=e.getRadius();if(i<=0)return;let n=e.getFillColor(),s=e.getStrokeColor()??n,[r,a]=this._getPluginParticleColors(e);r||(r=n),a||(a=s),(r||a)&&this.draw(n=>{let s=this.container,o=s.actualOptions,l=e.options.zIndex,c=1-e.zIndexFactor,h=c**l.opacityRate,u=e.bubble.opacity??e.opacity?.value??1,d=e.strokeOpacity??u,p=u*h,f={},m={fill:r?eF(r,p):void 0};m.stroke=a?eF(a,d*h):m.fill,this._applyPreDrawUpdaters(n,e,i,p,m,f),function(e){let{container:t,context:i,particle:n,delta:s,colorStyles:r,backgroundMask:a,composite:o,radius:l,opacity:c,shadow:h,transform:u}=e,d=n.getPosition(),p=n.rotation+(n.pathRotation?n.velocity.angle:0),f={sin:Math.sin(p),cos:Math.cos(p)},m=!!p,g={a:f.cos*(u.a??D.a),b:m?f.sin*(u.b??1):u.b??D.b,c:m?-f.sin*(u.c??1):u.c??D.c,d:f.cos*(u.d??D.d)};i.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),a&&(i.globalCompositeOperation=o);let v=n.shadowColor;h.enable&&v&&(i.shadowBlur=h.blur,i.shadowColor=eN(v),i.shadowOffsetX=h.offset.x,i.shadowOffsetY=h.offset.y),r.fill&&(i.fillStyle=r.fill);let y=n.strokeWidth??0;i.lineWidth=y,r.stroke&&(i.strokeStyle=r.stroke);let b={container:t,context:i,particle:n,radius:l,opacity:c,delta:s,transformData:g,strokeWidth:y};(function(e){let{container:t,context:i,particle:n,radius:s,opacity:r,delta:a,strokeWidth:o,transformData:l}=e;if(!n.shape)return;let c=t.shapeDrawers.get(n.shape);c&&(i.beginPath(),c.draw({context:i,particle:n,radius:s,opacity:r,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...l}}),n.shapeClose&&i.closePath(),o>0&&i.stroke(),n.shapeFill&&i.fill())})(b),function(e){let{container:t,context:i,particle:n,radius:s,opacity:r,delta:a,transformData:o}=e;if(!n.shape)return;let l=t.shapeDrawers.get(n.shape);l?.afterDraw&&l.afterDraw({context:i,particle:n,radius:s,opacity:r,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...o}})}(b),function(e){let{container:t,context:i,particle:n,radius:s,opacity:r,delta:a,transformData:o}=e;if(!n.effect)return;let l=t.effectDrawers.get(n.effect);l&&l.draw({context:i,particle:n,radius:s,opacity:r,delta:a,pixelRatio:t.retina.pixelRatio,transformData:{...o}})}(b),i.globalCompositeOperation="source-over",i.resetTransform()}({container:s,context:n,particle:e,delta:t,colorStyles:m,backgroundMask:o.backgroundMask.enable,composite:o.backgroundMask.composite,radius:i*c**l.sizeRate,opacity:p,shadow:e.options.shadow,transform:f}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,i){this.draw(n=>
1{e.drawParticle&&e.drawParticle(n,t,i)})}drawPlugin(e,t){this.draw(i=>{e.draw&&e.draw(i,t)})}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=function(e){if(!ed()&&"undefined"!=typeof MutationObserver)return new MutationObserver(e)}(e=>{for(let t of e)"attributes"===t.type&&"style"===t.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){ec.error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let e=this.container.actualOptions.background,t=this.element;if(!t)return;let i=t.style;if(i){if(e.color){let t=eD(this._engine,e.color);i.backgroundColor=t?eN(t,e.opacity):""}else i.backgroundColor="";i.backgroundImage=e.image||"",i.backgroundPosition=e.position||"",i.backgroundRepeat=e.repeat||"",i.backgroundSize=e.size||""}}initPlugins(){for(let e of(this._resizePlugins=[],this.container.plugins.values()))e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){for(let e of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&S in e.dataset?"true"===e.dataset[S]:this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=function(e){let t=document.createElement("div").style;if(!e)return t;for(let i in e){let n=e[i];if(!Object.prototype.hasOwnProperty.call(e,i)||q(n))continue;let s=e.getPropertyValue?.(n);if(!s)continue;let r=e.getPropertyPriority?.(n);r?t.setProperty?.(n,s,r):t.setProperty?.(n,s)}return t}(this.element.style);let t=this._standardSize;t.height=e.offsetHeight,t.width=e.offsetWidth;let i=this.container.retina.pixelRatio,n=this.size;e.height=n.height=t.height*i,e.width=n.width=t.width*i,this._context=this.element.getContext("2d"),this._safeMutationObserver(e=>
1e.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(e=>{this.element&&this.element instanceof Node&&e.observe(this.element,{attributes:!0})})}paint(){let e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(eK(t,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let e=this.container,t=e.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},n=e.retina.pixelRatio,s={width:i.width*n,height:i.height*n};if(i.height===t.height&&i.width===t.width&&s.height===this.element.height&&s.width===this.element.width)return!1;let r={...t};t.height=i.height,t.width=i.width;let a=this.size;return this.element.width=a.width=s.width,this.element.height=a.height=s.height,this.container.started&&e.particles.setResizeFactor({width:t.width/r.width,height:t.height/r.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>eK(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;let e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}function eQ(e,t,i,n,s){if(n){let n={passive:!0};F(s)?n.capture=s:void 0!==s&&(n=s),e.addEventListener(t,i,n)}else e.removeEventListener(t,i,s)}!function(e){e.canvas="canvas",e.parent="parent",e.window="window"}(u||(u={}));class e0{constructor(e){this.container=e,this._doMouseTouchClick=e=>{let t=this.container,i=t.actualOptions;if(this._canPush){let e=t.interactivity.mouse,n=e.position;if(!n)return;e.clickPosition={...n},e.clickTime=new Date().getTime(),eR(i.interactivity.events.onClick.mode,e=>this.container.handleClickMode(e))}"touchend"===e.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=e=>{let t=this.container,i=t.options,n=i.defaultThemes,s=e.matches?n.dark:n.light,r=i.themes.find(e=>e.name===s);r?.default.auto&&t.loadTheme(s)},this._handleVisibilityChange=()=>{let e=this.container,t=e.actualOptions;this._mouseTouchFinish(),t.pauseOnBlur&&(document?.hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let e=async()=>{let e=this.container.canvas;await e?.windowResize()};this._resizeTimeout=setTimeout(()=>void e(),this.container.actualOptions.interactivity.events.resize.delay*M)},this._manageInteractivityListeners=(e,t)=>{let i=this._handlers,n=this.container,s=n.actualOptions,r=n.interactivity.element;if(!r)return;let a=n.canvas.element;a&&(a.style.pointerEvents=r===a?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(eQ(r,T,i.mouseMove,t),eQ(r,"touchstart",i.touchStart,t),eQ(r,"touchmove",i.touchMove,t),s.interactivity.events.onClick.enable?(eQ(r,C,i.touchEndClick,t),eQ(r,"pointerup",i.mouseUp,t),eQ(r,"pointerdown",i.mouseDown,t)):eQ(r,C,i.touchEnd,t),eQ(r,e,i.mouseLeave,t),eQ(r,"touchcancel",i.touchCancel,t))},this._manageListeners=e=>{let t=this._handlers,i=this.container,n=i.actualOptions.interactivity.detectsOn,s=i.canvas.element,r=R;n===u.window?(i.interactivity.element=window,r="pointerout"):n===u.parent&&s?i.interactivity.element=s.parentElement??s.parentNode:i.interactivity.element=s,this._manageMediaMatch(e),this._manageResize(e),this._manageInteractivityListeners(r,e),document&&eQ(document,"visibilitychange",t.visibilityChange,e,!1)},this._manageMediaMatch=e=>{let t=this._handlers,i=ep("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener)return void eQ(i,"change",t.themeChange,e);void 0!==i.addListener&&(e?i.addListener(t.oldThemeChange):i.removeListener(t.oldThemeChange))}},this._manageResize=e=>{let t=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void eQ(window,"resize",t.resize,e);let n=i.canvas.element;this._resizeObserver&&!e?(n&&this._resizeObserver.unobserve(n),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&e&&n&&(this._resizeObserver=new ResizeObserver(e=>{e.find(e=>e.target===n)&&this._handleWindowResize()}),this._resizeObserver.observe(n))},this._mouseDown=()=>{let{interactivity:e}=this.container;if(!e)return;let{mouse:t}=e;t.clicking=!0,t.downPosition=t.position},this._mouseTouchClick=e=>{let t=this.container,i=t.actualOptions,{mouse:n}
1=t.interactivity;n.inside=!0;let s=!1,r=n.position;if(r&&i.interactivity.events.onClick.enable){for(let e of t.plugins.values())if(e.clickPositionValid&&(s=e.clickPositionValid(r)))break;s||this._doMouseTouchClick(e),n.clicking=!1}},this._mouseTouchFinish=()=>{let e=this.container.interactivity;if(!e)return;let t=e.mouse;delete t.position,delete t.clickPosition,delete t.downPosition,e.status=R,t.inside=!1,t.clicking=!1},this._mouseTouchMove=e=>{let t,i=this.container,n=i.actualOptions,s=i.interactivity,r=i.canvas.element;if(!s?.element)return;if(s.mouse.inside=!0,e.type.startsWith("pointer"))if(this._canPush=!0,s.element===window){if(r){let i=r.getBoundingClientRect();t={x:e.clientX-i.left,y:e.clientY-i.top}}}else if(n.interactivity.detectsOn===u.parent){let i=e.target,n=e.currentTarget;if(i&&n&&r){let s=i.getBoundingClientRect(),a=n.getBoundingClientRect(),o=r.getBoundingClientRect();t={x:e.offsetX+2*s.left-(a.left+o.left),y:e.offsetY+2*s.top-(a.top+o.top)}}else t={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY}}else e.target===r&&(t={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY});else if(this._canPush="touchmove"!==e.type,r){let i=e.touches[e.touches.length-1],n=r.getBoundingClientRect();t={x:i.clientX-(n.left??0),y:i.clientY-(n.top??0)}}let a=i.retina.pixelRatio;t&&(t.x*=a,t.y*=a),s.mouse.position=t,s.status=T},this._touchEnd=e=>{for(let t of Array.from(e.changedTouches))this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=e=>{for(let t of Array.from(e.changedTouches))this._touches.delete(t.identifier);this._mouseTouchClick(e)},this._touchStart=e=>{for(let t of Array.from(e.changedTouches))this._touches.set(t.identifier,performance.now());this._mouseTouchMove(e)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:e=>this._mouseTouchMove(e),mouseUp:e=>this._mouseTouchClick(e),touchStart:e=>this._touchStart(e),touchMove:e=>this._mouseTouchMove(e),touchEnd:e=>this._touchEnd(e),touchCancel:e=>this._touchEnd(e),touchEndClick:e=>this._touchEndClick(e),visibilityChange:()=>this._handleVisibilityChange(),themeChange:e=>this._handleThemeChange(e),oldThemeChange:e=>this._handleThemeChange(e),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}!function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"}(d||(d={}));class e1{constructor(){this.value=""}static create(e,t){let i=new e1;return i.load(e),void 0!==t&&(B(t)||W(t)?i.load({value:t}):i.load(t)),i}load(e){!q(e)&&(q(e.value)||(this.value=e.value))}}class e2{constructor(){this.color=new e1,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){q(e)||(void 0!==e.color&&(this.color=e1.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}class e5{constructor(){this.opacity=1}load(e){q(e)||(void 0!==e.color&&(this.color=e1.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.opacity&&(this.opacity=e.opacity))}}class e3{constructor(){this.composite="destination-out",this.cover=new e5,this.enable=!1}load(e){if(!q(e)){if(void 0!==e.composite&&(this.composite=e.composite),void 0!==e.cover){let t=e.cover,i=B(e.cover)?{color:e.cover}:e.cover;this.cover.load(void 0!==t.color||void 0!==t.image?t:{color:i})}void 0!==e.enable&&(this.enable=e.enable)}}}class e4{constructor(){this.enable=!0,this.zIndex=0}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}class e8{constructor(){this.enable=!1,this.mode=[]}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}!function(e){e.circle="circle",e.rectangle="rectangle"}(p||(p={}));class e6{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=p.circle}load(e){q(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.t
1ype=e.type))}}class e9{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.force&&(this.force=e.force),void 0!==e.smooth&&(this.smooth=e.smooth))}}class e7{constructor(){this.enable=!1,this.mode=[],this.parallax=new e9}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),this.parallax.load(e.parallax))}}class te{constructor(){this.delay=.5,this.enable=!0}load(e){q(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}class tt{constructor(){this.onClick=new e8,this.onDiv=new e6,this.onHover=new e7,this.resize=new te}load(e){if(q(e))return;this.onClick.load(e.onClick);let t=e.onDiv;void 0!==t&&(this.onDiv=eR(t,e=>{let t=new e6;return t.load(e),t})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}class ti{constructor(e,t){this._engine=e,this._container=t}load(e){if(q(e)||!this._container)return;let t=this._engine.interactors.get(this._container);if(t)for(let i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}class tn{constructor(e,t){this.detectsOn=u.window,this.events=new tt,this.modes=new ti(e,t)}load(e){if(q(e))return;let t=e.detectsOn;void 0!==t&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}class ts{load(e){!q(e)&&(e.position&&(this.position={x:e.position.x??50,y:e.position.y??50,mode:e.position.mode??l.percent}),e.options&&(this.options=eb({},e.options)))}}!function(e){e.screen="screen",e.canvas="canvas"}(f||(f={}));class tr{constructor(){this.maxWidth=1/0,this.options={},this.mode=f.canvas}load(e){!q(e)&&(q(e.maxWidth)||(this.maxWidth=e.maxWidth),q(e.mode)||(e.mode===f.screen?this.mode=f.screen:this.mode=f.canvas),q(e.options)||(this.options=eb({},e.options)))}}!function(e){e.any="any",e.dark="dark",e.light="light"}(m||(m={}));class ta{constructor(){this.auto=!1,this.mode=m.any,this.value=!1}load(e){q(e)||(void 0!==e.auto&&(this.auto=e.auto),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}class to{constructor(){this.name="",this.default=new ta}load(e){q(e)||(void 0!==e.name&&(this.name=e.name),this.default.load(e.default),void 0!==e.options&&(this.options=eb({},e.options)))}}class tl{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){q(e)||(void 0!==e.count&&(this.count=en(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=en(e.speed)),void 0!==e.decay&&(this.decay=en(e.decay)),void 0!==e.delay&&(this.delay=en(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class tc extends tl{constructor(){super(),this.mode=s.auto,this.startValue=c.random}load(e){super.load(e),q(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}class th extends tl{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),q(e)||void 0!==e.offset&&(this.offset=en(e.offset))}}class tu{constructor(){this.h=new th,this.s=new th,this.l=new th}load(e){q(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}class td extends e1{constructor(){super(),this.animation=new tu}static create(e,t){let i=new td;return i.load(e),void 0!==t&&(B(t)||W(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),q(e))return;let t=e.animation;void 0!==t&&(void 0!==t.enable?this.animation.h.load(t):this.animation.load(e.animation))}}!function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"}(g||(g={}));class tp{constructor(){this.speed=2}load(e){q(e)||void 0!==e.speed&&(this.speed=e.speed)}}class tf{constructor(){this.enable=!0,this.retries=0}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.retries&&(this.retries=e.retries))}}class tm{constructor(){this.value=0}load(e){!q(e)&&(q(e.value)||(this.value=en(e.value)))}}class tg extends tm{constructor(){super(),this.animation=new tl}load(e){if(super.load(e),q(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class tv extends tg{constructor(){super(),this.animation=new tc}load(e){super.load(e)}}class ty extends tm{constructor(){super(),this.value=1}}class tb{constructor(){this.horizontal=new ty,this.vertical=new ty}load(e){q(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}class tw{constructor(){this.absorb=new tp,this.bounce=new tb,this.enable=!1,this.maxSpeed=50,this.mode=g.bounce,this.overlap=new tf}load(e){q(e)||(this.absorb.load(e.absorb),this.bounce.load(e.bounce),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.maxSpeed&&(this.maxSpeed=en(e.maxSpeed)),void 0!==e.mode&&(this.mode=e.mode),this.overlap.load(e.overlap))}}class tx{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(q(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=eb(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.t
1ype=e.type)}}class t_{constructor(){this.offset=0,this.value=90}load(e){q(e)||(void 0!==e.offset&&(this.offset=en(e.offset)),void 0!==e.value&&(this.value=en(e.value)))}}class tP{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!q(e)&&(void 0!==e.distance&&(this.distance=en(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class tE{constructor(){this.x=50,this.y=50,this.mode=l.percent,this.radius=0}load(e){q(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}class tS{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){q(e)||(void 0!==e.acceleration&&(this.acceleration=en(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=en(e.maxSpeed)))}}class tR{constructor(){this.clamp=!0,this.delay=new tm,this.enable=!1,this.options={}}load(e){!q(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=eb(this.options,e.options)))}}class tT{load(e){q(e)||(void 0!==e.color&&(this.color=e1.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image))}}class tC{constructor(){this.enable=!1,this.length=10,this.fill=new tT}load(e){q(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.fill&&this.fill.load(e.fill),void 0!==e.length&&(this.length=e.length))}}!function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(v||(v={}));class tk{constructor(){this.default=v.out}load(e){q(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}class tO{constructor(){this.acceleration=0,this.enable=!1}load(e){!q(e)&&(void 0!==e.acceleration&&(this.acceleration=en(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=eb({},e.position)))}}class tM{constructor(){this.angle=new t_,this.attract=new tP,this.center=new tE,this.decay=0,this.distance={},this.direction=n.none,this.drift=0,this.enable=!1,this.gravity=new tS,this.path=new tR,this.outModes=new tk,this.random=!1,this.size=!1,this.speed=2,this.spin=new tO,this.straight=!1,this.trail=new tC,this.vibrate=!1,this.warp=!1}load(e){if(q(e))return;this.angle.load(U(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=en(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=U(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=en(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&(H(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=en(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),this.trail.load(e.trail),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}class tA extends tc{constructor(){super(),this.destroy=a.none,this.speed=2}load(e){super.load(e),q(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}class tD extends tv{constructor(){super(),this.animation=new tA,this.value=1}load(e){if(q(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}class tI{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(q(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}!function(e){e.delete="delete",e.wait="wait"}(y||(y={}));class tL{constructor(){this.mode=y.delete,this.value=0}load(e){q(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}class tj{constructor(){this.density=new tI,this.limit=new tL,this.value=0}load(e){q(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}class tz{constructor(){this.blur=0,this.color=new e1,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){q(e)||(void 0!==e.blur&&(this.blur=e.blur),this.color=e1.create(this.color,e.color),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.offset&&(void 0!==e.offset.x&&(this.offset.x=e.offset.x),void 0!==e.offset.y&&(this.offset.y=e.offset.y)))}}class tV{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(q(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=eb(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.t
1ype=e.type)}}class tN extends tc{constructor(){super(),this.destroy=a.none,this.speed=5}load(e){super.load(e),q(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}class tF extends tv{constructor(){super(),this.animation=new tN,this.value=3}load(e){if(super.load(e),q(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class tB{constructor(){this.width=0}load(e){q(e)||(void 0!==e.color&&(this.color=td.create(this.color,e.color)),void 0!==e.width&&(this.width=en(e.width)),void 0!==e.opacity&&(this.opacity=en(e.opacity)))}}class tU extends tm{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),q(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}class tH{constructor(e,t){this._engine=e,this._container=t,this.bounce=new tb,this.collisions=new tw,this.color=new td,this.color.value="#fff",this.effect=new tx,this.groups={},this.move=new tM,this.number=new tj,this.opacity=new tD,this.reduceDuplicates=!1,this.shadow=new tz,this.shape=new tV,this.size=new tF,this.stroke=new tB,this.zIndex=new tU}load(e){if(q(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=eb(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(td.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),void 0!==e.interactivity&&(this.interactivity=eb({},e.interactivity));let t=e.stroke;if(t&&(this.stroke=eR(t,e=>{let t=new tB;return t.load(e),t})),this._container){let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e);let i=this._engine.interactors.get(this._container);if(i)for(let t of i)t.loadParticlesOptions&&t.loadParticlesOptions(this,e)}}}function tW(e,...t){for(let i of t)e.load(i)}function tq(e,t,...i){let n=new tH(e,t);return tW(n,...i),n}class tG{constructor(e,t){this._findDefaultTheme=e=>this.themes.find(t=>t.default.value&&t.default.mode===e)??this.themes.find(e=>e.default.value&&e.default.mode===m.any),this._importPreset=e=>{this.load(this._engine.getPreset(e))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new e2,this.backgroundMask=new e3,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new e4,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new tn(e,t),this.manualParticles=[],this.particles=tq(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if(q(e))return;void 0!==e.preset&&eR(e.preset,e=>this._importPreset(e)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.ke
1y&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=en(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=en(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;F(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(e=>{let t=new ts;return t.load(e),t})),this.particles.load(e.particles),this.style=eb(this.style,e.style),this._engine.loadOptions(this,e),void 0!==e.smooth&&(this.smooth=e.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let t of s)t.loadOptions&&t.loadOptions(this,e);if(void 0!==e.responsive)for(let t of e.responsive){let e=new tr;e.load(t),this.responsive.push(e)}if(this.responsive.sort((e,t)=>e.maxWidth-t.maxWidth),void 0!==e.themes)for(let t of e.themes){let e=this.themes.find(e=>e.name===t.name);if(e)e.load(t);else{let e=new to;e.load(t),this.themes.push(e)}}this.defaultThemes.dark=this._findDefaultTheme(m.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(m.light)?.name}setResponsive(e,t,i){this.load(i);let n=this.responsive.find(i=>i.mode===f.screen&&screen?i.maxWidth>screen.availWidth:i.maxWidth*t>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){let t=this.themes.find(t=>t.name===e);t&&this.load(t.options)}else{let e=ep("(prefers-color-scheme: dark)"),t=e?.matches,i=this._findDefaultTheme(t?m.dark:m.light);i&&this.load(i.options)}}}!function(e){e.external="external",e.particles="particles"}(b||(b={}));class t${constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(let t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(let t of this._externalInteractors)t.handleClickMode?.(e)}
1async init(){for(let e of(this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(e.type){case b.external:this._externalInteractors.push(e);break;case b.particles:this._particleInteractors.push(e)}e.init()}}particlesInteract(e,t){for(let i of this._externalInteractors)i.clear(e,t);for(let i of this._particleInteractors)i.isEnabled(e)&&i.interact(e,t)}reset(e){for(let t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(let t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}function tX(e){if(!ef(e.outMode,e.checkModes))return;let t=2*e.radius;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord<t&&e.setCb(e.radius)}!function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(w||(w={}));class tY{constructor(e,t){this.container=t,this._calcPosition=(e,t,i,n=N)=>{for(let n of e.plugins.values()){let e=void 0!==n.particlePosition?n.particlePosition(t,this):void 0;if(e)return G.create(e.x,e.y,i)}let s=function(e){return{x:e.position?.x??K()*e.size.width,y:e.position?.y??K()*e.size.height}}({size:e.canvas.size,position:t}),r=G.create(s.x,s.y,i),a=this.getRadius(),o=this.options.move.outModes,l=t=>{tX({outMode:t,checkModes:[v.bounce],coord:r.x,maxCoord:e.canvas.size.width,setCb:e=>r.x+=e,radius:a})},c=t=>{tX({outMode:t,checkModes:[v.bounce],coord:r.y,maxCoord:e.canvas.size.height,setCb:e=>r.y+=e,radius:a})};return(l(o.left??o.default),l(o.right??o.default),c(o.top??o.default),c(o.bottom??o.default),this._checkOverlap(r,n))?this._calcPosition(e,void 0,i,n+1):r},this._calculateVelocity=()=>{let e=(function(e){let t=$.origin;return t.length=1,t.angle=e,t})(this.direction).copy(),t=this.options.move;if(t.direction===n.inside||t.direction===n.outside)return e;let i=ea(ee(t.angle.value)),s=ea(ee(t.angle.offset)),r={left:s-.5*i,right:s+.5*i};return t.straight||(e.angle+=Q(en(r.left,r.right))),t.random&&"number"==typeof t.speed&&(e.length*=K()),e},this._checkOverlap=(e,t=N)=>{let i=this.options.collisions,n=this.getRadius();if(!i.enable)return!1;let s=i.overlap;if(s.enable)return!1;let r=s.retries;if(r>=0&&t>r)throw Error(`${k} particle is overlapping and can't be placed`);return!!this.container.particles.find(t=>er(e,t.position)<n+t.getRadius())},this._getRollColor=e=>{if(!e||!this.roll||!this.backColor&&!this.roll.alter)return e;let t=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?.5*Math.PI:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/t))%2?this.backColor?this.backColor:this.roll.alter?function(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===h.darken?-1:1)*i}}(e,this.roll.alter.type,this.roll.alter.value):e:e},this._initPosition=e=>{let t=this.container,i=ee(this.options.zIndex.value);
1this.position=this._calcPosition(t,e,J(i,0,t.zLayers)),this.initialPosition=this.position.copy();let s=t.canvas.size;switch(this.moveCenter={...eO(this.options.move.center,s),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??l.percent},this.direction=function(e,t,i){if(U(e))return ea(e);switch(e){case n.top:return-(.5*Math.PI);case n.topRight:return-(.25*Math.PI);case n.right:return 0;case n.bottomRight:return .25*Math.PI;case n.bottom:return .5*Math.PI;case n.bottomLeft:return .75*Math.PI;case n.left:return Math.PI;case n.topLeft:return-(.75*Math.PI);case n.inside:return Math.atan2(i.y-t.y,i.x-t.x);case n.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return K()*L}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case n.inside:this.outType=w.inside;break;case n.outside:this.outType=w.outside}this.offset=$.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let t=this.container,i=this.pathGenerator,n=t.shapeDrawers.get(this.shape);for(let i of(n?.particleDestroy?.(this),t.plugins.values()))i.particleDestroyed?.(this,e);for(let i of t.particles.updaters)i.particleDestroyed?.(this,e);i?.reset(this),this._engine.dispatchEvent(d.particleDestroyed,{container:this.container,data:{particle:this}})}draw(e){let t=this.container,i=t.canvas;for(let n of t.plugins.values())i.drawParticlePlugin(n,this,e);i.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??eW(this.color))}getMass(){return this.getRadius()**2*Math.PI*.5}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??eW(this.strokeColor))}init(e,t,i,n){let s=this.container,r=this._engine;this.id=e,this.group=n,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=w.normal,this.ignoresResizeRatio=!0;let a=s.retina.pixelRatio,o=s.actualOptions,l=tq(this._engine,s,o.particles),{reduceDuplicates:c}=l,h=l.effect.type,u=l.shape.type;this.effect=eT(h,this.id,c),this.shape=eT(u,this.id,c);let d=l.effect,p=l.shape;if(i){if(i.effect?.type){let e=eT(i.effect.type,this.id,c);e&&(this.effect=e,d.load(i.effect))}if(i.shape?.type){let e=eT(i.shape.type,this.id,c);e&&(this.shape=e,p.load(i.shape))}}if(this.effect===I){let e=[...this.container.effectDrawers.keys()];this.effect=e[Math.floor(Math.random()*e.length)]}if(this.shape===I){let e=[...this.container.shapeDrawers.keys()];this.shape=e[Math.floor(Math.random()*e.length)]}this.effectData=function(e,t,i,n){let s=t.options[e];if(s)return eb({close:t.close,fill:t.fill},eT(s,i,n))}(this.effect,d,this.id,c),this.shapeData=function(e,t,i,n){let s=t.options[e];if(s)return eb({close:t.close,fill:t.fill},eT(s,i,n))}(this.shape,p,this.id,c),l.load(i);let f=this.effectData;f&&l.load(f.particles);let m=this.shapeData;m&&l.load(m.particles);let g=new tn(r,s);g.load(s.actualOptions.interactivity),g.load(l.interactivity),this.interactivity=g,this.effectFill=f?.fill??l.effect.fill,this.effectClose=f?.close??l.effect.close,this.shapeFill=m?.fill??l.shape.fill,this.shapeClose=m?.close??l.shape.close,this.options=l;let v=this.options.move.path;this.pathDelay=ee(v.delay.value)*M,v.generator&&(this.pathGenerator=this._engine.getPathGenerator(v.generator),this.pathGenerator&&s.addPath(v.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=ek(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-ee(this.options.move.decay);let y=s.particles;y.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let b=s.effectDrawers.get(this.effect);!b&&(b=this._engine.getEffectDrawer(this.effect))&&s.effectDrawers.set(this.effect,b),b?.loadEffect&&b.loadEffect(this);let x=s.shapeDrawers.get(this.shape);!x&&(x=this._engine.getShapeDrawer(this.shape))&&s.shapeDrawers.set(this.shape,x),x?.loadShape&&x.loadShape(this);let _=x?.getSidesCount;for(let e of(_&&(this.sides=_(this)),this.spawning=!1,this.shadowColor=eD(this._engine,this.options.shadow.color),y.updaters))e.init(this);for(let e of y.movers)e.init?.(this);for(let e of(b?.particleInit?.(s,this),x?.particleInit?.(s,this),s.plugins.values())
1)e.particleCreated?.(this)}isInsideCanvas(){let e=this.getRadius(),t=this.container.canvas.size,i=this.position;return i.x>=-e&&i.y>=-e&&i.y<=t.height+e&&i.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let e of this.container.particles.updaters)e.reset?.(this)}}class tK{constructor(e,t){this.position=e,this.particle=t}}!function(e){e.circle="circle",e.rectangle="rectangle"}(x||(x={}));class tJ{constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class tZ extends tJ{constructor(e,t,i){super(e,t,x.circle),this.radius=i}contains(e){return er(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,n={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof tZ||e.type===x.circle)return s+e.radius>Math.sqrt(n.x**2+n.y**2);if(e instanceof tQ||e.type===x.rectangle){let{width:t,height:i}=e.size;return Math.pow(n.x-t,2)+Math.pow(n.y-i,2)<=s**2||n.x<=s+t&&n.y<=s+i||n.x<=t||n.y<=i}return!1}}class tQ extends tJ{constructor(e,t,i,n){super(e,t,x.rectangle),this.size={height:n,width:i}}contains(e){let t=this.size.width,i=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+i}intersects(e){if(e instanceof tZ)return e.intersects(this);let t=this.size.width,i=this.size.height,n=this.position,s=e.position,r=e instanceof tQ?e.size:{width:0,height:0},a=r.width,o=r.height;return s.x<n.x+t&&s.x+a>n.x&&s.y<n.y+i&&s.y+o>n.y}}class t0{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{let{x:e,y:t}=this.rectangle.position,{width:i,height:n}=this.rectangle.size,{capacity:s}=this;for(let r=0;r<4;r++){let a=r%2;this._subs.push(new t0(new tQ(e+.5*i*a,t+.5*n*(Math.round(.5*r)-a),.5*i,.5*n),s))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return!!this.rectangle.contains(e.position)&&(this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(t=>t.insert(e))))}query(e,t){let i=[];if(!e.intersects(this.rectangle))return[];for(let n of this._points)!e.contains(n.position)&&er(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||i.push(n.particle);if(this._divided)for(let n of this._subs)i.push(...n.query(e,t));return i}queryCircle(e,t,i){return this.query(new tZ(e.x,e.y,t),i)}queryRectangle(e,t,i){return this.query(new tQ(e.x,e.y,t.width,t.height),i)}}let t1=e=>{let{height:t,width:i}=e;return new tQ(-.25*i,-.25*t,1.5*i,1.5*t)};class t2{constructor(e,t){this._addToPool=(...e)=>{this._pool.push(...e)},this._applyDensity=(e,t,i)=>{let n=e.number;if(!e.number.density?.enable)return void(void 0===i?this._limit=n.limit.value:n.limit&&this._groupLimits.set(i,n.limit.value));let s=this._initDensityFactor(n.density),r=n.value,a=n.limit.value>0?n.limit.value:r,o=Math.min(r,a)*s+t,l=Math.min(this.count,this.filter(e=>e.group===i).length);void 0===i?this._limit=n.limit.value*s:this._groupLimits.set(i,n.limit.value*s),l<o?this.push(Math.abs(o-l),void 0,e,i):l>o&&this.removeQuantity(l-o,i)},this._initDensityFactor=e=>{let t=this._container;if(!t.canvas.element||!e.enable)return 1;let i=t.canvas.element,n=t.retina.pixelRatio;return i.width*i.height/(e.height*e.width*n**2)},this._pushParticle=(e,t,i,n)=>{try{let s=this._pool.pop();s||(s=new tY(this._engine,this._container)),s.init(this._nextId,e,t,i);let r=!0;if(n&&(r=n(s)),!r)return;return this._array.push(s),this._zArray.push(s),this._nextId++,this._engine.dispatchEvent(d.particleAdded,{container:this._container,data:{particle:s}}),s}catch(e){ec.warning(`${k} adding particle: ${e}`)}},this._removeParticle=(e,t,i)=>{let n=this._array[e];if(!n||n.group!==t)return!1;let s=this._zArray.indexOf(n);return this._array.splice(e,1),this._zArray.splice(s,1),n.destroy(i),this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:n}}),this._addToPool(n),!0},this._engine=e,this._container=t,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new t$(e,t),this._pluginsInitialized=!1;let i=t.canvas.size;this.quadTree=new t0(t1(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}
1addManualParticles(){let e=this._container;e.actualOptions.manualParticles.forEach(t=>this.addParticle(t.position?eO(t.position,e.canvas.size):void 0,t.options))}addParticle(e,t,i,n){let s=this._container.actualOptions.particles.number.limit.mode,r=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(r>0)switch(s){case y.delete:{let e=a+1-r;e>0&&this.removeQuantity(e);break}case y.wait:if(a>=r)return}return this._pushParticle(e,t,i,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){let t=this._container,i=t.canvas;for(let n of(i.clear(),this.update(e),t.plugins.values()))i.drawPlugin(n,e);for(let t of this._zArray)t.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){let e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(let t of e.plugins.values())if(i=t.particlesInitialization?.()??i)break;if(this.addManualParticles(),!i){let e=t.particles,i=e.groups;for(let t in i){let n=i[t];for(let i=this.count,s=0;s<n.number?.value&&i<e.number.value;i++,s++)this.addParticle(void 0,n,t)}for(let t=this.count;t<e.number.value;t++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let e=this._container;for(let t of(this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init(),e.pathGenerators.values()))t.init(e)}push(e,t,i,n){for(let s=0;s<e;s++)this.addParticle(t?.position,i,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,i){this.removeAt(this._array.indexOf(e),void 0,t,i)}removeAt(e,t=1,i,n){if(e<0||e>this.count)return;let s=0;for(let r=e;s<t&&r<this.count;r++)this._removeParticle(r,i,n)&&(r--,s++)}removeQuantity(e,t){this.removeAt(0,e,t)}setDensity(){let e=this._container.actualOptions,t=e.particles.groups;for(let e in t)this._applyDensity(t[e],0,e);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){let t=this._container,i=new Set;for(let e of(this.quadTree=new t0(t1(t.canvas.size),4),t.pathGenerators.values()))e.update();for(let i of t.plugins.values())i.update?.(e);let n=this._resizeFactor;for(let t of this._array){for(let i of(n&&!t.ignoresResizeRatio&&(t.position.x*=n.width,t.position.y*=n.height,t.initialPosition.x*=n.width,t.initialPosition.y*=n.height),t.ignoresResizeRatio=!1,this._interactionManager.reset(t),this._container.plugins.values())){if(t.destroyed)break;i.particleUpdate?.(t,e)}for(let i of this.movers)i.isEnabled(t)&&i.move(t,e);if(t.destroyed){i.add(t);continue}this.quadTree.insert(new tK(t.getPosition(),t))}if(i.size){let e=e=>!i.has(e);for(let t of(this._array=this.filter(e),this._zArray=this._zArray.filter(e),i))this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...i)}for(let t of(this._interactionManager.externalInteract(e),this._array)){for(let i of this.updaters)i.update(t,e);t.destroyed||t.spawning||this._interactionManager.particlesInteract(t,e)}if(delete this._resizeFactor,this._needsSort){let e=this._zArray;e.sort((e,t)=>t.position.z-e.position.z||e.id-t.id),this._lastZIndex=e[e.length-1].position.z,this._needsSort=!1}}}class t5{constructor(e){this.container=e,this.pixelRatio=1,this.reduceFactor=1}init(){let e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||ed()?1:window.devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio,n=e.canvas;if(n.element){let e=n.element;n.size.width=e.offsetWidth*i,n.size.height=e.offsetHeight*i}let s=t.particles,r=s.move;this.maxSpeed=ee(r.gravity.maxSpeed)*i,this.sizeAnimationSpeed=ee(s.size.animation.speed)*i}initParticle(e){let t=e.options,i=this.pixelRatio,n=t.move,s=n.distance,r=e.retina;r.moveDrift=ee(n.drift)*i,r.moveSpeed=ee(n.speed)*i,r.sizeAnimationSpeed=ee(t.size.animation.speed)*i;let a=r.maxDistance;a.horizontal=void 0!==s.horizontal?s.horizontal*i:void 0,a.vertical=void 0!==s.vertical?s.vertical*i:void 0,r.maxSpeed=ee(n.gravity.maxSpeed)*i}}function t3(e){return e&&!e.destroyed}function t4(e,t,...i){let n=new tG(e,t);return tW(n,...i),n}class t8{constructor(e,t,i){this._intersectionManager=e=>{if(t3(this)&&this.actualOptions.pauseOnOutsideViewport)for(let t of e)t.target===this.interactivity.element&&(t.isIntersecting?this.play():this.pause())},this._nextFrame=e=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&e<this._lastFrameTime+M/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=e;let t=function(e,t=60,i=!1){return{value:e,factor:i?60/t:60*e/M}}(e-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(t.value),this._lastFrameTime=e,t.value>M)return void this.draw(!1);if(this.particles.draw(t),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){ec.error(`${k} in animation loop`,e)}},this._engine=e,this.id=Symbol(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._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new t5(this),this.canvas=new eZ(this,this._engine),this.particles=new t2(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=t4(this._engine,this),this.actualOptions=t4(this._engine,this),this._eventListeners=new e0(this),this._intersectionObserver=function(e){if(!ed()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}(e=>this._intersectionManager(e)),this._engine.dispatchEvent(d.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&t3(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!t3(this))return;let t=this.interactivity.element;if(!t)return;let i=(t,i,n)=>{if(!t3(this))return;let s=this.retina.pixelRatio,r={x:i.x*s,y:i.y*s};e(t,this.particles.quadTree.queryCircle(r,n*s))},n=e=>{if(!t3(this))return;let t={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(e,t,1)},s=()=>{t3(this)&&(l=!0,c=!1)},r=()=>{t3(this)&&(c=!0)},a=e=>{if(t3(this)){if(l&&!c){let t=e.touches[e.touches.length-1];if(!t&&!(t=e.changedTouches[e.changedTouches.length-1]))return;let n=this.canvas.element,s=n?n.getBoundingClientRect():void 0;i(e,{x:t.clientX-(s?s.left:0),y:t.clientY-(s?s.top:0)}
1,Math.max(t.radiusX,t.radiusY))}l=!1,c=!1}},o=()=>{t3(this)&&(l=!1,c=!1)},l=!1,c=!1;for(let[e,i]of(this._clickHandlers.set("click",n),this._clickHandlers.set("touchstart",s),this._clickHandlers.set("touchmove",r),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",o),this._clickHandlers))t.addEventListener(e,i)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,i=!1){return!(!t3(this)||!i&&this.pathGenerators.has(e))&&(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(t3(this)){for(let[e,t]of this._clickHandlers)this.interactivity.element?.removeEventListener(e,t);this._clickHandlers.clear()}}destroy(e=!0){if(t3(this)){for(let e of(this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy(),this.effectDrawers.values()))e.destroy?.(this);for(let e of this.shapeDrawers.values())e.destroy?.(this);for(let e of this.effectDrawers.keys())this.effectDrawers.delete(e);for(let e of this.shapeDrawers.keys())this.shapeDrawers.delete(e);if(this._engine.clearPlugins(this),this.destroyed=!0,e){let e=this._engine.items,t=e.findIndex(e=>e===this);t>=0&&e.splice(t,1)}this._engine.dispatchEvent(d.containerDestroyed,{container:this})}}draw(e){var t;if(!t3(this))return;let i=e,n=e=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(e)};this._drawAnimationFrame=(t=e=>n(e),Y.nextFrame(t))}async export(e,t={}){for(let i of this.plugins.values()){if(!i.export)continue;let n=await i.export(e,t);if(n.supported)return n.blob}ec.error(`${k} - Export plugin with type ${e} not found`)}handleClickMode(e){if(t3(this))for(let t of(this.particles.handleClickMode(e),this.plugins.values()))t.handleClickMode?.(e)}
1async init(){if(!t3(this))return;for(let e of this._engine.getSupportedEffects()){let t=this._engine.getEffectDrawer(e);t&&this.effectDrawers.set(e,t)}for(let e of this._engine.getSupportedShapes()){let t=this._engine.getShapeDrawer(e);t&&this.shapeDrawers.set(e,t)}for(let[e,t]of(await this.particles.initPlugins(),this._options=t4(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=t4(this._engine,this,this._options),await this._engine.getAvailablePlugins(this)))this.plugins.set(e,t);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:e,duration:t,delay:i,fpsLimit:n,smooth:s}=this.actualOptions;for(let r of(this.zLayers=e,this._duration=ee(t)*M,this._delay=ee(i)*M,this._lifeTime=0,this.fpsLimit=n>0?n:120,this._smooth=s,this.effectDrawers.values()))await r.init?.(this);for(let e of this.shapeDrawers.values())await e.init?.(this);for(let e of this.plugins.values())await e.init?.();for(let e of(this._engine.dispatchEvent(d.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity(),this.plugins.values()))e.particlesSetup?.();this._engine.dispatchEvent(d.particlesSetup,{container:this})}async loadTheme(e){t3(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(t3(this)){if(void 0!==this._drawAnimationFrame){var e;e=this._drawAnimationFrame,Y.cancel(e),delete this._drawAnimationFrame}if(!this._paused){for(let e of this.plugins.values())e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(d.containerPaused,{container:this})}}}play(e){if(!t3(this))return;let t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(let e of this.plugins.values())e.play&&e.play();this._engine.dispatchEvent(d.containerPlay,{container:this}),this.draw(t??!1)}async refresh(){if(t3(this))return this.stop(),this.start()}async reset(e){if(t3(this))return this._initialSourceOptions=e,this._sourceOptions=e,this._options=t4(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=t4(this._engine,this,this._options),this.refresh()}async start(){t3(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(e=>{let t=async()=>{for(let e of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins.values()))await e.start?.();this._engine.dispatchEvent(d.containerStarted,{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){if(t3(this)&&this.started){for(let e of(this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element),this.plugins.values()))e.stop?.();for(let e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent(d.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==e&&(this._responsiveMaxWidth=e,!0)}}class t6{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>e(t))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let n=i.length,s=i.indexOf(t);s<0||(1===n?this._listeners.delete(e):i.splice(s,1))}}async function t9(e,t,i,n=!1){let s=t.get(e);return(!s||n)&&(s=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,s)),s}async function t7(e){let t=eT(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():(ec.error(`${k} ${i.status} while retrieving config file`),e.fallback)}class ie{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new t6,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializer
1s={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"3.8.1"}async addColorManager(e,t=!0){this.colorManagers.set(e.key,e),await this.refresh(t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(d.configAdded,{data:{name:t,config:e}})}async addEasing(e,t,i=!0){this.getEasing(e)||(this.easingFunctions.set(e,t),await this.refresh(i))}async addEffect(e,t,i=!0){eR(e,e=>{this.getEffectDrawer(e)||this.effectDrawers.set(e,t)}),await this.refresh(i)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,i=!0){this._initializers.interactors.set(e,t),await this.refresh(i)}async addMover(e,t,i=!0){this._initializers.movers.set(e,t),await this.refresh(i)}async addParticleUpdater(e,t,i=!0){this._initializers.updaters.set(e,t),await this.refresh(i)}async addPathGenerator(e,t,i=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(i)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,i=!1,n=!0){(i||!this.getPreset(e))&&this.presets.set(e,t),await this.refresh(n)}async addShape(e,t=!0){for(let t of e.validTypes)this.getShapeDrawer(t)||this.shapeDrawers.set(t,e);await this.refresh(t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){let t=new Map;for(let i of this.plugins)i.needsPlugin(e.actualOptions)&&t.set(i.id,await i.getPlugin(e));return t}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return t9(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return t9(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return t9(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}item(e){let{items:t}=this,i=t[e];return!i||i.destroyed?void t.splice(e,1):i}async load(e){let t,i=e.id??e.element?.id??`tsparticles${Math.floor(1e4*K())}`,{index:n,url:s}=e,r=eT(s?await t7({fallback:e.options,url:s,index:n}):e.options,n),{items:a}=this,o=a.findIndex(e=>e.id.description===i),l=new t8(this,i,r);if(o>=0){let e=this.item(o),t=+!!e;e&&!e.destroyed&&e.destroy(!1),a.splice(o,t,l)}else a.push(l);let c=(e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===V)(t=e).dataset[S]||(t.dataset[S]=z);else{let i=e.getElementsByTagName(V);i.length?(t=i[0]).dataset[S]=z:((t=document.createElement(V)).dataset[S]=j,e.appendChild(t))}let i="100%";return t.style.width||(t.style.width=i),t.style.height||(t.style.height=i),t})(((t=e.element??document.getElementById(i))||((t=document.createElement("div")).id=i,t.dataset[S]=j,document.body.append(t)),t));return l.canvas.loadCanvas(c),await l.start(),l}loadOptions(e,t){this.plugins.forEach(i=>i.loadOptions?.(e,t))}loadParticlesOptions(e,t,...i){let n=this.updaters.get(e);n&&n.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){let{items:t}=this;if(!t.length)throw Error(`${k} can only set click handlers after calling tsParticles.load()`);t.forEach(t=>t.addClickHandler(e))}}class it{constructor(e){this.type=b.external,this.container=e}}class ii{constructor(e){this.type=b.particles,this.container=e}}!function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(_||(_={})),function(e){e.linear="linear",e.radial="radial",e.random="random"}(P||(P={})),function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-
1out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"}(E||(E={}));let is=function(){let e=new ie;return e.init(),e}();ed()||(window.tsParticles=is)},7886:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return s}});let n=i(5240);function s(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:i,query:s,hash:r}=(0,n.parsePath)(e);return""+i+t+s+r}},8156:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return d},getRouteRegex:function(){return c}});let n=i(6832),s=i(7630),r=i(3314),a=i(7700),o=i(5403);function l(e,t,i){let n={},l=1,c=[];for(let h of(0,a.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.find(e=>h.startsWith(e)),a=h.match(o.PARAMETER_PATTERN);if(e&&a&&a[2]){let{key:t,optional:i,repeat:s}=(0,o.parseMatchedParameter)(a[2]);n[t]={pos:l++,repeat:s,optional:i},c.push("/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)")}else if(a&&a[2]){let{key:e,repeat:t,optional:s}=(0,o.parseMatchedParameter)(a[2]);n[e]={pos:l++,repeat:t,optional:s},i&&a[1]&&c.push("/"+(0,r.escapeStringRegexp)(a[1]));let h=t?s?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";i&&a[1]&&(h=h.substring(1)),c.push(h)}else c.push("/"+(0,r.escapeStringRegexp)(h));t&&a&&a[3]&&c.push((0,r.escapeStringRegexp)(a[3]))}return{parameterizedRoute:c.join(""),groups:n}}function c(e,t){let{includeSuffix:i=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:s=!1}=void 0===t?{}:t,{parameterizedRoute:r,groups:a}=l(e,i,n),o=r;return s||(o+="(?:/)?"),{re:RegExp("^"+o+"$"),groups:a}}function h(e){let t,{interceptionMarker:i,getSafeRouteKey:n,segment:s,routeKeys:a,keyPrefix:l,backreferenceDuplicateKeys:c}=e,{key:h,optional:u,repeat:d}=(0,o.parseMatchedParameter)(s),p=h.replace(/\W/g,"");l&&(p=""+l+p);let f=!1;(0===p.length||p.length>30)&&(f=!0),isNaN(parseInt(p.slice(0,1)))||(f=!0),f&&(p=n());let m=p in a;l?a[p]=""+l+h:a[p]=h;let g=i?(0,r.escapeStringRegexp)(i):"";return t=m&&c?"\\k<"+p+">":d?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",u?"(?:/"+g+t+")?":"/"+g+t}function u(e,t,i,l,c){let u,d=(u=0,()=>{let e="",t=++u;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},f=[];for(let u of(0,a.removeTrailingSlash)(e).slice(1).split("/")){let e=s.INTERCEPTION_ROUTE_MARKERS.some(e=>u.startsWith(e)),a=u.match(o.PARAMETER_PATTERN);if(e&&a&&a[2])f.push(h({getSafeRouteKey:d,interceptionMarker:a[1],segment:a[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:c}));else if(a&&a[2]){l&&a[1]&&f.push("/"+(0,r.escapeStringRegexp)(a[1]));let e=h({getSafeRouteKey:d,segment:a[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:c});l&&a[1]&&(e=e.substring(1)),f.push(e)}else f.push("/"+(0,r.escapeStringRegexp)(u));i&&a&&a[3]&&f.push((0,r.escapeStringRegexp)(a[3]))}return{namedParameterizedRoute:f.join(""),routeKeys:p}}function d(e,t){var i,n,s;
1let r=u(e,t.prefixRouteKeys,null!=(i=t.includeSuffix)&&i,null!=(n=t.includePrefix)&&n,null!=(s=t.backreferenceDuplicateKeys)&&s),a=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(a+="(?:/)?"),{...c(e,t),namedRegex:"^"+a+"$",routeKeys:r.routeKeys}}function p(e,t){let{parameterizedRoute:i}=l(e,!1,!1),{catchAll:n=!0}=t;if("/"===i)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:s}=u(e,!1,!1,!1,!1);return{namedRegex:"^"+s+(n?"(?:(/.*)?)":"")+"$"}}},8305:(e,t)=>{"use strict";function i(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return i}})},8504:(e,t,i)=>{"use strict";i.d(t,{m:()=>tM});var n,s,r,a,o,l,c=i(7815);let h=2*Math.PI;class u{init(e){let t=e.options.move.gravity;e.gravity={enable:t.enable,acceleration:(0,c.VGA)(t.acceleration),inverse:t.inverse},function(e){let t=e.container,i=e.options.move.spin;if(!i.enable)return;let n=i.position??{x:50,y:50},s={x:.01*n.x*t.canvas.size.width,y:.01*n.y*t.canvas.size.height},r=e.getPosition(),a=(0,c.YfF)(r,s),o=(0,c.VGA)(i.acceleration);e.retina.spinAcceleration=o*t.retina.pixelRatio,e.spin={center:s,direction:e.velocity.x>=0?c.pTR.clockwise:c.pTR.counterClockwise,angle:(0,c.G0i)()*h,radius:a,acceleration:e.retina.spinAcceleration}}(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){let i=e.options,n=i.move;if(!n.enable)return;let s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=(0,c.VGA)(n.speed)*r,e.retina.moveDrift??=(0,c.VGA)(e.options.move.drift)*r;let a=e.slow.inRange?e.slow.factor:1,o=e.retina.moveSpeed*s.retina.reduceFactor,l=e.retina.moveDrift,h=(0,c.W9e)(i.size.value)*r,u=o*(n.size?e.getRadius()/h:1)*a*(t.factor||1)/2,d=e.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?function(e,t){let i=e.container;if(!e.spin)return;let n=e.spin.direction===c.pTR.clockwise,s={x:n?Math.cos:Math.sin,y:n?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*s.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*s.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;let r=Math.max(i.canvas.size.width,i.canvas.size.height),a=.5*r;e.spin.radius>a?(e.spin.radius=a,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*t*(1-e.spin.radius/r)}(e,u):function(e,t,i,n,s,r){!function(e,t){let i=e.options.move.path;if(!i.enable)return;if(e.lastPathTime<=e.pathDelay){e.lastPathTime+=t.value;return}let n=e.pathGenerator?.generate(e,t);n&&e.velocity.addTo(n),i.clamp&&(e.velocity.x=(0,c.qE8)(e.velocity.x,-1,1),e.velocity.y=(0,c.qE8)(e.velocity.y,-1,1)),e.lastPathTime-=e.pathDelay}(e,r);let a=e.gravity,o=a?.enable&&a.inverse?-1:1;s&&i&&(e.velocity.x+=s*r.factor/(60*i)),a?.enable&&i&&(e.velocity.y+=o*(a.acceleration*r.factor)/(60*i));let l=e.moveDecay;e.velocity.multTo(l);let h=e.velocity.mult(i);a?.enable&&n>0&&(!a.inverse&&h.y>=0&&h.y>=n||a.inverse&&h.y<=0&&h.y<=-n)&&(h.y=o*n,i&&(e.velocity.y=h.y/i));let u=e.options.zIndex,d=(1-e.zIndexFactor)**u.velocityRate;h.multTo(d);let{position:p}=e;p.addTo(h),t.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y)),p.y+=Math.cos(p.y*Math.sin(p.x)))}(e,n,u,d,l,t),function(e){let t=e.initialPosition,{dx:i,dy:n}=(0,c.vrU)(t,e.position),s=Math.abs(i),r=Math.abs(n),{maxDistance:a}=e.retina,o=a.horizontal,l=a.vertical;if(o||l){if((o&&s>=o||l&&r>=l)&&!e.misplaced)e.misplaced=!!o&&s>o||!!l&&r>l,o&&(e.velocity.x=.5*e.velocity.y-e.velocity.x),l&&(e.velocity.y=.5*e.velocity.x-e.velocity.y);else if((!o||s<o)&&(!l||r<l)&&e.misplaced)e.misplaced=!1;else if(e.misplaced){let i=e.position,n=e.velocity;o&&(i.x<t.x&&n.x<0||i.x>t.x&&n.x>0)&&(n.x*=-(0,c.G0i)()),l&&(i.y<t.y&&n.y<0||i.y>t.y&&n.y>0)&&(n.y*=-(0,c.G0i)())}}}(e)}}async function d(e,t=!0){e.checkVersion("3.8.1"),await e.addMover("base",()=>Promise.resolve(new u),t)}let p=2*Math.PI,f={x:0,y:0};class m{constructor(){this.validTypes=["circle"]}draw(e){let{context:t,particle:i,radius:n}=e;i.circleRange||(i.circleRange={min:0,max:p});let s=i.circleRange;t.arc(f.x,f.y,n,s.min,s.max,!1)}getSidesCount(){return 12}particleInit(e,t){let i=t.shapeData,n=i?.angle??{max:360,min:0};t.circleRange=(0,c.Gvm)(n)?{min:(0,c.puj)(n.min),max:(0,c.puj)(n.max)}:{min:0,max:(0,c.puj)(n)}}}async function g(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new m,t)}class v{constructor(e,t){this._container=e,this._engine=t}init(e){let t=(0,c.R5R)(this._engine,e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=(0,c.pzy)(t,e.options.color.animation,this._container.retina.reduceFactor))}
1isEnabled(e){let{h:t,s:i,l:n}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&(s?.h.value!==void 0&&t.enable||s?.s.value!==void 0&&i.enable||s?.l.value!==void 0&&n.enable)}update(e,t){(0,c.JvX)(e.color,t)}}async function y(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("color",t=>Promise.resolve(new v(t,e)),t)}!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"}(n||(n={}));let b=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,w=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class x{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(e){return this._parseString(e.value)}handleRangeColor(e){return this._parseString(e.value)}parseString(e){return this._parseString(e)}_parseString(e){if("string"!=typeof e||!e?.startsWith(this.stringPrefix))return;let t=e.replace(b,(e,t,i,n,s)=>t+t+i+i+n+n+(void 0!==s?s+s:"")),i=w.exec(t);return i?{a:void 0!==i[n.a]?parseInt(i[n.a],16)/255:1,b:parseInt(i[n.b],16),g:parseInt(i[n.g],16),r:parseInt(i[n.r],16)}:void 0}}async function _(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new x,t)}!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(s||(s={}));class P{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){let t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.s&&void 0!==t.l)return(0,c.YLU)(t)}handleRangeColor(e){let t=e.value.hsl??e.value;if(void 0!==t.h&&void 0!==t.l)return(0,c.YLU)({h:(0,c.VGA)(t.h),l:(0,c.VGA)(t.l),s:(0,c.VGA)(t.s)})}parseString(e){if(!e.startsWith("hsl"))return;let t=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?(0,c.ayx)({a:t.length>4?(0,c.M3Y)(t[s.a]):1,h:parseInt(t[s.h],10),l:parseInt(t[s.l],10),s:parseInt(t[s.s],10)}):void 0}}async function E(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new P,t)}class S{constructor(e){this.container=e}init(e){let t=e.options.opacity;e.opacity=(0,c.XsS)(t,1);let i=t.animation;i.enable&&(e.opacity.velocity=(0,c.VGA)(i.speed)/c.a56*this.container.retina.reduceFactor,i.sync||(e.opacity.velocity*=(0,c.G0i)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&(0,c.UC0)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}async function R(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("opacity",e=>Promise.resolve(new S(e)),t)}class T{constructor(e){this.container=e,this.modes=[c.Yzx.bounce,c.Yzx.split]}update(e,t,i,n){if(!this.modes.includes(n))return;let s=this.container,r=!1;for(let n of s.plugins.values())if(void 0!==n.particleBounce&&(r=n.particleBounce(e,i,t)),r)break;if(r)return;let a=e.getPosition(),o=e.offset,l=e.getRadius(),h=(0,c.AEc)(a,l),u=s.canvas.size;!function(e){if(e.outMode!==c.Yzx.bounce&&e.outMode!==c.Yzx.split||e.direction!==c.v5k.left&&e.direction!==c.v5k.right)return;e.bounds.right<0&&e.direction===c.v5k.left?e.particle.position.x=e.size+e.offset.x:e.bounds.left>e.canvasSize.width&&e.direction===c.v5k.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);let t=e.particle.velocity.x,i=!1;if(e.direction===c.v5k.right&&e.bounds.right>=e.canvasSize.width&&t>0||e.direction===c.v5k.left&&e.bounds.left<=0&&t<0){let t=(0,c.VGA)(e.particle.options.bounce.horizontal.value);e.particle.velocity.x*=-t,i=!0}if(!i)return;let n=e.offset.x+e.size;e.bounds.right>=e.canvasSize.width&&e.direction===c.v5k.right?e.particle.position.x=e.canvasSize.width-n:e.bounds.left<=0&&e.direction===c.v5k.left&&(e.particle.position.x=n),e.outMode===c.Yzx.split&&e.particle.destroy()}({particle:e,outMode:n,direction:t,bounds:h,canvasSize:u,offset:o,size:l}),function(e){if(e.outMode!==c.Yzx.bounce&&e.outMode!==c.Yzx.split||e.direction!==c.v5k.bottom&&e.direction!==c.v5k.top)return;e.bounds.bottom<0&&e.direction===c.v5k.top?e.particle.position.y=e.size+e.offset.y:e.bounds.top>e.canvasSize.height&&e.direction===c.v5k.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);let t=e.particle.velocity.y,i=!1;if(e.direction===c.v5k.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>0||e.direction===c.v5k.top&&e.bounds.top<=0&&t<0){let t=(0,c.VGA)(e.particle.options.bounce.vertical.value);e.particle.velocity.y*=-t,i=!0}if(!i)return;let n=e.offset.y+e.size;e.bounds.bottom>=e.canvasSize.height&&e.direction===c.v5k.bottom?e.particle.position.y=e.canvasSize.height-n:e.bounds.top<=0&&e.direction===c.v5k.top&&(e.particle.position.y=n),e.outMode===c.Yzx.split&&e.particle.destroy()}({particle:e,outMode:n,direction:t,bounds:h,canvasSize:u,offset:o,size:l})}}class C{constructor(e){this.container=e,this.modes=[c.Yzx.destroy]}update(e,t,i,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case c.x_I.normal:case c.x_I.outside:if((0,c.Tj8)(e.position,s.canvas.size,c.Miz.origin,e.getRadius(),t))return;break;case c.x_I.inside:{let{dx:t,dy:i}=(0,c.vrU)(e.position,e.moveCenter),{x:n,y:s}=e.velocity;if(n<0&&t>e.moveCenter.radius||s<0&&i>e.moveCenter.radius||n>=0&&t<-e.moveCenter.radius||s>=0&&i<-e.moveCenter.radius)return}}s.particles.remove(e,e.group,!0)}}class k{constructor(e){this.container=e,this.modes=[c.Yzx.none]}update(e,t,i,n){if(!this.modes.includes(n)||((e.options.move.distance.horizontal&&(t===c.v5k.left||t===c.v5k.right))??(e.options.move.distance.vertical&&(t===c.v5k.top||t===c.v5k.bottom))))return;let s=e.options.move.gravity,r=this.container,a=r.canvas.size,o=e.getRadius();if(s.enable){let i=e.position;(!s.inverse&&i.y>a.height+o&&t===c.v5k.bottom||s.inverse&&i.y<-o&&t===c.v5k.top)&&r.particles.remove(e)}else{if(e.velocity.y>0&&e.position.y<=a.height+o||e.velocity.y<0&&e.position.y>=-o||e.velocity.x>0&&e.position.x<=a.width+o||e.velocity.x<0&&e.position.x>=-o)return;(0,c.Tj8)(e.position,r.canvas.size,c.Miz.origin,o,t)||r.particles.remove(e)}}}class O{constructor(e){this.container=e,this.modes=[c.Yzx.out]}update(e,t,i,n){if(!this.modes.includes(n))return;let s=this.container;if(e.outType===c.x_I.inside){let{x:t,y:i}=e.velocity,n=c.Miz.origin;n.length=e.moveCenter.radius,n.angle=e.velocity.angle+Math.PI,n.addTo(c.Miz.create(e.moveCenter));let{dx:r,dy:a}=(0,c.vrU)(e.position,n);if(t<=0&&r>=0||i<=0&&a>=0||t>=0&&r<=0||i>=0&&a<=0)return;e.position.x=Math.floor((0,c.U43)({min:0,max:s.canvas.size.width})),e.position.y=Math.floor((0,c.U43)({min:0,max:s.canvas.size.height}));let{dx:o,dy:l}=(0,c.vrU)(e.position,e.moveCenter);e.direction=Math.atan2(-l,-o),e.velocity.angle=e.direction}else{if((0,c.Tj8)(e.position,s.canvas.size,c.Miz.origin,e.getRadius(),t))return;switch(e.outType){case c.x_I.outside:{e.position.x=Math.floor((0,c.U43)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,c.U43)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;let{dx:t,dy:i}=(0,c.vrU)(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(i,t),e.velocity.angle=e.direction);break}case c.x_I.normal:{let i=e.options.move.warp,n=s.canvas.size,r={bottom:n.height+e.getRadius()+e.offset.y,left
1:-e.getRadius()-e.offset.x,right:n.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},a=e.getRadius(),o=(0,c.AEc)(e.position,a);t===c.v5k.right&&o.left>n.width+e.offset.x?(e.position.x=r.left,e.initialPosition.x=e.position.x,i||(e.position.y=(0,c.G0i)()*n.height,e.initialPosition.y=e.position.y)):t===c.v5k.left&&o.right<-e.offset.x&&(e.position.x=r.right,e.initialPosition.x=e.position.x,i||(e.position.y=(0,c.G0i)()*n.height,e.initialPosition.y=e.position.y)),t===c.v5k.bottom&&o.top>n.height+e.offset.y?(i||(e.position.x=(0,c.G0i)()*n.width,e.initialPosition.x=e.position.x),e.position.y=r.top,e.initialPosition.y=e.position.y):t===c.v5k.top&&o.bottom<-e.offset.y&&(i||(e.position.x=(0,c.G0i)()*n.width,e.initialPosition.x=e.position.x),e.position.y=r.bottom,e.initialPosition.y=e.position.y)}}}}}class M{constructor(e){this._addUpdaterIfMissing=(e,t,i)=>{let n=e.options.move.outModes;!this.updaters.has(t)&&((e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t)(n,t)&&this.updaters.set(t,i(this.container))},this._updateOutMode=(e,t,i,n)=>{for(let s of this.updaters.values())s.update(e,n,t,i)},this.container=e,this.updaters=new Map}init(e){this._addUpdaterIfMissing(e,c.Yzx.bounce,e=>new T(e)),this._addUpdaterIfMissing(e,c.Yzx.out,e=>new O(e)),this._addUpdaterIfMissing(e,c.Yzx.destroy,e=>new C(e)),this._addUpdaterIfMissing(e,c.Yzx.none,e=>new k(e))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){let i=e.options.move.outModes;this._updateOutMode(e,t,i.bottom??i.default,c.v5k.bottom),this._updateOutMode(e,t,i.left??i.default,c.v5k.left),this._updateOutMode(e,t,i.right??i.default,c.v5k.right),this._updateOutMode(e,t,i.top??i.default,c.v5k.top)}}async function A(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("outModes",e=>Promise.resolve(new M(e)),t)}!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(r||(r={}));class D{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){let t=e.value.rgb??e.value;if(void 0!==t.r)return t}handleRangeColor(e){let t=e.value.rgb??e.value;if(void 0!==t.r)return{r:(0,c.VGA)(t.r),g:(0,c.VGA)(t.g),b:(0,c.VGA)(t.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;let t=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(e);return t?{a:t.length>4?(0,c.M3Y)(t[r.a]):1,b:parseInt(t[r.b],10),g:parseInt(t[r.g],10),r:parseInt(t[r.r],10)}:void 0}}async function I(e,t=!0){e.checkVersion("3.8.1"),await e.addColorManager(new D,t)}class L{init(e){let t=e.container,i=e.options.size.animation;i.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/c.a56*t.retina.reduceFactor,i.sync||(e.size.velocity*=(0,c.G0i)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}update(e,t){this.isEnabled(e)&&(0,c.UC0)(e,e.size,!0,e.options.size.animation.destroy,t)}}async function j(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("size",()=>Promise.resolve(new L),t)}async function z(e,t=!0){e.checkVersion("3.8.1"),await _(e,!1),await E(e,!1),await I(e,!1),await d(e,!1),await g(e,!1),await y(e,!1),await R(e,!1),await A(e,!1),await j(e,!1),await e.refresh(t)}async function V(e,t=!0){e.checkVersion("3.8.1"),await e.addEasing(c.mgy.easeInQuad,e=>e**2,!1),await e.addEasing(c.mgy.easeOutQuad,e=>1-(1-e)**2,!1),await e.addEasing(c.mgy.easeInOutQuad,e=>e<.5?2*e**2:1-(-2*e+2)**2/2,!1),await e.refresh(t)}let N='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class F{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[e,t]of this._emojiShapeDict)t instanceof ImageBitmap&&t?.close(),this._emojiShapeDict.delete(e)}draw(e){let t=e.particle.emojiDataKey;if(!t)return;let i=this._emojiShapeDict.get(t);i&&function(e,t){let{context:i,opacity:n}=e,s=i.globalAlpha;if(!t)return;let r=t.width,a=.5*r;i.globalAlpha=n,i.drawImage(t,-a,-a,r,r),i.globalAlpha=s}(e,i)}async init(e){let t=e.actualOptions,{validTypes:i}=this;if(!i.find(e=>(0,c.hnD)(e,t.particles.shape.type)))return;let n=[(0,c.AlN)(N)],s=i.map(e=>t.particles.shape.options[e]).find(e=>!!e);s&&(0,c.wJ2)(s,e=>{e.font&&n.push((0,c.AlN)(e.font))}),await Promise.all(n)}particleDestroy(e){e.emojiDataKey=void 0}particleInit(e,t){let i,n=t.shapeData;if(!n?.value)return;let s=(0,c.TA3)(n.value,t.randomIndexData);if(!s)return;let r="string"==typeof s?{font:n.font??N,padding:n.padding??0,value:s}:{font:N,padding:0,...n,...s},a=r.font,o=r.value,l=`${o}_${a}`;if(this._emojiShapeDict.has(l)){t.emojiDataKey=l;return}
1let h=2*r.padding,u=(0,c.W9e)(t.size.value),d=u+h,p=2*d;if("undefined"!=typeof OffscreenCanvas){let e=new OffscreenCanvas(p,p),t=e.getContext("2d");if(!t)return;t.font=`400 ${2*u}px ${a}`,t.textBaseline="middle",t.textAlign="center",t.fillText(o,d,d),i=e.transferToImageBitmap()}else{let e=document.createElement("canvas");e.width=p,e.height=p;let t=e.getContext("2d");if(!t)return;t.font=`400 ${2*u}px ${a}`,t.textBaseline="middle",t.textAlign="center",t.fillText(o,d,d),i=e}this._emojiShapeDict.set(l,i),t.emojiDataKey=l}}async function B(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new F,t)}function U(e,t,i,n,s,r){let a=t.actualOptions.interactivity.modes.attract;if(a)for(let o of t.particles.quadTree.query(s,r)){let{dx:t,dy:s,distance:r}=(0,c.vrU)(o.position,i),l=a.speed*a.factor,h=(0,c.qE8)(e.getEasing(a.easing)(1-r/n)*l,1,a.maxSpeed),u=c.Miz.create(r?t/r*h:l,r?s/r*h:l);o.position.subFrom(u)}}class H{constructor(){this.distance=200,this.duration=.4,this.easing=c.mgy.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(e){(0,c.kZJ)(e)||(void 0!==e.distance&&(this.distance=e.distance),void 0!==e.duration&&(this.duration=e.duration),void 0!==e.easing&&(this.easing=e.easing),void 0!==e.factor&&(this.factor=e.factor),void 0!==e.maxSpeed&&(this.maxSpeed=e.maxSpeed),void 0!==e.speed&&(this.speed=e.speed))}}let W="attract";class q extends c.sJd{constructor(e,t){super(t),this._engine=e,t.attract||(t.attract={particles:[]}),this.handleClickMode=e=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&e===W){for(let e of(t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0,t.attract.particles))this.isEnabled(e)&&e.velocity.setTo(e.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},i.duration*c.XuV)}}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.attract;t&&(e.retina.attractModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,i=e.interactivity.status===c.RbF,n=t.interactivity.events,{enable:s,mode:r}=n.onHover,{enable:a,mode:o}=n.onClick;i&&s&&(0,c.hnD)(W,r)?function(e,t,i){let n=t.interactivity.mouse.position,s=t.retina.attractModeDistance;s&&!(s<0)&&n&&U(e,t,n,s,new c.jlt(n.x,n.y,s),e=>i(e))}(this._engine,this.container,e=>this.isEnabled(e)):a&&(0,c.hnD)(W,o)&&function(e,t,i){t.attract||(t.attract={particles:[]});let{attract:n}=t;if(n.finish||(n.count||(n.count=0),n.count++,n.count===t.particles.count&&(n.finish=!0)),n.clicking){let n=t.interactivity.mouse.clickPosition,s=t.retina.attractModeDistance;if(!s||s<0||!n)return;U(e,t,n,s,new c.jlt(n.x,n.y,s),e=>i(e))}else!1===n.clicking&&(n.particles=[])}(this._engine,this.container,e=>this.isEnabled(e))}isEnabled(e){let t=this.container,i=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??i.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let r=s.onHover.mode,a=s.onClick.mode;return(0,c.hnD)(W,r)||(0,c.hnD)(W,a)}loadModeOptions(e,...t){for(let i of(e.attract||(e.attract=new H),t))e.attract.load(i?.attract)}reset(){}}async function G(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalAttract",t=>Promise.resolve(new q(e,t)),t)}let $=.5*Math.PI;function X(e,t,i,n,s){for(let r of e.particles.quadTree.query(n,s))n instanceof c.jlt?(0,c.pEn)((0,c.Tgl)(r),{position:t,radius:i,mass:i**2*$,velocity:c.Miz.origin,factor:c.Miz.origin}):n instanceof c.M_G&&(0,c.jon)(r,(0,c.AEc)(t,i))}class Y{constructor(){this.distance=200}load(e){(0,c.kZJ)(e)||void 0!==e.distance&&(this.distance=e.distance)}}let K="bounce";class J extends c.sJd{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bounce;t&&(e.retina.bounceModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions.interactivity.events,i=e.interactivity.status===c.RbF,n=t.onHover.enable,s=t.onHover.mode,r=t.onDiv;if(i&&n&&(0,c.hnD)(K,s))!function(e,t){let i=e.retina.pixelRatio,n=e.interactivity.mouse.position,s=e.retina.bounceModeDistance;s&&!(s<0)&&n&&X(e,n,s,new c.jlt(n.x,n.y,s+10*i),t)}(this.container,e=>this.isEnabled(e));else{var a,o;a=this.container,o=e=>this.isEnabled(e),(0,c.U6C)(K,r,(e,t)=>(function(e,t,i,n){let s=document.querySelectorAll(t);
1s.length&&s.forEach(t=>{let s=e.retina.pixelRatio,r={x:(t.offsetLeft+.5*t.offsetWidth)*s,y:(t.offsetTop+.5*t.offsetHeight)*s},a=.5*t.offsetWidth*s,o=10*s,l=i.type===c.Q5V.circle?new c.jlt(r.x,r.y,a+o):new c.M_G(t.offsetLeft*s-o,t.offsetTop*s-o,t.offsetWidth*s+2*o,t.offsetHeight*s+2*o);n(r,a,l)})})(a,e,t,(e,t,i)=>X(a,e,t,i,o)))}}isEnabled(e){let t=this.container,i=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??i.interactivity).events,r=s.onDiv;return!!n.position&&s.onHover.enable&&(0,c.hnD)(K,s.onHover.mode)||(0,c.iKf)(K,r)}loadModeOptions(e,...t){for(let i of(e.bounce||(e.bounce=new Y),t))e.bounce.load(i?.bounce)}reset(){}}async function Z(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalBounce",e=>Promise.resolve(new J(e)),t)}class Q{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(!(0,c.kZJ)(e)){if(void 0!==e.distance&&(this.distance=e.distance),void 0!==e.duration&&(this.duration=e.duration),void 0!==e.mix&&(this.mix=e.mix),void 0!==e.opacity&&(this.opacity=e.opacity),void 0!==e.color){let t=(0,c.cyL)(this.color)?void 0:this.color;this.color=(0,c.wJ2)(e.color,e=>c.Oit.create(t,e))}void 0!==e.size&&(this.size=e.size)}}}class ee extends Q{constructor(){super(),this.selectors=[]}load(e){super.load(e),(0,c.kZJ)(e)||void 0!==e.selectors&&(this.selectors=e.selectors)}}class et extends Q{load(e){super.load(e),(0,c.kZJ)(e)||(this.divs=(0,c.wJ2)(e.divs,e=>{let t=new ee;return t.load(e),t}))}}function ei(e,t,i,n){return t>=i?(0,c.qE8)(e+(t-i)*n,e,t):t<i?(0,c.qE8)(e-(i-t)*n,t,e):void 0}!function(e){e.color="color",e.opacity="opacity",e.size="size"}(a||(a={}));let en="bubble";class es extends c.sJd{constructor(e,t){super(e),this._clickBubble=()=>{let e=this.container,t=e.actualOptions,i=e.interactivity.mouse.clickPosition,n=t.interactivity.modes.bubble;if(!n||!i)return;e.bubble||(e.bubble={});let s=e.retina.bubbleModeDistance;if(!s||s<0)return;let r=e.particles.quadTree.queryCircle(i,s,e=>this.isEnabled(e)),{bubble:o}=e;for(let t of r){if(!o.clicking)continue;t.bubble.inRange=!o.durationEnd;let r=t.getPosition(),l=(0,c.YfF)(r,i),h=(new Date().getTime()-(e.interactivity.mouse.clickTime??0))/c.XuV;h>n.duration&&(o.durationEnd=!0),h>2*n.duration&&(o.clicking=!1,o.durationEnd=!1);let u={bubbleObj:{optValue:e.retina.bubbleModeSize,value:t.bubble.radius},particlesObj:{optValue:(0,c.W9e)(t.options.size.value)*e.retina.pixelRatio,value:t.size.value},type:a.size};this._process(t,l,h,u);let d={bubbleObj:{optValue:n.opacity,value:t.bubble.opacity},particlesObj:{optValue:(0,c.W9e)(t.options.opacity.value),value:t.opacity?.value??1},type:a.opacity};this._process(t,l,h,d),!o.durationEnd&&l<=s?this._hoverBubbleColor(t,l):delete t.bubble.color}},this._hoverBubble=()=>{let e=this.container,t=e.interactivity.mouse.position,i=e.retina.bubbleModeDistance;if(i&&!(i<0)&&t)for(let n of e.particles.quadTree.queryCircle(t,i,e=>this.isEnabled(e))){n.bubble.inRange=!0;let s=n.getPosition(),r=(0,c.YfF)(s,t),a=1-r/i;r<=i?a>=0&&e.interactivity.status===c.RbF&&(this._hoverBubbleSize(n,a),this._hoverBubbleOpacity(n,a),this._hoverBubbleColor(n,a)):this.reset(n),e.interactivity.status===c.Z04&&this.reset(n)}},this._hoverBubbleColor=(e,t,i)=>{let n=this.container.actualOptions,s=i??n.interactivity.modes.bubble;if(s){if(!e.bubble.finalColor){let t=s.color;if(!t)return;let i=(0,c.TA3)(t);e.bubble.finalColor=(0,c.R5R)(this._engine,i)}if(e.bubble.finalColor)if(s.mix){e.bubble.color=void 0;let i=e.getFillColor();e.bubble.color=i?(0,c.K6u)((0,c.EYT)(i,e.bubble.finalColor,1-t,t)):e.bubble.finalColor}else e.bubble.color=e.bubble.finalColor}},this._hoverBubbleOpacity=(e,t,i)=>{let n=this.container.actualOptions,s=i?.opacity??n.interactivity.modes.bubble?.opacity;if(!s)return;let r=e.options.opacity.value,a=ei(e.opacity?.value??1,s,(0,c.W9e)(r),t);void 0!==a&&(e.bubble.opacity=a)},this._hoverBubbleSize=(e,t,i)=>{let n=this.container,s=i?.size?i.size*n.retina.pixelRatio:n.retina.bubbleModeSize;if(void 0===s)return;let r=(0,c.W9e)(e.options.size.value)*n.retina.pixelRatio,a=ei(e.size.value,s,r,t);void 0!==a&&(e.bubble.radius=a)},this._process=(e,t,i,n)=>{let s=this.container,r=n.bubbleObj.optValue,o=s.actualOptions.interactivity.modes.bubble;if(!o||void 0===r)return;let l=o.duration,c=s.retina.bubbleModeDistance,h=n.particlesObj.optValue,u=n.bubbleObj.value,d=n.particlesObj.value??0,p=n.t
1ype;if(c&&!(c<0)&&r!==h)if(s.bubble||(s.bubble={}),s.bubble.durationEnd)u&&(p===a.size&&delete e.bubble.radius,p===a.opacity&&delete e.bubble.opacity);else if(t<=c){if((u??d)!==r){let t=d-i*(d-r)/l;p===a.size&&(e.bubble.radius=t),p===a.opacity&&(e.bubble.opacity=t)}}else p===a.size&&delete e.bubble.radius,p===a.opacity&&delete e.bubble.opacity},this._singleSelectorHover=(e,t,i)=>{let n=this.container,s=document.querySelectorAll(t),r=n.actualOptions.interactivity.modes.bubble;r&&s.length&&s.forEach(t=>{let s=n.retina.pixelRatio,a={x:(t.offsetLeft+.5*t.offsetWidth)*s,y:(t.offsetTop+.5*t.offsetHeight)*s},o=.5*t.offsetWidth*s,l=i.type===c.Q5V.circle?new c.jlt(a.x,a.y,o):new c.M_G(t.offsetLeft*s,t.offsetTop*s,t.offsetWidth*s,t.offsetHeight*s);for(let i of n.particles.quadTree.query(l,e=>this.isEnabled(e))){if(!l.contains(i.getPosition()))continue;i.bubble.inRange=!0;let n=r.divs,s=(0,c.NVT)(n,t);i.bubble.div&&i.bubble.div===t||(this.clear(i,e,!0),i.bubble.div=t),this._hoverBubbleSize(i,1,s),this._hoverBubbleOpacity(i,1,s),this._hoverBubbleColor(i,1,s)}})},this._engine=t,e.bubble||(e.bubble={}),this.handleClickMode=t=>{t===en&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,t,i){(!e.bubble.inRange||i)&&(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bubble;t&&(e.retina.bubbleModeDistance=t.distance*e.retina.pixelRatio,void 0!==t.size&&(e.retina.bubbleModeSize=t.size*e.retina.pixelRatio))}interact(e){let t=this.container.actualOptions.interactivity.events,i=t.onHover,n=t.onClick,s=i.enable,r=i.mode,a=n.enable,o=n.mode,l=t.onDiv;s&&(0,c.hnD)(en,r)?this._hoverBubble():a&&(0,c.hnD)(en,o)?this._clickBubble():(0,c.U6C)(en,l,(t,i)=>this._singleSelectorHover(e,t,i))}isEnabled(e){let t=this.container,i=t.actualOptions,n=t.interactivity.mouse,{onClick:s,onDiv:r,onHover:a}=(e?.interactivity??i.interactivity).events,o=(0,c.iKf)(en,r);return!!(o||a.enable&&n.position||s.enable&&n.clickPosition)&&((0,c.hnD)(en,a.mode)||(0,c.hnD)(en,s.mode)||o)}loadModeOptions(e,...t){for(let i of(e.bubble||(e.bubble=new et),t))e.bubble.load(i?.bubble)}reset(e){e.bubble.inRange=!1}}async function er(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalBubble",t=>Promise.resolve(new es(t,e)),t)}class ea{constructor(){this.opacity=.5}load(e){(0,c.kZJ)(e)||void 0!==e.opacity&&(this.opacity=e.opacity)}}class eo{constructor(){this.distance=80,this.links=new ea,this.radius=60}load(e){(0,c.kZJ)(e)||(void 0!==e.distance&&(this.distance=e.distance),this.links.load(e.links),void 0!==e.radius&&(this.radius=e.radius))}}class el extends c.sJd{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.connect;t&&(e.retina.connectModeDistance=t.distance*e.retina.pixelRatio,e.retina.c
1onnectModeRadius=t.radius*e.retina.pixelRatio)}interact(){let e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&"pointermove"===e.interactivity.status){let t=e.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:n}=e.retina;if(!i||i<0||!n||n<0||!t)return;let s=Math.abs(n),r=e.particles.quadTree.queryCircle(t,s,e=>this.isEnabled(e));r.forEach((t,n)=>{let s=t.getPosition();for(let a of r.slice(n+1)){let n=a.getPosition(),r=Math.abs(i),o=Math.abs(s.x-n.x),l=Math.abs(s.y-n.y);o<r&&l<r&&function(e,t,i){e.canvas.draw(n=>{var s;let r=function(e,t,i,n){let s=e.actualOptions.interactivity.modes.connect;if(s)return function(e,t,i,n){let s=Math.floor(i.getRadius()/t.getRadius()),r=t.getFillColor(),a=i.getFillColor();if(!r||!a)return;let o=t.getPosition(),l=i.getPosition(),h=(0,c.EYT)(r,a,t.getRadius(),i.getRadius()),u=e.createLinearGradient(o.x,o.y,l.x,l.y);return u.addColorStop(0,(0,c.LCf)(r,n)),u.addColorStop((0,c.qE8)(s,0,1),(0,c.xxz)(h,n)),u.addColorStop(1,(0,c.LCf)(a,n)),u}(t,i,n,s.links.opacity)}(e,n,t,i);if(!r)return;let a=t.getPosition(),o=i.getPosition();s=t.retina.linksWidth??0,(0,c.V6E)(n,a,o),n.lineWidth=s,n.strokeStyle=r,n.stroke()})}(e,t,a)}})}}isEnabled(e){let t=this.container,i=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return!!(n.onHover.enable&&i.position)&&(0,c.hnD)("connect",n.onHover.mode)}loadModeOptions(e,...t){for(let i of(e.connect||(e.connect=new eo),t))e.connect.load(i?.connect)}reset(){}}async function ec(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalConnect",e=>Promise.resolve(new el(e)),t)}class eh{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){(0,c.kZJ)(e)||(void 0!==e.blink&&(this.blink=e.blink),void 0!==e.color&&(this.color=c.Oit.create(this.color,e.color)),void 0!==e.consent&&(this.consent=e.consent),void 0!==e.opacity&&(this.opacity=e.opacity))}}class eu{constructor(){this.distance=100,this.links=new eh}load(e){(0,c.kZJ)(e)||(void 0!==e.distance&&(this.distance=e.distance),this.links.load(e.links))}}class ed extends c.sJd{constructor(e,t){super(e),this._engine=t}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.grab;t&&(e.retina.grabModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions.interactivity;if(!t.modes.grab||!t.events.onHover.enable||e.interactivity.status!==c.RbF)return;let i=e.interactivity.mouse.position;if(!i)return;let n=e.retina.grabModeDistance;if(n&&!(n<0))for(let s of e.particles.quadTree.queryCircle(i,n,e=>this.isEnabled(e))){let r=s.getPosition(),a=(0,c.YfF)(r,i);if(a>n)continue;let o=t.modes.grab.links,l=o.opacity,h=l-a*l/n;if(h<=0)continue;let u=o.color??s.options.links?.color;if(!e.particles.grabLineColor&&u){let i=t.modes.grab.links;e.particles.grabLineColor=(0,c.PGG)(this._engine,u,i.blink,i.consent)}let d=(0,c._hh)(s,void 0,e.particles.grabLineColor);d&&function(e,t,i,n,s){e.canvas.draw(e=>{var r;let a=t.getPosition();r=t.retina.linksWidth??0,(0,c.V6E)(e,a,s),e.strokeStyle=(0,c.xxz)(i,n),e.lineWidth=r,e.stroke()})}(e,s,d,h,i)}}isEnabled(e){let t=this.container,i=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,c.hnD)("grab",n.onHover.mode)}loadModeOptions(e,...t){for(let i of(e.grab||(e.grab=new eu),t))e.grab.load(i?.grab)}reset(){}}async function ep(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalGrab",t=>Promise.resolve(new ed(t,e)),t)}class ef extends c.sJd{constructor(e){super(e),this.handleClickMode=e=>{if("pause"!==e)return;let t=this.container;t.animationStatus?t.pause():t.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function em(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalPause",e=>Promise.resolve(new ef(e)),t)}class eg{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if((0,c.kZJ)(e))return;void 0!==e.default&&(this.default=e.default),void 0!==e.groups&&(this.groups=e.groups.map(e=>e)),this.groups.length||(this.default=!0);let t=e.quantity;void 0!==t&&(this.quantity=(0,c.DT4)(t))}}class ev extends c.sJd{constructor(e){super(e),this.handleClickMode=e=>{if("push"!==e)return;let t=this.container,i=t.actualOptions.interactivity.modes.push;if(!i)return;let n=(0,c.VGA)(i.quantity);if(n<=0)return;let s=(0,c.Vh1)([void 0,...i.groups]),r=void 0!==s?t.actualOptions.particles.groups[s]:void 0;t.particles.push(n,t.interactivity.mouse,r,s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){for(let i of(e.push||(e.push=new eg),t))e.push.load(i?.push)}reset(){}}async function ey(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalPush",e=>Promise.resolve(new ev(e)),t)}class eb{constructor(){this.quantity=2}load(e){if((0,c.kZJ)(e))return;let t=e.quantity;void 0!==t&&(this.quantity=(0,c.DT4)(t))}}class ew extends c.sJd{constructor(e){super(e),this.handleClickMode=e=>{let t=this.container,i=t.actualOptions;if(!i.interactivity.modes.remove||"remove"!==e)return;let n=(0,c.VGA)(i.interactivity.modes.remove.quantity);t.particles.removeQuantity(n)}}clear(){}init(){}interact(){}isEnabled(){return!0}
1loadModeOptions(e,...t){for(let i of(e.remove||(e.remove=new eb),t))e.remove.load(i?.remove)}reset(){}}async function ex(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalRemove",e=>Promise.resolve(new ew(e)),t)}class e_{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=c.mgy.easeOutQuad}load(e){(0,c.kZJ)(e)||(void 0!==e.distance&&(this.distance=e.distance),void 0!==e.duration&&(this.duration=e.duration),void 0!==e.easing&&(this.easing=e.easing),void 0!==e.factor&&(this.factor=e.factor),void 0!==e.speed&&(this.speed=e.speed),void 0!==e.maxSpeed&&(this.maxSpeed=e.maxSpeed))}}class eP extends e_{constructor(){super(),this.selectors=[]}load(e){super.load(e),(0,c.kZJ)(e)||void 0!==e.selectors&&(this.selectors=e.selectors)}}class eE extends e_{load(e){super.load(e),(0,c.kZJ)(e)||(this.divs=(0,c.wJ2)(e.divs,e=>{let t=new eP;return t.load(e),t}))}}let eS="repulse";class eR extends c.sJd{constructor(e,t){super(t),this._clickRepulse=()=>{let e=this.container,t=e.actualOptions.interactivity.modes.repulse;if(!t)return;let i=e.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count===e.particles.count&&(i.finish=!0)),i.clicking){let n=e.retina.repulseModeDistance;if(!n||n<0)return;let s=Math.pow(n/6,3),r=e.interactivity.mouse.clickPosition;if(void 0===r)return;let a=new c.jlt(r.x,r.y,s);for(let n of e.particles.quadTree.query(a,e=>this.isEnabled(e))){let{dx:e,dy:a,distance:o}=(0,c.vrU)(r,n.position),l=o**2,h=-s*t.speed/l;if(l<=s){i.particles.push(n);let t=c.Miz.create(e,a);t.length=h,n.velocity.setTo(t)}}}else if(!1===i.clicking){for(let e of i.particles)e.velocity.setTo(e.initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let e=this.container,t=e.interactivity.mouse.position,i=e.retina.repulseModeDistance;i&&!(i<0)&&t&&this._processRepulse(t,i,new c.jlt(t.x,t.y,i))},this._processRepulse=(e,t,i,n)=>{let s=this.container,r=s.particles.quadTree.query(i,e=>this.isEnabled(e)),a=s.actualOptions.interactivity.modes.repulse;if(!a)return;let{easing:o,speed:l,factor:h,maxSpeed:u}=a,d=this._engine.getEasing(o),p=(n?.speed??l)*h;for(let i of r){let{dx:n,dy:s,distance:r}=(0,c.vrU)(i.position,e),a=(0,c.qE8)(d(1-r/t)*p,0,u),o=c.Miz.create(r?n/r*a:p,r?s/r*a:p);i.position.addTo(o)}},this._singleSelectorRepulse=(e,t)=>{let i=this.container,n=i.actualOptions.interactivity.modes.repulse;if(!n)return;let s=document.querySelectorAll(e);s.length&&s.forEach(e=>{let s=i.retina.pixelRatio,r={x:(e.offsetLeft+.5*e.offsetWidth)*s,y:(e.offsetTop+.5*e.offsetHeight)*s},a=.5*e.offsetWidth*s,o=t.type===c.Q5V.circle?new c.jlt(r.x,r.y,a):new c.M_G(e.offsetLeft*s,e.offsetTop*s,e.offsetWidth*s,e.offsetHeight*s),l=n.divs,h=(0,c.NVT)(l,e);this._processRepulse(r,a,o,h)})},this._engine=e,t.repulse||(t.repulse={particles:[]}),this.handleClickMode=e=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||e!==eS)return;t.repulse||(t.repulse={particles:[]});let n=t.repulse;for(let e of(n.clicking=!0,n.count=0,t.repulse.particles))this.isEnabled(e)&&e.velocity.setTo(e.initialVelocity);n.particles=[],n.finish=!1,setTimeout(()=>{t.destroyed||(n.clicking=!1)},i.duration*c.XuV)}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.repulse;t&&(e.retina.repulseModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,i=e.interactivity.status===c.RbF,n=t.interactivity.events,s=n.onHover,r=s.enable,a=s.mode,o=n.onClick,l=o.enable,h=o.mode,u=n.onDiv;i&&r&&(0,c.hnD)(eS,a)?this._hoverRepulse():l&&(0,c.hnD)(eS,h)?this._clickRepulse():(0,c.U6C)(eS,u,(e,t)=>this._singleSelectorRepulse(e,t))}isEnabled(e){let t=this.container,i=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??i.interactivity).events,r=s.onDiv,a=s.onHover,o=s.onClick,l=(0,c.iKf)(eS,r);if(!(l||a.enable&&n.position||o.enable&&n.clickPosition))return!1;let h=a.mode,u=o.mode;return(0,c.hnD)(eS,h)||(0,c.hnD)(eS,u)||l}loadModeOptions(e,...t){for(let i of(e.repulse||(e.repulse=new eE),t))e.repulse.load(i?.repulse)}reset(){}}async function eT(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalRepulse",t=>Promise.resolve(new eR(e,t)),t)}class eC{constructor(){this.factor=3,this.radius=200}load(e){(0,c.kZJ)(e)||(void 0!==e.factor&&(this.factor=e.factor),void 0!==e.radius&&(this.radius=e.radius))}}class ek extends c.sJd{constructor(e){super(e)}clear(e,t,i){(!e.slow.inRange||i)&&(e.slow.factor=1)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.slow;t&&(e.retina.slowModeRadius=t.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){let t=this.container,i=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!i.position&&(0,c.hnD)("slow",n.onHover.mode)}
1loadModeOptions(e,...t){for(let i of(e.slow||(e.slow=new eC),t))e.slow.load(i?.slow)}reset(e){e.slow.inRange=!1;let t=this.container,i=t.actualOptions,n=t.interactivity.mouse.position,s=t.retina.slowModeRadius,r=i.interactivity.modes.slow;if(!r||!s||s<0||!n)return;let a=e.getPosition(),o=(0,c.YfF)(n,a),l=r.factor,{slow:h}=e;o>s||(h.inRange=!0,h.factor=o/s/l)}}async function eO(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("externalSlow",e=>Promise.resolve(new ek(e)),t)}let eM=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function eA(e){return new Promise(t=>{e.loading=!0;let i=new Image;e.element=i,i.addEventListener("load",()=>{e.loading=!1,t()}),i.addEventListener("error",()=>{e.element=void 0,e.error=!0,e.loading=!1,(0,c.tZQ)().error(`${c.dIx} loading image: ${e.source}`),t()}),i.src=e.source})}async function eD(e){if("svg"!==e.type)return void await eA(e);e.loading=!0;let t=await fetch(e.source);t.ok?e.svgData=await t.text():((0,c.tZQ)().error(`${c.dIx} Image not found`),e.error=!0),e.loading=!1}let eI=[0,4,2,1],eL=[8,8,4,2];class ej{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){let t=this.data.slice(this.pos,this.pos+e);return this.pos+=t.length,t.reduce((e,t)=>e+String.fromCharCode(t),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",t=0;do{t=this.data[this.pos++];for(let i=t;--i>=0;e+=String.fromCharCode(this.data[this.pos++]));}while(0!==t);return e}readSubBlocksBin(){let e=this.data[this.pos],t=0;for(let i=0;0!==e;i+=e+1,e=this.data[this.pos+i])t+=e;let i=new Uint8Array(t);e=this.data[this.pos++];for(let t=0;0!==e;e=this.data[this.pos++])for(let n=e;--n>=0;i[t++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}!function(e){e[e.Replace=0]="Replace",e[e.Combine=1]="Combine",e[e.RestoreBackgroun
1d=2]="RestoreBackground",e[e.RestorePrevious=3]="RestorePrevious",e[e.UndefinedA=4]="UndefinedA",e[e.UndefinedB=5]="UndefinedB",e[e.UndefinedC=6]="UndefinedC",e[e.UndefinedD=7]="UndefinedD"}(o||(o={})),function(e){e[e.Extension=33]="Extension",e[e.ApplicationExtension=255]="ApplicationExtension",e[e.GraphicsControlExtension=249]="GraphicsControlExtension",e[e.PlainTextExtension=1]="PlainTextExtension",e[e.CommentExtension=254]="CommentExtension",e[e.Image=44]="Image",e[e.EndOfFile=59]="EndOfFile"}(l||(l={}));let ez={x:0,y:0};function eV(e,t){let i=[];for(let n=0;n<t;n++)i.push({r:e.data[e.pos],g:e.data[e.pos+1],b:e.data[e.pos+2]}),e.pos+=3;return i}async function eN(e,t,i,n,s,r){let a=t.frames[n(!0)];a.left=e.nextTwoBytes(),a.top=e.nextTwoBytes(),a.width=e.nextTwoBytes(),a.height=e.nextTwoBytes();let o=e.nextByte(),l=(128&o)==128;a.sortFlag=(32&o)==32,a.reserved=(24&o)>>>3,l&&(a.localColorTable=eV(e,1<<(7&o)+1));let c=e=>{let{r:n,g:r,b:o}=(l?a.localColorTable:t.globalColorTable)[e];return e!==s(null)?{r:n,g:r,b:o,a:255}:{r:n,g:r,b:o,a:i?~~((n+r+o)/3):0}},h=(()=>{try{return new ImageData(a.width,a.height,{colorSpace:"srgb"})}catch(e){if(e instanceof DOMException&&"IndexSizeError"===e.name)return null;throw e}})();if(null==h)throw EvalError("GIF frame size is to large");let u=e.nextByte(),d=e.readSubBlocksBin(),p=1<<u,f=(e,t)=>{let i=e>>>3,n=7&e;return(d[i]+(d[i+1]<<8)+(d[i+2]<<16)&(1<<t)-1<<n)>>>n};if((64&o)==64){for(let i=0,s=u+1,o=0,l=[[0]],d=0;d<4;d++){if(eI[d]<a.height){let e=0,t=0,n=!1;for(;!n;){let r=i;if(i=f(o,s),o+=s+1,i===p){s=u+1,l.length=p+2;for(let e=0;e<l.length;e++)l[e]=e<p?[e]:[]}else{for(let n of(i>=l.length?l.push(l[r].concat(l[r][0])):r!==p&&l.push(l[r].concat(l[i][0])),l[i])){let{r:i,g:s,b:r,a:o}=c(n);h.data.set([i,s,r,o],eI[d]*a.width+eL[d]*t+e%(4*a.width)),e+=4}l.length===1<<s&&s<12&&s++}e===4*a.width*(t+1)&&(t++,eI[d]+eL[d]*t>=a.height&&(n=!0))}}r?.(e.pos/(e.data.length-1),n(!1)+1,h,{x:a.left,y:a.top},{width:t.width,height:t.height})}a.image=h,a.bitmap=await createImageBitmap(h)}else{let i=0,s=u+1,o=0,l=-4,d=!1,m=[[0]];for(;!d;){let e=i;if(i=f(o,s),o+=s,i===p){s=u+1,m.length=p+2;for(let e=0;e<m.length;e++)m[e]=e<p?[e]:[]}else{if(i===p+1){d=!0;break}for(let t of(i>=m.length?m.push(m[e].concat(m[e][0])):e!==p&&m.push(m[e].concat(m[i][0])),m[i])){let{r:e,g:i,b:n,a:s}=c(t);h.data.set([e,i,n,s],l+=4)}m.length>=1<<s&&s<12&&s++}}a.image=h,a.bitmap=await createImageBitmap(h),r?.((e.pos+1)/e.data.length,n(!1)+1,a.image,{x:a.left,y:a.top},{width:t.width,height:t.height})}}async function eF(e,t,i,n,s,r){switch(e.nextByte()){case l.EndOfFile:return!0;case l.Image:await eN(e,t,i,n,s,r);break;case l.Extension:switch(e.nextByte()){case l.GraphicsControlExtension:{let i=t.frames[n(!1)];e.pos++;let r=e.nextByte();i.GCreserved=(224&r)>>>5,i.disposalMethod=(28&r)>>>2,i.userInputDelayFlag=(2&r)==2,i.delayTime=10*e.nextTwoBytes();let a=e.nextByte();(1&r)==1&&s(a),e.pos++;break}case l.ApplicationExtension:{e.pos++;let i={identifier:e.getString(8),authenticationCode:e.getString(3),data:e.readSubBlocksBin()};t.applicationExtensions.push(i);break}case l.CommentExtension:t.comments.push([n(!1),e.readSubBlocks()]);break;case l.PlainTextExtension:if(0===t.globalColorTable.length)throw EvalError("plain text extension without global color table");e.pos++,t.frames[n(!1)].plainTextData={left:e.nextTwoBytes(),top:e.nextTwoBytes(),width:e.nextTwoBytes(),height:e.nextTwoBytes(),charSize:{width:e.nextTwoBytes(),height:e.nextTwoBytes()},foregroundColor:e.nextByte(),backgroundColor:e.nextByte(),text:e.readSubBlocks()};break;default:e.skipSubBlocks()}break;default:throw EvalError("undefined block found")}return!1}async function eB(e,t,i){i||(i=!1);let n=await fetch(e);if(!n.ok&&404===n.status)throw EvalError("file not found");let s=await n.arrayBuffer(),r={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},a=new ej(new Uint8ClampedArray(s));if("GIF89a"!==a.getString(6))throw Error("not a supported GIF file");r.width=a.nextTwoBytes(),r.height=a.nextTwoBytes();let l=a.nextByte(),c=(128&l)==128;r.colorRes=(112&l)>>>4,r.sortFlag=(8&l)==8;let h=a.nextByte();r.pixelAspectRatio=a.nextByte(),0!==r.pixelAspectRatio&&(r.pixelAspectRatio=(r.pixelAspectRatio+15)/64),c&&(r.globalColorTable=eV(a,1<<(7&l)+1));let u=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(e){if(e instanceof DOMException&&"IndexSizeError"===e.name)return null;throw e}})();if(null==u)throw Error("GIF frame size is to large");let{r:d,g:p,b:f}=r.globalColorTable[h];u.data.set(c?[d,p,f,255]:[0,0,0,0]);for(let e=4;e<u.data.length;e*=2)u.data.copyWithin(e,0,e);r.backgroundImage=u;let m=-1,g=!0,v=-1,y=e=>(e&&(g=!0),m),b=e=>(null!=e&&(v=e),v);try{do g&&(r.frames.push({left:0,top:0,width:0,height:0,disposalMethod:o.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}
1),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,v=-1,g=!1);while(!await eF(a,r,i,y,b,t));for(let e of(r.frames.length--,r.frames)){if(e.userInputDelayFlag&&0===e.delayTime){r.totalTime=1/0;break}r.totalTime+=e.delayTime}return r}catch(e){if(e instanceof EvalError)throw Error(`error while parsing frame ${m} "${e.message}"`);throw e}}async function eU(e){if("gif"!==e.type)return void await eA(e);e.loading=!0;try{e.gifData=await eB(e.source),e.gifLoopCount=function(e){for(let t of e.applicationExtensions)if(t.identifier+t.authenticationCode==="NETSCAPE2.0")return t.data[1]+(t.data[2]<<8);return NaN}(e.gifData)??0,e.gifLoopCount||(e.gifLoopCount=1/0)}catch{e.error=!0}e.loading=!1}class eH{constructor(e){this.validTypes=["image","images"],this.loadImageShape=async e=>{if(!this._engine.loadImage)throw Error(`${c.dIx} image shape not initialized`);await this._engine.loadImage({gif:e.gif,name:e.name,replaceColor:e.replaceColor??!1,src:e.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){let{context:t,radius:i,particle:n,opacity:s}=e,r=n.image,a=r?.element;if(r){if(t.globalAlpha=s,r.gif&&r.gifData)!function(e){let{context:t,radius:i,particle:n,delta:s}=e,r=n.image;if(!r?.gifData||!r.gif)return;let a=new OffscreenCanvas(r.gifData.width,r.gifData.height),l=a.getContext("2d");if(!l)throw Error("could not create offscreen canvas context");l.imageSmoothingQuality="low",l.imageSmoothingEnabled=!1,l.clearRect(ez.x,ez.y,a.width,a.height),void 0===n.gifLoopCount&&(n.gifLoopCount=r.gifLoopCount??0);let c=n.gifFrame??0,h={x:-(.5*r.gifData.width),y:-(.5*r.gifData.height)},u=r.gifData.frames[c];if(void 0===n.gifTime&&(n.gifTime=0),u.bitmap){switch(t.scale(i/r.gifData.width,i/r.gifData.height),u.disposalMethod){case o.UndefinedA:case o.UndefinedB:case o.UndefinedC:case o.UndefinedD:case o.Replace:l.drawImage(u.bitmap,u.left,u.top),t.drawImage(a,h.x,h.y),l.clearRect(ez.x,ez.y,a.width,a.height);break;case o.Combine:l.drawImage(u.bitmap,u.left,u.top),t.drawImage(a,h.x,h.y);break;
1case o.RestoreBackground:l.drawImage(u.bitmap,u.left,u.top),t.drawImage(a,h.x,h.y),l.clearRect(ez.x,ez.y,a.width,a.height),r.gifData.globalColorTable.length?l.putImageData(r.gifData.backgroundImage,h.x,h.y):l.putImageData(r.gifData.frames[0].image,h.x+u.left,h.y+u.top);break;case o.RestorePrevious:{let e=l.getImageData(ez.x,ez.y,a.width,a.height);l.drawImage(u.bitmap,u.left,u.top),t.drawImage(a,h.x,h.y),l.clearRect(ez.x,ez.y,a.width,a.height),l.putImageData(e,ez.x,ez.y)}}if(n.gifTime+=s.value,n.gifTime>u.delayTime){if(n.gifTime-=u.delayTime,++c>=r.gifData.frames.length){if(--n.gifLoopCount<=0)return;c=0,l.clearRect(ez.x,ez.y,a.width,a.height)}n.gifFrame=c}t.scale(r.gifData.width/i,r.gifData.height/i)}}(e);else if(a){let e=r.ratio,n={x:-i,y:-i},s=2*i;t.drawImage(a,n.x,n.y,s,s/e)}t.globalAlpha=1}}getSidesCount(){return 12}async init(e){let t=e.actualOptions;if(t.preload&&this._engine.loadImage)for(let e of t.preload)await this._engine.loadImage(e)}loadShape(e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let t=e.shapeData;t&&(this._engine.images.find(e=>e.name===t.name||e.source===t.src)||this.loadImageShape(t).then(()=>{this.loadShape(e)}))}particleInit(e,t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,n=t.shapeData;if(!n)return;let s=t.getFillColor(),r=i.find(e=>e.name===n.name||e.source===n.src);if(!r)return;let a=n.replaceColor??r.replaceColor;if(r.loading)return void setTimeout(()=>{this.particleInit(e,t)});(async()=>{let e;(e=r.svgData&&s?await function(e,t,i,n){let s=function(e,t,i){let{svgData:n}=e;if(!n)return"";let s=(0,c.LCf)(t,i);if(n.includes("fill"))return n.replace(eM,()=>s);let r=n.indexOf(">");return`${n.substring(0,r)} fill="${s}"${n.substring(r)}`}(e,i,n.opacity?.value??1),r={color:i,gif:t.gif,data:{...e,svgData:s},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(t=>{let i=new Blob([s],{type:"image/svg+xml"}),n=URL||window.URL||window.webkitURL||window,a=n.createObjectURL(i),o=new Image;o.addEventListener("load",()=>{r.loaded=!0,r.element=o,t(r),n.revokeObjectURL(a)});let l=async()=>{n.revokeObjectURL(a);let i={...e,error:!1,loading:!0};await eA(i),r.loaded=!0,r.element=i.element,t(r)};o.addEventListener("error",()=>void l()),o.src=a})}(r,n,s,t):{color:s,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:r.ratio??1,replaceColor:a,source:n.src}).ratio||(e.ratio=1);let i=n.fill??t.shapeFill,o=n.close??t.shapeClose;t.image=e,t.shapeFill=i,t.shapeClose=o})()}}class eW{constructor(){this.src="",this.gif=!1}load(e){(0,c.kZJ)(e)||(void 0!==e.gif&&(this.gif=e.gif),void 0!==e.height&&(this.height=e.height),void 0!==e.name&&(this.name=e.name),void 0!==e.replaceColor&&(this.replaceColor=e.replaceColor),void 0!==e.src&&(this.src=e.src),void 0!==e.width&&(this.width=e.width))}}class eq{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,t){if(!t?.preload)return;e.preload||(e.preload=[]);let i=e.preload;for(let e of t.preload){let t=i.find(t=>t.name===e.name||t.src===e.src);if(t)t.load(e);else{let t=new eW;t.load(e),i.push(t)}}}needsPlugin(){return!0}}async function eG(e,t=!0){e.checkVersion("3.8.1"),e.loadImage||(e.loadImage=async t=>{if(!t.name&&!t.src)throw Error(`${c.dIx} no image source provided`);if(e.images||(e.images=[]),!e.images.find(e=>e.name===t.name||e.source===t.src))try{let i,n={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-3),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};e.images.push(n),i=t.gif?eU:t.replaceColor?eD:eA,await i(n)}catch{throw Error(`${c.dIx} ${t.name??t.src} not found`)}});let i=new eq(e);await e.addPlugin(i,t),await e.addShape(new eH(e),t)}class e$ extends c.PVU{constructor(){super(),this.sync=!1}load(e){(0,c.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class eX extends c.PVU{constructor(){super(),this.sync=!1}load(e){(0,c.kZJ)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}class eY{constructor(){this.count=0,this.delay=new e$,this.duration=new eX}load(e){(0,c.kZJ)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}class eK{constructor(e){this.container=e}init(e){let t=this.container,i=e.options.life;i&&(e.life={delay:t.retina.reduceFactor?(0,c.VGA)(i.delay.value)*(i.delay.sync?1:(0,c.G0i)())/t.retina.reduceFactor*c.XuV:0,delayTime:0,duration:t.retina.reduceFactor?(0,c.VGA)(i.duration.value)*(i.duration.sync?1:(0,c.G0i)())/t.retina.reduceFactor*c.XuV:0,time:0,count:i.count},e.life.duration<=0&&(e.life.duration=-1),e.life.count<=0&&(e.life.count=-1),e.life&&(e.spawning=e.life.delay>0))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){for(let i of(e.life||(e.life=new eY),t))e.life.load(i?.life)}update(e,t){this.isEnabled(e)&&e.life&&function(e,t,i){if(!e.life)return;let n=e.life,s=!1;if(e.spawning){if(n.delayTime+=t.value,!(n.delayTime>=e.life.delay))return;s=!0,e.spawning=!1,n.delayTime=0,n.time=0}if(-1===n.duration||e.spawning||(s?n.time=0:n.time+=t.value,n.time<n.duration))return;if(n.time=0,e.life.count>0&&e.life.count--,0===e.life.count)return e.destroy();let r=(0,c.DT4)(0,i.width),a=(0,c.DT4)(0,i.width);e.position.x=(0,c.U43)(r),e.position.y=(0,c.U43)(a),e.spawning=!0,n.delayTime=0,n.time=0,e.reset();let o=e.options.life;o&&(n.delay=(0,c.VGA)(o.delay.value)*c.XuV,n.duration=(0,c.VGA)(o.duration.value)*c.XuV)}(e,t,this.container.canvas.size)}}async function eJ(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("life",async e=>Promise.resolve(new eK(e)),t)}class eZ{constructor(){this.validTypes=["line"]}
1draw(e){let{context:t,particle:i,radius:n}=e,s=i.shapeData;t.moveTo(-n,0),t.lineTo(n,0),t.lineCap=s?.cap??"butt"}getSidesCount(){return 1}}async function eQ(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new eZ,t)}class e0{init(){}isEnabled(e){return!(0,c.B90)()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){let t=e.container,i=t.actualOptions.interactivity.events.onHover.parallax;if((0,c.B90)()||!i.enable)return;let n=i.force,s=t.interactivity.mouse.position;if(!s)return;let r=t.canvas.size,a={x:.5*r.width,y:.5*r.height},o=i.smooth,l=e.getRadius()/n,h={x:(s.x-a.x)*l,y:(s.y-a.y)*l},{offset:u}=e;u.x+=(h.x-u.x)/o,u.y+=(h.y-u.y)/o}}async function e1(e,t=!0){e.checkVersion("3.8.1"),await e.addMover("parallax",()=>Promise.resolve(new e0),t)}class e2 extends c.U4p{constructor(e){super(e)}clear(){}init(){}interact(e){let t=this.container;void 0===e.attractDistance&&(e.attractDistance=(0,c.VGA)(e.options.move.attract.distance)*t.retina.pixelRatio);let i=e.attractDistance,n=e.getPosition();for(let s of t.particles.quadTree.queryCircle(n,i)){if(e===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;let t=s.getPosition(),{dx:i,dy:r}=(0,c.vrU)(n,t),a=e.options.move.attract.rotate,o=i/(1e3*a.x),l=r/(1e3*a.y),h=s.size.value/e.size.value,u=1/h;e.velocity.x-=o*h,e.velocity.y-=l*h,s.velocity.x+=o*u,s.velocity.y+=l*u}}isEnabled(e){return e.options.move.attract.enable}reset(){}}async function e5(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("particlesAttract",e=>Promise.resolve(new e2(e)),t)}function e3(e,t,i,n,s,r){let a=(0,c.qE8)(e.options.collisions.absorb.speed*s.factor/10,0,n);e.size.value+=.5*a,i.size.value-=a,n<=r&&(i.size.value=0,i.destroy())}let e4=e=>{void 0===e.collisionMaxSpeed&&(e.collisionMaxSpeed=(0,c.VGA)(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function e8(e,t){(0,c.pEn)((0,c.Tgl)(e),(0,c.Tgl)(t)),e4(e),e4(t)}class e6 extends c.U4p{constructor(e){super(e)}clear(){}init(){}interact(e,t){if(e.destroyed||e.spawning)return;let i=this.container,n=e.getPosition(),s=e.getRadius();for(let r of i.particles.quadTree.queryCircle(n,2*s)){if(e===r||!r.options.collisions.enable||e.options.collisions.mode!==r.options.collisions.mode||r.destroyed||r.spawning)continue;let a=r.getPosition(),o=r.getRadius();if(!(Math.abs(Math.round(n.z)-Math.round(a.z))>s+o))(0,c.YfF)(n,a)>s+o||function(e,t,i,n){switch(e.options.collisions.mode){case c._or.absorb:let s=e.getRadius(),r=t.getRadius();void 0===s&&void 0!==r?e.destroy():void 0!==s&&void 0===r?t.destroy():void 0!==s&&void 0!==r&&(s>=r?e3(e,s,t,r,i,n):e3(t,r,e,s,i,n));break;case c._or.bounce:e8(e,t);break;case c._or.destroy:e.unbreakable||t.unbreakable||e8(e,t),void 0===e.getRadius()&&void 0!==t.getRadius()?e.destroy():void 0!==e.getRadius()&&void 0===t.getRadius()?t.destroy():void 0!==e.getRadius()&&void 0!==t.getRadius()&&(e.getRadius()>=t.getRadius()?t:e).destroy()}}(e,r,t,i.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}async function e9(e,t=!0){e.checkVersion("3.8.1"),await e.addInteractor("particlesCollisions",e=>Promise.resolve(new e6(e)),t)}class e7 extends c.jlt{constructor(e,t,i,n){super(e,t,i),this.canvasSize=n,this.canvasSize={...n}}contains(e){let{width:t,height:i}=this.canvasSize,{x:n,y:s}=e;return super.contains(e)||super.contains({x:n-t,y:s})||super.contains({x:n-t,y:s-i})||super.contains({x:n,y:s-i})}intersects(e){if(super.intersects(e))return!0;let t={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(void 0!==e.radius){let i=new c.jlt(t.x,t.y,2*e.radius);return super.intersects(i)}if(void 0!==e.size){let i=new c.M_G(t.x,t.y,2*e.size.width,2*e.size.height);return super.intersects(i)}return!1}}class te{constructor(){this.blur=5,this.color=new c.Oit,this.color.value="#000",this.enable=!1}load(e){(0,c.kZJ)(e)||(void 0!==e.blur&&(this.blur=e.blur),this.color=c.Oit.create(this.color,e.color),void 0!==e.enable&&(this.enable=e.enable))}}class tt{constructor(){this.enable=!1,this.frequency=1}load(e){(0,c.kZJ)(e)||(void 0!==e.color&&(this.color=c.Oit.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.frequency&&(this.frequency=e.frequency),void 0!==e.opacity&&(this.opacity=e.opacity))}}class ti{constructor(){this.blink=!1,this.color=new c.Oit,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new te,this.triangles=new tt,this.width=1,this.warp=!1}load(e){(0,c.kZJ)(e)||(void 0!==e.id&&(this.id=e.id),void 0!==e.blink&&(this.blink=e.blink),this.color=c.Oit.create(this.color,e.color),void 0!==e.consent&&(this.consent=e.consent),void 0!==e.distance&&(this.distance=e.distance),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.frequency&&(this.frequency=e.frequency),void 0!==e.opacity&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),void 0!==e.width&&(this.width=e.width),void 0!==e.warp&&(this.warp=e.warp))}}let tn={x:0,y:0};class ts extends c.U4p{constructor(e,t){super(e),this._setColor=e=>{if(!e.options.links)return;let t=this._linkContainer,i=e.options.links,n=void 0===i.id?t.particles.linksColor:t.particles.linksColors.get(i.id);if(n)return;let s=i.color;n=(0,c.PGG)(this._engine,s,i.blink,i.consent),void 0===i.id?t.particles.linksColor=n:t.particles.linksColors.set(i.id,n)},this._linkContainer=e,this._engine=t}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(e){let t;if(!e.options.links)return;e.links=[];let i=e.getPosition(),n=this.container,s=n.canvas.size;if(i.x<tn.x||i.y<tn.y||i.x>s.width||i.y>s.height)return;let r=e.options.links,a=r.opacity,o=e.retina.linksDistance??0,l=r.warp;for(let h of(t=l?new e7(i.x,i.y,o,s):new c.jlt(i.x,i.y,o),n.particles.quadTree.query(t))){let t=h.options.links;
1if(e===h||!t?.enable||r.id!==t.id||h.spawning||h.destroyed||!h.links||e.links.some(e=>e.destination===h)||h.links.some(t=>t.destination===e))continue;let n=h.getPosition();if(n.x<tn.x||n.y<tn.y||n.x>s.width||n.y>s.height)continue;let u=function(e,t,i,n,s){let{dx:r,dy:a,distance:o}=(0,c.vrU)(e,t);if(!s||o<=i)return o;let l={x:Math.abs(r),y:Math.abs(a)},h={x:Math.min(l.x,n.width-l.x),y:Math.min(l.y,n.height-l.y)};return Math.sqrt(h.x**2+h.y**2)}(i,n,o,s,l&&t.warp);if(u>o)continue;let d=(1-u/o)*a;this._setColor(e),e.links.push({destination:h,opacity:d})}}isEnabled(e){return!!e.options.links?.enable}loadParticlesOptions(e,...t){for(let i of(e.links||(e.links=new ti),t))e.links.load(i?.links)}reset(){}}async function tr(e,t=!0){await e.addInteractor("particlesLinks",async t=>Promise.resolve(new ts(t,e)),t)}function ta(e,t){var i;let n=((i=e.map(e=>e.id)).sort((e,t)=>e-t),i.join("_")),s=t.get(n);return void 0===s&&(s=(0,c.G0i)(),t.set(n,s)),s}class to{constructor(e,t){this._drawLinkLine=(e,t)=>{let i=e.options.links;if(!i?.enable)return;let n=this._container,s=n.actualOptions,r=t.destination,a=e.getPosition(),o=r.getPosition(),l=t.opacity;n.canvas.draw(t=>{let h,u=e.options.twinkle?.lines;if(u?.enable){let e=u.frequency,t=(0,c.BN0)(this._engine,u.color);(0,c.G0i)()<e&&t&&(h=t,l=(0,c.VGA)(u.opacity))}if(!h){let t=void 0!==i.id?n.particles.linksColors.get(i.id):n.particles.linksColor;h=(0,c._hh)(e,r,t)}if(!h)return;let d=e.retina.linksWidth??0,p=e.retina.linksDistance??0,{backgroundMask:f}=s;!function(e){let t=!1,{begin:i,end:n,engine:s,maxDistance:r,context:a,canvasSize:o,width:l,backgroundMask:h,colorLine:u,opacity:d,links:p}=e;if((0,c.YfF)(i,n)<=r)(0,c.V6E)(a,i,n),t=!0;else if(p.warp){let e,s,l={x:n.x-o.width,y:n.y},h=(0,c.vrU)(i,l);if(h.distance<=r){let t=i.y-h.dy/h.dx*i.x;e={x:0,y:t},s={x:o.width,y:t}}else{let t={x:n.x,y:n.y-o.height},a=(0,c.vrU)(i,t);if(a.distance<=r){let t=-(i.y-a.dy/a.dx*i.x)/(a.dy/a.dx);e={x:t,y:0},s={x:t,y:o.height}}else{let t={x:n.x-o.width,y:n.y-o.height},a=(0,c.vrU)(i,t);if(a.distance<=r){let t=i.y-a.dy/a.dx*i.x;s={x:(e={x:-t/(a.dy/a.dx),y:t}).x+o.width,y:e.y+o.height}}}}e&&s&&((0,c.V6E)(a,i,e),(0,c.V6E)(a,n,s),t=!0)}if(!t)return;a.lineWidth=l,h.enable&&(a.globalCompositeOperation=h.composite),a.strokeStyle=(0,c.xxz)(u,d);let{shadow:f}=p;if(f.enable){let e=(0,c.BN0)(s,f.color);e&&(a.shadowBlur=f.blur,a.shadowColor=(0,c.xxz)(e))}a.stroke()}({context:t,width:d,begin:a,end:o,engine:this._engine,maxDistance:p,canvasSize:n.canvas.size,links:i,backgroundMask:f,colorLine:h,opacity:l})})},this._drawLinkTriangle=(e,t,i)=>{let n=e.options.links;if(!n?.enable)return;let s=n.triangles;if(!s.enable)return;let r=this._container,a=r.actualOptions,o=t.destination,l=i.destination,h=s.opacity??(t.opacity+i.opacity)*.5;h<=0||r.canvas.draw(t=>{let i=e.getPosition(),u=o.getPosition(),d=l.getPosition(),p=e.retina.linksDistance??0;if((0,c.YfF)(i,u)>p||(0,c.YfF)(d,u)>p||(0,c.YfF)(d,i)>p)return;let f=(0,c.BN0)(this._engine,s.color);if(!f){let t=void 0!==n.id?r.particles.linksColors.get(n.id):r.particles.linksColor;f=(0,c._hh)(e,o,t)}f&&function(e){let{context:t,pos1:i,pos2:n,pos3:s,backgroundMask:r,colorTriangle:a,opacityTriangle:o}=e;t.beginPath(),t.moveTo(i.x,i.y),t.lineTo(n.x,n.y),t.lineTo(s.x,s.y),t.closePath(),r.enable&&(t.globalCompositeOperation=r.composite),t.fillStyle=(0,c.xxz)(a,o),t.fill()}({context:t,pos1:i,pos2:u,pos3:d,backgroundMask:a.backgroundMask,colorTriangle:f,opacityTriangle:h})})},this._drawTriangles=(e,t,i,n)=>{let s=i.destination;if(!(e.links?.triangles.enable&&s.options.links?.triangles.enable))return;let r=s.links?.filter(e=>{let t=this._getLinkFrequency(s,e.destination);return s.options.links&&t<=s.options.links.frequency&&n.findIndex(t=>t.destination===e.destination)>=0});if(r?.length)for(let n of r){let r=n.destination;this._getTriangleFrequency(t,s,r)>e.links.triangles.frequency||this._drawLinkTriangle(t,i,n)}},this._getLinkFrequency=(e,t)=>ta([e,t],this._freqs.links),this._getTriangleFrequency=(e,t,i)=>ta([e,t,i],this._freqs.triangles),this._container=e,this._engine=t,this._freqs={links:new Map,triangles:new Map}}
1drawParticle(e,t){let{links:i,options:n}=t;if(!i?.length)return;let s=i.filter(e=>n.links&&(n.links.frequency>=1||this._getLinkFrequency(t,e.destination)<=n.links.frequency));for(let e of s)this._drawTriangles(n,t,e,s),e.opacity>0&&(t.retina.linksWidth??0)>0&&this._drawLinkLine(t,e)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;let t=this._container.retina.pixelRatio,{retina:i}=e,{distance:n,width:s}=e.options.links;i.linksDistance=n*t,i.linksWidth=s*t}particleDestroyed(e){e.links=[]}}class tl{constructor(e){this.id="links",this._engine=e}getPlugin(e){return Promise.resolve(new to(e,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function tc(e,t=!0){let i=new tl(e);await e.addPlugin(i,t)}async function th(e,t=!0){e.checkVersion("3.8.1"),await tr(e,t),await tc(e,t)}let tu={x:0,y:0};class td{draw(e){let{particle:t,radius:i}=e;!function(e,t,i){let{context:n}=e,s=i.count.numerator*i.count.denominator,r=i.count.numerator/i.count.denominator,a=Math.PI-(0,c.puj)(180*(r-2)/r);if(n){n.beginPath(),n.translate(t.x,t.y),n.moveTo(tu.x,tu.y);for(let e=0;e<s;e++)n.lineTo(i.length,tu.y),n.translate(i.length,tu.y),n.rotate(a)}}(e,this.getCenter(t,i),this.getSidesData(t,i))}getSidesCount(e){let t=e.shapeData;return Math.round((0,c.VGA)(t?.sides??5))}}class tp extends td{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(e,t){return{x:-t/(e.sides/3.5),y:-t/.76}}getSidesData(e,t){let i=e.sides;return{count:{denominator:1,numerator:i},length:2.66*t/(i/3)}}}class tf extends td{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(e,t){return{x:-t,y:t/1.66}}getSidesCount(){return 3}getSidesData(e,t){return{count:{denominator:2,numerator:3},length:2*t}}}async function tm(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new tp,t)}async function tg(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new tf,t)}async function tv(e,t=!0){e.checkVersion("3.8.1"),await tm(e,t),await tg(e,t)}class ty{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,c.kZJ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,c.DT4)(e.speed)),void 0!==e.decay&&(this.decay=(0,c.DT4)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}class tb extends c.PVU{constructor(){super(),this.animation=new ty,this.direction=c.pTR.clockwise,this.path=!1,this.value=0}load(e){(0,c.kZJ)(e)||(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}let tw=2*Math.PI;class tx{constructor(e){this.container=e}init(e){let t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:(0,c.puj)((0,c.VGA)(t.value)),min:0,max:tw},e.pathRotation=t.path;let i=t.direction;switch(i===c.pTR.random&&(i=Math.floor(2*(0,c.G0i)())>0?c.pTR.counterClockwise:c.pTR.clockwise),i){case c.pTR.counterClockwise:case"counterClockwise":e.rotate.status=c.H_P.decreasing;break;case c.pTR.clockwise:e.rotate.status=c.H_P.increasing}let n=t.animation;n.enable&&(e.rotate.decay=1-(0,c.VGA)(n.decay),e.rotate.velocity=(0,c.VGA)(n.speed)/360*this.container.retina.reduceFactor,n.sync||(e.rotate.velocity*=(0,c.G0i)())),e.rotation=e.rotate.value}isEnabled(e){let t=e.options.rotate;return!!t&&!e.destroyed&&!e.spawning&&(!!t.value||t.animation.enable||t.path)}loadOptions(e,...t){for(let i of(e.rotate||(e.rotate=new tb),t))e.rotate.load(i?.rotate)}update(e,t){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&((0,c.UC0)(e,e.rotate,!1,c.VKE.none,t),e.rotation=e.rotate.value))}}async function t_(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("rotate",e=>Promise.resolve(new tx(e)),t)}let tP=Math.sqrt(2);class tE{constructor(){this.validTypes=["edge","square"]}draw(e){let{context:t,radius:i}=e,n=i/tP,s=2*n;t.rect(-n,-n,s,s)}getSidesCount(){return 4}}async function tS(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new tE,t)}let tR={x:0,y:0};class tT{constructor(){this.validTypes=["star"]}draw(e){let{context:t,particle:i,radius:n}
1=e,s=i.sides,r=i.starInset??2;t.moveTo(tR.x,tR.y-n);for(let e=0;e<s;e++)t.rotate(Math.PI/s),t.lineTo(tR.x,tR.y-n*r),t.rotate(Math.PI/s),t.lineTo(tR.x,tR.y-n)}getSidesCount(e){let t=e.shapeData;return Math.round((0,c.VGA)(t?.sides??5))}particleInit(e,t){let i=t.shapeData;t.starInset=(0,c.VGA)(i?.inset??2)}}async function tC(e,t=!0){e.checkVersion("3.8.1"),await e.addShape(new tT,t)}class tk{constructor(e,t){this._container=e,this._engine=t}init(e){let t=this._container,i=e.options,n=(0,c.TA3)(i.stroke,e.id,i.reduceDuplicates);e.strokeWidth=(0,c.VGA)(n.width)*t.retina.pixelRatio,e.strokeOpacity=(0,c.VGA)(n.opacity??1),e.strokeAnimation=n.color?.animation;let s=(0,c.R5R)(this._engine,n.color)??e.getFillColor();s&&(e.strokeColor=(0,c.pzy)(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){let t=e.strokeAnimation,{strokeColor:i}=e;return!e.destroyed&&!e.spawning&&!!t&&(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(e,t){this.isEnabled(e)&&(0,c.JvX)(e.strokeColor,t)}}async function tO(e,t=!0){e.checkVersion("3.8.1"),await e.addParticleUpdater("strokeColor",t=>Promise.resolve(new tk(t,e)),t)}async function tM(e,t=!0){e.checkVersion("3.8.1"),await e1(e,!1),await G(e,!1),await Z(e,!1),await er(e,!1),await ec(e,!1),await ep(e,!1),await em(e,!1),await ey(e,!1),await ex(e,!1),await eT(e,!1),await eO(e,!1),await e5(e,!1),await e9(e,!1),await th(e,!1),await V(e,!1),await B(e,!1),await eG(e,!1),await eQ(e,!1),await tv(e,!1),await tS(e,!1),await tC(e,!1),await eJ(e,!1),await t_(e,!1),await tO(e,!1),await z(e,t)}},8518:(e,t,i)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),i(5240),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8611:e=>{e.exports={style:{fontFamily:"'geistMono', 'geistMono Fallback'"},className:"__className_c3aa02",variable:"__variable_c3aa02"}},8675:e=>{e.exports={style:{fontFamily:"'Oswald', 'Oswald Fallback'",fontStyle:"normal"},className:"__className_ff0238",variable:"__variable_ff0238"}},9001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeAttributeString:function(){return o},htmlEscapeJsonString:function(){return a}});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g,s={"&":"&",'"':""","'":"'","<":"<",">":">"},r=/[&"'<>]/g;function a(e){return e.replace(n,e=>i[e])}function o(e){return e.replace(r,e=>s[e])}},9501:(e,t,i)=>{"use strict";var n=i(441),s=i(2115),r=i(63),a=i(87),o=function(){return(o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function l(e,t){return e.protocol+"//"+e.host+e.pathname+e.search==t.protocol+"//"+t.host+t.pathname+t.search}function c(e,t){return e.protocol+"//"+e.host+e.pathname==t.protocol+"//"+t.host+t.pathname}function h(e,t){if("string"==typeof t&&"data-disable-nprogress"===t){var i=t.substring(5);return e.dataset[i]}var n=e[t];if(n instanceof SVGAnimatedString){var s=n.baseVal;return"href"===t?function(e,t){if(!e.startsWith("/")||!t)return e;var i,n,s,r=(i=e.indexOf("#"),(s=(n=e.indexOf("?"))>-1&&(i<0||n<i))||i>-1?{pathname:e.substring(0,s?n:i),query:s?e.substring(n,i>-1?i:void 0):"",hash:i>-1?e.slice(i):""}:{pathname:e,query:"",hash:""}),a=r.pathname,o=r.query,l=r.hash;return"".concat(t).concat(a).concat(o).concat(l)}(s,location.origin):s}return n}"function"==typeof SuppressedError&&SuppressedError;var u=function(e){var t=e.color,i=e.height,n=e.spinnerPosition;return"\n#nprogress {\n pointer-events: none;\n}\n\n#nprogress .bar {\n background: ".concat(t,";\n\n position: fixed;\n z-index: 99999;\n top: 0;\n left: 0;\n\n width: 100%;\n height: ").concat(i,";\n}\n\n/* Fancy blur effect */\n#nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px ").concat(t,", 0 0 5px ").concat(t,";\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n\n/* Remove these to get rid of the spinner */\n#nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: ").concat("top-right"===n||"top-left"===n?"15px":"auto",";\n bottom: ").concat("bottom-right"===n||"bottom-left"===n?"15px":"auto",";\n right: ").concat("top-right"===n||"bottom-right"===n?"15px":"auto",";\n left: ").concat("top-left"===n||"bottom-left"===n?"15px":"auto",";\n}\n\n#nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: ").concat(t,";\n border-left-color: ").concat(t,";\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n}\n\n.nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n}\n\n.nprogress-custom-parent #nprogress .spinner,\n.nprogress-custom-parent #nprogress .bar {\n position: absolute;\n}\n\n@-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress-spinner {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n")},d=s.memo(function(e){var t,i=e.color,a=e.height,o=e.options,d=e.spinnerPosition,p=e.shallowRouting,f=void 0!==p&&p,m=e.disableSameURL,g=void 0===m||m,v=e.startPosition,y=void 0===v?0:v,b=e.delay,w=void 0===b?0:b,x=e.stopDelay,_=void 0===x?0:x,P=e.style,E=e.disableStyle,S=e.nonce,R=e.targetPreprocessor,T=e.disableAnchorClick,C=void 0!==T&&T,k=s.createElement("style",{nonce:S},P||u({color:void 0===i?"#0A2FFF":i,height:void 0===a?"2px":a,spinnerPosition:void 0===d?"top-right":d}
1));n.NProgress.configure(o||{});var O=r.usePathname(),M=r.useSearchParams();s.useEffect(function(){t&&clearTimeout(t),t=setTimeout(function(){n.NProgress.done()},_)},[O,M]);var A=s.useRef([]);return s.useEffect(function(){if(!C){var e,t=function(){e=setTimeout(function(){y>0&&n.NProgress.set(y),n.NProgress.start()},w)},i=function(){e&&clearTimeout(e),e=setTimeout(function(){n.NProgress.isStarted()&&n.NProgress.done()},_)},s=function(e){if(e.defaultPrevented)return;var i,n=e.currentTarget,s=e.target,r=(null==s?void 0:s.getAttribute("data-prevent-nprogress"))==="true"||(null==n?void 0:n.getAttribute("data-prevent-nprogress"))==="true";if(!r)for(var a=s;a&&"a"!==a.tagName.toLowerCase();){if((null==(i=a.parentElement)?void 0:i.getAttribute("data-prevent-nprogress"))==="true"){r=!0;break}a=a.parentElement}if(!r&&"_blank"!==h(n,"target")&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey){var o=h(n,"href"),u=R?R(new URL(o)):new URL(o),d=new URL(location.href);(!(f&&c(u,d))||!g)&&(l(u,d)&&g||t())}},r=new MutationObserver(function(){var e=Array.from(document.querySelectorAll("a")).filter(function(e){var t=h(e,"href"),i="true"===e.getAttribute("data-disable-nprogress"),n=t&&!t.startsWith("tel:")&&!t.startsWith("mailto:")&&!t.startsWith("blob:")&&!t.startsWith("javascript:");return!i&&n&&"_blank"!==h(e,"target")});e.forEach(function(e){e.addEventListener("click",s,!0)}),A.current=e});r.observe(document,{childList:!0,subtree:!0});var a=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,n){return i(),e.apply(t,n)}}),function(){r.disconnect(),A.current.forEach(function(e){e.removeEventListener("click",s,!0)}),A.current=[],window.history.pushState=a}}},[C,R,f,g]),void 0!==E&&E?null:k},function(e,t){return(null==t?void 0:t.memo)!==!1&&(null==t||!t.shouldCompareComplexProps||(null==e?void 0:e.color)===(null==t?void 0:t.color)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.shallowRouting)===(null==t?void 0:t.shallowRouting)&&(null==e?void 0:e.startPosition)===(null==t?void 0:t.startPosition)&&(null==e?void 0:e.delay)===(null==t?void 0:t.delay)&&(null==e?void 0:e.disableSameURL)===(null==t?void 0:t.disableSameURL)&&(null==e?void 0:e.stopDelay)===(null==t?void 0:t.stopDelay)&&(null==e?void 0:e.nonce)===(null==t?void 0:t.nonce)&&JSON.stringify(null==e?void 0:e.options)===JSON.stringify(null==t?void 0:t.options)&&(null==e?void 0:e.style)===(null==t?void 0:t.style)&&e.disableAnchorClick===t.disableAnchorClick)});d.displayName="AppProgressBar",s.memo(function(e){var t=e.color,i=e.height,r=e.options,o=e.spinnerPosition,h=e.shallowRouting,d=void 0!==h&&h,p=e.disableSameURL,f=void 0===p||p,m=e.startPosition,g=void 0===m?0:m,v=e.delay,y=void 0===v?0:v,b=e.stopDelay,w=void 0===b?0:b,x=e.style,_=e.disableStyle,P=e.nonce,E=s.createElement("style",{nonce:P},x||u({color:void 0===t?"#0A2FFF":t,height:void 0===i?"2px":i,spinnerPosition:void 0===o?"top-right":o}));return n.NProgress.configure(r||{}),s.useEffect(function(){var e,t=function(){e=setTimeout(function(){g>0&&n.NProgress.set(g),n.NProgress.start()},y)},i=function(){e&&clearTimeout(e),e=setTimeout(function(){n.NProgress.isStarted()&&n.NProgress.done(!0)},w)},s=function(e){var i=new URL(e,location.href),n=new URL(location.href);(!(d&&c(i,n))||!f)&&(l(i,n)&&f||t())},r=function(){return i()};return a.events.on("routeChangeStart",s),a.events.on("routeChangeComplete",r),a.events.on("routeChangeError",r),function(){a.events.off("routeChangeStart",s),a.events.off("routeChangeComplete",r),a.events.off("routeChangeError",r)}},[]),void 0!==_&&_?null:E},function(e,t){return(null==t?void 0:t.memo)!==!1&&(null==t||!t.shouldCompareComplexProps||(null==e?void 0:e.color)===(null==t?void 0:t.color)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.shallowRouting)===(null==t?void 0:t.shallowRouting)&&(null==e?void 0:e.startPosition)===(null==t?void 0:t.startPosition)&&(null==e?void 0:e.delay)===(null==t?void 0:t.delay)&&(null==e?void 0:e.disableSameURL)===(null==t?void 0:t.disableSameURL)&&(null==e?void 0:e.stopDelay)===(null==t?void 0:t.stopDelay)&&(null==e?void 0:e.nonce)===(null==t?void 0:t.nonce)&&JSON.stringify(null==e?void 0:e.options)===JSON.stringify(null==t?void 0:t.options)&&(null==e?void 0:e.style)===(null==t?void 0:t.style))}).displayName="PagesProgressBar",t.i4=function(e){return s.createElement(s.Suspense,null,s.createElement(d,o({},e)))}},9649:(e,t)=>
1{"use strict";function i(e,t){let i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(let n=i.length;n--;){let s=i[n];if("query"===s){let i=Object.keys(e.query);if(i.length!==Object.keys(t.query).length)return!1;for(let n=i.length;n--;){let s=i[n];if(!t.query.hasOwnProperty(s)||e.query[s]!==t.query[s])return!1}}else if(!t.hasOwnProperty(s)||e[s]!==t[s])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return i}})},9785:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),i(1239);let n=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.