diff --git a/dist/assets/index-BAxJNJCD.css b/dist/assets/index-BAxJNJCD.css new file mode 100644 index 0000000..43b7b6f --- /dev/null +++ b/dist/assets/index-BAxJNJCD.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.-bottom-1{bottom:-.25rem!important}.-bottom-12{bottom:-3rem!important}.left-0{left:0!important}.left-1\/2{left:50%!important}.right-0{right:0!important}.top-0{top:0!important}.top-4{top:1rem!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-50{z-index:50!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.mb-1{margin-bottom:.25rem!important}.mb-10{margin-bottom:2.5rem!important}.mb-12{margin-bottom:3rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mt-3{margin-top:.75rem!important}.mt-4{margin-top:1rem!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-0\.5{height:.125rem!important}.h-full{height:100%!important}.h-screen{height:100vh!important}.min-h-screen{min-height:100vh!important}.w-full{width:100%!important}.max-w-4xl{max-width:56rem!important}.max-w-6xl{max-width:72rem!important}.-translate-x-1\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.resize{resize:both!important}.list-inside{list-style-position:inside!important}.list-disc{list-style-type:disc!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.overflow-hidden{overflow:hidden!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre{white-space:pre!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.border{border-width:1px!important}.border-white\/10{border-color:#ffffff1a!important}.border-white\/20,.border-white\/\[0\.2\]{border-color:#fff3!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/20{background-color:#0003!important}.bg-black\/50{background-color:#00000080!important}.bg-black\/60{background-color:#0009!important}.bg-black\/80{background-color:#000c!important}.bg-purple-500{--tw-bg-opacity: 1 !important;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))!important}.bg-white\/10{background-color:#ffffff1a!important}.bg-white\/5{background-color:#ffffff0d!important}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))!important}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))!important}.from-black\/50{--tw-gradient-from: rgb(0 0 0 / .5) var(--tw-gradient-from-position) !important;--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position) !important;--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to) !important}.to-black\/50{--tw-gradient-to: rgb(0 0 0 / .5) var(--tw-gradient-to-position) !important}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position) !important}.bg-dot-pattern{background-size:24px 24px!important}.bg-clip-text{-webkit-background-clip:text!important;background-clip:text!important}.p-2{padding:.5rem!important}.p-3{padding:.75rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-24{padding-top:6rem!important;padding-bottom:6rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-5xl{font-size:3rem!important;line-height:1!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.font-bold{font-weight:700!important}.font-semibold{font-weight:600!important}.text-purple-500{--tw-text-opacity: 1 !important;color:rgb(168 85 247 / var(--tw-text-opacity, 1))!important}.text-transparent{color:transparent!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-white\/70{color:#ffffffb3!important}.text-white\/80{color:#fffc!important}.text-white\/90{color:#ffffffe6!important}.antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.opacity-0{opacity:0!important}.opacity-20{opacity:.2!important}.backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{color-scheme:dark}html{scroll-behavior:smooth;scroll-padding-top:80px}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));font-family:Inter,system-ui,-apple-system,sans-serif}.bg-dot-pattern{background-image:radial-gradient(rgba(255,255,255,.1) 1px,transparent 1px);background-size:40px 40px;background-position:-19px -19px}.hover\:bg-black\/70:hover{background-color:#000000b3!important}.hover\:bg-white\/20:hover{background-color:#fff3!important}.hover\:bg-white\/\[0\.07\]:hover{background-color:#ffffff12!important}.hover\:text-white:hover{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:bg-white\/20{background-color:#fff3!important}.group:hover .group-hover\:text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:text-white\/80{color:#fffc!important}.group:hover .group-hover\:text-white\/90{color:#ffffffe6!important}.group:hover .group-hover\:opacity-100{opacity:1!important}@media (min-width: 640px){.sm\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}@media (min-width: 768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\:py-32{padding-top:8rem!important;padding-bottom:8rem!important}.md\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.md\:text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.md\:text-6xl{font-size:3.75rem!important;line-height:1!important}.md\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}@media (min-width: 1024px){.lg\:text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}} diff --git a/dist/assets/index-jIvBxR_d.js b/dist/assets/index-DbFf8aPK.js similarity index 62% rename from dist/assets/index-jIvBxR_d.js rename to dist/assets/index-DbFf8aPK.js index 2ce8043..f4ea5ee 100644 --- a/dist/assets/index-jIvBxR_d.js +++ b/dist/assets/index-DbFf8aPK.js @@ -1,4 +1,4 @@ -function qk(e,t){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Qk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var W0={exports:{}},hu={},H0={exports:{}},H={};/** +function Gk(e,t){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Kk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}),n}var B0={exports:{}},hu={},U0={exports:{}},H={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function qk(e,t){for(var n=0;n>>1,Ee=E[K];if(0>>1;Kr(ti,N))Jtr(Cr,ti)?(E[K]=Cr,E[Jt]=N,K=Jt):(E[K]=ti,E[rt]=N,K=rt);else if(Jtr(Cr,N))E[K]=Cr,E[Jt]=N,K=Jt;else break e}}return L}function r(E,L){var N=E.sortIndex-L.sortIndex;return N!==0?N:E.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,p=!1,y=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var L=n(u);L!==null;){if(L.callback===null)i(u);else if(L.startTime<=E)i(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(E){if(h=!1,v(E),!y)if(n(l)!==null)y=!0,oe(b);else{var L=n(u);L!==null&&X(w,L.startTime-E)}}function b(E,L){y=!1,h&&(h=!1,m(_),_=-1),p=!0;var N=d;try{for(v(L),f=n(l);f!==null&&(!(f.expirationTime>L)||E&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,d=f.priorityLevel;var Ee=K(f.expirationTime<=L);L=e.unstable_now(),typeof Ee=="function"?f.callback=Ee:f===n(l)&&i(l),v(L)}else i(l);f=n(l)}if(f!==null)var kr=!0;else{var rt=n(u);rt!==null&&X(w,rt.startTime-L),kr=!1}return kr}finally{f=null,d=N,p=!1}}var S=!1,P=null,_=-1,A=5,T=-1;function I(){return!(e.unstable_now()-TE||125K?(E.sortIndex=N,t(u,E),n(l)===null&&E===n(u)&&(h?(m(_),_=-1):h=!0,X(w,N-K))):(E.sortIndex=Ee,t(l,E),y||p||(y=!0,oe(b))),E},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(E){var L=d;return function(){var N=d;d=L;try{return E.apply(this,arguments)}finally{d=N}}}})(ix);nx.exports=ix;var yC=nx.exports;/** + */(function(e){function t(E,D){var N=E.length;E.push(D);e:for(;0>>1,Ee=E[K];if(0>>1;Kr(ti,N))Jtr(Cr,ti)?(E[K]=Cr,E[Jt]=N,K=Jt):(E[K]=ti,E[rt]=N,K=rt);else if(Jtr(Cr,N))E[K]=Cr,E[Jt]=N,K=Jt;else break e}}return D}function r(E,D){var N=E.sortIndex-D.sortIndex;return N!==0?N:E.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,p=!1,y=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(E){for(var D=n(u);D!==null;){if(D.callback===null)i(u);else if(D.startTime<=E)i(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function w(E){if(h=!1,v(E),!y)if(n(l)!==null)y=!0,oe(b);else{var D=n(u);D!==null&&X(w,D.startTime-E)}}function b(E,D){y=!1,h&&(h=!1,m(_),_=-1),p=!0;var N=d;try{for(v(D),f=n(l);f!==null&&(!(f.expirationTime>D)||E&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,d=f.priorityLevel;var Ee=K(f.expirationTime<=D);D=e.unstable_now(),typeof Ee=="function"?f.callback=Ee:f===n(l)&&i(l),v(D)}else i(l);f=n(l)}if(f!==null)var kr=!0;else{var rt=n(u);rt!==null&&X(w,rt.startTime-D),kr=!1}return kr}finally{f=null,d=N,p=!1}}var S=!1,P=null,_=-1,A=5,T=-1;function I(){return!(e.unstable_now()-TE||125K?(E.sortIndex=N,t(u,E),n(l)===null&&E===n(u)&&(h?(m(_),_=-1):h=!0,X(w,N-K))):(E.sortIndex=Ee,t(l,E),y||p||(y=!0,oe(b))),E},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(E){var D=d;return function(){var N=d;d=D;try{return E.apply(this,arguments)}finally{d=N}}}})(tx);ex.exports=tx;var mC=ex.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ function qk(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=Object.prototype.hasOwnProperty,xC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Em={},Rm={};function wC(e){return If.call(Rm,e)?!0:If.call(Em,e)?!1:xC.test(e)?Rm[e]=!0:(Em[e]=!0,!1)}function bC(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function SC(e,t,n,i){if(t===null||typeof t>"u"||bC(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,i,r,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ph=/[\-:]([a-z])/g;function mh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function gh(e,t,n,i){var r=He.hasOwnProperty(t)?He[t]:null;(r!==null?r.type!==0:i||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),If=Object.prototype.hasOwnProperty,yC=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Tm={},Mm={};function vC(e){return If.call(Mm,e)?!0:If.call(Tm,e)?!1:yC.test(e)?Mm[e]=!0:(Tm[e]=!0,!1)}function xC(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wC(e,t,n,i){if(t===null||typeof t>"u"||xC(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,i,r,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ph=/[\-:]([a-z])/g;function mh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ph,mh);He[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function gh(e,t,n,i){var r=He.hasOwnProperty(t)?He[t]:null;(r!==null?r.type!==0:i||!(2a||r[s]!==o[a]){var l=` -`+r[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Cc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ls(e):""}function kC(e){switch(e.tag){case 5:return ls(e.type);case 16:return ls("Lazy");case 13:return ls("Suspense");case 19:return ls("SuspenseList");case 0:case 2:case 15:return e=Pc(e.type,!1),e;case 11:return e=Pc(e.type.render,!1),e;case 1:return e=Pc(e.type,!0),e;default:return""}}function Ff(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dr:return"Fragment";case Lr:return"Portal";case Lf:return"Profiler";case yh:return"StrictMode";case Df:return"Suspense";case $f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sx:return(e.displayName||"Context")+".Consumer";case ox:return(e._context.displayName||"Context")+".Provider";case vh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xh:return t=e.displayName||null,t!==null?t:Ff(e.type)||"Memo";case si:t=e._payload,e=e._init;try{return Ff(e(t))}catch{}}return null}function CC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ff(t);case 8:return t===yh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PC(e){var t=lx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ca(e){e._valueTracker||(e._valueTracker=PC(e))}function ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=lx(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Cl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jf(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Am(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ki(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cx(e,t){t=t.checked,t!=null&&gh(e,"checked",t,!1)}function Nf(e,t){cx(e,t);var n=ki(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vf(e,t.type,ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Vf(e,t,n){(t!=="number"||Cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var us=Array.isArray;function to(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Pa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ms={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_C=["Webkit","ms","Moz","O"];Object.keys(ms).forEach(function(e){_C.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ms[t]=ms[e]})});function px(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ms.hasOwnProperty(e)&&ms[e]?(""+t).trim():t+"px"}function mx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=px(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var TC=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wf(e,t){if(t){if(TC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Hf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gf=null;function wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kf=null,no=null,io=null;function Dm(e){if(e=ua(e)){if(typeof Kf!="function")throw Error(M(280));var t=e.stateNode;t&&(t=vu(t),Kf(e.stateNode,e.type,t))}}function gx(e){no?io?io.push(e):io=[e]:no=e}function yx(){if(no){var e=no,t=io;if(io=no=null,Dm(e),t)for(e=0;e>>=0,e===0?32:31-(FC(e)/jC|0)|0}var _a=64,Ta=4194304;function cs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=cs(a):(o&=s,o!==0&&(i=cs(o)))}else s=n&~r,s!==0?i=cs(s):o!==0&&(i=cs(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function aa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function UC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=ys),Hm=" ",Gm=!1;function $x(e,t){switch(e){case"keyup":return yP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function xP(e,t){switch(e){case"compositionend":return Fx(t);case"keypress":return t.which!==32?null:(Gm=!0,Hm);case"textInput":return e=t.data,e===Hm&&Gm?null:e;default:return null}}function wP(e,t){if($r)return e==="compositionend"||!Mh&&$x(e,t)?(e=Lx(),il=Ph=fi=null,$r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ym(n)}}function Bx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ux(){for(var e=window,t=Cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cl(e.document)}return t}function Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function EP(e){var t=Ux(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bx(n.ownerDocument.documentElement,n)){if(i!==null&&Eh(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=Xm(n,o);var s=Xm(n,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fr=null,Jf=null,xs=null,ed=!1;function Zm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ed||Fr==null||Fr!==Cl(i)||(i=Fr,"selectionStart"in i&&Eh(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xs&&Ds(xs,i)||(xs=i,i=Ol(Jf,"onSelect"),0Vr||(e.current=sd[Vr],sd[Vr]=null,Vr--)}function se(e,t){Vr++,sd[Vr]=e.current,e.current=t}var Ci={},tt=Oi(Ci),pt=Oi(!1),lr=Ci;function vo(e,t){var n=e.type.contextTypes;if(!n)return Ci;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function mt(e){return e=e.childContextTypes,e!=null}function zl(){ue(pt),ue(tt)}function og(e,t,n){if(tt.current!==Ci)throw Error(M(168));se(tt,t),se(pt,n)}function Zx(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(M(108,CC(e)||"Unknown",r));return ye({},n,i)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,lr=tt.current,se(tt,e),se(pt,pt.current),!0}function sg(e,t,n){var i=e.stateNode;if(!i)throw Error(M(169));n?(e=Zx(e,t,lr),i.__reactInternalMemoizedMergedChildContext=e,ue(pt),ue(tt),se(tt,e)):ue(pt),se(pt,n)}var Ln=null,xu=!1,jc=!1;function Jx(e){Ln===null?Ln=[e]:Ln.push(e)}function VP(e){xu=!0,Jx(e)}function Ai(){if(!jc&&Ln!==null){jc=!0;var e=0,t=ee;try{var n=Ln;for(ee=1;e>=s,r-=s,$n=1<<32-ln(t)+r|n<_?(A=P,P=null):A=P.sibling;var T=d(m,P,v[_],w);if(T===null){P===null&&(P=A);break}e&&P&&T.alternate===null&&t(m,P),g=o(T,g,_),S===null?b=T:S.sibling=T,S=T,P=A}if(_===v.length)return n(m,P),he&&Bi(m,_),b;if(P===null){for(;__?(A=P,P=null):A=P.sibling;var I=d(m,P,T.value,w);if(I===null){P===null&&(P=A);break}e&&P&&I.alternate===null&&t(m,P),g=o(I,g,_),S===null?b=I:S.sibling=I,S=I,P=A}if(T.done)return n(m,P),he&&Bi(m,_),b;if(P===null){for(;!T.done;_++,T=v.next())T=f(m,T.value,w),T!==null&&(g=o(T,g,_),S===null?b=T:S.sibling=T,S=T);return he&&Bi(m,_),b}for(P=i(m,P);!T.done;_++,T=v.next())T=p(P,m,_,T.value,w),T!==null&&(e&&T.alternate!==null&&P.delete(T.key===null?_:T.key),g=o(T,g,_),S===null?b=T:S.sibling=T,S=T);return e&&P.forEach(function(z){return t(m,z)}),he&&Bi(m,_),b}function x(m,g,v,w){if(typeof v=="object"&&v!==null&&v.type===Dr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ka:e:{for(var b=v.key,S=g;S!==null;){if(S.key===b){if(b=v.type,b===Dr){if(S.tag===7){n(m,S.sibling),g=r(S,v.props.children),g.return=m,m=g;break e}}else if(S.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===si&&ug(b)===S.type){n(m,S.sibling),g=r(S,v.props),g.ref=Yo(m,S,v),g.return=m,m=g;break e}n(m,S);break}else t(m,S);S=S.sibling}v.type===Dr?(g=rr(v.props.children,m.mode,w,v.key),g.return=m,m=g):(w=fl(v.type,v.key,v.props,null,m.mode,w),w.ref=Yo(m,g,v),w.return=m,m=w)}return s(m);case Lr:e:{for(S=v.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=r(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Kc(v,m.mode,w),g.return=m,m=g}return s(m);case si:return S=v._init,x(m,g,S(v._payload),w)}if(us(v))return y(m,g,v,w);if(Ho(v))return h(m,g,v,w);Ia(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=r(g,v),g.return=m,m=g):(n(m,g),g=Gc(v,m.mode,w),g.return=m,m=g),s(m)):n(m,g)}return x}var wo=i1(!0),r1=i1(!1),$l=Oi(null),Fl=null,Wr=null,zh=null;function Ih(){zh=Wr=Fl=null}function Lh(e){var t=$l.current;ue($l),e._currentValue=t}function ud(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function oo(e,t){Fl=e,zh=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(zh!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Fl===null)throw Error(M(308));Wr=e,Fl.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var qi=null;function Dh(e){qi===null?qi=[e]:qi.push(e)}function o1(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,Dh(t)):(n.next=r.next,r.next=n),t.interleaved=n,Qn(e,i)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ai=!1;function $h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function s1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,q&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Qn(e,n)}return r=i.interleaved,r===null?(t.next=t,Dh(i)):(t.next=r.next,r.next=t),i.interleaved=t,Qn(e,n)}function ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sh(e,n)}}function cg(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jl(e,t,n,i){var r=e.updateQueue;ai=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=r.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,p=a.eventTime;if((i&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,h=a;switch(d=t,p=n,h.tag){case 1:if(y=h.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=ye({},f,d);break e;case 2:ai=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=r.effects,d===null?r.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,s|=d;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;d=a,a=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(c===null&&(l=f),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);fr|=s,e.lanes=s,e.memoizedState=f}}function fg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Vc.transition;Vc.transition={};try{e(!1),t()}finally{ee=n,Vc.transition=i}}function k1(){return Gt().memoizedState}function HP(e,t,n){var i=wi(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},C1(e))P1(t,n);else if(n=o1(e,t,n,i),n!==null){var r=at();un(n,e,i,r),_1(n,t,i)}}function GP(e,t,n){var i=wi(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(C1(e))P1(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,dn(a,s)){var l=t.interleaved;l===null?(r.next=r,Dh(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=o1(e,t,r,i),n!==null&&(r=at(),un(n,e,i,r),_1(n,t,i))}}function C1(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function P1(e,t){ws=Vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _1(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sh(e,n)}}var Bl={readContext:Ht,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},KP={readContext:Ht,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:hg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,v1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=yn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=HP.bind(null,ge,e),[i.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:dg,useDebugValue:Hh,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=dg(!1),t=e[0];return e=WP.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ge,r=yn();if(he){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),$e===null)throw Error(M(349));cr&30||c1(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,hg(d1.bind(null,i,o,e),[e]),i.flags|=2048,Ws(9,f1.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=yn(),t=$e.identifierPrefix;if(he){var n=Fn,i=$n;n=(i&~(1<<32-ln(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bs++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Cc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ls(e):""}function bC(e){switch(e.tag){case 5:return ls(e.type);case 16:return ls("Lazy");case 13:return ls("Suspense");case 19:return ls("SuspenseList");case 0:case 2:case 15:return e=Pc(e.type,!1),e;case 11:return e=Pc(e.type.render,!1),e;case 1:return e=Pc(e.type,!0),e;default:return""}}function Ff(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Lr:return"Fragment";case Dr:return"Portal";case Df:return"Profiler";case yh:return"StrictMode";case Lf:return"Suspense";case $f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rx:return(e.displayName||"Context")+".Consumer";case ix:return(e._context.displayName||"Context")+".Provider";case vh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xh:return t=e.displayName||null,t!==null?t:Ff(e.type)||"Memo";case si:t=e._payload,e=e._init;try{return Ff(e(t))}catch{}}return null}function SC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ff(t);case 8:return t===yh?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ki(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kC(e){var t=sx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ca(e){e._valueTracker||(e._valueTracker=kC(e))}function ax(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=sx(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Cl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jf(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rm(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=ki(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lx(e,t){t=t.checked,t!=null&&gh(e,"checked",t,!1)}function Nf(e,t){lx(e,t);var n=ki(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vf(e,t.type,ki(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Om(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Vf(e,t,n){(t!=="number"||Cl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var us=Array.isArray;function to(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Pa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ms={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CC=["Webkit","ms","Moz","O"];Object.keys(ms).forEach(function(e){CC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ms[t]=ms[e]})});function dx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ms.hasOwnProperty(e)&&ms[e]?(""+t).trim():t+"px"}function hx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=dx(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}var PC=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wf(e,t){if(t){if(PC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Hf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gf=null;function wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kf=null,no=null,io=null;function Im(e){if(e=ua(e)){if(typeof Kf!="function")throw Error(M(280));var t=e.stateNode;t&&(t=vu(t),Kf(e.stateNode,e.type,t))}}function px(e){no?io?io.push(e):io=[e]:no=e}function mx(){if(no){var e=no,t=io;if(io=no=null,Im(e),t)for(e=0;e>>=0,e===0?32:31-(LC(e)/$C|0)|0}var _a=64,Ta=4194304;function cs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ml(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?i=cs(a):(o&=s,o!==0&&(i=cs(o)))}else s=n&~r,s!==0?i=cs(s):o!==0&&(i=cs(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&r)&&(r=i&-i,o=t&-t,r>=o||r===16&&(o&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function aa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ln(t),e[t]=n}function VC(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=ys),Um=" ",Wm=!1;function Dx(e,t){switch(e){case"keyup":return mP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $r=!1;function yP(e,t){switch(e){case"compositionend":return Lx(t);case"keypress":return t.which!==32?null:(Wm=!0,Um);case"textInput":return e=t.data,e===Um&&Wm?null:e;default:return null}}function vP(e,t){if($r)return e==="compositionend"||!Mh&&Dx(e,t)?(e=zx(),il=Ph=fi=null,$r=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qm(n)}}function Nx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vx(){for(var e=window,t=Cl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cl(e.document)}return t}function Eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function TP(e){var t=Vx(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nx(n.ownerDocument.documentElement,n)){if(i!==null&&Eh(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=i.end===void 0?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=Ym(n,o);var s=Ym(n,i);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Fr=null,Jf=null,xs=null,ed=!1;function Qm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ed||Fr==null||Fr!==Cl(i)||(i=Fr,"selectionStart"in i&&Eh(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xs&&Ls(xs,i)||(xs=i,i=Ol(Jf,"onSelect"),0Vr||(e.current=sd[Vr],sd[Vr]=null,Vr--)}function se(e,t){Vr++,sd[Vr]=e.current,e.current=t}var Ci={},tt=Oi(Ci),pt=Oi(!1),lr=Ci;function vo(e,t){var n=e.type.contextTypes;if(!n)return Ci;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r={},o;for(o in n)r[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function mt(e){return e=e.childContextTypes,e!=null}function zl(){ue(pt),ue(tt)}function ig(e,t,n){if(tt.current!==Ci)throw Error(M(168));se(tt,t),se(pt,n)}function Qx(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in t))throw Error(M(108,SC(e)||"Unknown",r));return ye({},n,i)}function Il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,lr=tt.current,se(tt,e),se(pt,pt.current),!0}function rg(e,t,n){var i=e.stateNode;if(!i)throw Error(M(169));n?(e=Qx(e,t,lr),i.__reactInternalMemoizedMergedChildContext=e,ue(pt),ue(tt),se(tt,e)):ue(pt),se(pt,n)}var Dn=null,xu=!1,jc=!1;function Xx(e){Dn===null?Dn=[e]:Dn.push(e)}function jP(e){xu=!0,Xx(e)}function Ai(){if(!jc&&Dn!==null){jc=!0;var e=0,t=ee;try{var n=Dn;for(ee=1;e>=s,r-=s,$n=1<<32-ln(t)+r|n<_?(A=P,P=null):A=P.sibling;var T=d(m,P,v[_],w);if(T===null){P===null&&(P=A);break}e&&P&&T.alternate===null&&t(m,P),g=o(T,g,_),S===null?b=T:S.sibling=T,S=T,P=A}if(_===v.length)return n(m,P),he&&Bi(m,_),b;if(P===null){for(;__?(A=P,P=null):A=P.sibling;var I=d(m,P,T.value,w);if(I===null){P===null&&(P=A);break}e&&P&&I.alternate===null&&t(m,P),g=o(I,g,_),S===null?b=I:S.sibling=I,S=I,P=A}if(T.done)return n(m,P),he&&Bi(m,_),b;if(P===null){for(;!T.done;_++,T=v.next())T=f(m,T.value,w),T!==null&&(g=o(T,g,_),S===null?b=T:S.sibling=T,S=T);return he&&Bi(m,_),b}for(P=i(m,P);!T.done;_++,T=v.next())T=p(P,m,_,T.value,w),T!==null&&(e&&T.alternate!==null&&P.delete(T.key===null?_:T.key),g=o(T,g,_),S===null?b=T:S.sibling=T,S=T);return e&&P.forEach(function(z){return t(m,z)}),he&&Bi(m,_),b}function x(m,g,v,w){if(typeof v=="object"&&v!==null&&v.type===Lr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ka:e:{for(var b=v.key,S=g;S!==null;){if(S.key===b){if(b=v.type,b===Lr){if(S.tag===7){n(m,S.sibling),g=r(S,v.props.children),g.return=m,m=g;break e}}else if(S.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===si&&ag(b)===S.type){n(m,S.sibling),g=r(S,v.props),g.ref=Qo(m,S,v),g.return=m,m=g;break e}n(m,S);break}else t(m,S);S=S.sibling}v.type===Lr?(g=rr(v.props.children,m.mode,w,v.key),g.return=m,m=g):(w=fl(v.type,v.key,v.props,null,m.mode,w),w.ref=Qo(m,g,v),w.return=m,m=w)}return s(m);case Dr:e:{for(S=v.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=r(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Kc(v,m.mode,w),g.return=m,m=g}return s(m);case si:return S=v._init,x(m,g,S(v._payload),w)}if(us(v))return y(m,g,v,w);if(Ho(v))return h(m,g,v,w);Ia(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=r(g,v),g.return=m,m=g):(n(m,g),g=Gc(v,m.mode,w),g.return=m,m=g),s(m)):n(m,g)}return x}var wo=t1(!0),n1=t1(!1),$l=Oi(null),Fl=null,Wr=null,zh=null;function Ih(){zh=Wr=Fl=null}function Dh(e){var t=$l.current;ue($l),e._currentValue=t}function ud(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function oo(e,t){Fl=e,zh=Wr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(zh!==e)if(e={context:e,memoizedValue:t,next:null},Wr===null){if(Fl===null)throw Error(M(308));Wr=e,Fl.dependencies={lanes:0,firstContext:e}}else Wr=Wr.next=e;return t}var qi=null;function Lh(e){qi===null?qi=[e]:qi.push(e)}function i1(e,t,n,i){var r=t.interleaved;return r===null?(n.next=n,Lh(t)):(n.next=r.next,r.next=n),t.interleaved=n,Yn(e,i)}function Yn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ai=!1;function $h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function r1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,q&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Yn(e,n)}return r=i.interleaved,r===null?(t.next=t,Lh(i)):(t.next=r.next,r.next=t),i.interleaved=t,Yn(e,n)}function ol(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sh(e,n)}}function lg(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?r=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jl(e,t,n,i){var r=e.updateQueue;ai=!1;var o=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=r.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,p=a.eventTime;if((i&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,h=a;switch(d=t,p=n,h.tag){case 1:if(y=h.payload,typeof y=="function"){f=y.call(p,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,f,d):y,d==null)break e;f=ye({},f,d);break e;case 2:ai=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=r.effects,d===null?r.effects=[a]:d.push(a))}else p={eventTime:p,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=f):c=c.next=p,s|=d;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;d=a,a=d.next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}while(!0);if(c===null&&(l=f),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,t=r.shared.interleaved,t!==null){r=t;do s|=r.lane,r=r.next;while(r!==t)}else o===null&&(r.shared.lanes=0);fr|=s,e.lanes=s,e.memoizedState=f}}function ug(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Vc.transition;Vc.transition={};try{e(!1),t()}finally{ee=n,Vc.transition=i}}function b1(){return Gt().memoizedState}function UP(e,t,n){var i=wi(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},S1(e))k1(t,n);else if(n=i1(e,t,n,i),n!==null){var r=at();un(n,e,i,r),C1(n,t,i)}}function WP(e,t,n){var i=wi(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(S1(e))k1(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(r.hasEagerState=!0,r.eagerState=a,dn(a,s)){var l=t.interleaved;l===null?(r.next=r,Lh(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=i1(e,t,r,i),n!==null&&(r=at(),un(n,e,i,r),C1(n,t,i))}}function S1(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function k1(e,t){ws=Vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Sh(e,n)}}var Bl={readContext:Ht,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},HP={readContext:Ht,useCallback:function(e,t){return yn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:fg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,al(4194308,4,g1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return al(4194308,4,e,t)},useInsertionEffect:function(e,t){return al(4,2,e,t)},useMemo:function(e,t){var n=yn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=yn();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=UP.bind(null,ge,e),[i.memoizedState,e]},useRef:function(e){var t=yn();return e={current:e},t.memoizedState=e},useState:cg,useDebugValue:Hh,useDeferredValue:function(e){return yn().memoizedState=e},useTransition:function(){var e=cg(!1),t=e[0];return e=BP.bind(null,e[1]),yn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ge,r=yn();if(he){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),$e===null)throw Error(M(349));cr&30||l1(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,fg(c1.bind(null,i,o,e),[e]),i.flags|=2048,Ws(9,u1.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=yn(),t=$e.identifierPrefix;if(he){var n=Fn,i=$n;n=(i&~(1<<32-ln(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[Sn]=t,e[js]=i,D1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hf(n,i),n){case"dialog":le("cancel",e),le("close",e),r=i;break;case"iframe":case"object":case"embed":le("load",e),r=i;break;case"video":case"audio":for(r=0;rko&&(t.flags|=128,i=!0,Xo(o,!1),t.lanes=4194304)}else{if(!i)if(e=Nl(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!he)return Ke(t),null}else 2*Ce()-o.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,i=!0,Xo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ce(),t.sibling=null,n=pe.current,se(pe,i?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Xh(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?wt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function t2(e,t){switch(Oh(t),t.tag){case 1:return mt(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),ue(pt),ue(tt),Nh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jh(t),null;case 13:if(ue(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(pe),null;case 4:return bo(),null;case 10:return Lh(t.type._context),null;case 22:case 23:return Xh(),null;case 24:return null;default:return null}}var Da=!1,Ye=!1,n2=typeof WeakSet=="function"?WeakSet:Set,D=null;function Hr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Se(e,t,i)}else n.current=null}function vd(e,t,n){try{n()}catch(i){Se(e,t,i)}}var Cg=!1;function i2(e,t){if(td=El,e=Ux(),Eh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||r!==0&&f.nodeType!==3||(a=s+r),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===r&&(a=s),d===o&&++c===i&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nd={focusedElem:e,selectionRange:n},El=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,x=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:tn(t.type,h),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){Se(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return y=Cg,Cg=!1,y}function bs(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&vd(t,n,o)}r=r.next}while(r!==i)}}function Su(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function xd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j1(e){var t=e.alternate;t!==null&&(e.alternate=null,j1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[js],delete t[od],delete t[jP],delete t[NP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function N1(e){return e.tag===5||e.tag===3||e.tag===4}function Pg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(i!==4&&(e=e.child,e!==null))for(wd(e,t,n),e=e.sibling;e!==null;)wd(e,t,n),e=e.sibling}function bd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(bd(e,t,n),e=e.sibling;e!==null;)bd(e,t,n),e=e.sibling}var Ne=null,rn=!1;function ni(e,t,n){for(n=n.child;n!==null;)V1(e,t,n),n=n.sibling}function V1(e,t,n){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(pu,n)}catch{}switch(n.tag){case 5:Ye||Hr(n,t);case 6:var i=Ne,r=rn;Ne=null,ni(e,t,n),Ne=i,rn=r,Ne!==null&&(rn?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(rn?(e=Ne,n=n.stateNode,e.nodeType===8?Fc(e.parentNode,n):e.nodeType===1&&Fc(e,n),Is(e)):Fc(Ne,n.stateNode));break;case 4:i=Ne,r=rn,Ne=n.stateNode.containerInfo,rn=!0,ni(e,t,n),Ne=i,rn=r;break;case 0:case 11:case 14:case 15:if(!Ye&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&vd(n,t,s),r=r.next}while(r!==i)}ni(e,t,n);break;case 1:if(!Ye&&(Hr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){Se(n,t,a)}ni(e,t,n);break;case 21:ni(e,t,n);break;case 22:n.mode&1?(Ye=(i=Ye)||n.memoizedState!==null,ni(e,t,n),Ye=i):ni(e,t,n);break;default:ni(e,t,n)}}function _g(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new n2),t.forEach(function(i){var r=d2.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=Ce()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*o2(i/1960))-i,10e?16:e,di===null)var i=!1;else{if(e=di,di=null,Hl=0,q&6)throw Error(M(331));var r=q;for(q|=4,D=e.current;D!==null;){var o=D,s=o.child;if(D.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lCe()-Qh?ir(e,0):qh|=n),gt(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=Ta,Ta<<=1,!(Ta&130023424)&&(Ta=4194304)):t=1);var n=at();e=Qn(e,t),e!==null&&(aa(e,t,n),gt(e,n))}function f2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Q1(e,n)}function d2(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(t),Q1(e,n)}var Y1;Y1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,JP(e,t,n);ht=!!(e.flags&131072)}else ht=!1,he&&t.flags&1048576&&e1(t,Dl,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ll(e,t),e=t.pendingProps;var r=vo(t,tt.current);oo(t,n),r=Bh(null,t,i,e,r,n);var o=Uh();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(i)?(o=!0,Il(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,$h(t),r.updater=bu,t.stateNode=r,r._reactInternals=t,fd(t,i,e,n),t=pd(null,t,i,!0,o,n)):(t.tag=0,he&&o&&Rh(t),ot(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=p2(i),e=tn(i,e),r){case 0:t=hd(null,t,i,e,n);break e;case 1:t=bg(null,t,i,e,n);break e;case 11:t=xg(null,t,i,e,n);break e;case 14:t=wg(null,t,i,tn(i.type,e),n);break e}throw Error(M(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),hd(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),bg(e,t,i,r,n);case 3:e:{if(z1(t),e===null)throw Error(M(387));i=t.pendingProps,o=t.memoizedState,r=o.element,s1(e,t),jl(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=So(Error(M(423)),t),t=Sg(e,t,i,n,r);break e}else if(i!==r){r=So(Error(M(424)),t),t=Sg(e,t,i,n,r);break e}else for(St=yi(t.stateNode.containerInfo.firstChild),Ct=t,he=!0,on=null,n=r1(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),i===r){t=Yn(e,t,n);break e}ot(e,t,i,n)}t=t.child}return t;case 5:return a1(t),e===null&&ld(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,s=r.children,id(i,r)?s=null:o!==null&&id(i,o)&&(t.flags|=32),A1(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&ld(t),null;case 13:return I1(e,t,n);case 4:return Fh(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=wo(t,null,i,n):ot(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),xg(e,t,i,r,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,se($l,i._currentValue),i._currentValue=s,o!==null)if(dn(o.value,s)){if(o.children===r.children&&!pt.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=Vn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ud(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ud(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ot(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,oo(t,n),r=Ht(r),i=i(r),t.flags|=1,ot(e,t,i,n),t.child;case 14:return i=t.type,r=tn(i,t.pendingProps),r=tn(i.type,r),wg(e,t,i,r,n);case 15:return R1(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),ll(e,t),t.tag=1,mt(i)?(e=!0,Il(t)):e=!1,oo(t,n),T1(t,i,r),fd(t,i,r,n),pd(null,t,i,!0,e,n);case 19:return L1(e,t,n);case 22:return O1(e,t,n)}throw Error(M(156,t.tag))};function X1(e,t){return Cx(e,t)}function h2(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new h2(e,t,n,i)}function Jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p2(e){if(typeof e=="function")return Jh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vh)return 11;if(e===xh)return 14}return 2}function bi(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fl(e,t,n,i,r,o){var s=2;if(i=e,typeof e=="function")Jh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Dr:return rr(n.children,r,o,t);case yh:s=8,r|=8;break;case Lf:return e=Bt(12,n,t,r|2),e.elementType=Lf,e.lanes=o,e;case Df:return e=Bt(13,n,t,r),e.elementType=Df,e.lanes=o,e;case $f:return e=Bt(19,n,t,r),e.elementType=$f,e.lanes=o,e;case ax:return Cu(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ox:s=10;break e;case sx:s=9;break e;case vh:s=11;break e;case xh:s=14;break e;case si:s=16,i=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Bt(s,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function rr(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function Cu(e,t,n,i){return e=Bt(22,e,i,t),e.elementType=ax,e.lanes=n,e.stateNode={isHidden:!1},e}function Gc(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Kc(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function m2(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tc(0),this.expirationTimes=Tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tc(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ep(e,t,n,i,r,o,s,a,l){return e=new m2(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$h(o),e}function g2(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tw)}catch(e){console.error(e)}}tw(),tx.exports=Et;var b2=tx.exports,nw,Ig=b2;nw=Ig.createRoot,Ig.hydrateRoot;function Gs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ue($o,--yt):0,Po--,Oe===10&&(Po=1,Ru--),Oe}function Pt(){return Oe=yt2||qs(Oe)>3?"":" "}function j2(e,t){for(;--t&&Pt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return fa(e,dl()+(t<6&&_n()==32&&Pt()==32))}function Td(e){for(;Pt();)switch(Oe){case e:return yt;case 34:case 39:e!==34&&e!==39&&Td(Oe);break;case 40:e===41&&Td(e);break;case 92:Pt();break}return yt}function N2(e,t){for(;Pt()&&e+Oe!==57;)if(e+Oe===84&&_n()===47)break;return"/*"+fa(t,yt-1)+"*"+Eu(e===47?e:Pt())}function V2(e){for(;!qs(_n());)Pt();return fa(e,yt)}function B2(e){return uw(pl("",null,null,null,[""],e=lw(e),0,[0],e))}function pl(e,t,n,i,r,o,s,a,l){for(var u=0,c=0,f=s,d=0,p=0,y=0,h=1,x=1,m=1,g=0,v="",w=r,b=o,S=i,P=v;x;)switch(y=g,g=Pt()){case 40:if(y!=108&&Ue(P,f-1)==58){_d(P+=J(hl(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=hl(g);break;case 9:case 10:case 13:case 32:P+=F2(y);break;case 92:P+=j2(dl()-1,7);continue;case 47:switch(_n()){case 42:case 47:ja(U2(N2(Pt(),dl()),t,n),l);break;default:P+="/"}break;case 123*h:a[u++]=wn(P)*m;case 125*h:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+c:m==-1&&(P=J(P,/\f/g,"")),p>0&&wn(P)-f&&ja(p>32?Dg(P+";",i,n,f-1):Dg(J(P," ","")+";",i,n,f-2),l);break;case 59:P+=";";default:if(ja(S=Lg(P,t,n,u,c,r,a,v,w=[],b=[],f),o),g===123)if(c===0)pl(P,t,S,S,w,o,f,a,b);else switch(d===99&&Ue(P,3)===110?100:d){case 100:case 108:case 109:case 115:pl(e,S,S,i&&ja(Lg(e,S,S,0,0,r,a,v,r,w=[],f),b),r,b,f,a,i?w:b);break;default:pl(P,S,S,S,[""],b,0,a,b)}}u=c=p=0,h=m=1,v=P="",f=s;break;case 58:f=1+wn(P),p=y;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&$2()==125)continue}switch(P+=Eu(g),g*h){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(wn(P)-1)*m,m=1;break;case 64:_n()===45&&(P+=hl(Pt())),d=_n(),c=f=wn(v=P+=V2(dl())),g++;break;case 45:y===45&&wn(P)==2&&(h=0)}}return o}function Lg(e,t,n,i,r,o,s,a,l,u,c){for(var f=r-1,d=r===0?o:[""],p=sp(d),y=0,h=0,x=0;y0?d[m]+" "+g:J(g,/&\f/g,d[m])))&&(l[x++]=v);return Ou(e,t,n,r===0?rp:a,l,u,c)}function U2(e,t,n){return Ou(e,t,n,rw,Eu(D2()),Ks(e,2,-2),0)}function Dg(e,t,n,i){return Ou(e,t,n,op,Ks(e,0,i),Ks(e,i+1,-1),i)}function ao(e,t){for(var n="",i=sp(e),r=0;r6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+ql+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?cw(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,wn(e)-3-(~_d(e,"!important")&&10))){case 107:return J(e,":",":"+Z)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+qe+e+e}return e}var Z2=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case op:t.return=cw(t.value,t.length);break;case ow:return ao([Jo(t,{value:J(t.value,"@","@"+Z)})],r);case rp:if(t.length)return L2(t.props,function(o){switch(I2(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ao([Jo(t,{props:[J(o,/:(read-\w+)/,":"+ql+"$1")]})],r);case"::placeholder":return ao([Jo(t,{props:[J(o,/:(plac\w+)/,":"+Z+"input-$1")]}),Jo(t,{props:[J(o,/:(plac\w+)/,":"+ql+"$1")]}),Jo(t,{props:[J(o,/:(plac\w+)/,qe+"input-$1")]})],r)}return""})}},J2=[Z2],fw=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=t.stylisPlugins||J2,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),m=1;m<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(n,{is:i.is}):(e=s.createElement(n),n==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,n),e[Sn]=t,e[js]=i,I1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hf(n,i),n){case"dialog":le("cancel",e),le("close",e),r=i;break;case"iframe":case"object":case"embed":le("load",e),r=i;break;case"video":case"audio":for(r=0;rko&&(t.flags|=128,i=!0,Xo(o,!1),t.lanes=4194304)}else{if(!i)if(e=Nl(s),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!he)return Ke(t),null}else 2*Ce()-o.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,i=!0,Xo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ce(),t.sibling=null,n=pe.current,se(pe,i?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return Xh(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?wt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function JP(e,t){switch(Oh(t),t.tag){case 1:return mt(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bo(),ue(pt),ue(tt),Nh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jh(t),null;case 13:if(ue(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));xo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(pe),null;case 4:return bo(),null;case 10:return Dh(t.type._context),null;case 22:case 23:return Xh(),null;case 24:return null;default:return null}}var La=!1,Qe=!1,e2=typeof WeakSet=="function"?WeakSet:Set,L=null;function Hr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Se(e,t,i)}else n.current=null}function vd(e,t,n){try{n()}catch(i){Se(e,t,i)}}var Sg=!1;function t2(e,t){if(td=El,e=Vx(),Eh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||r!==0&&f.nodeType!==3||(a=s+r),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===r&&(a=s),d===o&&++c===i&&(l=s),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(nd={focusedElem:e,selectionRange:n},El=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,x=y.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:tn(t.type,h),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){Se(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=Sg,Sg=!1,y}function bs(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,o!==void 0&&vd(t,n,o)}r=r.next}while(r!==i)}}function Su(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function xd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $1(e){var t=e.alternate;t!==null&&(e.alternate=null,$1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Sn],delete t[js],delete t[od],delete t[$P],delete t[FP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function F1(e){return e.tag===5||e.tag===3||e.tag===4}function kg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function wd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(i!==4&&(e=e.child,e!==null))for(wd(e,t,n),e=e.sibling;e!==null;)wd(e,t,n),e=e.sibling}function bd(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(bd(e,t,n),e=e.sibling;e!==null;)bd(e,t,n),e=e.sibling}var Ne=null,rn=!1;function ni(e,t,n){for(n=n.child;n!==null;)j1(e,t,n),n=n.sibling}function j1(e,t,n){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(pu,n)}catch{}switch(n.tag){case 5:Qe||Hr(n,t);case 6:var i=Ne,r=rn;Ne=null,ni(e,t,n),Ne=i,rn=r,Ne!==null&&(rn?(e=Ne,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ne.removeChild(n.stateNode));break;case 18:Ne!==null&&(rn?(e=Ne,n=n.stateNode,e.nodeType===8?Fc(e.parentNode,n):e.nodeType===1&&Fc(e,n),Is(e)):Fc(Ne,n.stateNode));break;case 4:i=Ne,r=rn,Ne=n.stateNode.containerInfo,rn=!0,ni(e,t,n),Ne=i,rn=r;break;case 0:case 11:case 14:case 15:if(!Qe&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var o=r,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&vd(n,t,s),r=r.next}while(r!==i)}ni(e,t,n);break;case 1:if(!Qe&&(Hr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){Se(n,t,a)}ni(e,t,n);break;case 21:ni(e,t,n);break;case 22:n.mode&1?(Qe=(i=Qe)||n.memoizedState!==null,ni(e,t,n),Qe=i):ni(e,t,n);break;default:ni(e,t,n)}}function Cg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new e2),t.forEach(function(i){var r=c2.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}}function en(e,t){var n=t.deletions;if(n!==null)for(var i=0;ir&&(r=s),i&=~o}if(i=r,i=Ce()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*i2(i/1960))-i,10e?16:e,di===null)var i=!1;else{if(e=di,di=null,Hl=0,q&6)throw Error(M(331));var r=q;for(q|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lCe()-Yh?ir(e,0):qh|=n),gt(e,t)}function K1(e,t){t===0&&(e.mode&1?(t=Ta,Ta<<=1,!(Ta&130023424)&&(Ta=4194304)):t=1);var n=at();e=Yn(e,t),e!==null&&(aa(e,t,n),gt(e,n))}function u2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K1(e,n)}function c2(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(M(314))}i!==null&&i.delete(t),K1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,XP(e,t,n);ht=!!(e.flags&131072)}else ht=!1,he&&t.flags&1048576&&Zx(t,Ll,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;ll(e,t),e=t.pendingProps;var r=vo(t,tt.current);oo(t,n),r=Bh(null,t,i,e,r,n);var o=Uh();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(i)?(o=!0,Il(t)):o=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,$h(t),r.updater=bu,t.stateNode=r,r._reactInternals=t,fd(t,i,e,n),t=pd(null,t,i,!0,o,n)):(t.tag=0,he&&o&&Rh(t),ot(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,r=i._init,i=r(i._payload),t.type=i,r=t.tag=d2(i),e=tn(i,e),r){case 0:t=hd(null,t,i,e,n);break e;case 1:t=xg(null,t,i,e,n);break e;case 11:t=yg(null,t,i,e,n);break e;case 14:t=vg(null,t,i,tn(i.type,e),n);break e}throw Error(M(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),hd(e,t,i,r,n);case 1:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),xg(e,t,i,r,n);case 3:e:{if(O1(t),e===null)throw Error(M(387));i=t.pendingProps,o=t.memoizedState,r=o.element,r1(e,t),jl(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){r=So(Error(M(423)),t),t=wg(e,t,i,n,r);break e}else if(i!==r){r=So(Error(M(424)),t),t=wg(e,t,i,n,r);break e}else for(St=yi(t.stateNode.containerInfo.firstChild),Ct=t,he=!0,on=null,n=n1(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xo(),i===r){t=Qn(e,t,n);break e}ot(e,t,i,n)}t=t.child}return t;case 5:return o1(t),e===null&&ld(t),i=t.type,r=t.pendingProps,o=e!==null?e.memoizedProps:null,s=r.children,id(i,r)?s=null:o!==null&&id(i,o)&&(t.flags|=32),R1(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&ld(t),null;case 13:return A1(e,t,n);case 4:return Fh(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=wo(t,null,i,n):ot(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),yg(e,t,i,r,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,o=t.memoizedProps,s=r.value,se($l,i._currentValue),i._currentValue=s,o!==null)if(dn(o.value,s)){if(o.children===r.children&&!pt.current){t=Qn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=Vn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ud(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ud(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ot(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,oo(t,n),r=Ht(r),i=i(r),t.flags|=1,ot(e,t,i,n),t.child;case 14:return i=t.type,r=tn(i,t.pendingProps),r=tn(i.type,r),vg(e,t,i,r,n);case 15:return M1(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),ll(e,t),t.tag=1,mt(i)?(e=!0,Il(t)):e=!1,oo(t,n),P1(t,i,r),fd(t,i,r,n),pd(null,t,i,!0,e,n);case 19:return z1(e,t,n);case 22:return E1(e,t,n)}throw Error(M(156,t.tag))};function Y1(e,t){return Sx(e,t)}function f2(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,n,i){return new f2(e,t,n,i)}function Jh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d2(e){if(typeof e=="function")return Jh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vh)return 11;if(e===xh)return 14}return 2}function bi(e,t){var n=e.alternate;return n===null?(n=Bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fl(e,t,n,i,r,o){var s=2;if(i=e,typeof e=="function")Jh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Lr:return rr(n.children,r,o,t);case yh:s=8,r|=8;break;case Df:return e=Bt(12,n,t,r|2),e.elementType=Df,e.lanes=o,e;case Lf:return e=Bt(13,n,t,r),e.elementType=Lf,e.lanes=o,e;case $f:return e=Bt(19,n,t,r),e.elementType=$f,e.lanes=o,e;case ox:return Cu(n,r,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ix:s=10;break e;case rx:s=9;break e;case vh:s=11;break e;case xh:s=14;break e;case si:s=16,i=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Bt(s,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function rr(e,t,n,i){return e=Bt(7,e,i,t),e.lanes=n,e}function Cu(e,t,n,i){return e=Bt(22,e,i,t),e.elementType=ox,e.lanes=n,e.stateNode={isHidden:!1},e}function Gc(e,t,n){return e=Bt(6,e,null,t),e.lanes=n,e}function Kc(e,t,n){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function h2(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tc(0),this.expirationTimes=Tc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tc(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function ep(e,t,n,i,r,o,s,a,l){return e=new h2(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$h(o),e}function p2(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J1)}catch(e){console.error(e)}}J1(),J0.exports=Et;var x2=J0.exports,ew,Ag=x2;ew=Ag.createRoot,Ag.hydrateRoot;function Gs(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ue($o,--yt):0,Po--,Oe===10&&(Po=1,Ru--),Oe}function Pt(){return Oe=yt2||qs(Oe)>3?"":" "}function $2(e,t){for(;--t&&Pt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return fa(e,dl()+(t<6&&_n()==32&&Pt()==32))}function Td(e){for(;Pt();)switch(Oe){case e:return yt;case 34:case 39:e!==34&&e!==39&&Td(Oe);break;case 40:e===41&&Td(e);break;case 92:Pt();break}return yt}function F2(e,t){for(;Pt()&&e+Oe!==57;)if(e+Oe===84&&_n()===47)break;return"/*"+fa(t,yt-1)+"*"+Eu(e===47?e:Pt())}function j2(e){for(;!qs(_n());)Pt();return fa(e,yt)}function N2(e){return aw(pl("",null,null,null,[""],e=sw(e),0,[0],e))}function pl(e,t,n,i,r,o,s,a,l){for(var u=0,c=0,f=s,d=0,p=0,y=0,h=1,x=1,m=1,g=0,v="",w=r,b=o,S=i,P=v;x;)switch(y=g,g=Pt()){case 40:if(y!=108&&Ue(P,f-1)==58){_d(P+=J(hl(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:P+=hl(g);break;case 9:case 10:case 13:case 32:P+=L2(y);break;case 92:P+=$2(dl()-1,7);continue;case 47:switch(_n()){case 42:case 47:ja(V2(F2(Pt(),dl()),t,n),l);break;default:P+="/"}break;case 123*h:a[u++]=wn(P)*m;case 125*h:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+c:m==-1&&(P=J(P,/\f/g,"")),p>0&&wn(P)-f&&ja(p>32?Ig(P+";",i,n,f-1):Ig(J(P," ","")+";",i,n,f-2),l);break;case 59:P+=";";default:if(ja(S=zg(P,t,n,u,c,r,a,v,w=[],b=[],f),o),g===123)if(c===0)pl(P,t,S,S,w,o,f,a,b);else switch(d===99&&Ue(P,3)===110?100:d){case 100:case 108:case 109:case 115:pl(e,S,S,i&&ja(zg(e,S,S,0,0,r,a,v,r,w=[],f),b),r,b,f,a,i?w:b);break;default:pl(P,S,S,S,[""],b,0,a,b)}}u=c=p=0,h=m=1,v=P="",f=s;break;case 58:f=1+wn(P),p=y;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&D2()==125)continue}switch(P+=Eu(g),g*h){case 38:m=c>0?1:(P+="\f",-1);break;case 44:a[u++]=(wn(P)-1)*m,m=1;break;case 64:_n()===45&&(P+=hl(Pt())),d=_n(),c=f=wn(v=P+=j2(dl())),g++;break;case 45:y===45&&wn(P)==2&&(h=0)}}return o}function zg(e,t,n,i,r,o,s,a,l,u,c){for(var f=r-1,d=r===0?o:[""],p=sp(d),y=0,h=0,x=0;y0?d[m]+" "+g:J(g,/&\f/g,d[m])))&&(l[x++]=v);return Ou(e,t,n,r===0?rp:a,l,u,c)}function V2(e,t,n){return Ou(e,t,n,nw,Eu(I2()),Ks(e,2,-2),0)}function Ig(e,t,n,i){return Ou(e,t,n,op,Ks(e,0,i),Ks(e,i+1,-1),i)}function ao(e,t){for(var n="",i=sp(e),r=0;r6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+ql+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_d(e,"stretch")?lw(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,wn(e)-3-(~_d(e,"!important")&&10))){case 107:return J(e,":",":"+Z)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+qe+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+qe+e+e}return e}var Q2=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case op:t.return=lw(t.value,t.length);break;case iw:return ao([Jo(t,{value:J(t.value,"@","@"+Z)})],r);case rp:if(t.length)return z2(t.props,function(o){switch(A2(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ao([Jo(t,{props:[J(o,/:(read-\w+)/,":"+ql+"$1")]})],r);case"::placeholder":return ao([Jo(t,{props:[J(o,/:(plac\w+)/,":"+Z+"input-$1")]}),Jo(t,{props:[J(o,/:(plac\w+)/,":"+ql+"$1")]}),Jo(t,{props:[J(o,/:(plac\w+)/,qe+"input-$1")]})],r)}return""})}},X2=[Q2],uw=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(h){var x=h.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var r=t.stylisPlugins||X2,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var x=h.getAttribute("data-emotion").split(" "),m=1;m=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var f_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},d_=!1,h_=/[A-Z]|^ms/g,p_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vw=function(t){return t.charCodeAt(1)===45},Fg=function(t){return t!=null&&typeof t!="boolean"},qc=iw(function(e){return vw(e)?e:e.replace(h_,"-$&").toLowerCase()}),jg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(p_,function(i,r,o){return bn={name:r,styles:o,next:bn},r})}return f_[t]!==1&&!vw(t)&&typeof n=="number"&&n!==0?n+"px":n},m_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qs(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return bn={name:r.name,styles:r.styles,next:bn},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)bn={name:s.name,styles:s.styles,next:bn},s=s.next;var a=o.styles+";";return a}return g_(e,t,n)}case"function":{if(e!==void 0){var l=bn,u=n(e);return bn=l,Qs(e,t,u)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function g_(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r96?b_:S_},Wg=function(t,n,i){var r;if(n){var o=n.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof r!="function"&&i&&(r=t.__emotion_forwardProp),r},k_=!1,C_=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return gw(n,i,r),v_(function(){return yw(n,i,r)}),null},P_=function e(t,n){var i=t.__emotion_real===t,r=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Wg(t,n,i),l=a||Ug(r),u=!l("as");return function(){var c=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,p=1;pt(M_(r)?n:r):t;return C.jsx(w_,{styles:i})}function fp(e,t){return Md(e,t)}const Pw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},E_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Cw,StyledEngineProvider:T_,ThemeContext:da,css:kw,default:fp,internal_processStyles:Pw,keyframes:Bu},Symbol.toStringTag,{value:"Module"}));function Dn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function _w(e){if(!Dn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=_w(e[n])}),t}function Wt(e,t,n={clone:!0}){const i=n.clone?R({},e):e;return Dn(e)&&Dn(t)&&Object.keys(t).forEach(r=>{Dn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Dn(e[r])?i[r]=Wt(e[r],t[r],n):n.clone?i[r]=Dn(t[r])?_w(t[r]):t[r]:i[r]=t[r]}),i}const R_=Object.freeze(Object.defineProperty({__proto__:null,default:Wt,isPlainObject:Dn},Symbol.toStringTag,{value:"Module"})),O_=["values","unit","step"],A_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>R({},n,{[i.key]:i.val}),{})};function Tw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,r=ve(e,O_),o=A_(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-i/100}${n})`}function u(d,p){const y=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:p)-i/100}${n})`}function c(d){return s.indexOf(d)+1`@media (min-width:${dp[e]}px)`};function vt(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||Hg;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=i.breakpoints||Hg;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||dp).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Mw(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((i,r)=>{const o=e.up(r);return i[o]={},i},{}))||{}}function Ew(e,t){return e.reduce((n,i)=>{const r=n[i];return(!r||Object.keys(r).length===0)&&delete n[i],n},t)}function I_(e,...t){const n=Mw(e),i=[n,...t].reduce((r,o)=>Wt(r,o),{});return Ew(Object.keys(n),i)}function L_(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((r,o)=>{o{e[r]!=null&&(n[r]=!0)}),n}function or({values:e,breakpoints:t,base:n}){const i=n||L_(e,t),r=Object.keys(i);if(r.length===0)return e;let o;return r.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function U(e){if(typeof e!="string")throw new Error(Gs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const D_=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));function Uu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,r)=>i&&i[r]!=null?i[r]:null,e)}function Ql(e,t,n,i=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||i:r=Uu(e,n)||i,t&&(r=t(r,i,e)),r}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:r}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Uu(l,i)||{};return vt(s,a,f=>{let d=Ql(u,r,f);return f===d&&typeof f=="string"&&(d=Ql(u,r,`${t}${f==="default"?"":U(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function $_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const F_={m:"margin",p:"padding"},j_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},N_=$_(e=>{if(e.length>2)if(Gg[e])e=Gg[e];else return[e];const[t,n]=e.split(""),i=F_[t],r=j_[n]||"";return Array.isArray(r)?r.map(o=>i+o):[i+r]}),hp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hp,...pp];function ha(e,t,n,i){var r;const o=(r=Uu(e,t,!1))!=null?r:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function mp(e){return ha(e,"spacing",8)}function hr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),i=e(n);return t>=0?i:typeof i=="number"?-i:`-${i}`}function V_(e,t){return n=>e.reduce((i,r)=>(i[r]=hr(t,n),i),{})}function B_(e,t,n,i){if(t.indexOf(n)===-1)return null;const r=N_(n),o=V_(r,i),s=e[n];return vt(e,s,o)}function Rw(e,t){const n=mp(e.theme);return Object.keys(e).map(i=>B_(e,t,i,n)).reduce(Cs,{})}function we(e){return Rw(e,hp)}we.propTypes={};we.filterProps=hp;function be(e){return Rw(e,pp)}be.propTypes={};be.filterProps=pp;function U_(e=8){if(e.mui)return e;const t=mp({spacing:e}),n=(...i)=>(i.length===0?[1]:i).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Wu(...e){const t=e.reduce((i,r)=>(r.filterProps.forEach(o=>{i[o]=r}),i),{}),n=i=>Object.keys(i).reduce((r,o)=>t[o]?Cs(r,t[o](i)):r,{});return n.propTypes={},n.filterProps=e.reduce((i,r)=>i.concat(r.filterProps),[]),n}function Nt(e){return typeof e!="number"?e:`${e}px solid`}function Yt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const W_=Yt("border",Nt),H_=Yt("borderTop",Nt),G_=Yt("borderRight",Nt),K_=Yt("borderBottom",Nt),q_=Yt("borderLeft",Nt),Q_=Yt("borderColor"),Y_=Yt("borderTopColor"),X_=Yt("borderRightColor"),Z_=Yt("borderBottomColor"),J_=Yt("borderLeftColor"),eT=Yt("outline",Nt),tT=Yt("outlineColor"),Hu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ha(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:hr(t,i)});return vt(e,e.borderRadius,n)}return null};Hu.propTypes={};Hu.filterProps=["borderRadius"];Wu(W_,H_,G_,K_,q_,Q_,Y_,X_,Z_,J_,Hu,eT,tT);const Gu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ha(e.theme,"spacing",8),n=i=>({gap:hr(t,i)});return vt(e,e.gap,n)}return null};Gu.propTypes={};Gu.filterProps=["gap"];const Ku=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ha(e.theme,"spacing",8),n=i=>({columnGap:hr(t,i)});return vt(e,e.columnGap,n)}return null};Ku.propTypes={};Ku.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ha(e.theme,"spacing",8),n=i=>({rowGap:hr(t,i)});return vt(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const nT=Te({prop:"gridColumn"}),iT=Te({prop:"gridRow"}),rT=Te({prop:"gridAutoFlow"}),oT=Te({prop:"gridAutoColumns"}),sT=Te({prop:"gridAutoRows"}),aT=Te({prop:"gridTemplateColumns"}),lT=Te({prop:"gridTemplateRows"}),uT=Te({prop:"gridTemplateAreas"}),cT=Te({prop:"gridArea"});Wu(Gu,Ku,qu,nT,iT,rT,oT,sT,aT,lT,uT,cT);function lo(e,t){return t==="grey"?t:e}const fT=Te({prop:"color",themeKey:"palette",transform:lo}),dT=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),hT=Te({prop:"backgroundColor",themeKey:"palette",transform:lo});Wu(fT,dT,hT);function bt(e){return e<=1&&e!==0?`${e*100}%`:e}const pT=Te({prop:"width",transform:bt}),gp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,r;const o=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[n])||dp[n];return o?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:bt(n)}};return vt(e,e.maxWidth,t)}return null};gp.filterProps=["maxWidth"];const mT=Te({prop:"minWidth",transform:bt}),gT=Te({prop:"height",transform:bt}),yT=Te({prop:"maxHeight",transform:bt}),vT=Te({prop:"minHeight",transform:bt});Te({prop:"size",cssProperty:"width",transform:bt});Te({prop:"size",cssProperty:"height",transform:bt});const xT=Te({prop:"boxSizing"});Wu(pT,gp,mT,gT,yT,vT,xT);const pa={border:{themeKey:"borders",transform:Nt},borderTop:{themeKey:"borders",transform:Nt},borderRight:{themeKey:"borders",transform:Nt},borderBottom:{themeKey:"borders",transform:Nt},borderLeft:{themeKey:"borders",transform:Nt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hu},color:{themeKey:"palette",transform:lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lo},backgroundColor:{themeKey:"palette",transform:lo},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gu},rowGap:{style:qu},columnGap:{style:Ku},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bt},maxWidth:{style:gp},minWidth:{transform:bt},height:{transform:bt},maxHeight:{transform:bt},minHeight:{transform:bt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wT(...e){const t=e.reduce((i,r)=>i.concat(Object.keys(r)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function bT(e,t){return typeof e=="function"?e(t):e}function Ow(){function e(n,i,r,o){const s={[n]:i,theme:r},a=o[n];if(!a)return{[n]:i};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=a;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[n]:i};const d=Uu(r,u)||{};return f?f(s):vt(s,i,y=>{let h=Ql(d,c,y);return y===h&&typeof y=="string"&&(h=Ql(d,c,`${n}${y==="default"?"":U(y)}`,y)),l===!1?h:{[l]:h}})}function t(n){var i;const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=(i=o.unstable_sxConfig)!=null?i:pa;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=Mw(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(p=>{const y=bT(u[p],o);if(y!=null)if(typeof y=="object")if(s[p])d=Cs(d,e(p,y,o,s));else{const h=vt({theme:o},y,x=>({[p]:x}));wT(h,y)?d[p]=t({sx:y,theme:o}):d=Cs(d,h)}else d=Cs(d,e(p,y,o,s))}),Ew(f,d)}return Array.isArray(r)?r.map(a):a(r)}return t}const Fo=Ow();Fo.filterProps=["sx"];function Aw(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ST=["breakpoints","palette","spacing","shape"];function jo(e={},...t){const{breakpoints:n={},palette:i={},spacing:r,shape:o={}}=e,s=ve(e,ST),a=Tw(n),l=U_(r);let u=Wt({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},i),spacing:l,shape:R({},z_,o)},s);return u.applyStyles=Aw,u=t.reduce((c,f)=>Wt(c,f),u),u.unstable_sxConfig=R({},pa,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Fo({sx:f,theme:this})},u}const kT=Object.freeze(Object.defineProperty({__proto__:null,default:jo,private_createBreakpoints:Tw,unstable_applyStyles:Aw},Symbol.toStringTag,{value:"Module"}));function CT(e){return Object.keys(e).length===0}function yp(e=null){const t=k.useContext(da);return!t||CT(t)?e:t}const PT=jo();function Qu(e=PT){return yp(e)}function _T({styles:e,themeId:t,defaultTheme:n={}}){const i=Qu(n),r=typeof e=="function"?e(t&&i[t]||i):e;return C.jsx(Cw,{styles:r})}const TT=["sx"],MT=e=>{var t,n;const i={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:pa;return Object.keys(e).forEach(o=>{r[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]}),i};function ma(e){const{sx:t}=e,n=ve(e,TT),{systemProps:i,otherProps:r}=MT(n);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Dn(a)?R({},i,a):i}:o=R({},i,t),R({},r,{sx:o})}const ET=Object.freeze(Object.defineProperty({__proto__:null,default:Fo,extendSxProp:ma,unstable_createStyleFunctionSx:Ow,unstable_defaultSxConfig:pa},Symbol.toStringTag,{value:"Module"})),Kg=e=>e,RT=()=>{let e=Kg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kg}}},vp=RT();function zw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Fo);return k.forwardRef(function(l,u){const c=Qu(n),f=ma(l),{className:d,component:p="div"}=f,y=ve(f,OT);return C.jsx(o,R({as:p,ref:u,className:de(d,r?r(i):i),theme:t&&c[t]||c},y))})}const zT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Jn(e,t,n="Mui"){const i=zT[t];return i?`${n}-${i}`:`${vp.generate(e)}-${t}`}function zi(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=Jn(e,r,n)}),i}var Iw={exports:{}},ne={};/** + */var je=typeof Symbol=="function"&&Symbol.for,ap=je?Symbol.for("react.element"):60103,lp=je?Symbol.for("react.portal"):60106,Au=je?Symbol.for("react.fragment"):60107,zu=je?Symbol.for("react.strict_mode"):60108,Iu=je?Symbol.for("react.profiler"):60114,Du=je?Symbol.for("react.provider"):60109,Lu=je?Symbol.for("react.context"):60110,up=je?Symbol.for("react.async_mode"):60111,$u=je?Symbol.for("react.concurrent_mode"):60111,Fu=je?Symbol.for("react.forward_ref"):60112,ju=je?Symbol.for("react.suspense"):60113,Z2=je?Symbol.for("react.suspense_list"):60120,Nu=je?Symbol.for("react.memo"):60115,Vu=je?Symbol.for("react.lazy"):60116,J2=je?Symbol.for("react.block"):60121,e_=je?Symbol.for("react.fundamental"):60117,t_=je?Symbol.for("react.responder"):60118,n_=je?Symbol.for("react.scope"):60119;function Ot(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ap:switch(e=e.type,e){case up:case $u:case Au:case Iu:case zu:case ju:return e;default:switch(e=e&&e.$$typeof,e){case Lu:case Fu:case Vu:case Nu:case Du:return e;default:return t}}case lp:return t}}}function fw(e){return Ot(e)===$u}te.AsyncMode=up;te.ConcurrentMode=$u;te.ContextConsumer=Lu;te.ContextProvider=Du;te.Element=ap;te.ForwardRef=Fu;te.Fragment=Au;te.Lazy=Vu;te.Memo=Nu;te.Portal=lp;te.Profiler=Iu;te.StrictMode=zu;te.Suspense=ju;te.isAsyncMode=function(e){return fw(e)||Ot(e)===up};te.isConcurrentMode=fw;te.isContextConsumer=function(e){return Ot(e)===Lu};te.isContextProvider=function(e){return Ot(e)===Du};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ap};te.isForwardRef=function(e){return Ot(e)===Fu};te.isFragment=function(e){return Ot(e)===Au};te.isLazy=function(e){return Ot(e)===Vu};te.isMemo=function(e){return Ot(e)===Nu};te.isPortal=function(e){return Ot(e)===lp};te.isProfiler=function(e){return Ot(e)===Iu};te.isStrictMode=function(e){return Ot(e)===zu};te.isSuspense=function(e){return Ot(e)===ju};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Au||e===$u||e===Iu||e===zu||e===ju||e===Z2||typeof e=="object"&&e!==null&&(e.$$typeof===Vu||e.$$typeof===Nu||e.$$typeof===Du||e.$$typeof===Lu||e.$$typeof===Fu||e.$$typeof===e_||e.$$typeof===t_||e.$$typeof===n_||e.$$typeof===J2)};te.typeOf=Ot;cw.exports=te;var i_=cw.exports,dw=i_,r_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hw={};hw[dw.ForwardRef]=r_;hw[dw.Memo]=o_;var s_=!0;function a_(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(i+=r+" ")}),i}var pw=function(t,n,i){var r=t.key+"-"+n.name;(i===!1||s_===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},mw=function(t,n,i){pw(t,n,i);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+r:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function l_(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var u_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},c_=!1,f_=/[A-Z]|^ms/g,d_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gw=function(t){return t.charCodeAt(1)===45},Lg=function(t){return t!=null&&typeof t!="boolean"},qc=tw(function(e){return gw(e)?e:e.replace(f_,"-$&").toLowerCase()}),$g=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(d_,function(i,r,o){return bn={name:r,styles:o,next:bn},r})}return u_[t]!==1&&!gw(t)&&typeof n=="number"&&n!==0?n+"px":n},h_="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ys(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return bn={name:r.name,styles:r.styles,next:bn},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)bn={name:s.name,styles:s.styles,next:bn},s=s.next;var a=o.styles+";";return a}return p_(e,t,n)}case"function":{if(e!==void 0){var l=bn,u=n(e);return bn=l,Ys(e,t,u)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function p_(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r96?x_:w_},Bg=function(t,n,i){var r;if(n){var o=n.shouldForwardProp;r=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof r!="function"&&i&&(r=t.__emotion_forwardProp),r},b_=!1,S_=function(t){var n=t.cache,i=t.serialized,r=t.isStringTag;return pw(n,i,r),g_(function(){return mw(n,i,r)}),null},k_=function e(t,n){var i=t.__emotion_real===t,r=i&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Bg(t,n,i),l=a||Vg(r),u=!l("as");return function(){var c=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,p=1;pt(__(r)?n:r):t;return C.jsx(v_,{styles:i})}function fp(e,t){return Md(e,t)}const kw=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},T_=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Sw,StyledEngineProvider:P_,ThemeContext:da,css:bw,default:fp,internal_processStyles:kw,keyframes:Bu},Symbol.toStringTag,{value:"Module"}));function Ln(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Cw(e){if(!Ln(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Cw(e[n])}),t}function Wt(e,t,n={clone:!0}){const i=n.clone?R({},e):e;return Ln(e)&&Ln(t)&&Object.keys(t).forEach(r=>{Ln(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ln(e[r])?i[r]=Wt(e[r],t[r],n):n.clone?i[r]=Ln(t[r])?Cw(t[r]):t[r]:i[r]=t[r]}),i}const M_=Object.freeze(Object.defineProperty({__proto__:null,default:Wt,isPlainObject:Ln},Symbol.toStringTag,{value:"Module"})),E_=["values","unit","step"],R_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,i)=>n.val-i.val),t.reduce((n,i)=>R({},n,{[i.key]:i.val}),{})};function Pw(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,r=ve(e,E_),o=R_(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-i/100}${n})`}function u(d,p){const y=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:p)-i/100}${n})`}function c(d){return s.indexOf(d)+1`@media (min-width:${dp[e]}px)`};function vt(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const o=i.breakpoints||Ug;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=i.breakpoints||Ug;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||dp).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function _w(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((i,r)=>{const o=e.up(r);return i[o]={},i},{}))||{}}function Tw(e,t){return e.reduce((n,i)=>{const r=n[i];return(!r||Object.keys(r).length===0)&&delete n[i],n},t)}function A_(e,...t){const n=_w(e),i=[n,...t].reduce((r,o)=>Wt(r,o),{});return Tw(Object.keys(n),i)}function z_(e,t){if(typeof e!="object")return{};const n={},i=Object.keys(t);return Array.isArray(e)?i.forEach((r,o)=>{o{e[r]!=null&&(n[r]=!0)}),n}function or({values:e,breakpoints:t,base:n}){const i=n||z_(e,t),r=Object.keys(i);if(r.length===0)return e;let o;return r.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function U(e){if(typeof e!="string")throw new Error(Gs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const I_=Object.freeze(Object.defineProperty({__proto__:null,default:U},Symbol.toStringTag,{value:"Module"}));function Uu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const i=`vars.${t}`.split(".").reduce((r,o)=>r&&r[o]?r[o]:null,e);if(i!=null)return i}return t.split(".").reduce((i,r)=>i&&i[r]!=null?i[r]:null,e)}function Yl(e,t,n,i=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||i:r=Uu(e,n)||i,t&&(r=t(r,i,e)),r}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:i,transform:r}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Uu(l,i)||{};return vt(s,a,f=>{let d=Yl(u,r,f);return f===d&&typeof f=="string"&&(d=Yl(u,r,`${t}${f==="default"?"":U(f)}`,f)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function D_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const L_={m:"margin",p:"padding"},$_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F_=D_(e=>{if(e.length>2)if(Wg[e])e=Wg[e];else return[e];const[t,n]=e.split(""),i=L_[t],r=$_[n]||"";return Array.isArray(r)?r.map(o=>i+o):[i+r]}),hp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...hp,...pp];function ha(e,t,n,i){var r;const o=(r=Uu(e,t,!1))!=null?r:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function mp(e){return ha(e,"spacing",8)}function hr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),i=e(n);return t>=0?i:typeof i=="number"?-i:`-${i}`}function j_(e,t){return n=>e.reduce((i,r)=>(i[r]=hr(t,n),i),{})}function N_(e,t,n,i){if(t.indexOf(n)===-1)return null;const r=F_(n),o=j_(r,i),s=e[n];return vt(e,s,o)}function Mw(e,t){const n=mp(e.theme);return Object.keys(e).map(i=>N_(e,t,i,n)).reduce(Cs,{})}function we(e){return Mw(e,hp)}we.propTypes={};we.filterProps=hp;function be(e){return Mw(e,pp)}be.propTypes={};be.filterProps=pp;function V_(e=8){if(e.mui)return e;const t=mp({spacing:e}),n=(...i)=>(i.length===0?[1]:i).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Wu(...e){const t=e.reduce((i,r)=>(r.filterProps.forEach(o=>{i[o]=r}),i),{}),n=i=>Object.keys(i).reduce((r,o)=>t[o]?Cs(r,t[o](i)):r,{});return n.propTypes={},n.filterProps=e.reduce((i,r)=>i.concat(r.filterProps),[]),n}function Nt(e){return typeof e!="number"?e:`${e}px solid`}function Qt(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const B_=Qt("border",Nt),U_=Qt("borderTop",Nt),W_=Qt("borderRight",Nt),H_=Qt("borderBottom",Nt),G_=Qt("borderLeft",Nt),K_=Qt("borderColor"),q_=Qt("borderTopColor"),Y_=Qt("borderRightColor"),Q_=Qt("borderBottomColor"),X_=Qt("borderLeftColor"),Z_=Qt("outline",Nt),J_=Qt("outlineColor"),Hu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ha(e.theme,"shape.borderRadius",4),n=i=>({borderRadius:hr(t,i)});return vt(e,e.borderRadius,n)}return null};Hu.propTypes={};Hu.filterProps=["borderRadius"];Wu(B_,U_,W_,H_,G_,K_,q_,Y_,Q_,X_,Hu,Z_,J_);const Gu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ha(e.theme,"spacing",8),n=i=>({gap:hr(t,i)});return vt(e,e.gap,n)}return null};Gu.propTypes={};Gu.filterProps=["gap"];const Ku=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ha(e.theme,"spacing",8),n=i=>({columnGap:hr(t,i)});return vt(e,e.columnGap,n)}return null};Ku.propTypes={};Ku.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ha(e.theme,"spacing",8),n=i=>({rowGap:hr(t,i)});return vt(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const eT=Te({prop:"gridColumn"}),tT=Te({prop:"gridRow"}),nT=Te({prop:"gridAutoFlow"}),iT=Te({prop:"gridAutoColumns"}),rT=Te({prop:"gridAutoRows"}),oT=Te({prop:"gridTemplateColumns"}),sT=Te({prop:"gridTemplateRows"}),aT=Te({prop:"gridTemplateAreas"}),lT=Te({prop:"gridArea"});Wu(Gu,Ku,qu,eT,tT,nT,iT,rT,oT,sT,aT,lT);function lo(e,t){return t==="grey"?t:e}const uT=Te({prop:"color",themeKey:"palette",transform:lo}),cT=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),fT=Te({prop:"backgroundColor",themeKey:"palette",transform:lo});Wu(uT,cT,fT);function bt(e){return e<=1&&e!==0?`${e*100}%`:e}const dT=Te({prop:"width",transform:bt}),gp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,r;const o=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[n])||dp[n];return o?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:bt(n)}};return vt(e,e.maxWidth,t)}return null};gp.filterProps=["maxWidth"];const hT=Te({prop:"minWidth",transform:bt}),pT=Te({prop:"height",transform:bt}),mT=Te({prop:"maxHeight",transform:bt}),gT=Te({prop:"minHeight",transform:bt});Te({prop:"size",cssProperty:"width",transform:bt});Te({prop:"size",cssProperty:"height",transform:bt});const yT=Te({prop:"boxSizing"});Wu(dT,gp,hT,pT,mT,gT,yT);const pa={border:{themeKey:"borders",transform:Nt},borderTop:{themeKey:"borders",transform:Nt},borderRight:{themeKey:"borders",transform:Nt},borderBottom:{themeKey:"borders",transform:Nt},borderLeft:{themeKey:"borders",transform:Nt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hu},color:{themeKey:"palette",transform:lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lo},backgroundColor:{themeKey:"palette",transform:lo},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gu},rowGap:{style:qu},columnGap:{style:Ku},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bt},maxWidth:{style:gp},minWidth:{transform:bt},height:{transform:bt},maxHeight:{transform:bt},minHeight:{transform:bt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vT(...e){const t=e.reduce((i,r)=>i.concat(Object.keys(r)),[]),n=new Set(t);return e.every(i=>n.size===Object.keys(i).length)}function xT(e,t){return typeof e=="function"?e(t):e}function Ew(){function e(n,i,r,o){const s={[n]:i,theme:r},a=o[n];if(!a)return{[n]:i};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=a;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[n]:i};const d=Uu(r,u)||{};return f?f(s):vt(s,i,y=>{let h=Yl(d,c,y);return y===h&&typeof y=="string"&&(h=Yl(d,c,`${n}${y==="default"?"":U(y)}`,y)),l===!1?h:{[l]:h}})}function t(n){var i;const{sx:r,theme:o={}}=n||{};if(!r)return null;const s=(i=o.unstable_sxConfig)!=null?i:pa;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=_w(o.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(p=>{const y=xT(u[p],o);if(y!=null)if(typeof y=="object")if(s[p])d=Cs(d,e(p,y,o,s));else{const h=vt({theme:o},y,x=>({[p]:x}));vT(h,y)?d[p]=t({sx:y,theme:o}):d=Cs(d,h)}else d=Cs(d,e(p,y,o,s))}),Tw(f,d)}return Array.isArray(r)?r.map(a):a(r)}return t}const Fo=Ew();Fo.filterProps=["sx"];function Rw(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const wT=["breakpoints","palette","spacing","shape"];function jo(e={},...t){const{breakpoints:n={},palette:i={},spacing:r,shape:o={}}=e,s=ve(e,wT),a=Pw(n),l=V_(r);let u=Wt({breakpoints:a,direction:"ltr",components:{},palette:R({mode:"light"},i),spacing:l,shape:R({},O_,o)},s);return u.applyStyles=Rw,u=t.reduce((c,f)=>Wt(c,f),u),u.unstable_sxConfig=R({},pa,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Fo({sx:f,theme:this})},u}const bT=Object.freeze(Object.defineProperty({__proto__:null,default:jo,private_createBreakpoints:Pw,unstable_applyStyles:Rw},Symbol.toStringTag,{value:"Module"}));function ST(e){return Object.keys(e).length===0}function Ow(e=null){const t=k.useContext(da);return!t||ST(t)?e:t}const kT=jo();function Yu(e=kT){return Ow(e)}function CT({styles:e,themeId:t,defaultTheme:n={}}){const i=Yu(n),r=typeof e=="function"?e(t&&i[t]||i):e;return C.jsx(Sw,{styles:r})}const PT=["sx"],_T=e=>{var t,n;const i={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:pa;return Object.keys(e).forEach(o=>{r[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]}),i};function ma(e){const{sx:t}=e,n=ve(e,PT),{systemProps:i,otherProps:r}=_T(n);let o;return Array.isArray(t)?o=[i,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Ln(a)?R({},i,a):i}:o=R({},i,t),R({},r,{sx:o})}const TT=Object.freeze(Object.defineProperty({__proto__:null,default:Fo,extendSxProp:ma,unstable_createStyleFunctionSx:Ew,unstable_defaultSxConfig:pa},Symbol.toStringTag,{value:"Module"})),Hg=e=>e,MT=()=>{let e=Hg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Hg}}},yp=MT();function Aw(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Fo);return k.forwardRef(function(l,u){const c=Yu(n),f=ma(l),{className:d,component:p="div"}=f,y=ve(f,ET);return C.jsx(o,R({as:p,ref:u,className:de(d,r?r(i):i),theme:t&&c[t]||c},y))})}const OT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Jn(e,t,n="Mui"){const i=OT[t];return i?`${n}-${i}`:`${yp.generate(e)}-${t}`}function zi(e,t,n="Mui"){const i={};return t.forEach(r=>{i[r]=Jn(e,r,n)}),i}var zw={exports:{}},ne={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xp=Symbol.for("react.element"),wp=Symbol.for("react.portal"),Yu=Symbol.for("react.fragment"),Xu=Symbol.for("react.strict_mode"),Zu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),ec=Symbol.for("react.context"),IT=Symbol.for("react.server_context"),tc=Symbol.for("react.forward_ref"),nc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),LT=Symbol.for("react.offscreen"),Lw;Lw=Symbol.for("react.module.reference");function Xt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case xp:switch(e=e.type,e){case Yu:case Zu:case Xu:case nc:case ic:return e;default:switch(e=e&&e.$$typeof,e){case IT:case ec:case tc:case oc:case rc:case Ju:return e;default:return t}}case wp:return t}}}ne.ContextConsumer=ec;ne.ContextProvider=Ju;ne.Element=xp;ne.ForwardRef=tc;ne.Fragment=Yu;ne.Lazy=oc;ne.Memo=rc;ne.Portal=wp;ne.Profiler=Zu;ne.StrictMode=Xu;ne.Suspense=nc;ne.SuspenseList=ic;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return Xt(e)===ec};ne.isContextProvider=function(e){return Xt(e)===Ju};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===xp};ne.isForwardRef=function(e){return Xt(e)===tc};ne.isFragment=function(e){return Xt(e)===Yu};ne.isLazy=function(e){return Xt(e)===oc};ne.isMemo=function(e){return Xt(e)===rc};ne.isPortal=function(e){return Xt(e)===wp};ne.isProfiler=function(e){return Xt(e)===Zu};ne.isStrictMode=function(e){return Xt(e)===Xu};ne.isSuspense=function(e){return Xt(e)===nc};ne.isSuspenseList=function(e){return Xt(e)===ic};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yu||e===Zu||e===Xu||e===nc||e===ic||e===LT||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===ec||e.$$typeof===tc||e.$$typeof===Lw||e.getModuleId!==void 0)};ne.typeOf=Xt;Iw.exports=ne;var qg=Iw.exports;const DT=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Dw(e){const t=`${e}`.match(DT);return t&&t[1]||""}function $w(e,t=""){return e.displayName||e.name||Dw(e)||t}function Qg(e,t,n){const i=$w(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function $T(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $w(e,"Component");if(typeof e=="object")switch(e.$$typeof){case qg.ForwardRef:return Qg(e,e.render,"ForwardRef");case qg.Memo:return Qg(e,e.type,"memo");default:return}}}const FT=Object.freeze(Object.defineProperty({__proto__:null,default:$T,getFunctionName:Dw},Symbol.toStringTag,{value:"Module"})),jT=["ownerState"],NT=["variants"],VT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function BT(e){return Object.keys(e).length===0}function UT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const WT=jo(),HT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Na({defaultTheme:e,theme:t,themeId:n}){return BT(t)?e:t[n]||t}function GT(e){return e?(t,n)=>n[e]:null}function ml(e,t){let{ownerState:n}=t,i=ve(t,jT);const r=typeof e=="function"?e(R({ownerState:n},i)):e;if(Array.isArray(r))return r.flatMap(o=>ml(o,R({ownerState:n},i)));if(r&&typeof r=="object"&&Array.isArray(r.variants)){const{variants:o=[]}=r;let a=ve(r,NT);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(R({ownerState:n},i,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&i[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(R({ownerState:n},i,n)):l.style))}),a}return r}function KT(e={}){const{themeId:t,defaultTheme:n=WT,rootShouldForwardProp:i=Yc,slotShouldForwardProp:r=Yc}=e,o=s=>Fo(R({},s,{theme:Na(R({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{Pw(s,b=>b.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=GT(HT(u))}=a,p=ve(a,VT),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let x,m=Yc;u==="Root"||u==="root"?m=i:u?m=r:UT(s)&&(m=void 0);const g=fp(s,R({shouldForwardProp:m,label:x},p)),v=b=>typeof b=="function"&&b.__emotion_real!==b||Dn(b)?S=>ml(b,R({},S,{theme:Na({theme:S.theme,defaultTheme:n,themeId:t})})):b,w=(b,...S)=>{let P=v(b);const _=S?S.map(v):[];l&&d&&_.push(I=>{const z=Na(R({},I,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[l]||!z.components[l].styleOverrides)return null;const V=z.components[l].styleOverrides,$={};return Object.entries(V).forEach(([re,oe])=>{$[re]=ml(oe,R({},I,{theme:z}))}),d(I,$)}),l&&!y&&_.push(I=>{var z;const V=Na(R({},I,{defaultTheme:n,themeId:t})),$=V==null||(z=V.components)==null||(z=z[l])==null?void 0:z.variants;return ml({variants:$},R({},I,{theme:V}))}),h||_.push(o);const A=_.length-S.length;if(Array.isArray(b)&&A>0){const I=new Array(A).fill("");P=[...b,...I],P.raw=[...b.raw,...I]}const T=g(P,..._);return s.muiName&&(T.muiName=s.muiName),T};return g.withConfig&&(w.withConfig=g.withConfig),w}}const Fw=KT();function Yl(e,t){const n=R({},t);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))n[i]=R({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const r=e[i]||{},o=t[i];n[i]={},!o||!Object.keys(o)?n[i]=r:!r||!Object.keys(r)?n[i]=o:(n[i]=R({},o),Object.keys(r).forEach(s=>{n[i][s]=Yl(r[s],o[s])}))}else n[i]===void 0&&(n[i]=e[i])}),n}function jw(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Yl(t.components[n].defaultProps,i)}function Nw({props:e,name:t,defaultTheme:n,themeId:i}){let r=Qu(n);return i&&(r=r[i]||r),jw({theme:r,name:t,props:e})}const bp=typeof window<"u"?k.useLayoutEffect:k.useEffect;function qT(e,t,n,i,r){const[o,s]=k.useState(()=>r&&n?n(e).matches:i?i(e).matches:t);return bp(()=>{let a=!0;if(!n)return;const l=n(e),u=()=>{a&&s(l.matches)};return u(),l.addListener(u),()=>{a=!1,l.removeListener(u)}},[e,n]),o}const Vw=k.useSyncExternalStore;function QT(e,t,n,i,r){const o=k.useCallback(()=>t,[t]),s=k.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(i!==null){const{matches:c}=i(e);return()=>c}return o},[o,e,i,r,n]),[a,l]=k.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,n,e]);return Vw(l,a,s)}function YT(e,t={}){const n=yp(),i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:o=i?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=jw({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Vw!==void 0?QT:qT)(l,r,o,s,a)}function XT(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const ZT=Object.freeze(Object.defineProperty({__proto__:null,default:XT},Symbol.toStringTag,{value:"Module"}));function JT(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function eM(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function tM(e,t){return()=>null}function nM(e,t){var n,i;return k.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}function Bw(e){return e&&e.ownerDocument||document}function iM(e){return Bw(e).defaultView||window}function rM(e,t){return()=>null}function Uw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Yg=0;function oM(e){const[t,n]=k.useState(e),i=e||t;return k.useEffect(()=>{t==null&&(Yg+=1,n(`mui-${Yg}`))},[t]),i}const Xg=kl.useId;function sM(e){if(Xg!==void 0){const t=Xg();return e??t}return oM(e)}function aM(e,t,n,i,r){return null}function lM({controlled:e,default:t,name:n,state:i="value"}){const{current:r}=k.useRef(e!==void 0),[o,s]=k.useState(t),a=r?e:o,l=k.useCallback(u=>{r||s(u)},[]);return[a,l]}function ds(e){const t=k.useRef(e);return bp(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Xl(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Uw(n,t)})},e)}const Zg={};function uM(e,t){const n=k.useRef(Zg);return n.current===Zg&&(n.current=e(t)),n}const cM=[];function fM(e){k.useEffect(e,cM)}class sc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function dM(){const e=uM(sc.create).current;return fM(e.disposeEffect),e}let ac=!0,Rd=!1;const hM=new sc,pM={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mM(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&pM[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gM(e){e.metaKey||e.altKey||e.ctrlKey||(ac=!0)}function Xc(){ac=!1}function yM(){this.visibilityState==="hidden"&&Rd&&(ac=!0)}function vM(e){e.addEventListener("keydown",gM,!0),e.addEventListener("mousedown",Xc,!0),e.addEventListener("pointerdown",Xc,!0),e.addEventListener("touchstart",Xc,!0),e.addEventListener("visibilitychange",yM,!0)}function xM(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ac||mM(t)}function Ww(){const e=k.useCallback(r=>{r!=null&&vM(r.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(Rd=!0,hM.start(100,()=>{Rd=!1}),t.current=!1,!0):!1}function i(r){return xM(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:i,onBlur:n,ref:e}}function Ii(e,t,n=void 0){const i={};return Object.keys(e).forEach(r=>{i[r]=e[r].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),i}const Hw=k.createContext(null);function Gw(){return k.useContext(Hw)}const wM=typeof Symbol=="function"&&Symbol.for,bM=wM?Symbol.for("mui.nested"):"__THEME_NESTED__";function SM(e,t){return typeof t=="function"?t(e):R({},e,t)}function kM(e){const{children:t,theme:n}=e,i=Gw(),r=k.useMemo(()=>{const o=i===null?n:SM(i,n);return o!=null&&(o[bM]=i!==null),o},[n,i]);return C.jsx(Hw.Provider,{value:r,children:t})}const CM=["value"],PM=k.createContext();function _M(e){let{value:t}=e,n=ve(e,CM);return C.jsx(PM.Provider,R({value:t??!0},n))}const Kw=k.createContext(void 0);function TM({value:e,children:t}){return C.jsx(Kw.Provider,{value:e,children:t})}function MM(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const r=t.components[n];return r.defaultProps?Yl(r.defaultProps,i):!r.styleOverrides&&!r.variants?Yl(r,i):i}function EM({props:e,name:t}){const n=k.useContext(Kw);return MM({props:e,name:t,theme:{components:n}})}const Jg={};function ey(e,t,n,i=!1){return k.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const o=n(r),s=e?R({},t,{[e]:o}):o;return i?()=>s:s}return e?R({},t,{[e]:n}):R({},t,n)},[e,t,n,i])}function RM(e){const{children:t,theme:n,themeId:i}=e,r=yp(Jg),o=Gw()||Jg,s=ey(i,r,n),a=ey(i,o,n,!0),l=s.direction==="rtl";return C.jsx(kM,{theme:a,children:C.jsx(da.Provider,{value:s,children:C.jsx(_M,{value:l,children:C.jsx(TM,{value:s==null?void 0:s.components,children:t})})})})}const OM=["className","component","disableGutters","fixed","maxWidth","classes"],AM=jo(),zM=Fw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),IM=e=>Nw({props:e,name:"MuiContainer",defaultTheme:AM}),LM=(e,t)=>{const n=l=>Jn(t,l),{classes:i,fixed:r,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${U(String(s))}`,r&&"fixed",o&&"disableGutters"]};return Ii(a,n,i)};function DM(e={}){const{createStyledComponent:t=zM,useThemeProps:n=IM,componentName:i="MuiContainer"}=e,r=t(({theme:s,ownerState:a})=>R({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,f=s.breakpoints.values[c];return f!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>R({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return k.forwardRef(function(a,l){const u=n(a),{className:c,component:f="div",disableGutters:d=!1,fixed:p=!1,maxWidth:y="lg"}=u,h=ve(u,OM),x=R({},u,{component:f,disableGutters:d,fixed:p,maxWidth:y}),m=LM(x,i);return C.jsx(r,R({as:f,ownerState:x,className:de(m.root,c),ref:l},h))})}const $M=["component","direction","spacing","divider","children","className","useFlexGap"],FM=jo(),jM=Fw("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function NM(e){return Nw({props:e,name:"MuiStack",defaultTheme:FM})}function VM(e,t){const n=k.Children.toArray(e).filter(Boolean);return n.reduce((i,r,o)=>(i.push(r),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UM=({ownerState:e,theme:t})=>{let n=R({display:"flex",flexDirection:"column"},vt({theme:t},or({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i})));if(e.spacing){const i=mp(t),r=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=or({values:e.direction,base:r}),s=or({values:e.spacing,base:r});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const d=u>0?o[c[u-1]]:"column";o[l]=d}}),n=Wt(n,vt({theme:t},s,(l,u)=>e.useFlexGap?{gap:hr(i,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${BM(u?o[u]:e.direction)}`]:hr(i,l)}}))}return n=I_(t.breakpoints,n),n};function WM(e={}){const{createStyledComponent:t=jM,useThemeProps:n=NM,componentName:i="MuiStack"}=e,r=()=>Ii({root:["root"]},l=>Jn(i,l),{}),o=t(UM);return k.forwardRef(function(l,u){const c=n(l),f=ma(c),{component:d="div",direction:p="column",spacing:y=0,divider:h,children:x,className:m,useFlexGap:g=!1}=f,v=ve(f,$M),w={direction:p,spacing:y,useFlexGap:g},b=r();return C.jsx(o,R({as:d,ownerState:w,ref:u,className:de(b.root,m)},v,{children:h?VM(x,h):x}))})}function HM(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Me={},qw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qw);var ei=qw.exports;const GM=Xn(S2),KM=Xn(ZT);var Qw=ei;Object.defineProperty(Me,"__esModule",{value:!0});var It=Me.alpha=Jw;Me.blend=sE;Me.colorChannel=void 0;var qM=Me.darken=kp;Me.decomposeColor=Kt;Me.emphasize=eb;var QM=Me.getContrastRatio=tE;Me.getLuminance=Zl;Me.hexToRgb=Yw;Me.hslToRgb=Zw;var YM=Me.lighten=Cp;Me.private_safeAlpha=nE;Me.private_safeColorChannel=void 0;Me.private_safeDarken=iE;Me.private_safeEmphasize=oE;Me.private_safeLighten=rE;Me.recomposeColor=No;Me.rgbToHex=eE;var ty=Qw(GM),XM=Qw(KM);function Sp(e,t=0,n=1){return(0,XM.default)(e,t,n)}function Yw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,r)=>r<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function ZM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Kt(e){if(e.type)return e;if(e.charAt(0)==="#")return Kt(Yw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,ty.default)(9,e));let i=e.substring(t+1,e.length-1),r;if(n==="color"){if(i=i.split(" "),r=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,ty.default)(10,r))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:n,values:i,colorSpace:r}}const Xw=e=>{const t=Kt(e);return t.values.slice(0,3).map((n,i)=>t.type.indexOf("hsl")!==-1&&i!==0?`${n}%`:n).join(" ")};Me.colorChannel=Xw;const JM=(e,t)=>{try{return Xw(e)}catch{return e}};Me.private_safeColorChannel=JM;function No(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.indexOf("rgb")!==-1?i=i.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.indexOf("color")!==-1?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function eE(e){if(e.indexOf("#")===0)return e;const{values:t}=Kt(e);return`#${t.map((n,i)=>ZM(i===3?Math.round(255*n):n)).join("")}`}function Zw(e){e=Kt(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),s=(u,c=(u+n/30)%12)=>r-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),No({type:a,values:l})}function Zl(e){e=Kt(e);let t=e.type==="hsl"||e.type==="hsla"?Kt(Zw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tE(e,t){const n=Zl(e),i=Zl(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Jw(e,t){return e=Kt(e),t=Sp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,No(e)}function nE(e,t,n){try{return Jw(e,t)}catch{return e}}function kp(e,t){if(e=Kt(e),t=Sp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return No(e)}function iE(e,t,n){try{return kp(e,t)}catch{return e}}function Cp(e,t){if(e=Kt(e),t=Sp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return No(e)}function rE(e,t,n){try{return Cp(e,t)}catch{return e}}function eb(e,t=.15){return Zl(e)>.5?kp(e,t):Cp(e,t)}function oE(e,t,n){try{return eb(e,t)}catch{return e}}function sE(e,t,n,i=1){const r=(l,u)=>Math.round((l**(1/i)*(1-n)+u**(1/i)*n)**i),o=Kt(e),s=Kt(t),a=[r(o.values[0],s.values[0]),r(o.values[1],s.values[1]),r(o.values[2],s.values[2])];return No({type:"rgb",values:a})}const Ys={black:"#000",white:"#fff"},aE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},_r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Tr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},es={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Mr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Er={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Rr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},lE=["mode","contrastThreshold","tonalOffset"],ny={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ys.white,default:Ys.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zc={text:{primary:Ys.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ys.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function iy(e,t,n,i){const r=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=YM(e.main,r):t==="dark"&&(e.dark=qM(e.main,o)))}function uE(e="light"){return e==="dark"?{main:Mr[200],light:Mr[50],dark:Mr[400]}:{main:Mr[700],light:Mr[400],dark:Mr[800]}}function cE(e="light"){return e==="dark"?{main:_r[200],light:_r[50],dark:_r[400]}:{main:_r[500],light:_r[300],dark:_r[700]}}function fE(e="light"){return e==="dark"?{main:Tr[500],light:Tr[300],dark:Tr[700]}:{main:Tr[700],light:Tr[400],dark:Tr[800]}}function dE(e="light"){return e==="dark"?{main:Er[400],light:Er[300],dark:Er[700]}:{main:Er[700],light:Er[500],dark:Er[900]}}function hE(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[800],light:Rr[500],dark:Rr[900]}}function pE(e="light"){return e==="dark"?{main:es[400],light:es[300],dark:es[700]}:{main:"#ed6c02",light:es[500],dark:es[900]}}function mE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,r=ve(e,lE),o=e.primary||uE(t),s=e.secondary||cE(t),a=e.error||fE(t),l=e.info||dE(t),u=e.success||hE(t),c=e.warning||pE(t);function f(h){return QM(h,Zc.text.primary)>=n?Zc.text.primary:ny.text.primary}const d=({color:h,name:x,mainShade:m=500,lightShade:g=300,darkShade:v=700})=>{if(h=R({},h),!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Gs(11,x?` (${x})`:"",m));if(typeof h.main!="string")throw new Error(Gs(12,x?` (${x})`:"",JSON.stringify(h.main)));return iy(h,"light",g,i),iy(h,"dark",v,i),h.contrastText||(h.contrastText=f(h.main)),h},p={dark:Zc,light:ny};return Wt(R({common:R({},Ys),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:aE,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:i},p[t]),r)}const gE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function yE(e){return Math.round(e*1e5)/1e5}const ry={textTransform:"uppercase"},oy='"Roboto", "Helvetica", "Arial", sans-serif';function vE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:i=oy,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,d=ve(n,gE),p=r/14,y=f||(m=>`${m/u*p}rem`),h=(m,g,v,w,b)=>R({fontFamily:i,fontWeight:m,fontSize:y(g),lineHeight:v},i===oy?{letterSpacing:`${yE(w/g)}em`}:{},b,c),x={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(s,48,1.167,0),h4:h(s,34,1.235,.25),h5:h(s,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(s,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(s,16,1.5,.15),body2:h(s,14,1.43,.15),button:h(a,14,1.75,.4,ry),caption:h(s,12,1.66,.4),overline:h(s,12,2.66,1,ry),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt(R({htmlFontSize:u,pxToRem:y,fontFamily:i,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},x),d,{clone:!1})}const xE=.2,wE=.14,bE=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${bE})`].join(",")}const SE=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],kE=["duration","easing","delay"],CE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},PE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sy(e){return`${Math.round(e)}ms`}function _E(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function TE(e){const t=R({},CE,e.easing),n=R({},PE,e.duration);return R({getAutoHeightDuration:_E,create:(r=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return ve(o,kE),(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:sy(s)} ${a} ${typeof l=="string"?l:sy(l)}`).join(",")}},e,{easing:t,duration:n})}const ME={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},EE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pp(e={},...t){const{mixins:n={},palette:i={},transitions:r={},typography:o={}}=e,s=ve(e,EE);if(e.vars)throw new Error(Gs(18));const a=mE(i),l=jo(e);let u=Wt(l,{mixins:HM(l.breakpoints,n),palette:a,shadows:SE.slice(),typography:vE(a,o),transitions:TE(r),zIndex:R({},ME)});return u=Wt(u,s),u=t.reduce((c,f)=>Wt(c,f),u),u.unstable_sxConfig=R({},pa,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Fo({sx:f,theme:this})},u}const _p=Pp();function tb(){const e=Qu(_p);return e[Co]||e}var ga={},Jc={exports:{}},ay;function RE(){return ay||(ay=1,function(e){function t(n,i){if(n==null)return{};var r={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(i.includes(o))continue;r[o]=n[o]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jc)),Jc.exports}const OE=Xn(E_),AE=Xn(R_),zE=Xn(D_),IE=Xn(FT),LE=Xn(kT),DE=Xn(ET);var Vo=ei;Object.defineProperty(ga,"__esModule",{value:!0});var $E=ga.default=YE;ga.shouldForwardProp=gl;ga.systemDefaultTheme=void 0;var Dt=Vo(Sw()),Od=Vo(RE()),ly=WE(OE),FE=AE;Vo(zE);Vo(IE);var jE=Vo(LE),NE=Vo(DE);const VE=["ownerState"],BE=["variants"],UE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nb=function(i){return i?n:t})(e)}function WE(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nb(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}function HE(e){return Object.keys(e).length===0}function GE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const KE=ga.systemDefaultTheme=(0,jE.default)(),qE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Va({defaultTheme:e,theme:t,themeId:n}){return HE(t)?e:t[n]||t}function QE(e){return e?(t,n)=>n[e]:null}function yl(e,t){let{ownerState:n}=t,i=(0,Od.default)(t,VE);const r=typeof e=="function"?e((0,Dt.default)({ownerState:n},i)):e;if(Array.isArray(r))return r.flatMap(o=>yl(o,(0,Dt.default)({ownerState:n},i)));if(r&&typeof r=="object"&&Array.isArray(r.variants)){const{variants:o=[]}=r;let a=(0,Od.default)(r,BE);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Dt.default)({ownerState:n},i,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&i[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Dt.default)({ownerState:n},i,n)):l.style))}),a}return r}function YE(e={}){const{themeId:t,defaultTheme:n=KE,rootShouldForwardProp:i=gl,slotShouldForwardProp:r=gl}=e,o=s=>(0,NE.default)((0,Dt.default)({},s,{theme:Va((0,Dt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,ly.internal_processStyles)(s,b=>b.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=QE(qE(u))}=a,p=(0,Od.default)(a,UE),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let x,m=gl;u==="Root"||u==="root"?m=i:u?m=r:GE(s)&&(m=void 0);const g=(0,ly.default)(s,(0,Dt.default)({shouldForwardProp:m,label:x},p)),v=b=>typeof b=="function"&&b.__emotion_real!==b||(0,FE.isPlainObject)(b)?S=>yl(b,(0,Dt.default)({},S,{theme:Va({theme:S.theme,defaultTheme:n,themeId:t})})):b,w=(b,...S)=>{let P=v(b);const _=S?S.map(v):[];l&&d&&_.push(I=>{const z=Va((0,Dt.default)({},I,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[l]||!z.components[l].styleOverrides)return null;const V=z.components[l].styleOverrides,$={};return Object.entries(V).forEach(([re,oe])=>{$[re]=yl(oe,(0,Dt.default)({},I,{theme:z}))}),d(I,$)}),l&&!y&&_.push(I=>{var z;const V=Va((0,Dt.default)({},I,{defaultTheme:n,themeId:t})),$=V==null||(z=V.components)==null||(z=z[l])==null?void 0:z.variants;return yl({variants:$},(0,Dt.default)({},I,{theme:V}))}),h||_.push(o);const A=_.length-S.length;if(Array.isArray(b)&&A>0){const I=new Array(A).fill("");P=[...b,...I],P.raw=[...b.raw,...I]}const T=g(P,..._);return s.muiName&&(T.muiName=s.muiName),T};return g.withConfig&&(w.withConfig=g.withConfig),w}}function XE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZE=e=>XE(e)&&e!=="classes",pn=$E({themeId:Co,defaultTheme:_p,rootShouldForwardProp:ZE}),JE=["theme"];function eR(e){let{theme:t}=e,n=ve(e,JE);const i=t[Co];return C.jsx(RM,R({},n,{themeId:i?Co:void 0,theme:i||t}))}const uy=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function En(e){return EM(e)}function tR(e){return C.jsx(_T,R({},e,{defaultTheme:_p,themeId:Co}))}const nR=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),iR=e=>R({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),rR=(e,t=!1)=>{var n;const i={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;i[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let r=R({html:nR(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:R({margin:0},iR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(r=[r,o]),r};function oR(e){const t=En({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return C.jsxs(k.Fragment,{children:[C.jsx(tR,{styles:r=>rR(r,i)}),n]})}/** + */var vp=Symbol.for("react.element"),xp=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Xu=Symbol.for("react.strict_mode"),Zu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),ec=Symbol.for("react.context"),AT=Symbol.for("react.server_context"),tc=Symbol.for("react.forward_ref"),nc=Symbol.for("react.suspense"),ic=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),zT=Symbol.for("react.offscreen"),Iw;Iw=Symbol.for("react.module.reference");function Xt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vp:switch(e=e.type,e){case Qu:case Zu:case Xu:case nc:case ic:return e;default:switch(e=e&&e.$$typeof,e){case AT:case ec:case tc:case oc:case rc:case Ju:return e;default:return t}}case xp:return t}}}ne.ContextConsumer=ec;ne.ContextProvider=Ju;ne.Element=vp;ne.ForwardRef=tc;ne.Fragment=Qu;ne.Lazy=oc;ne.Memo=rc;ne.Portal=xp;ne.Profiler=Zu;ne.StrictMode=Xu;ne.Suspense=nc;ne.SuspenseList=ic;ne.isAsyncMode=function(){return!1};ne.isConcurrentMode=function(){return!1};ne.isContextConsumer=function(e){return Xt(e)===ec};ne.isContextProvider=function(e){return Xt(e)===Ju};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vp};ne.isForwardRef=function(e){return Xt(e)===tc};ne.isFragment=function(e){return Xt(e)===Qu};ne.isLazy=function(e){return Xt(e)===oc};ne.isMemo=function(e){return Xt(e)===rc};ne.isPortal=function(e){return Xt(e)===xp};ne.isProfiler=function(e){return Xt(e)===Zu};ne.isStrictMode=function(e){return Xt(e)===Xu};ne.isSuspense=function(e){return Xt(e)===nc};ne.isSuspenseList=function(e){return Xt(e)===ic};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Zu||e===Xu||e===nc||e===ic||e===zT||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===ec||e.$$typeof===tc||e.$$typeof===Iw||e.getModuleId!==void 0)};ne.typeOf=Xt;zw.exports=ne;var Gg=zw.exports;const IT=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Dw(e){const t=`${e}`.match(IT);return t&&t[1]||""}function Lw(e,t=""){return e.displayName||e.name||Dw(e)||t}function Kg(e,t,n){const i=Lw(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function DT(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Lw(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Gg.ForwardRef:return Kg(e,e.render,"ForwardRef");case Gg.Memo:return Kg(e,e.type,"memo");default:return}}}const LT=Object.freeze(Object.defineProperty({__proto__:null,default:DT,getFunctionName:Dw},Symbol.toStringTag,{value:"Module"})),$T=["ownerState"],FT=["variants"],jT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function NT(e){return Object.keys(e).length===0}function VT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Qc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BT=jo(),UT=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Na({defaultTheme:e,theme:t,themeId:n}){return NT(t)?e:t[n]||t}function WT(e){return e?(t,n)=>n[e]:null}function ml(e,t){let{ownerState:n}=t,i=ve(t,$T);const r=typeof e=="function"?e(R({ownerState:n},i)):e;if(Array.isArray(r))return r.flatMap(o=>ml(o,R({ownerState:n},i)));if(r&&typeof r=="object"&&Array.isArray(r.variants)){const{variants:o=[]}=r;let a=ve(r,FT);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(R({ownerState:n},i,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&i[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(R({ownerState:n},i,n)):l.style))}),a}return r}function HT(e={}){const{themeId:t,defaultTheme:n=BT,rootShouldForwardProp:i=Qc,slotShouldForwardProp:r=Qc}=e,o=s=>Fo(R({},s,{theme:Na(R({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{kw(s,b=>b.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=WT(UT(u))}=a,p=ve(a,jT),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let x,m=Qc;u==="Root"||u==="root"?m=i:u?m=r:VT(s)&&(m=void 0);const g=fp(s,R({shouldForwardProp:m,label:x},p)),v=b=>typeof b=="function"&&b.__emotion_real!==b||Ln(b)?S=>ml(b,R({},S,{theme:Na({theme:S.theme,defaultTheme:n,themeId:t})})):b,w=(b,...S)=>{let P=v(b);const _=S?S.map(v):[];l&&d&&_.push(I=>{const z=Na(R({},I,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[l]||!z.components[l].styleOverrides)return null;const V=z.components[l].styleOverrides,$={};return Object.entries(V).forEach(([re,oe])=>{$[re]=ml(oe,R({},I,{theme:z}))}),d(I,$)}),l&&!y&&_.push(I=>{var z;const V=Na(R({},I,{defaultTheme:n,themeId:t})),$=V==null||(z=V.components)==null||(z=z[l])==null?void 0:z.variants;return ml({variants:$},R({},I,{theme:V}))}),h||_.push(o);const A=_.length-S.length;if(Array.isArray(b)&&A>0){const I=new Array(A).fill("");P=[...b,...I],P.raw=[...b.raw,...I]}const T=g(P,..._);return s.muiName&&(T.muiName=s.muiName),T};return g.withConfig&&(w.withConfig=g.withConfig),w}}const $w=HT();function Ql(e,t){const n=R({},t);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))n[i]=R({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const r=e[i]||{},o=t[i];n[i]={},!o||!Object.keys(o)?n[i]=r:!r||!Object.keys(r)?n[i]=o:(n[i]=R({},o),Object.keys(r).forEach(s=>{n[i][s]=Ql(r[s],o[s])}))}else n[i]===void 0&&(n[i]=e[i])}),n}function GT(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Ql(t.components[n].defaultProps,i)}function Fw({props:e,name:t,defaultTheme:n,themeId:i}){let r=Yu(n);return i&&(r=r[i]||r),GT({theme:r,name:t,props:e})}const jw=typeof window<"u"?k.useLayoutEffect:k.useEffect;function KT(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const qT=Object.freeze(Object.defineProperty({__proto__:null,default:KT},Symbol.toStringTag,{value:"Module"}));function YT(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function QT(e,t=166){let n;function i(...r){const o=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function XT(e,t){return()=>null}function ZT(e,t){var n,i;return k.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}function Nw(e){return e&&e.ownerDocument||document}function JT(e){return Nw(e).defaultView||window}function eM(e,t){return()=>null}function Vw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let qg=0;function tM(e){const[t,n]=k.useState(e),i=e||t;return k.useEffect(()=>{t==null&&(qg+=1,n(`mui-${qg}`))},[t]),i}const Yg=kl.useId;function nM(e){if(Yg!==void 0){const t=Yg();return e??t}return tM(e)}function iM(e,t,n,i,r){return null}function rM({controlled:e,default:t,name:n,state:i="value"}){const{current:r}=k.useRef(e!==void 0),[o,s]=k.useState(t),a=r?e:o,l=k.useCallback(u=>{r||s(u)},[]);return[a,l]}function ds(e){const t=k.useRef(e);return jw(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Xl(...e){return k.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vw(n,t)})},e)}const Qg={};function oM(e,t){const n=k.useRef(Qg);return n.current===Qg&&(n.current=e(t)),n}const sM=[];function aM(e){k.useEffect(e,sM)}class sc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function lM(){const e=oM(sc.create).current;return aM(e.disposeEffect),e}let ac=!0,Rd=!1;const uM=new sc,cM={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fM(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&cM[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function dM(e){e.metaKey||e.altKey||e.ctrlKey||(ac=!0)}function Xc(){ac=!1}function hM(){this.visibilityState==="hidden"&&Rd&&(ac=!0)}function pM(e){e.addEventListener("keydown",dM,!0),e.addEventListener("mousedown",Xc,!0),e.addEventListener("pointerdown",Xc,!0),e.addEventListener("touchstart",Xc,!0),e.addEventListener("visibilitychange",hM,!0)}function mM(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ac||fM(t)}function Bw(){const e=k.useCallback(r=>{r!=null&&pM(r.ownerDocument)},[]),t=k.useRef(!1);function n(){return t.current?(Rd=!0,uM.start(100,()=>{Rd=!1}),t.current=!1,!0):!1}function i(r){return mM(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:i,onBlur:n,ref:e}}function Ii(e,t,n=void 0){const i={};return Object.keys(e).forEach(r=>{i[r]=e[r].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),i}const Uw=k.createContext(null);function Ww(){return k.useContext(Uw)}const gM=typeof Symbol=="function"&&Symbol.for,yM=gM?Symbol.for("mui.nested"):"__THEME_NESTED__";function vM(e,t){return typeof t=="function"?t(e):R({},e,t)}function xM(e){const{children:t,theme:n}=e,i=Ww(),r=k.useMemo(()=>{const o=i===null?n:vM(i,n);return o!=null&&(o[yM]=i!==null),o},[n,i]);return C.jsx(Uw.Provider,{value:r,children:t})}const wM=["value"],bM=k.createContext();function SM(e){let{value:t}=e,n=ve(e,wM);return C.jsx(bM.Provider,R({value:t??!0},n))}const Hw=k.createContext(void 0);function kM({value:e,children:t}){return C.jsx(Hw.Provider,{value:e,children:t})}function CM(e){const{theme:t,name:n,props:i}=e;if(!t||!t.components||!t.components[n])return i;const r=t.components[n];return r.defaultProps?Ql(r.defaultProps,i):!r.styleOverrides&&!r.variants?Ql(r,i):i}function PM({props:e,name:t}){const n=k.useContext(Hw);return CM({props:e,name:t,theme:{components:n}})}const Xg={};function Zg(e,t,n,i=!1){return k.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const o=n(r),s=e?R({},t,{[e]:o}):o;return i?()=>s:s}return e?R({},t,{[e]:n}):R({},t,n)},[e,t,n,i])}function _M(e){const{children:t,theme:n,themeId:i}=e,r=Ow(Xg),o=Ww()||Xg,s=Zg(i,r,n),a=Zg(i,o,n,!0),l=s.direction==="rtl";return C.jsx(xM,{theme:a,children:C.jsx(da.Provider,{value:s,children:C.jsx(SM,{value:l,children:C.jsx(kM,{value:s==null?void 0:s.components,children:t})})})})}const TM=["className","component","disableGutters","fixed","maxWidth","classes"],MM=jo(),EM=$w("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),RM=e=>Fw({props:e,name:"MuiContainer",defaultTheme:MM}),OM=(e,t)=>{const n=l=>Jn(t,l),{classes:i,fixed:r,disableGutters:o,maxWidth:s}=e,a={root:["root",s&&`maxWidth${U(String(s))}`,r&&"fixed",o&&"disableGutters"]};return Ii(a,n,i)};function AM(e={}){const{createStyledComponent:t=EM,useThemeProps:n=RM,componentName:i="MuiContainer"}=e,r=t(({theme:s,ownerState:a})=>R({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,f=s.breakpoints.values[c];return f!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>R({},a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}));return k.forwardRef(function(a,l){const u=n(a),{className:c,component:f="div",disableGutters:d=!1,fixed:p=!1,maxWidth:y="lg"}=u,h=ve(u,TM),x=R({},u,{component:f,disableGutters:d,fixed:p,maxWidth:y}),m=OM(x,i);return C.jsx(r,R({as:f,ownerState:x,className:de(m.root,c),ref:l},h))})}const zM=["component","direction","spacing","divider","children","className","useFlexGap"],IM=jo(),DM=$w("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function LM(e){return Fw({props:e,name:"MuiStack",defaultTheme:IM})}function $M(e,t){const n=k.Children.toArray(e).filter(Boolean);return n.reduce((i,r,o)=>(i.push(r),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],jM=({ownerState:e,theme:t})=>{let n=R({display:"flex",flexDirection:"column"},vt({theme:t},or({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i})));if(e.spacing){const i=mp(t),r=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=or({values:e.direction,base:r}),s=or({values:e.spacing,base:r});typeof o=="object"&&Object.keys(o).forEach((l,u,c)=>{if(!o[l]){const d=u>0?o[c[u-1]]:"column";o[l]=d}}),n=Wt(n,vt({theme:t},s,(l,u)=>e.useFlexGap?{gap:hr(i,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${FM(u?o[u]:e.direction)}`]:hr(i,l)}}))}return n=A_(t.breakpoints,n),n};function NM(e={}){const{createStyledComponent:t=DM,useThemeProps:n=LM,componentName:i="MuiStack"}=e,r=()=>Ii({root:["root"]},l=>Jn(i,l),{}),o=t(jM);return k.forwardRef(function(l,u){const c=n(l),f=ma(c),{component:d="div",direction:p="column",spacing:y=0,divider:h,children:x,className:m,useFlexGap:g=!1}=f,v=ve(f,zM),w={direction:p,spacing:y,useFlexGap:g},b=r();return C.jsx(o,R({as:d,ownerState:w,ref:u,className:de(b.root,m)},v,{children:h?$M(x,h):x}))})}function VM(e,t){return R({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Me={},Gw={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Gw);var ei=Gw.exports;const BM=Xn(w2),UM=Xn(qT);var Kw=ei;Object.defineProperty(Me,"__esModule",{value:!0});var It=Me.alpha=Xw;Me.blend=nE;Me.colorChannel=void 0;var WM=Me.darken=bp;Me.decomposeColor=Kt;Me.emphasize=Zw;var HM=Me.getContrastRatio=XM;Me.getLuminance=Zl;Me.hexToRgb=qw;Me.hslToRgb=Qw;var GM=Me.lighten=Sp;Me.private_safeAlpha=ZM;Me.private_safeColorChannel=void 0;Me.private_safeDarken=JM;Me.private_safeEmphasize=tE;Me.private_safeLighten=eE;Me.recomposeColor=No;Me.rgbToHex=QM;var Jg=Kw(BM),KM=Kw(UM);function wp(e,t=0,n=1){return(0,KM.default)(e,t,n)}function qw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(i=>i+i)),n?`rgb${n.length===4?"a":""}(${n.map((i,r)=>r<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function qM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Kt(e){if(e.type)return e;if(e.charAt(0)==="#")return Kt(qw(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Jg.default)(9,e));let i=e.substring(t+1,e.length-1),r;if(n==="color"){if(i=i.split(" "),r=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,Jg.default)(10,r))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:n,values:i,colorSpace:r}}const Yw=e=>{const t=Kt(e);return t.values.slice(0,3).map((n,i)=>t.type.indexOf("hsl")!==-1&&i!==0?`${n}%`:n).join(" ")};Me.colorChannel=Yw;const YM=(e,t)=>{try{return Yw(e)}catch{return e}};Me.private_safeColorChannel=YM;function No(e){const{type:t,colorSpace:n}=e;let{values:i}=e;return t.indexOf("rgb")!==-1?i=i.map((r,o)=>o<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.indexOf("color")!==-1?i=`${n} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function QM(e){if(e.indexOf("#")===0)return e;const{values:t}=Kt(e);return`#${t.map((n,i)=>qM(i===3?Math.round(255*n):n)).join("")}`}function Qw(e){e=Kt(e);const{values:t}=e,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),s=(u,c=(u+n/30)%12)=>r-o*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),No({type:a,values:l})}function Zl(e){e=Kt(e);let t=e.type==="hsl"||e.type==="hsla"?Kt(Qw(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function XM(e,t){const n=Zl(e),i=Zl(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Xw(e,t){return e=Kt(e),t=wp(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,No(e)}function ZM(e,t,n){try{return Xw(e,t)}catch{return e}}function bp(e,t){if(e=Kt(e),t=wp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return No(e)}function JM(e,t,n){try{return bp(e,t)}catch{return e}}function Sp(e,t){if(e=Kt(e),t=wp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return No(e)}function eE(e,t,n){try{return Sp(e,t)}catch{return e}}function Zw(e,t=.15){return Zl(e)>.5?bp(e,t):Sp(e,t)}function tE(e,t,n){try{return Zw(e,t)}catch{return e}}function nE(e,t,n,i=1){const r=(l,u)=>Math.round((l**(1/i)*(1-n)+u**(1/i)*n)**i),o=Kt(e),s=Kt(t),a=[r(o.values[0],s.values[0]),r(o.values[1],s.values[1]),r(o.values[2],s.values[2])];return No({type:"rgb",values:a})}const Qs={black:"#000",white:"#fff"},iE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},_r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Tr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},es={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Mr={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Er={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Rr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},rE=["mode","contrastThreshold","tonalOffset"],ey={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qs.white,default:Qs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zc={text:{primary:Qs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ty(e,t,n,i){const r=i.light||i,o=i.dark||i*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=GM(e.main,r):t==="dark"&&(e.dark=WM(e.main,o)))}function oE(e="light"){return e==="dark"?{main:Mr[200],light:Mr[50],dark:Mr[400]}:{main:Mr[700],light:Mr[400],dark:Mr[800]}}function sE(e="light"){return e==="dark"?{main:_r[200],light:_r[50],dark:_r[400]}:{main:_r[500],light:_r[300],dark:_r[700]}}function aE(e="light"){return e==="dark"?{main:Tr[500],light:Tr[300],dark:Tr[700]}:{main:Tr[700],light:Tr[400],dark:Tr[800]}}function lE(e="light"){return e==="dark"?{main:Er[400],light:Er[300],dark:Er[700]}:{main:Er[700],light:Er[500],dark:Er[900]}}function uE(e="light"){return e==="dark"?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[800],light:Rr[500],dark:Rr[900]}}function cE(e="light"){return e==="dark"?{main:es[400],light:es[300],dark:es[700]}:{main:"#ed6c02",light:es[500],dark:es[900]}}function fE(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,r=ve(e,rE),o=e.primary||oE(t),s=e.secondary||sE(t),a=e.error||aE(t),l=e.info||lE(t),u=e.success||uE(t),c=e.warning||cE(t);function f(h){return HM(h,Zc.text.primary)>=n?Zc.text.primary:ey.text.primary}const d=({color:h,name:x,mainShade:m=500,lightShade:g=300,darkShade:v=700})=>{if(h=R({},h),!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(Gs(11,x?` (${x})`:"",m));if(typeof h.main!="string")throw new Error(Gs(12,x?` (${x})`:"",JSON.stringify(h.main)));return ty(h,"light",g,i),ty(h,"dark",v,i),h.contrastText||(h.contrastText=f(h.main)),h},p={dark:Zc,light:ey};return Wt(R({common:R({},Qs),mode:t,primary:d({color:o,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:iE,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:i},p[t]),r)}const dE=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function hE(e){return Math.round(e*1e5)/1e5}const ny={textTransform:"uppercase"},iy='"Roboto", "Helvetica", "Arial", sans-serif';function pE(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:i=iy,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,d=ve(n,dE),p=r/14,y=f||(m=>`${m/u*p}rem`),h=(m,g,v,w,b)=>R({fontFamily:i,fontWeight:m,fontSize:y(g),lineHeight:v},i===iy?{letterSpacing:`${hE(w/g)}em`}:{},b,c),x={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(s,48,1.167,0),h4:h(s,34,1.235,.25),h5:h(s,24,1.334,0),h6:h(a,20,1.6,.15),subtitle1:h(s,16,1.75,.15),subtitle2:h(a,14,1.57,.1),body1:h(s,16,1.5,.15),body2:h(s,14,1.43,.15),button:h(a,14,1.75,.4,ny),caption:h(s,12,1.66,.4),overline:h(s,12,2.66,1,ny),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Wt(R({htmlFontSize:u,pxToRem:y,fontFamily:i,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},x),d,{clone:!1})}const mE=.2,gE=.14,yE=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${mE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yE})`].join(",")}const vE=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],xE=["duration","easing","delay"],wE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ry(e){return`${Math.round(e)}ms`}function SE(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function kE(e){const t=R({},wE,e.easing),n=R({},bE,e.duration);return R({getAutoHeightDuration:SE,create:(r=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o;return ve(o,xE),(Array.isArray(r)?r:[r]).map(u=>`${u} ${typeof s=="string"?s:ry(s)} ${a} ${typeof l=="string"?l:ry(l)}`).join(",")}},e,{easing:t,duration:n})}const CE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},PE=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kp(e={},...t){const{mixins:n={},palette:i={},transitions:r={},typography:o={}}=e,s=ve(e,PE);if(e.vars)throw new Error(Gs(18));const a=fE(i),l=jo(e);let u=Wt(l,{mixins:VM(l.breakpoints,n),palette:a,shadows:vE.slice(),typography:pE(a,o),transitions:kE(r),zIndex:R({},CE)});return u=Wt(u,s),u=t.reduce((c,f)=>Wt(c,f),u),u.unstable_sxConfig=R({},pa,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return Fo({sx:f,theme:this})},u}const Cp=kp();function Jw(){const e=Yu(Cp);return e[Co]||e}var ga={},Jc={exports:{}},oy;function _E(){return oy||(oy=1,function(e){function t(n,i){if(n==null)return{};var r={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(i.includes(o))continue;r[o]=n[o]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Jc)),Jc.exports}const TE=Xn(T_),ME=Xn(M_),EE=Xn(I_),RE=Xn(LT),OE=Xn(bT),AE=Xn(TT);var Vo=ei;Object.defineProperty(ga,"__esModule",{value:!0});var zE=ga.default=GE;ga.shouldForwardProp=gl;ga.systemDefaultTheme=void 0;var Lt=Vo(ww()),Od=Vo(_E()),sy=NE(TE),IE=ME;Vo(EE);Vo(RE);var DE=Vo(OE),LE=Vo(AE);const $E=["ownerState"],FE=["variants"],jE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(eb=function(i){return i?n:t})(e)}function NE(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=eb(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=r?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}function VE(e){return Object.keys(e).length===0}function BE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const UE=ga.systemDefaultTheme=(0,DE.default)(),WE=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Va({defaultTheme:e,theme:t,themeId:n}){return VE(t)?e:t[n]||t}function HE(e){return e?(t,n)=>n[e]:null}function yl(e,t){let{ownerState:n}=t,i=(0,Od.default)(t,$E);const r=typeof e=="function"?e((0,Lt.default)({ownerState:n},i)):e;if(Array.isArray(r))return r.flatMap(o=>yl(o,(0,Lt.default)({ownerState:n},i)));if(r&&typeof r=="object"&&Array.isArray(r.variants)){const{variants:o=[]}=r;let a=(0,Od.default)(r,FE);return o.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Lt.default)({ownerState:n},i,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&i[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Lt.default)({ownerState:n},i,n)):l.style))}),a}return r}function GE(e={}){const{themeId:t,defaultTheme:n=UE,rootShouldForwardProp:i=gl,slotShouldForwardProp:r=gl}=e,o=s=>(0,LE.default)((0,Lt.default)({},s,{theme:Va((0,Lt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,sy.internal_processStyles)(s,b=>b.filter(S=>!(S!=null&&S.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=HE(WE(u))}=a,p=(0,Od.default)(a,jE),y=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,h=f||!1;let x,m=gl;u==="Root"||u==="root"?m=i:u?m=r:BE(s)&&(m=void 0);const g=(0,sy.default)(s,(0,Lt.default)({shouldForwardProp:m,label:x},p)),v=b=>typeof b=="function"&&b.__emotion_real!==b||(0,IE.isPlainObject)(b)?S=>yl(b,(0,Lt.default)({},S,{theme:Va({theme:S.theme,defaultTheme:n,themeId:t})})):b,w=(b,...S)=>{let P=v(b);const _=S?S.map(v):[];l&&d&&_.push(I=>{const z=Va((0,Lt.default)({},I,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[l]||!z.components[l].styleOverrides)return null;const V=z.components[l].styleOverrides,$={};return Object.entries(V).forEach(([re,oe])=>{$[re]=yl(oe,(0,Lt.default)({},I,{theme:z}))}),d(I,$)}),l&&!y&&_.push(I=>{var z;const V=Va((0,Lt.default)({},I,{defaultTheme:n,themeId:t})),$=V==null||(z=V.components)==null||(z=z[l])==null?void 0:z.variants;return yl({variants:$},(0,Lt.default)({},I,{theme:V}))}),h||_.push(o);const A=_.length-S.length;if(Array.isArray(b)&&A>0){const I=new Array(A).fill("");P=[...b,...I],P.raw=[...b.raw,...I]}const T=g(P,..._);return s.muiName&&(T.muiName=s.muiName),T};return g.withConfig&&(w.withConfig=g.withConfig),w}}function KE(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qE=e=>KE(e)&&e!=="classes",pn=zE({themeId:Co,defaultTheme:Cp,rootShouldForwardProp:qE}),YE=["theme"];function QE(e){let{theme:t}=e,n=ve(e,YE);const i=t[Co];return C.jsx(_M,R({},n,{themeId:i?Co:void 0,theme:i||t}))}const ay=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function En(e){return PM(e)}function XE(e){return C.jsx(CT,R({},e,{defaultTheme:Cp,themeId:Co}))}const ZE=(e,t)=>R({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),JE=e=>R({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),eR=(e,t=!1)=>{var n;const i={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var l;i[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let r=R({html:ZE(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:R({margin:0},JE(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},i);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(r=[r,o]),r};function tR(e){const t=En({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:i=!1}=t;return C.jsxs(k.Fragment,{children:[C.jsx(XE,{styles:r=>eR(r,i)}),n]})}/** * @remix-run/router v1.21.0 * * Copyright (c) Remix Software Inc. @@ -61,7 +61,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function aR(){return Math.random().toString(36).substr(2,8)}function fy(e,t){return{usr:e.state,key:e.key,idx:t}}function Ad(e,t,n,i){return n===void 0&&(n=null),Jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ob(t):t,{state:n,key:t&&t.key||i||aR()})}function rb(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function ob(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function lR(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=Yi.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Jl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Yi.Pop;let x=c(),m=x==null?null:x-u;u=x,l&&l({action:a,location:h.location,delta:m})}function d(x,m){a=Yi.Push;let g=Ad(h.location,x,m);u=c()+1;let v=fy(g,u),w=h.createHref(g);try{s.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;r.location.assign(w)}o&&l&&l({action:a,location:h.location,delta:1})}function p(x,m){a=Yi.Replace;let g=Ad(h.location,x,m);u=c();let v=fy(g,u),w=h.createHref(g);s.replaceState(v,"",w),o&&l&&l({action:a,location:h.location,delta:0})}function y(x){let m=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof x=="string"?x:rb(x);return g=g.replace(/ $/,"%20"),ib(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let h={get action(){return a},get location(){return e(r,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(cy,f),l=x,()=>{r.removeEventListener(cy,f),l=null}},createHref(x){return t(r,x)},createURL:y,encodeLocation(x){let m=y(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(x){return s.go(x)}};return h}var dy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dy||(dy={}));function uR(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const sb=["post","put","patch","delete"];new Set(sb);const cR=["get",...sb];new Set(cR);/** + */function Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function iR(){return Math.random().toString(36).substr(2,8)}function uy(e,t){return{usr:e.state,key:e.key,idx:t}}function Ad(e,t,n,i){return n===void 0&&(n=null),Jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ib(t):t,{state:n,key:t&&t.key||i||iR()})}function nb(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function ib(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function rR(e,t,n,i){i===void 0&&(i={});let{window:r=document.defaultView,v5Compat:o=!1}=i,s=r.history,a=Qi.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Jl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Qi.Pop;let x=c(),m=x==null?null:x-u;u=x,l&&l({action:a,location:h.location,delta:m})}function d(x,m){a=Qi.Push;let g=Ad(h.location,x,m);u=c()+1;let v=uy(g,u),w=h.createHref(g);try{s.pushState(v,"",w)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;r.location.assign(w)}o&&l&&l({action:a,location:h.location,delta:1})}function p(x,m){a=Qi.Replace;let g=Ad(h.location,x,m);u=c();let v=uy(g,u),w=h.createHref(g);s.replaceState(v,"",w),o&&l&&l({action:a,location:h.location,delta:0})}function y(x){let m=r.location.origin!=="null"?r.location.origin:r.location.href,g=typeof x=="string"?x:nb(x);return g=g.replace(/ $/,"%20"),tb(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let h={get action(){return a},get location(){return e(r,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(ly,f),l=x,()=>{r.removeEventListener(ly,f),l=null}},createHref(x){return t(r,x)},createURL:y,encodeLocation(x){let m=y(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(x){return s.go(x)}};return h}var cy;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(cy||(cy={}));function oR(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}const rb=["post","put","patch","delete"];new Set(rb);const sR=["get",...rb];new Set(sR);/** * React Router v6.28.0 * * Copyright (c) Remix Software Inc. @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;thR(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function pR(e,t){e!=null&&e.v7_startTransition||py("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&py("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function mR(e){let{basename:t="/",children:n=null,location:i,navigationType:r=Yi.Pop,navigator:o,static:s=!1,future:a}=e;dR()&&ib(!1);let l=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:l,navigator:o,static:s,future:zd({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof i=="string"&&(i=ob(i));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:y="default"}=i,h=k.useMemo(()=>{let x=uR(c,l);return x==null?null:{location:{pathname:x,search:f,hash:d,state:p,key:y},navigationType:r}},[l,c,f,d,p,y,r]);return h==null?null:k.createElement(fR.Provider,{value:u},k.createElement(ab.Provider,{children:n,value:h}))}new Promise(()=>{});/** + */function zd(){return zd=Object.assign?Object.assign.bind():function(e){for(var t=1;tuR(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function cR(e,t){e!=null&&e.v7_startTransition||dy("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&dy("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function fR(e){let{basename:t="/",children:n=null,location:i,navigationType:r=Qi.Pop,navigator:o,static:s=!1,future:a}=e;lR()&&tb(!1);let l=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:l,navigator:o,static:s,future:zd({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof i=="string"&&(i=ib(i));let{pathname:c="/",search:f="",hash:d="",state:p=null,key:y="default"}=i,h=k.useMemo(()=>{let x=oR(c,l);return x==null?null:{location:{pathname:x,search:f,hash:d,state:p,key:y},navigationType:r}},[l,c,f,d,p,y,r]);return h==null?null:k.createElement(aR.Provider,{value:u},k.createElement(ob.Provider,{children:n,value:h}))}new Promise(()=>{});/** * React Router DOM v6.28.0 * * Copyright (c) Remix Software Inc. @@ -79,74 +79,74 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const gR="6";try{window.__reactRouterVersion=gR}catch{}const yR="startTransition",my=kl[yR];function vR(e){let{basename:t,children:n,future:i,window:r}=e,o=k.useRef();o.current==null&&(o.current=sR({window:r,v5Compat:!0}));let s=o.current,[a,l]=k.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},c=k.useCallback(f=>{u&&my?my(()=>l(f)):l(f)},[l,u]);return k.useLayoutEffect(()=>s.listen(c),[s,c]),k.useEffect(()=>pR(i),[i]),k.createElement(mR,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var gy;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gy||(gy={}));var yy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yy||(yy={}));function xR(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function lc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Id=e=>Array.isArray(e);function lb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Tp(e,t,n,i){if(typeof t=="function"){const[r,o]=vy(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=vy(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function uc(e,t,n){const i=e.getProps();return Tp(i,t,n!==void 0?n:i.custom,e)}const Mp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ep=["initial",...Mp],ya=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wr=new Set(ya),Bn=e=>e*1e3,Un=e=>e/1e3,wR={type:"spring",stiffness:500,damping:25,restSpeed:10},bR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),SR={type:"keyframes",duration:.8},kR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CR=(e,{keyframes:t})=>t.length>2?SR:wr.has(e)?e.startsWith("scale")?bR(t[1]):wR:kR;function Rp(e,t){return e?e[t]||e.default||e:void 0}const PR={skipAnimations:!1,useManualTiming:!1},_R=e=>e!==null;function cc(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(_R),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const Je=e=>e;function TR(e){let t=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const p=f&&i?t:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(a),i=!1,r&&(r=!1,l.process(u))}};return l}const Ba=["read","resolveKeyframes","update","preRender","render","postRender"],MR=40;function ub(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ba.reduce((m,g)=>(m[g]=TR(o),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,p=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,MR),1),r.timestamp=m,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(p))},y=()=>{n=!0,i=!0,r.isProcessing||e(p)};return{schedule:Ba.reduce((m,g)=>{const v=s[g];return m[g]=(w,b=!1,S=!1)=>(n||y(),v.schedule(w,b,S)),m},{}),cancel:m=>{for(let g=0;g(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ER=1e-7,RR=12;function OR(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=cb(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>ER&&++aOR(o,0,1,e,n);return o=>o===0||o===1?o:cb(r(o),t,i)}const fb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,db=e=>t=>1-e(1-t),hb=va(.33,1.53,.69,.99),Op=db(hb),pb=fb(Op),mb=e=>(e*=2)<1?.5*Op(e):.5*(2-Math.pow(2,-10*(e-1))),Ap=e=>1-Math.sin(Math.acos(e)),gb=db(Ap),yb=fb(Ap),vb=e=>/^0[^.\s]+$/u.test(e);function AR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||vb(e):!0}let Ld=Je;const xb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),wb=e=>t=>typeof t=="string"&&t.startsWith(e),bb=wb("--"),zR=wb("var(--"),zp=e=>zR(e)?IR.test(e.split("/*")[0].trim()):!1,IR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,LR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DR(e){const t=LR.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function Sb(e,t,n=1){const[i,r]=DR(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return xb(s)?parseFloat(s):s}return zp(r)?Sb(r,t,n+1):r}const _i=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Zs={...Bo,transform:e=>_i(0,1,e)},Ua={...Bo,default:1},xa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oi=xa("deg"),Tn=xa("%"),j=xa("px"),$R=xa("vh"),FR=xa("vw"),xy={...Tn,parse:e=>Tn.parse(e)/100,transform:e=>Tn.transform(e*100)},jR=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wy=e=>e===Bo||e===j,by=(e,t)=>parseFloat(e.split(", ")[t]),Sy=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return by(r[1],t);{const o=i.match(/^matrix\((.+)\)$/u);return o?by(o[1],e):0}},NR=new Set(["x","y","z"]),VR=ya.filter(e=>!NR.has(e));function BR(e){const t=[];return VR.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const _o={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Sy(4,13),y:Sy(5,14)};_o.translateX=_o.x;_o.translateY=_o.y;const kb=e=>t=>t.test(e),UR={test:e=>e==="auto",parse:e=>e},Cb=[Bo,j,Tn,oi,FR,$R,UR],ky=e=>Cb.find(kb(e)),sr=new Set;let Dd=!1,$d=!1;function Pb(){if($d){const e=Array.from(sr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=BR(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}$d=!1,Dd=!1,sr.forEach(e=>e.complete()),sr.clear()}function _b(){sr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($d=!0)})}function WR(){_b(),Pb()}class Ip{constructor(t,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(sr.add(this),Dd||(Dd=!0,ie.read(_b),ie.resolveKeyframes(Pb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let o=0;oMath.round(e*1e5)/1e5,Lp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HR(e){return e==null}const GR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dp=(e,t)=>n=>!!(typeof n=="string"&&GR.test(n)&&n.startsWith(e)||t&&!HR(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tb=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(Lp);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},KR=e=>_i(0,255,e),tf={...Bo,transform:e=>Math.round(KR(e))},Xi={test:Dp("rgb","red"),parse:Tb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+tf.transform(e)+", "+tf.transform(t)+", "+tf.transform(n)+", "+Ps(Zs.transform(i))+")"};function qR(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Fd={test:Dp("#"),parse:qR,transform:Xi.transform},Kr={test:Dp("hsl","hue"),parse:Tb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Tn.transform(Ps(t))+", "+Tn.transform(Ps(n))+", "+Ps(Zs.transform(i))+")"},Qe={test:e=>Xi.test(e)||Fd.test(e)||Kr.test(e),parse:e=>Xi.test(e)?Xi.parse(e):Kr.test(e)?Kr.parse(e):Fd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xi.transform(e):Kr.transform(e)},QR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function YR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(QR))===null||n===void 0?void 0:n.length)||0)>0}const Mb="number",Eb="color",XR="var",ZR="var(",Cy="${}",JR=/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 Js(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(JR,l=>(Qe.test(l)?(i.color.push(o),r.push(Eb),n.push(Qe.parse(l))):l.startsWith(ZR)?(i.var.push(o),r.push(XR),n.push(l)):(i.number.push(o),r.push(Mb),n.push(parseFloat(l))),++o,Cy)).split(Cy);return{values:n,split:a,indexes:i,types:r}}function Rb(e){return Js(e).values}function Ob(e){const{split:t,types:n}=Js(e),i=t.length;return r=>{let o="";for(let s=0;stypeof e=="number"?0:e;function tO(e){const t=Rb(e);return Ob(e)(t.map(eO))}const Ti={test:YR,parse:Rb,createTransformer:Ob,getAnimatableNone:tO},nO=new Set(["brightness","contrast","saturate","opacity"]);function iO(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Lp)||[];if(!i)return e;const r=n.replace(i,"");let o=nO.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const rO=/\b([a-z-]*)\(.*?\)/gu,jd={...Ti,getAnimatableNone:e=>{const t=e.match(rO);return t?t.map(iO).join(" "):e}},oO={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},sO={rotate:oi,rotateX:oi,rotateY:oi,rotateZ:oi,scale:Ua,scaleX:Ua,scaleY:Ua,scaleZ:Ua,skew:oi,skewX:oi,skewY:oi,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Zs,originX:xy,originY:xy,originZ:j},Py={...Bo,transform:Math.round},$p={...oO,...sO,zIndex:Py,size:j,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:Py},aO={...$p,color:Qe,backgroundColor:Qe,outlineColor:Qe,fill:Qe,stroke:Qe,borderColor:Qe,borderTopColor:Qe,borderRightColor:Qe,borderBottomColor:Qe,borderLeftColor:Qe,filter:jd,WebkitFilter:jd},Fp=e=>aO[e];function Ab(e,t){let n=Fp(e);return n!==jd&&(n=Ti),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lO=new Set(["auto","none","0"]);function uO(e,t,n){let i=0,r;for(;i{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function jp(e){return typeof e=="function"}let vl;function cO(){vl=void 0}const Mn={now:()=>(vl===void 0&&Mn.set(Ve.isProcessing||PR.useManualTiming?Ve.timestamp:performance.now()),vl),set:e=>{vl=e,queueMicrotask(cO)}},_y=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ti.test(e)||e==="0")&&!e.startsWith("url("));function fO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nhO?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&WR(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!dO(t,i,r,o))if(s)this.options.duration=0;else{l==null||l(cc(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Lb(e,t){return t?e*(1e3/t):0}const pO=5;function Db(e,t,n){const i=Math.max(t-pO,0);return Lb(n-e(i),t-i)}const nf=.001,mO=.01,gO=10,yO=.05,vO=1;function xO({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o,s=1-t;s=_i(yO,vO,s),e=_i(mO,gO,Un(e)),s<1?(r=u=>{const c=u*s,f=c*e,d=c-n,p=Nd(u,s),y=Math.exp(-f);return nf-d/p*y},o=u=>{const f=u*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),h=Nd(Math.pow(u,2),s);return(-r(u)+nf>0?-1:1)*((d-p)*y)/h}):(r=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-nf+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=bO(r,o,a);if(e=Bn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const wO=12;function bO(e,t,n){let i=n;for(let r=1;re[n]!==void 0)}function CO(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ty(e,kO)&&Ty(e,SO)){const n=xO(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function $b({keyframes:e,restDelta:t,restSpeed:n,...i}){const r=e[0],o=e[e.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=CO({...i,velocity:-Un(i.velocity||0)}),p=f||0,y=l/(2*Math.sqrt(a*u)),h=o-r,x=Un(Math.sqrt(a/u)),m=Math.abs(h)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let g;if(y<1){const v=Nd(x,y);g=w=>{const b=Math.exp(-y*x*w);return o-b*((p+y*x*h)/v*Math.sin(v*w)+h*Math.cos(v*w))}}else if(y===1)g=v=>o-Math.exp(-x*v)*(h+(p+x*h)*v);else{const v=x*Math.sqrt(y*y-1);g=w=>{const b=Math.exp(-y*x*w),S=Math.min(v*w,300);return o-b*((p+y*x*h)*Math.sinh(S)+v*h*Math.cosh(S))/v}}return{calculatedDuration:d&&c||null,next:v=>{const w=g(v);if(d)s.done=v>=c;else{let b=0;y<1&&(b=v===0?Bn(p):Db(g,v,w));const S=Math.abs(b)<=n,P=Math.abs(o-w)<=t;s.done=S&&P}return s.value=s.done?o:w,s}}}function My({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},p=_=>a!==void 0&&_l,y=_=>a===void 0?l:l===void 0||Math.abs(a-_)-h*Math.exp(-_/i),v=_=>m+g(_),w=_=>{const A=g(_),T=v(_);d.done=Math.abs(A)<=u,d.value=d.done?m:T};let b,S;const P=_=>{p(d.value)&&(b=_,S=$b({keyframes:[d.value,y(d.value)],velocity:Db(v,_,d.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:_=>{let A=!1;return!S&&b===void 0&&(A=!0,w(_),P(_)),b!==void 0&&_>=b?S.next(_-b):(!A&&w(_),d)}}}const PO=va(.42,0,1,1),_O=va(0,0,.58,1),Fb=va(.42,0,.58,1),TO=e=>Array.isArray(e)&&typeof e[0]!="number",Np=e=>Array.isArray(e)&&typeof e[0]=="number",Ey={linear:Je,easeIn:PO,easeInOut:Fb,easeOut:_O,circIn:Ap,circInOut:yb,circOut:gb,backIn:Op,backInOut:pb,backOut:hb,anticipate:mb},Ry=e=>{if(Np(e)){Ld(e.length===4);const[t,n,i,r]=e;return va(t,n,i,r)}else if(typeof e=="string")return Ld(Ey[e]!==void 0),Ey[e];return e},MO=(e,t)=>n=>t(e(n)),Wn=(...e)=>e.reduce(MO),To=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},me=(e,t,n)=>e+(t-e)*n;function rf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function EO({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=rf(l,a,e+1/3),o=rf(l,a,e),s=rf(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function eu(e,t){return n=>n>0?t:e}const of=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},RO=[Fd,Xi,Kr],OO=e=>RO.find(t=>t.test(e));function Oy(e){const t=OO(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=EO(n)),n}const Ay=(e,t)=>{const n=Oy(e),i=Oy(t);if(!n||!i)return eu(e,t);const r={...n};return o=>(r.red=of(n.red,i.red,o),r.green=of(n.green,i.green,o),r.blue=of(n.blue,i.blue,o),r.alpha=me(n.alpha,i.alpha,o),Xi.transform(r))},Vd=new Set(["none","hidden"]);function AO(e,t){return Vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zO(e,t){return n=>me(e,t,n)}function Vp(e){return typeof e=="number"?zO:typeof e=="string"?zp(e)?eu:Qe.test(e)?Ay:DO:Array.isArray(e)?jb:typeof e=="object"?Qe.test(e)?Ay:IO:eu}function jb(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>Vp(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in i)n[o]=i[o](r);return n}}function LO(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o{const n=Ti.createTransformer(t),i=Js(e),r=Js(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Vd.has(e)&&!r.values.length||Vd.has(t)&&!i.values.length?AO(e,t):Wn(jb(LO(i,r),r.values),n):eu(e,t)};function Nb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):Vp(e)(e,t)}function $O(e,t,n){const i=[],r=n||Nb,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=$O(t,i,r),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(_i(e[0],e[o-1],u)):l}function jO(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=To(0,t,i);e.push(me(n,1,r))}}function NO(e){const t=[0];return jO(t,e.length-1),t}function VO(e,t){return e.map(n=>n*t)}function BO(e,t){return e.map(()=>t||Fb).splice(0,e.length-1)}function tu({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=TO(i)?i.map(Ry):Ry(i),o={done:!1,value:t[0]},s=VO(n&&n.length===t.length?n:NO(t),e),a=FO(s,t,{ease:Array.isArray(r)?r:BO(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const zy=2e4;function UO(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t=zy?1/0:t}const WO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>Pi(t),now:()=>Ve.isProcessing?Ve.timestamp:Mn.now()}},HO={decay:My,inertia:My,tween:tu,keyframes:tu,spring:$b},GO=e=>e/100;class Bp extends Ib{constructor(t){super(t),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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Ip,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=jp(n)?n:HO[n]||tu;let l,u;a!==tu&&typeof t[0]!="number"&&(l=Wn(GO,Nb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=UO(c));const{calculatedDuration:f}=c,d=f+r,p=d*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:y,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=o;if(p){const _=Math.min(this.currentTime,c)/f;let A=Math.floor(_),T=_%1;!T&&_>=1&&(T=1),T===1&&A--,A=Math.min(A,p+1),!!(A%2)&&(y==="reverse"?(T=1-T,h&&(T-=h/f)):y==="mirror"&&(w=s)),v=_i(0,1,T)*f}const b=g?{done:!1,value:l[0]}:w.next(v);a&&(b.value=a(b.value));let{done:S}=b;!g&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&r!==void 0&&(b.value=cc(l,this.options,r)),x&&x(b.value),P&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Un(t.calculatedDuration):0}get time(){return Un(this.currentTime)}set time(t){t=Bn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Un(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=WO,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const KO=new Set(["opacity","clipPath","filter","transform"]),qO=10,QO=(e,t)=>{let n="";const i=Math.max(Math.round(t/qO),2);for(let r=0;r(t===void 0&&(t=e()),t)}const YO={linearEasing:void 0};function XO(e,t){const n=Up(e);return()=>{var i;return(i=YO[t])!==null&&i!==void 0?i:n()}}const nu=XO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Vb(e){return!!(typeof e=="function"&&nu()||!e||typeof e=="string"&&(e in Bd||nu())||Np(e)||Array.isArray(e)&&e.every(Vb))}const hs=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Bd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hs([0,.65,.55,1]),circOut:hs([.55,0,1,.45]),backIn:hs([.31,.01,.66,-.59]),backOut:hs([.33,1.53,.69,.99])};function Bb(e,t){if(e)return typeof e=="function"&&nu()?QO(e,t):Np(e)?hs(e):Array.isArray(e)?e.map(n=>Bb(n,t)||Bd.easeOut):Bd[e]}function ZO(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Bb(a,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Iy(e,t){e.timeline=t,e.onfinish=null}const JO=Up(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iu=10,eA=2e4;function tA(e){return jp(e.type)||e.type==="spring"||!Vb(e.ease)}function nA(e,t){const n=new Bp({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let o=0;for(;!i.done&&othis.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(t,n){var i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(typeof s=="string"&&nu()&&iA(s)&&(s=Ub[s]),tA(this.options)){const{onComplete:d,onUpdate:p,motionValue:y,element:h,...x}=this.options,m=nA(t,x);t=m.keyframes,t.length===1&&(t[1]=t[0]),r=m.duration,o=m.times,s=m.ease,a="keyframes"}const f=ZO(l.owner.current,u,t,{...this.options,duration:r,times:o,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Iy(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(cc(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Un(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Un(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Bn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Je;const{animation:i}=n;Iy(i,t)}return Je}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...p}=this.options,y=new Bp({...p,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),h=Bn(this.time);u.setWithVelocity(y.sample(h-iu).value,y.sample(h).value,iu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=t;return JO()&&i&&KO.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const rA=Up(()=>window.ScrollTimeline!==void 0);class oA{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;irA()&&r.attachTimeline?r.attachTimeline(t):n(r));return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function sA({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Wp=(e,t,n,i={},r,o)=>s=>{const a=Rp(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Bn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};sA(a)||(c={...c,...CR(e,c)}),c.duration&&(c.duration=Bn(c.duration)),c.repeatDelay&&(c.repeatDelay=Bn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=cc(c.keyframes,a);if(d!==void 0)return ie.update(()=>{c.onUpdate(d),c.onComplete()}),new oA([])}return!o&&Ly.supports(c)?new Ly(c):new Bp(c)},aA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),lA=e=>Id(e)?e[e.length-1]||0:e;function Hp(e,t){e.indexOf(t)===-1&&e.push(t)}function Gp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Kp{constructor(){this.subscriptions=[]}add(t){return Hp(this.subscriptions,t),()=>Gp(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o!isNaN(parseFloat(e));class cA{constructor(t,n={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Mn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Kp);const i=this.events[t].add(n);return t==="change"?()=>{i(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dy);return Lb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 ea(e,t){return new cA(e,t)}function fA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ea(n))}function dA(e,t){const n=uc(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=lA(o[s]);fA(e,s,a)}}const qp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hA="framerAppearId",Wb="data-"+qp(hA);function Hb(e){return e.props[Wb]}const Xe=e=>!!(e&&e.getVelocity);function pA(e){return!!(Xe(e)&&e.add)}function Ud(e,t){const n=e.getValue("willChange");if(pA(n))return n.add(t)}function mA({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Gb(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(s=i);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||c&&mA(c,f))continue;const y={delay:n,...Rp(s||{},f)};let h=!1;if(window.MotionHandoffAnimation){const m=Hb(e);if(m){const g=window.MotionHandoffAnimation(m,f,ie);g!==null&&(y.startTime=g,h=!0)}}Ud(e,f),d.start(Wp(f,d,p,e.shouldReduceMotion&&wr.has(f)?{type:!1}:y,e,h));const x=d.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{ie.update(()=>{a&&dA(e,a)})}),u}function Wd(e,t,n={}){var i;const r=uc(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Gb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return gA(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function gA(e,t,n=0,i=0,r=1,o){const s=[],a=(e.variantChildren.size-1)*i,l=r===1?(u=0)=>u*i:(u=0)=>a-u*i;return Array.from(e.variantChildren).sort(yA).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Wd(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function yA(e,t){return e.sortNodePosition(t)}function vA(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>Wd(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=Wd(e,t,n);else{const r=typeof t=="function"?uc(e,t,n.custom):t;i=Promise.all(Gb(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const xA=Ep.length;function Kb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:i})=>vA(e,n,i)))}function kA(e){let t=SA(e),n=$y(),i=!0;const r=l=>(u,c)=>{var f;const d=uc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:y,...h}=d;u={...u,...h,...y}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Kb(e.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let x=0;xy&&w,A=!1;const T=Array.isArray(v)?v:[v];let I=T.reduce(r(m),{});b===!1&&(I={});const{prevResolvedValues:z={}}=g,V={...z,...I},$=X=>{_=!0,d.has(X)&&(A=!0,d.delete(X)),g.needsAnimating[X]=!0;const E=e.getValue(X);E&&(E.liveStyle=!1)};for(const X in V){const E=I[X],L=z[X];if(p.hasOwnProperty(X))continue;let N=!1;Id(E)&&Id(L)?N=!lb(E,L):N=E!==L,N?E!=null?$(X):d.add(X):E!==void 0&&d.has(X)?$(X):g.protectedKeys[X]=!0}g.prevProp=v,g.prevResolvedValues=I,g.isActive&&(p={...p,...I}),i&&e.blockInitialAnimation&&(_=!1),_&&(!(S&&P)||A)&&f.push(...T.map(X=>({animation:X,options:{type:m}})))}if(d.size){const x={};d.forEach(m=>{const g=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),x[m]=g??null}),f.push({animation:x})}let h=!!f.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$y(),i=!0}}}function CA(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lb(t,e):!1}function $i(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $y(){return{animate:$i(!0),whileInView:$i(),whileHover:$i(),whileTap:$i(),whileDrag:$i(),whileFocus:$i(),exit:$i()}}class Li{constructor(t){this.isMounted=!1,this.node=t}update(){}}class PA extends Li{constructor(t){super(t),t.animationState||(t.animationState=kA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let _A=0;class TA extends Li{constructor(){super(...arguments),this.id=_A++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const MA={animation:{Feature:PA},exit:{Feature:TA}},qb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fc(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const EA=e=>t=>qb(t)&&e(t,fc(t));function jn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Hn(e,t,n,i){return jn(e,t,EA(n),i)}const Fy=(e,t)=>Math.abs(e-t);function RA(e,t){const n=Fy(e.x,t.x),i=Fy(e.y,t.y);return Math.sqrt(n**2+i**2)}class Qb{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=af(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=RA(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:y}=f,{timestamp:h}=Ve;this.history.push({...y,timestamp:h});const{onStart:x,onMove:m}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=sf(d,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=af(f.type==="pointercancel"?this.lastMoveEventInfo:sf(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,x),y&&y(f,x)},!qb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=fc(t),a=sf(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ve;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,af(a,this.history)),this.removeListeners=Wn(Hn(this.contextWindow,"pointermove",this.handlePointerMove),Hn(this.contextWindow,"pointerup",this.handlePointerUp),Hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pi(this.updatePoint)}}function sf(e,t){return t?{point:t(e.point)}:e}function jy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:jy(e,Yb(t)),offset:jy(e,OA(t)),velocity:AA(t,.1)}}function OA(e){return e[0]}function Yb(e){return e[e.length-1]}function AA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=Yb(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Bn(t)));)n--;if(!i)return{x:0,y:0};const o=Un(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Xb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ny=Xb("dragHorizontal"),Vy=Xb("dragVertical");function Zb(e){let t=!1;if(e==="y")t=Vy();else if(e==="x")t=Ny();else{const n=Ny(),i=Vy();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Jb(){const e=Zb(!0);return e?(e(),!1):!0}function qr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const eS=1e-4,zA=1-eS,IA=1+eS,tS=.01,LA=0-tS,DA=0+tS;function Mt(e){return e.max-e.min}function $A(e,t,n){return Math.abs(e-t)<=n}function By(e,t,n,i=.5){e.origin=i,e.originPoint=me(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zA&&e.scale<=IA||isNaN(e.scale))&&(e.scale=1),(e.translate>=LA&&e.translate<=DA||isNaN(e.translate))&&(e.translate=0)}function _s(e,t,n,i){By(e.x,t.x,n.x,i?i.originX:void 0),By(e.y,t.y,n.y,i?i.originY:void 0)}function Uy(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function FA(e,t,n){Uy(e.x,t.x,n.x),Uy(e.y,t.y,n.y)}function Wy(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function Ts(e,t,n){Wy(e.x,t.x,n.x),Wy(e.y,t.y,n.y)}function jA(e,{min:t,max:n},i){return t!==void 0&&en&&(e=i?me(n,e,i.max):Math.min(e,n)),e}function Hy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function NA(e,{top:t,left:n,bottom:i,right:r}){return{x:Hy(e.x,n,r),y:Hy(e.y,t,i)}}function Gy(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.mini?n=To(t.min,t.max-i,e.min):i>r&&(n=To(e.min,e.max-r,t.min)),_i(0,1,n)}function UA(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Hd=.35;function WA(e=Hd){return e===!1?e=0:e===!0&&(e=Hd),{x:Ky(e,"left","right"),y:Ky(e,"top","bottom")}}function Ky(e,t,n){return{min:qy(e,t),max:qy(e,n)}}function qy(e,t){return typeof e=="number"?e:e[t]||0}const Qy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qr=()=>({x:Qy(),y:Qy()}),Yy=()=>({min:0,max:0}),ke=()=>({x:Yy(),y:Yy()});function Lt(e){return[e("x"),e("y")]}function nS({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function HA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function GA(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function lf(e){return e===void 0||e===1}function Gd({scale:e,scaleX:t,scaleY:n}){return!lf(e)||!lf(t)||!lf(n)}function Wi(e){return Gd(e)||iS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iS(e){return Xy(e.x)||Xy(e.y)}function Xy(e){return e&&e!=="0%"}function ru(e,t,n){const i=e-n,r=t*i;return n+r}function Zy(e,t,n,i,r){return r!==void 0&&(e=ru(e,r,i)),ru(e,n,i)+t}function Kd(e,t=0,n=1,i,r){e.min=Zy(e.min,t,n,i,r),e.max=Zy(e.max,t,n,i,r)}function rS(e,{x:t,y:n}){Kd(e.x,t.translate,t.scale,t.originPoint),Kd(e.y,n.translate,n.scale,n.originPoint)}const Jy=.999999999999,ev=1.0000000000001;function KA(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;aJy&&(t.x=1),t.yJy&&(t.y=1)}function Yr(e,t){e.min=e.min+t,e.max=e.max+t}function tv(e,t,n,i,r=.5){const o=me(e.min,e.max,r);Kd(e,t,n,o,i)}function Xr(e,t){tv(e.x,t.x,t.scaleX,t.scale,t.originX),tv(e.y,t.y,t.scaleY,t.scale,t.originY)}function oS(e,t){return nS(GA(e.getBoundingClientRect(),t))}function qA(e,t,n){const i=oS(e,n),{scroll:r}=t;return r&&(Yr(i.x,r.offset.x),Yr(i.y,r.offset.y)),i}const sS=({current:e})=>e?e.ownerDocument.defaultView:null,QA=new WeakMap;class YA{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Zb(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Lt(x=>{let m=this.getAxisMotionValue(x).get()||0;if(Tn.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[x];v&&(m=Mt(v)*(parseFloat(m)/100))}}this.originPoint[x]=m}),y&&ie.postRender(()=>y(c,f)),Ud(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:y,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=f;if(p&&this.currentDirection===null){this.currentDirection=XA(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),h&&h(c,f)},a=(c,f)=>this.stop(c,f),l=()=>Lt(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Qb(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:sS(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ie.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Wa(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=jA(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=NA(r.layoutBox,n):this.constraints=!1,this.elastic=WA(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Lt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=UA(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qr(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=qA(i,r.root,this.visualElement.getTransformPagePoint());let s=VA(r.layout.layoutBox,o);if(n){const a=n(HA(s));this.hasMutatedConstraints=!!a,a&&(s=nS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Lt(c=>{if(!Wa(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=r?200:1e6,p=r?40:1e7,y={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Ud(this.visualElement,t),i.start(Wp(t,i,0,n,this.visualElement,!1))}stopAnimation(){Lt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Lt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Lt(n=>{const{drag:i}=this.getProps();if(!Wa(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(t[n]-me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qr(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Lt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=BA({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Lt(s=>{if(!Wa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(me(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;QA.set(this.visualElement,this);const t=this.visualElement.current,n=Hn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ie.read(i);const s=jn(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Lt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Hd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Wa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function XA(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ZA extends Li{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new YA(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}unmount(){this.removeGroupControls(),this.removeListeners()}}const nv=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class JA extends Li{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new Qb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:nv(t),onStart:nv(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&ie.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Hn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qp=k.createContext(null);function e5(){const e=k.useContext(Qp);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,r=k.useId();k.useEffect(()=>i(r),[]);const o=k.useCallback(()=>n&&n(r),[r,n]);return!t&&n?[!1,o]:[!0]}const aS=k.createContext({}),lS=k.createContext({}),xl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ts={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=iv(e,t.target.x),i=iv(e,t.target.y);return`${n}% ${i}%`}},t5={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ti.parse(e);if(r.length>5)return i;const o=Ti.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const u=me(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}},ou={};function n5(e){Object.assign(ou,e)}const{schedule:Yp,cancel:v6}=ub(queueMicrotask,!1);class i5 extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;n5(r5),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ie.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Yp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function uS(e){const[t,n]=e5(),i=k.useContext(aS);return C.jsx(i5,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(lS),isPresent:t,safeToRemove:n})}const r5={borderRadius:{...ts,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ts,borderTopRightRadius:ts,borderBottomLeftRadius:ts,borderBottomRightRadius:ts,boxShadow:t5},cS=["TopLeft","TopRight","BottomLeft","BottomRight"],o5=cS.length,rv=e=>typeof e=="string"?parseFloat(e):e,ov=e=>typeof e=="number"||j.test(e);function s5(e,t,n,i,r,o){r?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,a5(i)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,l5(i))):o&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;sit?1:n(To(e,t,i))}function av(e,t){e.min=t.min,e.max=t.max}function At(e,t){av(e.x,t.x),av(e.y,t.y)}function lv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uv(e,t,n,i,r){return e-=t,e=ru(e,1/n,i),r!==void 0&&(e=ru(e,1/r,i)),e}function u5(e,t=0,n=1,i=.5,r,o=e,s=e){if(Tn.test(t)&&(t=parseFloat(t),t=me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=me(o.min,o.max,i);e===o&&(a-=t),e.min=uv(e.min,t,n,a,r),e.max=uv(e.max,t,n,a,r)}function cv(e,t,[n,i,r],o,s){u5(e,t[n],t[i],t[r],t.scale,o,s)}const c5=["x","scaleX","originX"],f5=["y","scaleY","originY"];function fv(e,t,n,i){cv(e.x,t,c5,n?n.x:void 0,i?i.x:void 0),cv(e.y,t,f5,n?n.y:void 0,i?i.y:void 0)}function dv(e){return e.translate===0&&e.scale===1}function dS(e){return dv(e.x)&&dv(e.y)}function hv(e,t){return e.min===t.min&&e.max===t.max}function d5(e,t){return hv(e.x,t.x)&&hv(e.y,t.y)}function pv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hS(e,t){return pv(e.x,t.x)&&pv(e.y,t.y)}function mv(e){return Mt(e.x)/Mt(e.y)}function gv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class h5{constructor(){this.members=[]}add(t){Hp(this.members,t),t.scheduleRender()}remove(t){if(Gp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function p5(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),p&&(i+=`skewX(${p}deg) `),y&&(i+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const m5=(e,t)=>e.depth-t.depth;class g5{constructor(){this.children=[],this.isDirty=!1}add(t){Hp(this.children,t),this.isDirty=!0}remove(t){Gp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m5),this.isDirty=!1,this.children.forEach(t)}}function wl(e){const t=Xe(e)?e.get():e;return aA(t)?t.toValue():t}function y5(e,t){const n=Mn.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Pi(i),e(o-t))};return ie.read(i,!0),()=>Pi(i)}function v5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function x5(e,t,n){const i=Xe(e)?e:ea(e);return i.start(Wp("",i,t,n)),i.animation}const Hi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ps=typeof window<"u"&&window.MotionDebug!==void 0,uf=["","X","Y","Z"],w5={visibility:"hidden"},yv=1e3;let b5=0;function cf(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function pS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Hb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&pS(i)}function mS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t==null?void 0:t()){this.id=b5++,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,ps&&(Hi.totalNodes=Hi.resolvedTargetDeltas=Hi.recalculatedProjection=0),this.nodes.forEach(C5),this.nodes.forEach(E5),this.nodes.forEach(R5),this.nodes.forEach(P5),ps&&window.MotionDebug.record(Hi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=y5(d,250),xl.hasAnimatedSinceResize&&(xl.hasAnimatedSinceResize=!1,this.nodes.forEach(xv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||L5,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=c.getProps(),g=!this.targetLayout||!hS(this.targetLayout,y)||p,v=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...Rp(h,"layout"),onPlay:x,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||xv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pi(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.forEach(O5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const b=w/1e3;wv(f.x,s.x,b),wv(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),z5(this.relativeTarget,this.relativeTargetOrigin,d,b),v&&d5(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ke()),At(v,this.relativeTarget)),h&&(this.animationValues=c,s5(c,u,this.latestValues,b,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{xl.hasAnimatedSinceResize=!0,this.currentAnimation=x5(0,yv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&gS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const f=Mt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Mt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}At(a,l),Xr(a,c),_s(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new h5),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&cf("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(vv),this.root.sharedNodes.clear()}}}function S5(e){e.updateLayout()}function k5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Lt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(d);d.min=i[f].min,d.max=d.min+p}):gS(o,n.layoutBox,i)&&Lt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(i[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Qr();_s(a,i,n.layoutBox);const l=Qr();s?_s(l,e.applyTransform(r,!0),n.measuredBox):_s(l,i,n.layoutBox);const u=!dS(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const y=ke();Ts(y,n.layoutBox,d.layoutBox);const h=ke();Ts(h,i,p.layoutBox),hS(y,h)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function C5(e){ps&&Hi.totalNodes++,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 P5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _5(e){e.clearSnapshot()}function vv(e){e.clearMeasurements()}function T5(e){e.isLayoutDirty=!1}function M5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function E5(e){e.resolveTargetDelta()}function R5(e){e.calcProjection()}function O5(e){e.resetSkewAndRotation()}function A5(e){e.removeLeadSnapshot()}function wv(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bv(e,t,n,i){e.min=me(t.min,n.min,i),e.max=me(t.max,n.max,i)}function z5(e,t,n,i){bv(e.x,t.x,n.x,i),bv(e.y,t.y,n.y,i)}function I5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const L5={duration:.45,ease:[.4,0,.1,1]},Sv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kv=Sv("applewebkit/")&&!Sv("chrome/")?Math.round:Je;function Cv(e){e.min=kv(e.min),e.max=kv(e.max)}function D5(e){Cv(e.x),Cv(e.y)}function gS(e,t,n){return e==="position"||e==="preserve-aspect"&&!$A(mv(t),mv(n),.2)}function $5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const F5=mS({attachResizeListener:(e,t)=>jn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},yS=mS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new F5({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),j5={pan:{Feature:JA},drag:{Feature:ZA,ProjectionNode:yS,MeasureLayout:uS}};function Pv(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||Jb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[i];l&&ie.postRender(()=>l(o,s))};return Hn(e.current,n,r,{passive:!e.getProps()[i]})}class N5 extends Li{mount(){this.unmount=Wn(Pv(this.node,!0),Pv(this.node,!1))}unmount(){}}class V5 extends Li{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Wn(jn(this.node.current,"focus",()=>this.onFocus()),jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vS=(e,t)=>t?e===t?!0:vS(e,t.parentElement):!1;function df(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,fc(n))}class B5 extends Li{constructor(){super(...arguments),this.removeStartListeners=Je,this.removeEndListeners=Je,this.removeAccessibleListeners=Je,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Hn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!vS(this.node.current,a.target)?c:u;d&&ie.update(()=>d(a,l))},{passive:!(i.onTap||i.onPointerUp)}),s=Hn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=Wn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||df("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ie.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=jn(this.node.current,"keyup",s),df("down",(a,l)=>{this.startPress(a,l)})},n=jn(this.node.current,"keydown",t),i=()=>{this.isPressing&&df("cancel",(o,s)=>this.cancelPress(o,s))},r=jn(this.node.current,"blur",i);this.removeAccessibleListeners=Wn(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&ie.postRender(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Jb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&ie.postRender(()=>i(t,n))}mount(){const t=this.node.getProps(),n=Hn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=jn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wn(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const qd=new WeakMap,hf=new WeakMap,U5=e=>{const t=qd.get(e.target);t&&t(e)},W5=e=>{e.forEach(U5)};function H5({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const i=hf.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(W5,{root:e,...t})),i[r]}function G5(e,t,n){const i=H5(t);return qd.set(e,n),i.observe(e),()=>{qd.delete(e),i.unobserve(e)}}const K5={some:0,all:1};class q5 extends Li{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:K5[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return G5(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Q5(t,n))&&this.startObserver()}unmount(){}}function Q5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Y5={inView:{Feature:q5},tap:{Feature:B5},focus:{Feature:V5},hover:{Feature:N5}},X5={layout:{ProjectionNode:yS,MeasureLayout:uS}},xS=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dc=k.createContext({}),Xp=typeof window<"u",Z5=Xp?k.useLayoutEffect:k.useEffect,wS=k.createContext({strict:!1});function J5(e,t,n,i,r){var o,s;const{visualElement:a}=k.useContext(dc),l=k.useContext(wS),u=k.useContext(Qp),c=k.useContext(xS).reducedMotion,f=k.useRef();i=i||l.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,p=k.useContext(lS);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&ez(f.current,n,r,p);const y=k.useRef(!1);k.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const h=n[Wb],x=k.useRef(!!h&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return Z5(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Yp.render(d.render),x.current&&d.animationState&&d.animationState.animateChanges())}),k.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,h)}),x.current=!1))}),d}function ez(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:bS(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&qr(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function bS(e){if(e)return e.options.allowProjection!==!1?e.projection:bS(e.parent)}function tz(e,t,n){return k.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):qr(n)&&(n.current=i))},[t])}function hc(e){return lc(e.animate)||Ep.some(t=>Xs(e[t]))}function SS(e){return!!(hc(e)||e.variants)}function nz(e,t){if(hc(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Xs(n)?n:void 0,animate:Xs(i)?i:void 0}}return e.inherit!==!1?t:{}}function iz(e){const{initial:t,animate:n}=nz(e,k.useContext(dc));return k.useMemo(()=>({initial:t,animate:n}),[_v(t),_v(n)])}function _v(e){return Array.isArray(e)?e.join(" "):e}const Tv={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"]},Mo={};for(const e in Tv)Mo[e]={isEnabled:t=>Tv[e].some(n=>!!t[n])};function rz(e){for(const t in e)Mo[t]={...Mo[t],...e[t]}}const oz=Symbol.for("motionComponentSymbol");function sz({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&rz(e);function o(a,l){let u;const c={...k.useContext(xS),...a,layoutId:az(a)},{isStatic:f}=c,d=iz(a),p=i(a,f);if(!f&&Xp){lz();const y=uz(c);u=y.MeasureLayout,d.visualElement=J5(r,p,c,t,y.ProjectionNode)}return C.jsxs(dc.Provider,{value:d,children:[u&&d.visualElement?C.jsx(u,{visualElement:d.visualElement,...c}):null,n(r,a,tz(p,d.visualElement,l),p,f,d.visualElement)]})}const s=k.forwardRef(o);return s[oz]=r,s}function az({layoutId:e}){const t=k.useContext(aS).id;return t&&e!==void 0?t+"-"+e:e}function lz(e,t){k.useContext(wS).strict}function uz(e){const{drag:t,layout:n}=Mo;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const cz=["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 Zp(e){return typeof e!="string"||e.includes("-")?!1:!!(cz.indexOf(e)>-1||/[A-Z]/u.test(e))}function kS(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const o in n)e.style.setProperty(o,n[o])}const CS=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 PS(e,t,n,i){kS(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(CS.has(r)?r:qp(r),t.attrs[r])}function _S(e,{layout:t,layoutId:n}){return wr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ou[e]||e==="opacity")}function Jp(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Xe(r[s])||t.style&&Xe(t.style[s])||_S(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function TS(e,t,n){const i=Jp(e,t,n);for(const r in e)if(Xe(e[r])||Xe(t[r])){const o=ya.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}function fz(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}function dz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){const s={latestValues:hz(i,r,o,e),renderState:t()};return n&&(s.mount=a=>n(i,a,s)),s}const MS=e=>(t,n)=>{const i=k.useContext(dc),r=k.useContext(Qp),o=()=>dz(e,t,i,r);return n?o():fz(o)};function hz(e,t,n,i){const r={},o=i(e,{});for(const d in o)r[d]=wl(o[d]);let{initial:s,animate:a}=e;const l=hc(e),u=SS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!lc(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p({style:{},transform:{},transformOrigin:{},vars:{}}),ES=()=>({...em(),attrs:{}}),RS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,pz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mz=ya.length;function gz(e,t,n){let i="",r=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",bz={useVisualState:MS({scrapeMotionValuesFromProps:TS,createRenderState:ES,onMount:(e,t,{renderState:n,latestValues:i})=>{ie.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ie.render(()=>{nm(n,i,im(t.tagName),e.transformTemplate),PS(t,n)})}})},Sz={useVisualState:MS({scrapeMotionValuesFromProps:Jp,createRenderState:em})};function OS(e,t,n){for(const i in t)!Xe(t[i])&&!_S(i,n)&&(e[i]=t[i])}function kz({transformTemplate:e},t){return k.useMemo(()=>{const n=em();return tm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Cz(e,t){const n=e.style||{},i={};return OS(i,n,e),Object.assign(i,kz(e,t)),i}function Pz(e,t){const n={},i=Cz(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const _z=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 su(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||_z.has(e)}let AS=e=>!su(e);function Tz(e){e&&(AS=t=>t.startsWith("on")?!su(t):e(t))}try{Tz(require("@emotion/is-prop-valid").default)}catch{}function Mz(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(AS(r)||n===!0&&su(r)||!t&&!su(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function Ez(e,t,n,i){const r=k.useMemo(()=>{const o=ES();return nm(o,t,im(i),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};OS(o,e.style,e),r.style={...o,...r.style}}return r}function Rz(e=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Zp(n)?Ez:Pz)(i,o,s,n),u=Mz(i,typeof n=="string",e),c=n!==k.Fragment?{...u,...l,ref:r}:{},{children:f}=i,d=k.useMemo(()=>Xe(f)?f.get():f,[f]);return k.createElement(n,{...c,children:d})}}function Oz(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Zp(i)?bz:Sz,preloadedFeatures:e,useRender:Rz(r),createVisualElement:t,Component:i};return sz(s)}}const Qd={current:null},zS={current:!1};function Az(){if(zS.current=!0,!!Xp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qd.current=e.matches;e.addListener(t),t()}else Qd.current=!1}function zz(e,t,n){for(const i in t){const r=t[i],o=n[i];if(Xe(r))e.addValue(i,r);else if(Xe(o))e.addValue(i,ea(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,ea(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ev=new WeakMap,Iz=[...Cb,Qe,Ti],Lz=e=>Iz.find(kb(e)),Rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dz{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ip,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=()=>{const d=Mn.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),zS.current||Az(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ev.delete(this.current),this.projection&&this.projection.unmount(),Pi(this.notifyUpdate),Pi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=wr.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mo){const n=Mo[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=ea(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(xb(r)||vb(r))?r=parseFloat(r):!Lz(r)&&Ti.test(n)&&(r=Ab(t,n)),this.setBaseTarget(t,Xe(r)?r.get():r)),Xe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Tp(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Xe(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Kp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class IS extends Dz{constructor(){super(...arguments),this.KeyframeResolver=zb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}}function $z(e){return window.getComputedStyle(e)}class Fz extends IS{constructor(){super(...arguments),this.type="html",this.renderInstance=kS}readValueFromInstance(t,n){if(wr.has(n)){const i=Fp(n);return i&&i.default||0}else{const i=$z(t),r=(bb(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return oS(t,n)}build(t,n,i){tm(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Jp(t,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class jz extends IS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ke}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wr.has(n)){const i=Fp(n);return i&&i.default||0}return n=CS.has(n)?n:qp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return TS(t,n,i)}build(t,n,i){nm(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){PS(t,n,i,r)}mount(t){this.isSVGTag=im(t.tagName),super.mount(t)}}const Nz=(e,t)=>Zp(e)?new jz(t):new Fz(t,{allowProjection:e!==k.Fragment}),Vz=Oz({...MA,...Y5,...j5,...X5},Nz),Pe=xR(Vz);/** + */const dR="6";try{window.__reactRouterVersion=dR}catch{}const hR="startTransition",hy=kl[hR];function pR(e){let{basename:t,children:n,future:i,window:r}=e,o=k.useRef();o.current==null&&(o.current=nR({window:r,v5Compat:!0}));let s=o.current,[a,l]=k.useState({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},c=k.useCallback(f=>{u&&hy?hy(()=>l(f)):l(f)},[l,u]);return k.useLayoutEffect(()=>s.listen(c),[s,c]),k.useEffect(()=>cR(i),[i]),k.createElement(fR,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:i})}var py;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(py||(py={}));var my;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(my||(my={}));function mR(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function lc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Id=e=>Array.isArray(e);function sb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Pp(e,t,n,i){if(typeof t=="function"){const[r,o]=gy(i);t=t(n!==void 0?n:e.custom,r,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,o]=gy(i);t=t(n!==void 0?n:e.custom,r,o)}return t}function uc(e,t,n){const i=e.getProps();return Pp(i,t,n!==void 0?n:i.custom,e)}const _p=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tp=["initial",..._p],ya=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wr=new Set(ya),Bn=e=>e*1e3,Un=e=>e/1e3,gR={type:"spring",stiffness:500,damping:25,restSpeed:10},yR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vR={type:"keyframes",duration:.8},xR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wR=(e,{keyframes:t})=>t.length>2?vR:wr.has(e)?e.startsWith("scale")?yR(t[1]):gR:xR;function Mp(e,t){return e?e[t]||e.default||e:void 0}const bR={skipAnimations:!1,useManualTiming:!1},SR=e=>e!==null;function cc(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(SR),o=t&&n!=="loop"&&t%2===1?0:r.length-1;return!o||i===void 0?r[o]:i}const Je=e=>e;function kR(e){let t=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){o.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const p=f&&i?t:n;return c&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(s=u,i){r=!0;return}i=!0,[t,n]=[n,t],n.clear(),t.forEach(a),i=!1,r&&(r=!1,l.process(u))}};return l}const Ba=["read","resolveKeyframes","update","preRender","render","postRender"],CR=40;function ab(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ba.reduce((m,g)=>(m[g]=kR(o),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,p=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,CR),1),r.timestamp=m,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(p))},y=()=>{n=!0,i=!0,r.isProcessing||e(p)};return{schedule:Ba.reduce((m,g)=>{const v=s[g];return m[g]=(w,b=!1,S=!1)=>(n||y(),v.schedule(w,b,S)),m},{}),cancel:m=>{for(let g=0;g(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PR=1e-7,_R=12;function TR(e,t,n,i,r){let o,s,a=0;do s=t+(n-t)/2,o=lb(s,i,r)-e,o>0?n=s:t=s;while(Math.abs(o)>PR&&++a<_R);return s}function va(e,t,n,i){if(e===t&&n===i)return Je;const r=o=>TR(o,0,1,e,n);return o=>o===0||o===1?o:lb(r(o),t,i)}const ub=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cb=e=>t=>1-e(1-t),fb=va(.33,1.53,.69,.99),Ep=cb(fb),db=ub(Ep),hb=e=>(e*=2)<1?.5*Ep(e):.5*(2-Math.pow(2,-10*(e-1))),Rp=e=>1-Math.sin(Math.acos(e)),pb=cb(Rp),mb=ub(Rp),gb=e=>/^0[^.\s]+$/u.test(e);function MR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}let Dd=Je;const yb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vb=e=>t=>typeof t=="string"&&t.startsWith(e),xb=vb("--"),ER=vb("var(--"),Op=e=>ER(e)?RR.test(e.split("/*")[0].trim()):!1,RR=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,OR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function AR(e){const t=OR.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function wb(e,t,n=1){const[i,r]=AR(e);if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const s=o.trim();return yb(s)?parseFloat(s):s}return Op(r)?wb(r,t,n+1):r}const _i=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Zs={...Bo,transform:e=>_i(0,1,e)},Ua={...Bo,default:1},xa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oi=xa("deg"),Tn=xa("%"),j=xa("px"),zR=xa("vh"),IR=xa("vw"),yy={...Tn,parse:e=>Tn.parse(e)/100,transform:e=>Tn.transform(e*100)},DR=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vy=e=>e===Bo||e===j,xy=(e,t)=>parseFloat(e.split(", ")[t]),wy=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return xy(r[1],t);{const o=i.match(/^matrix\((.+)\)$/u);return o?xy(o[1],e):0}},LR=new Set(["x","y","z"]),$R=ya.filter(e=>!LR.has(e));function FR(e){const t=[];return $R.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const _o={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:wy(4,13),y:wy(5,14)};_o.translateX=_o.x;_o.translateY=_o.y;const bb=e=>t=>t.test(e),jR={test:e=>e==="auto",parse:e=>e},Sb=[Bo,j,Tn,oi,IR,zR,jR],by=e=>Sb.find(bb(e)),sr=new Set;let Ld=!1,$d=!1;function kb(){if($d){const e=Array.from(sr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=FR(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([o,s])=>{var a;(a=i.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}$d=!1,Ld=!1,sr.forEach(e=>e.complete()),sr.clear()}function Cb(){sr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($d=!0)})}function NR(){Cb(),kb()}class Ap{constructor(t,n,i,r,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(sr.add(this),Ld||(Ld=!0,ie.read(Cb),ie.resolveKeyframes(kb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;for(let o=0;oMath.round(e*1e5)/1e5,zp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VR(e){return e==null}const BR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ip=(e,t)=>n=>!!(typeof n=="string"&&BR.test(n)&&n.startsWith(e)||t&&!VR(n)&&Object.prototype.hasOwnProperty.call(n,t)),Pb=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,o,s,a]=i.match(zp);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},UR=e=>_i(0,255,e),tf={...Bo,transform:e=>Math.round(UR(e))},Xi={test:Ip("rgb","red"),parse:Pb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+tf.transform(e)+", "+tf.transform(t)+", "+tf.transform(n)+", "+Ps(Zs.transform(i))+")"};function WR(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Fd={test:Ip("#"),parse:WR,transform:Xi.transform},Kr={test:Ip("hsl","hue"),parse:Pb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Tn.transform(Ps(t))+", "+Tn.transform(Ps(n))+", "+Ps(Zs.transform(i))+")"},Ye={test:e=>Xi.test(e)||Fd.test(e)||Kr.test(e),parse:e=>Xi.test(e)?Xi.parse(e):Kr.test(e)?Kr.parse(e):Fd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Xi.transform(e):Kr.transform(e)},HR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zp))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(HR))===null||n===void 0?void 0:n.length)||0)>0}const _b="number",Tb="color",KR="var",qR="var(",Sy="${}",YR=/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 Js(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let o=0;const a=t.replace(YR,l=>(Ye.test(l)?(i.color.push(o),r.push(Tb),n.push(Ye.parse(l))):l.startsWith(qR)?(i.var.push(o),r.push(KR),n.push(l)):(i.number.push(o),r.push(_b),n.push(parseFloat(l))),++o,Sy)).split(Sy);return{values:n,split:a,indexes:i,types:r}}function Mb(e){return Js(e).values}function Eb(e){const{split:t,types:n}=Js(e),i=t.length;return r=>{let o="";for(let s=0;stypeof e=="number"?0:e;function XR(e){const t=Mb(e);return Eb(e)(t.map(QR))}const Ti={test:GR,parse:Mb,createTransformer:Eb,getAnimatableNone:XR},ZR=new Set(["brightness","contrast","saturate","opacity"]);function JR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(zp)||[];if(!i)return e;const r=n.replace(i,"");let o=ZR.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}const eO=/\b([a-z-]*)\(.*?\)/gu,jd={...Ti,getAnimatableNone:e=>{const t=e.match(eO);return t?t.map(JR).join(" "):e}},tO={borderWidth:j,borderTopWidth:j,borderRightWidth:j,borderBottomWidth:j,borderLeftWidth:j,borderRadius:j,radius:j,borderTopLeftRadius:j,borderTopRightRadius:j,borderBottomRightRadius:j,borderBottomLeftRadius:j,width:j,maxWidth:j,height:j,maxHeight:j,top:j,right:j,bottom:j,left:j,padding:j,paddingTop:j,paddingRight:j,paddingBottom:j,paddingLeft:j,margin:j,marginTop:j,marginRight:j,marginBottom:j,marginLeft:j,backgroundPositionX:j,backgroundPositionY:j},nO={rotate:oi,rotateX:oi,rotateY:oi,rotateZ:oi,scale:Ua,scaleX:Ua,scaleY:Ua,scaleZ:Ua,skew:oi,skewX:oi,skewY:oi,distance:j,translateX:j,translateY:j,translateZ:j,x:j,y:j,z:j,perspective:j,transformPerspective:j,opacity:Zs,originX:yy,originY:yy,originZ:j},ky={...Bo,transform:Math.round},Dp={...tO,...nO,zIndex:ky,size:j,fillOpacity:Zs,strokeOpacity:Zs,numOctaves:ky},iO={...Dp,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:jd,WebkitFilter:jd},Lp=e=>iO[e];function Rb(e,t){let n=Lp(e);return n!==jd&&(n=Ti),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rO=new Set(["auto","none","0"]);function oO(e,t,n){let i=0,r;for(;i{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function $p(e){return typeof e=="function"}let vl;function sO(){vl=void 0}const Mn={now:()=>(vl===void 0&&Mn.set(Ve.isProcessing||bR.useManualTiming?Ve.timestamp:performance.now()),vl),set:e=>{vl=e,queueMicrotask(sO)}},Cy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ti.test(e)||e==="0")&&!e.startsWith("url("));function aO(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nuO?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&NR(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!lO(t,i,r,o))if(s)this.options.duration=0;else{l==null||l(cc(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function zb(e,t){return t?e*(1e3/t):0}const cO=5;function Ib(e,t,n){const i=Math.max(t-cO,0);return zb(n-e(i),t-i)}const nf=.001,fO=.01,dO=10,hO=.05,pO=1;function mO({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o,s=1-t;s=_i(hO,pO,s),e=_i(fO,dO,Un(e)),s<1?(r=u=>{const c=u*s,f=c*e,d=c-n,p=Nd(u,s),y=Math.exp(-f);return nf-d/p*y},o=u=>{const f=u*s*e,d=f*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),h=Nd(Math.pow(u,2),s);return(-r(u)+nf>0?-1:1)*((d-p)*y)/h}):(r=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-nf+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=yO(r,o,a);if(e=Bn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const gO=12;function yO(e,t,n){let i=n;for(let r=1;re[n]!==void 0)}function wO(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Py(e,xO)&&Py(e,vO)){const n=mO(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Db({keyframes:e,restDelta:t,restSpeed:n,...i}){const r=e[0],o=e[e.length-1],s={done:!1,value:r},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=wO({...i,velocity:-Un(i.velocity||0)}),p=f||0,y=l/(2*Math.sqrt(a*u)),h=o-r,x=Un(Math.sqrt(a/u)),m=Math.abs(h)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let g;if(y<1){const v=Nd(x,y);g=w=>{const b=Math.exp(-y*x*w);return o-b*((p+y*x*h)/v*Math.sin(v*w)+h*Math.cos(v*w))}}else if(y===1)g=v=>o-Math.exp(-x*v)*(h+(p+x*h)*v);else{const v=x*Math.sqrt(y*y-1);g=w=>{const b=Math.exp(-y*x*w),S=Math.min(v*w,300);return o-b*((p+y*x*h)*Math.sinh(S)+v*h*Math.cosh(S))/v}}return{calculatedDuration:d&&c||null,next:v=>{const w=g(v);if(d)s.done=v>=c;else{let b=0;y<1&&(b=v===0?Bn(p):Ib(g,v,w));const S=Math.abs(b)<=n,P=Math.abs(o-w)<=t;s.done=S&&P}return s.value=s.done?o:w,s}}}function _y({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},p=_=>a!==void 0&&_l,y=_=>a===void 0?l:l===void 0||Math.abs(a-_)-h*Math.exp(-_/i),v=_=>m+g(_),w=_=>{const A=g(_),T=v(_);d.done=Math.abs(A)<=u,d.value=d.done?m:T};let b,S;const P=_=>{p(d.value)&&(b=_,S=Db({keyframes:[d.value,y(d.value)],velocity:Ib(v,_,d.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:_=>{let A=!1;return!S&&b===void 0&&(A=!0,w(_),P(_)),b!==void 0&&_>=b?S.next(_-b):(!A&&w(_),d)}}}const bO=va(.42,0,1,1),SO=va(0,0,.58,1),Lb=va(.42,0,.58,1),kO=e=>Array.isArray(e)&&typeof e[0]!="number",Fp=e=>Array.isArray(e)&&typeof e[0]=="number",Ty={linear:Je,easeIn:bO,easeInOut:Lb,easeOut:SO,circIn:Rp,circInOut:mb,circOut:pb,backIn:Ep,backInOut:db,backOut:fb,anticipate:hb},My=e=>{if(Fp(e)){Dd(e.length===4);const[t,n,i,r]=e;return va(t,n,i,r)}else if(typeof e=="string")return Dd(Ty[e]!==void 0),Ty[e];return e},CO=(e,t)=>n=>t(e(n)),Wn=(...e)=>e.reduce(CO),To=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},me=(e,t,n)=>e+(t-e)*n;function rf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PO({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,o=0,s=0;if(!t)r=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=rf(l,a,e+1/3),o=rf(l,a,e),s=rf(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:i}}function eu(e,t){return n=>n>0?t:e}const of=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},_O=[Fd,Xi,Kr],TO=e=>_O.find(t=>t.test(e));function Ey(e){const t=TO(e);if(!t)return!1;let n=t.parse(e);return t===Kr&&(n=PO(n)),n}const Ry=(e,t)=>{const n=Ey(e),i=Ey(t);if(!n||!i)return eu(e,t);const r={...n};return o=>(r.red=of(n.red,i.red,o),r.green=of(n.green,i.green,o),r.blue=of(n.blue,i.blue,o),r.alpha=me(n.alpha,i.alpha,o),Xi.transform(r))},Vd=new Set(["none","hidden"]);function MO(e,t){return Vd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function EO(e,t){return n=>me(e,t,n)}function jp(e){return typeof e=="number"?EO:typeof e=="string"?Op(e)?eu:Ye.test(e)?Ry:AO:Array.isArray(e)?$b:typeof e=="object"?Ye.test(e)?Ry:RO:eu}function $b(e,t){const n=[...e],i=n.length,r=e.map((o,s)=>jp(o)(o,t[s]));return o=>{for(let s=0;s{for(const o in i)n[o]=i[o](r);return n}}function OO(e,t){var n;const i=[],r={color:0,var:0,number:0};for(let o=0;o{const n=Ti.createTransformer(t),i=Js(e),r=Js(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Vd.has(e)&&!r.values.length||Vd.has(t)&&!i.values.length?MO(e,t):Wn($b(OO(i,r),r.values),n):eu(e,t)};function Fb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):jp(e)(e,t)}function zO(e,t,n){const i=[],r=n||Fb,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=zO(t,i,r),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(_i(e[0],e[o-1],u)):l}function DO(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=To(0,t,i);e.push(me(n,1,r))}}function LO(e){const t=[0];return DO(t,e.length-1),t}function $O(e,t){return e.map(n=>n*t)}function FO(e,t){return e.map(()=>t||Lb).splice(0,e.length-1)}function tu({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=kO(i)?i.map(My):My(i),o={done:!1,value:t[0]},s=$O(n&&n.length===t.length?n:LO(t),e),a=IO(s,t,{ease:Array.isArray(r)?r:FO(t,r)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const Oy=2e4;function jO(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t=Oy?1/0:t}const NO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>Pi(t),now:()=>Ve.isProcessing?Ve.timestamp:Mn.now()}},VO={decay:_y,inertia:_y,tween:tu,keyframes:tu,spring:Db},BO=e=>e/100;class Np extends Ab{constructor(t){super(t),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,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:o}=this.options,s=(r==null?void 0:r.KeyframeResolver)||Ap,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(o,a,n,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o,velocity:s=0}=this.options,a=$p(n)?n:VO[n]||tu;let l,u;a!==tu&&typeof t[0]!="number"&&(l=Wn(BO,Fb(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=jO(c));const{calculatedDuration:f}=c,d=f+r,p=d*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=i;if(this.startTime===null)return o.next(0);const{delay:d,repeat:p,repeatType:y,repeatDelay:h,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=o;if(p){const _=Math.min(this.currentTime,c)/f;let A=Math.floor(_),T=_%1;!T&&_>=1&&(T=1),T===1&&A--,A=Math.min(A,p+1),!!(A%2)&&(y==="reverse"?(T=1-T,h&&(T-=h/f)):y==="mirror"&&(w=s)),v=_i(0,1,T)*f}const b=g?{done:!1,value:l[0]}:w.next(v);a&&(b.value=a(b.value));let{done:S}=b;!g&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&r!==void 0&&(b.value=cc(l,this.options,r)),x&&x(b.value),P&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Un(t.calculatedDuration):0}get time(){return Un(this.currentTime)}set time(t){t=Bn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Un(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=NO,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const UO=new Set(["opacity","clipPath","filter","transform"]),WO=10,HO=(e,t)=>{let n="";const i=Math.max(Math.round(t/WO),2);for(let r=0;r(t===void 0&&(t=e()),t)}const GO={linearEasing:void 0};function KO(e,t){const n=Vp(e);return()=>{var i;return(i=GO[t])!==null&&i!==void 0?i:n()}}const nu=KO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function jb(e){return!!(typeof e=="function"&&nu()||!e||typeof e=="string"&&(e in Bd||nu())||Fp(e)||Array.isArray(e)&&e.every(jb))}const hs=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Bd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:hs([0,.65,.55,1]),circOut:hs([.55,0,1,.45]),backIn:hs([.31,.01,.66,-.59]),backOut:hs([.33,1.53,.69,.99])};function Nb(e,t){if(e)return typeof e=="function"&&nu()?HO(e,t):Fp(e)?hs(e):Array.isArray(e)?e.map(n=>Nb(n,t)||Bd.easeOut):Bd[e]}function qO(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Nb(a,r);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Ay(e,t){e.timeline=t,e.onfinish=null}const YO=Vp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),iu=10,QO=2e4;function XO(e){return $p(e.type)||e.type==="spring"||!jb(e.ease)}function ZO(e,t){const n=new Np({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let o=0;for(;!i.done&&othis.onKeyframesResolved(s,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(t,n){var i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(typeof s=="string"&&nu()&&JO(s)&&(s=Vb[s]),XO(this.options)){const{onComplete:d,onUpdate:p,motionValue:y,element:h,...x}=this.options,m=ZO(t,x);t=m.keyframes,t.length===1&&(t[1]=t[0]),r=m.duration,o=m.times,s=m.ease,a="keyframes"}const f=qO(l.owner.current,u,t,{...this.options,duration:r,times:o,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ay(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(cc(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Un(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Un(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Bn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Je;const{animation:i}=n;Ay(i,t)}return Je}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:r,type:o,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...p}=this.options,y=new Np({...p,keyframes:i,duration:r,type:o,ease:s,times:a,isGenerator:!0}),h=Bn(this.time);u.setWithVelocity(y.sample(h-iu).value,y.sample(h).value,iu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:r,repeatType:o,damping:s,type:a}=t;return YO()&&i&&UO.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&o!=="mirror"&&s!==0&&a!=="inertia"}}const eA=Vp(()=>window.ScrollTimeline!==void 0);class tA{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;ieA()&&r.attachTimeline?r.attachTimeline(t):n(r));return()=>{i.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function nA({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Bp=(e,t,n,i={},r,o)=>s=>{const a=Mp(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-Bn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};nA(a)||(c={...c,...wR(e,c)}),c.duration&&(c.duration=Bn(c.duration)),c.repeatDelay&&(c.repeatDelay=Bn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=cc(c.keyframes,a);if(d!==void 0)return ie.update(()=>{c.onUpdate(d),c.onComplete()}),new tA([])}return!o&&zy.supports(c)?new zy(c):new Np(c)},iA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rA=e=>Id(e)?e[e.length-1]||0:e;function Up(e,t){e.indexOf(t)===-1&&e.push(t)}function Wp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Hp{constructor(){this.subscriptions=[]}add(t){return Up(this.subscriptions,t),()=>Wp(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let o=0;o!isNaN(parseFloat(e));class sA{constructor(t,n={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const o=Mn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=oA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Hp);const i=this.events[t].add(n);return t==="change"?()=>{i(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Iy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Iy);return zb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 ea(e,t){return new sA(e,t)}function aA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ea(n))}function lA(e,t){const n=uc(e,t);let{transitionEnd:i={},transition:r={},...o}=n||{};o={...o,...i};for(const s in o){const a=rA(o[s]);aA(e,s,a)}}const Gp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uA="framerAppearId",Bb="data-"+Gp(uA);function Ub(e){return e.props[Bb]}const Xe=e=>!!(e&&e.getVelocity);function cA(e){return!!(Xe(e)&&e.add)}function Ud(e,t){const n=e.getValue("willChange");if(cA(n))return n.add(t)}function fA({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Wb(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(s=i);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||c&&fA(c,f))continue;const y={delay:n,...Mp(s||{},f)};let h=!1;if(window.MotionHandoffAnimation){const m=Ub(e);if(m){const g=window.MotionHandoffAnimation(m,f,ie);g!==null&&(y.startTime=g,h=!0)}}Ud(e,f),d.start(Bp(f,d,p,e.shouldReduceMotion&&wr.has(f)?{type:!1}:y,e,h));const x=d.animation;x&&u.push(x)}return a&&Promise.all(u).then(()=>{ie.update(()=>{a&&lA(e,a)})}),u}function Wd(e,t,n={}){var i;const r=uc(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Wb(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return dA(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function dA(e,t,n=0,i=0,r=1,o){const s=[],a=(e.variantChildren.size-1)*i,l=r===1?(u=0)=>u*i:(u=0)=>a-u*i;return Array.from(e.variantChildren).sort(hA).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Wd(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function hA(e,t){return e.sortNodePosition(t)}function pA(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(o=>Wd(e,o,n));i=Promise.all(r)}else if(typeof t=="string")i=Wd(e,t,n);else{const r=typeof t=="function"?uc(e,t,n.custom):t;i=Promise.all(Wb(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const mA=Tp.length;function Hb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Hb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:i})=>pA(e,n,i)))}function xA(e){let t=vA(e),n=Dy(),i=!0;const r=l=>(u,c)=>{var f;const d=uc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:p,transitionEnd:y,...h}=d;u={...u,...h,...y}}return u};function o(l){t=l(e)}function s(l){const{props:u}=e,c=Hb(e.parent)||{},f=[],d=new Set;let p={},y=1/0;for(let x=0;xy&&w,A=!1;const T=Array.isArray(v)?v:[v];let I=T.reduce(r(m),{});b===!1&&(I={});const{prevResolvedValues:z={}}=g,V={...z,...I},$=X=>{_=!0,d.has(X)&&(A=!0,d.delete(X)),g.needsAnimating[X]=!0;const E=e.getValue(X);E&&(E.liveStyle=!1)};for(const X in V){const E=I[X],D=z[X];if(p.hasOwnProperty(X))continue;let N=!1;Id(E)&&Id(D)?N=!sb(E,D):N=E!==D,N?E!=null?$(X):d.add(X):E!==void 0&&d.has(X)?$(X):g.protectedKeys[X]=!0}g.prevProp=v,g.prevResolvedValues=I,g.isActive&&(p={...p,...I}),i&&e.blockInitialAnimation&&(_=!1),_&&(!(S&&P)||A)&&f.push(...T.map(X=>({animation:X,options:{type:m}})))}if(d.size){const x={};d.forEach(m=>{const g=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),x[m]=g??null}),f.push({animation:x})}let h=!!f.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(h=!1),i=!1,h?t(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var p;return(p=d.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Dy(),i=!0}}}function wA(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sb(t,e):!1}function $i(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dy(){return{animate:$i(!0),whileInView:$i(),whileHover:$i(),whileTap:$i(),whileDrag:$i(),whileFocus:$i(),exit:$i()}}class Di{constructor(t){this.isMounted=!1,this.node=t}update(){}}class bA extends Di{constructor(t){super(t),t.animationState||(t.animationState=xA(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();lc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let SA=0;class kA extends Di{constructor(){super(...arguments),this.id=SA++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const CA={animation:{Feature:bA},exit:{Feature:kA}},Gb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function fc(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const PA=e=>t=>Gb(t)&&e(t,fc(t));function jn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Hn(e,t,n,i){return jn(e,t,PA(n),i)}const Ly=(e,t)=>Math.abs(e-t);function _A(e,t){const n=Ly(e.x,t.x),i=Ly(e.y,t.y);return Math.sqrt(n**2+i**2)}class Kb{constructor(t,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=af(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,p=_A(f.offset,{x:0,y:0})>=3;if(!d&&!p)return;const{point:y}=f,{timestamp:h}=Ve;this.history.push({...y,timestamp:h});const{onStart:x,onMove:m}=this.handlers;d||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=sf(d,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=af(f.type==="pointercancel"?this.lastMoveEventInfo:sf(d,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,x),y&&y(f,x)},!Gb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=fc(t),a=sf(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ve;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,af(a,this.history)),this.removeListeners=Wn(Hn(this.contextWindow,"pointermove",this.handlePointerMove),Hn(this.contextWindow,"pointerup",this.handlePointerUp),Hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Pi(this.updatePoint)}}function sf(e,t){return t?{point:t(e.point)}:e}function $y(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:$y(e,qb(t)),offset:$y(e,TA(t)),velocity:MA(t,.1)}}function TA(e){return e[0]}function qb(e){return e[e.length-1]}function MA(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=qb(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Bn(t)));)n--;if(!i)return{x:0,y:0};const o=Un(r.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Yb(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Fy=Yb("dragHorizontal"),jy=Yb("dragVertical");function Qb(e){let t=!1;if(e==="y")t=jy();else if(e==="x")t=Fy();else{const n=Fy(),i=jy();n&&i?t=()=>{n(),i()}:(n&&n(),i&&i())}return t}function Xb(){const e=Qb(!0);return e?(e(),!1):!0}function qr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Zb=1e-4,EA=1-Zb,RA=1+Zb,Jb=.01,OA=0-Jb,AA=0+Jb;function Mt(e){return e.max-e.min}function zA(e,t,n){return Math.abs(e-t)<=n}function Ny(e,t,n,i=.5){e.origin=i,e.originPoint=me(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=EA&&e.scale<=RA||isNaN(e.scale))&&(e.scale=1),(e.translate>=OA&&e.translate<=AA||isNaN(e.translate))&&(e.translate=0)}function _s(e,t,n,i){Ny(e.x,t.x,n.x,i?i.originX:void 0),Ny(e.y,t.y,n.y,i?i.originY:void 0)}function Vy(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function IA(e,t,n){Vy(e.x,t.x,n.x),Vy(e.y,t.y,n.y)}function By(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function Ts(e,t,n){By(e.x,t.x,n.x),By(e.y,t.y,n.y)}function DA(e,{min:t,max:n},i){return t!==void 0&&en&&(e=i?me(n,e,i.max):Math.min(e,n)),e}function Uy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LA(e,{top:t,left:n,bottom:i,right:r}){return{x:Uy(e.x,n,r),y:Uy(e.y,t,i)}}function Wy(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.mini?n=To(t.min,t.max-i,e.min):i>r&&(n=To(e.min,e.max-r,t.min)),_i(0,1,n)}function jA(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Hd=.35;function NA(e=Hd){return e===!1?e=0:e===!0&&(e=Hd),{x:Hy(e,"left","right"),y:Hy(e,"top","bottom")}}function Hy(e,t,n){return{min:Gy(e,t),max:Gy(e,n)}}function Gy(e,t){return typeof e=="number"?e:e[t]||0}const Ky=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yr=()=>({x:Ky(),y:Ky()}),qy=()=>({min:0,max:0}),ke=()=>({x:qy(),y:qy()});function Dt(e){return[e("x"),e("y")]}function eS({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function VA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function BA(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function lf(e){return e===void 0||e===1}function Gd({scale:e,scaleX:t,scaleY:n}){return!lf(e)||!lf(t)||!lf(n)}function Wi(e){return Gd(e)||tS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tS(e){return Yy(e.x)||Yy(e.y)}function Yy(e){return e&&e!=="0%"}function ru(e,t,n){const i=e-n,r=t*i;return n+r}function Qy(e,t,n,i,r){return r!==void 0&&(e=ru(e,r,i)),ru(e,n,i)+t}function Kd(e,t=0,n=1,i,r){e.min=Qy(e.min,t,n,i,r),e.max=Qy(e.max,t,n,i,r)}function nS(e,{x:t,y:n}){Kd(e.x,t.translate,t.scale,t.originPoint),Kd(e.y,n.translate,n.scale,n.originPoint)}const Xy=.999999999999,Zy=1.0000000000001;function UA(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let o,s;for(let a=0;aXy&&(t.x=1),t.yXy&&(t.y=1)}function Qr(e,t){e.min=e.min+t,e.max=e.max+t}function Jy(e,t,n,i,r=.5){const o=me(e.min,e.max,r);Kd(e,t,n,o,i)}function Xr(e,t){Jy(e.x,t.x,t.scaleX,t.scale,t.originX),Jy(e.y,t.y,t.scaleY,t.scale,t.originY)}function iS(e,t){return eS(BA(e.getBoundingClientRect(),t))}function WA(e,t,n){const i=iS(e,n),{scroll:r}=t;return r&&(Qr(i.x,r.offset.x),Qr(i.y,r.offset.y)),i}const rS=({current:e})=>e?e.ownerDocument.defaultView:null,HA=new WeakMap;class GA{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ke(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Qb(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Dt(x=>{let m=this.getAxisMotionValue(x).get()||0;if(Tn.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const v=g.layout.layoutBox[x];v&&(m=Mt(v)*(parseFloat(m)/100))}}this.originPoint[x]=m}),y&&ie.postRender(()=>y(c,f)),Ud(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:y,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:x}=f;if(p&&this.currentDirection===null){this.currentDirection=KA(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),h&&h(c,f)},a=(c,f)=>this.stop(c,f),l=()=>Dt(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Kb(t,{onSessionStart:r,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:rS(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ie.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Wa(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=DA(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=LA(r.layoutBox,n):this.constraints=!1,this.elastic=NA(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Dt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=jA(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qr(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=WA(i,r.root,this.visualElement.getTransformPagePoint());let s=$A(r.layout.layoutBox,o);if(n){const a=n(VA(s));this.hasMutatedConstraints=!!a,a&&(s=eS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Dt(c=>{if(!Wa(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=r?200:1e6,p=r?40:1e7,y={type:"inertia",velocity:i?t[c]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Ud(this.visualElement,t),i.start(Bp(t,i,0,n,this.visualElement,!1))}stopAnimation(){Dt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Dt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Dt(n=>{const{drag:i}=this.getProps();if(!Wa(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(n);if(r&&r.layout){const{min:s,max:a}=r.layout.layoutBox[n];o.set(t[n]-me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qr(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Dt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();r[s]=FA({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Dt(s=>{if(!Wa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(me(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;HA.set(this.visualElement,this);const t=this.visualElement.current,n=Hn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qr(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ie.read(i);const s=jn(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Dt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:s=Hd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Wa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function KA(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qA extends Di{constructor(t){super(t),this.removeGroupControls=Je,this.removeListeners=Je,this.controls=new GA(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Je}unmount(){this.removeGroupControls(),this.removeListeners()}}const ev=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class YA extends Di{constructor(){super(...arguments),this.removePointerDownListener=Je}onPointerDown(t){this.session=new Kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ev(t),onStart:ev(n),onMove:i,onEnd:(o,s)=>{delete this.session,r&&ie.postRender(()=>r(o,s))}}}mount(){this.removePointerDownListener=Hn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Kp=k.createContext(null);function QA(){const e=k.useContext(Kp);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:i}=e,r=k.useId();k.useEffect(()=>i(r),[]);const o=k.useCallback(()=>n&&n(r),[r,n]);return!t&&n?[!1,o]:[!0]}const oS=k.createContext({}),sS=k.createContext({}),xl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ts={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(j.test(e))e=parseFloat(e);else return e;const n=tv(e,t.target.x),i=tv(e,t.target.y);return`${n}% ${i}%`}},XA={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ti.parse(e);if(r.length>5)return i;const o=Ti.createTransformer(e),s=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+s]/=a,r[1+s]/=l;const u=me(a,l,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),o(r)}},ou={};function ZA(e){Object.assign(ou,e)}const{schedule:qp,cancel:p6}=ab(queueMicrotask,!1);class JA extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:o}=t;ZA(e5),o&&(n.group&&n.group.add(o),i&&i.register&&r&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),xl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:o}=this.props,s=i.projection;return s&&(s.isPresent=o,r||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||ie.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),qp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function aS(e){const[t,n]=QA(),i=k.useContext(oS);return C.jsx(JA,{...e,layoutGroup:i,switchLayoutGroup:k.useContext(sS),isPresent:t,safeToRemove:n})}const e5={borderRadius:{...ts,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ts,borderTopRightRadius:ts,borderBottomLeftRadius:ts,borderBottomRightRadius:ts,boxShadow:XA},lS=["TopLeft","TopRight","BottomLeft","BottomRight"],t5=lS.length,nv=e=>typeof e=="string"?parseFloat(e):e,iv=e=>typeof e=="number"||j.test(e);function n5(e,t,n,i,r,o){r?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,i5(i)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,r5(i))):o&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;sit?1:n(To(e,t,i))}function ov(e,t){e.min=t.min,e.max=t.max}function At(e,t){ov(e.x,t.x),ov(e.y,t.y)}function sv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function av(e,t,n,i,r){return e-=t,e=ru(e,1/n,i),r!==void 0&&(e=ru(e,1/r,i)),e}function o5(e,t=0,n=1,i=.5,r,o=e,s=e){if(Tn.test(t)&&(t=parseFloat(t),t=me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=me(o.min,o.max,i);e===o&&(a-=t),e.min=av(e.min,t,n,a,r),e.max=av(e.max,t,n,a,r)}function lv(e,t,[n,i,r],o,s){o5(e,t[n],t[i],t[r],t.scale,o,s)}const s5=["x","scaleX","originX"],a5=["y","scaleY","originY"];function uv(e,t,n,i){lv(e.x,t,s5,n?n.x:void 0,i?i.x:void 0),lv(e.y,t,a5,n?n.y:void 0,i?i.y:void 0)}function cv(e){return e.translate===0&&e.scale===1}function cS(e){return cv(e.x)&&cv(e.y)}function fv(e,t){return e.min===t.min&&e.max===t.max}function l5(e,t){return fv(e.x,t.x)&&fv(e.y,t.y)}function dv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fS(e,t){return dv(e.x,t.x)&&dv(e.y,t.y)}function hv(e){return Mt(e.x)/Mt(e.y)}function pv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class u5{constructor(){this.members=[]}add(t){Up(this.members,t),t.scheduleRender()}remove(t){if(Wp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const o=this.members[r];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function c5(e,t,n){let i="";const r=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:p,skewY:y}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),d&&(i+=`rotateY(${d}deg) `),p&&(i+=`skewX(${p}deg) `),y&&(i+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const f5=(e,t)=>e.depth-t.depth;class d5{constructor(){this.children=[],this.isDirty=!1}add(t){Up(this.children,t),this.isDirty=!0}remove(t){Wp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(f5),this.isDirty=!1,this.children.forEach(t)}}function wl(e){const t=Xe(e)?e.get():e;return iA(t)?t.toValue():t}function h5(e,t){const n=Mn.now(),i=({timestamp:r})=>{const o=r-n;o>=t&&(Pi(i),e(o-t))};return ie.read(i,!0),()=>Pi(i)}function p5(e){return e instanceof SVGElement&&e.tagName!=="svg"}function m5(e,t,n){const i=Xe(e)?e:ea(e);return i.start(Bp("",i,t,n)),i.animation}const Hi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ps=typeof window<"u"&&window.MotionDebug!==void 0,uf=["","X","Y","Z"],g5={visibility:"hidden"},mv=1e3;let y5=0;function cf(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function dS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ub(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(r||o))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&dS(i)}function hS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},a=t==null?void 0:t()){this.id=y5++,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,ps&&(Hi.totalNodes=Hi.resolvedTargetDeltas=Hi.recalculatedProjection=0),this.nodes.forEach(w5),this.nodes.forEach(P5),this.nodes.forEach(_5),this.nodes.forEach(b5),ps&&window.MotionDebug.record(Hi)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=h5(d,250),xl.hasAnimatedSinceResize&&(xl.hasAnimatedSinceResize=!1,this.nodes.forEach(yv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const h=this.options.transition||c.getDefaultTransition()||O5,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=c.getProps(),g=!this.targetLayout||!fS(this.targetLayout,y)||p,v=!d&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...Mp(h,"layout"),onPlay:x,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||yv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Pi(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.forEach(T5),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const b=w/1e3;vv(f.x,s.x,b),vv(f.y,s.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),E5(this.relativeTarget,this.relativeTargetOrigin,d,b),v&&l5(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ke()),At(v,this.relativeTarget)),h&&(this.animationValues=c,n5(c,u,this.latestValues,b,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{xl.hasAnimatedSinceResize=!0,this.currentAnimation=m5(0,mv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&pS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ke();const f=Mt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Mt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}At(a,l),Xr(a,c),_s(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new u5),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&cf("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(gv),this.root.sharedNodes.clear()}}}function v5(e){e.updateLayout()}function x5(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Dt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(d);d.min=i[f].min,d.max=d.min+p}):pS(o,n.layoutBox,i)&&Dt(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],p=Mt(i[f]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const a=Yr();_s(a,i,n.layoutBox);const l=Yr();s?_s(l,e.applyTransform(r,!0),n.measuredBox):_s(l,i,n.layoutBox);const u=!cS(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:p}=f;if(d&&p){const y=ke();Ts(y,n.layoutBox,d.layoutBox);const h=ke();Ts(h,i,p.layoutBox),fS(y,h)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function w5(e){ps&&Hi.totalNodes++,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 b5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function S5(e){e.clearSnapshot()}function gv(e){e.clearMeasurements()}function k5(e){e.isLayoutDirty=!1}function C5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function P5(e){e.resolveTargetDelta()}function _5(e){e.calcProjection()}function T5(e){e.resetSkewAndRotation()}function M5(e){e.removeLeadSnapshot()}function vv(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xv(e,t,n,i){e.min=me(t.min,n.min,i),e.max=me(t.max,n.max,i)}function E5(e,t,n,i){xv(e.x,t.x,n.x,i),xv(e.y,t.y,n.y,i)}function R5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const O5={duration:.45,ease:[.4,0,.1,1]},wv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bv=wv("applewebkit/")&&!wv("chrome/")?Math.round:Je;function Sv(e){e.min=bv(e.min),e.max=bv(e.max)}function A5(e){Sv(e.x),Sv(e.y)}function pS(e,t,n){return e==="position"||e==="preserve-aspect"&&!zA(hv(t),hv(n),.2)}function z5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const I5=hS({attachResizeListener:(e,t)=>jn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},mS=hS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new I5({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),D5={pan:{Feature:YA},drag:{Feature:qA,ProjectionNode:mS,MeasureLayout:aS}};function kv(e,t){const n=t?"pointerenter":"pointerleave",i=t?"onHoverStart":"onHoverEnd",r=(o,s)=>{if(o.pointerType==="touch"||Xb())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[i];l&&ie.postRender(()=>l(o,s))};return Hn(e.current,n,r,{passive:!e.getProps()[i]})}class L5 extends Di{mount(){this.unmount=Wn(kv(this.node,!0),kv(this.node,!1))}unmount(){}}class $5 extends Di{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Wn(jn(this.node.current,"focus",()=>this.onFocus()),jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gS=(e,t)=>t?e===t?!0:gS(e,t.parentElement):!1;function df(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,fc(n))}class F5 extends Di{constructor(){super(...arguments),this.removeStartListeners=Je,this.removeEndListeners=Je,this.removeAccessibleListeners=Je,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Hn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!gS(this.node.current,a.target)?c:u;d&&ie.update(()=>d(a,l))},{passive:!(i.onTap||i.onPointerUp)}),s=Hn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=Wn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||df("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&ie.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=jn(this.node.current,"keyup",s),df("down",(a,l)=>{this.startPress(a,l)})},n=jn(this.node.current,"keydown",t),i=()=>{this.isPressing&&df("cancel",(o,s)=>this.cancelPress(o,s))},r=jn(this.node.current,"blur",i);this.removeAccessibleListeners=Wn(n,r)}}startPress(t,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&ie.postRender(()=>i(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xb()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&ie.postRender(()=>i(t,n))}mount(){const t=this.node.getProps(),n=Hn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=jn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Wn(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const qd=new WeakMap,hf=new WeakMap,j5=e=>{const t=qd.get(e.target);t&&t(e)},N5=e=>{e.forEach(j5)};function V5({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const i=hf.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(N5,{root:e,...t})),i[r]}function B5(e,t,n){const i=V5(t);return qd.set(e,n),i.observe(e),()=>{qd.delete(e),i.unobserve(e)}}const U5={some:0,all:1};class W5 extends Di{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:U5[r]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return B5(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(H5(t,n))&&this.startObserver()}unmount(){}}function H5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const G5={inView:{Feature:W5},tap:{Feature:F5},focus:{Feature:$5},hover:{Feature:L5}},K5={layout:{ProjectionNode:mS,MeasureLayout:aS}},yS=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),dc=k.createContext({}),Yp=typeof window<"u",q5=Yp?k.useLayoutEffect:k.useEffect,vS=k.createContext({strict:!1});function Y5(e,t,n,i,r){var o,s;const{visualElement:a}=k.useContext(dc),l=k.useContext(vS),u=k.useContext(Kp),c=k.useContext(yS).reducedMotion,f=k.useRef();i=i||l.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,p=k.useContext(sS);d&&!d.projection&&r&&(d.type==="html"||d.type==="svg")&&Q5(f.current,n,r,p);const y=k.useRef(!1);k.useInsertionEffect(()=>{d&&y.current&&d.update(n,u)});const h=n[Bb],x=k.useRef(!!h&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return q5(()=>{d&&(y.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),qp.render(d.render),x.current&&d.animationState&&d.animationState.animateChanges())}),k.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,h)}),x.current=!1))}),d}function Q5(e,t,n,i){const{layoutId:r,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xS(e.parent)),e.projection.setOptions({layoutId:r,layout:o,alwaysMeasureLayout:!!s||a&&qr(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function xS(e){if(e)return e.options.allowProjection!==!1?e.projection:xS(e.parent)}function X5(e,t,n){return k.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):qr(n)&&(n.current=i))},[t])}function hc(e){return lc(e.animate)||Tp.some(t=>Xs(e[t]))}function wS(e){return!!(hc(e)||e.variants)}function Z5(e,t){if(hc(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Xs(n)?n:void 0,animate:Xs(i)?i:void 0}}return e.inherit!==!1?t:{}}function J5(e){const{initial:t,animate:n}=Z5(e,k.useContext(dc));return k.useMemo(()=>({initial:t,animate:n}),[Cv(t),Cv(n)])}function Cv(e){return Array.isArray(e)?e.join(" "):e}const Pv={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"]},Mo={};for(const e in Pv)Mo[e]={isEnabled:t=>Pv[e].some(n=>!!t[n])};function ez(e){for(const t in e)Mo[t]={...Mo[t],...e[t]}}const tz=Symbol.for("motionComponentSymbol");function nz({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&ez(e);function o(a,l){let u;const c={...k.useContext(yS),...a,layoutId:iz(a)},{isStatic:f}=c,d=J5(a),p=i(a,f);if(!f&&Yp){rz();const y=oz(c);u=y.MeasureLayout,d.visualElement=Y5(r,p,c,t,y.ProjectionNode)}return C.jsxs(dc.Provider,{value:d,children:[u&&d.visualElement?C.jsx(u,{visualElement:d.visualElement,...c}):null,n(r,a,X5(p,d.visualElement,l),p,f,d.visualElement)]})}const s=k.forwardRef(o);return s[tz]=r,s}function iz({layoutId:e}){const t=k.useContext(oS).id;return t&&e!==void 0?t+"-"+e:e}function rz(e,t){k.useContext(vS).strict}function oz(e){const{drag:t,layout:n}=Mo;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const sz=["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 Qp(e){return typeof e!="string"||e.includes("-")?!1:!!(sz.indexOf(e)>-1||/[A-Z]/u.test(e))}function bS(e,{style:t,vars:n},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const o in n)e.style.setProperty(o,n[o])}const SS=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 kS(e,t,n,i){bS(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(SS.has(r)?r:Gp(r),t.attrs[r])}function CS(e,{layout:t,layoutId:n}){return wr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ou[e]||e==="opacity")}function Xp(e,t,n){var i;const{style:r}=e,o={};for(const s in r)(Xe(r[s])||t.style&&Xe(t.style[s])||CS(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function PS(e,t,n){const i=Xp(e,t,n);for(const r in e)if(Xe(e[r])||Xe(t[r])){const o=ya.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[o]=e[r]}return i}function az(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}function lz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){const s={latestValues:uz(i,r,o,e),renderState:t()};return n&&(s.mount=a=>n(i,a,s)),s}const _S=e=>(t,n)=>{const i=k.useContext(dc),r=k.useContext(Kp),o=()=>lz(e,t,i,r);return n?o():az(o)};function uz(e,t,n,i){const r={},o=i(e,{});for(const d in o)r[d]=wl(o[d]);let{initial:s,animate:a}=e;const l=hc(e),u=wS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;if(f&&typeof f!="boolean"&&!lc(f)){const d=Array.isArray(f)?f:[f];for(let p=0;p({style:{},transform:{},transformOrigin:{},vars:{}}),TS=()=>({...Zp(),attrs:{}}),MS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,cz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fz=ya.length;function dz(e,t,n){let i="",r=!0;for(let o=0;otypeof e=="string"&&e.toLowerCase()==="svg",yz={useVisualState:_S({scrapeMotionValuesFromProps:PS,createRenderState:TS,onMount:(e,t,{renderState:n,latestValues:i})=>{ie.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),ie.render(()=>{em(n,i,tm(t.tagName),e.transformTemplate),kS(t,n)})}})},vz={useVisualState:_S({scrapeMotionValuesFromProps:Xp,createRenderState:Zp})};function ES(e,t,n){for(const i in t)!Xe(t[i])&&!CS(i,n)&&(e[i]=t[i])}function xz({transformTemplate:e},t){return k.useMemo(()=>{const n=Zp();return Jp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function wz(e,t){const n=e.style||{},i={};return ES(i,n,e),Object.assign(i,xz(e,t)),i}function bz(e,t){const n={},i=wz(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const Sz=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 su(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Sz.has(e)}let RS=e=>!su(e);function kz(e){e&&(RS=t=>t.startsWith("on")?!su(t):e(t))}try{kz(require("@emotion/is-prop-valid").default)}catch{}function Cz(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(RS(r)||n===!0&&su(r)||!t&&!su(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function Pz(e,t,n,i){const r=k.useMemo(()=>{const o=TS();return em(o,t,tm(i),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};ES(o,e.style,e),r.style={...o,...r.style}}return r}function _z(e=!1){return(n,i,r,{latestValues:o},s)=>{const l=(Qp(n)?Pz:bz)(i,o,s,n),u=Cz(i,typeof n=="string",e),c=n!==k.Fragment?{...u,...l,ref:r}:{},{children:f}=i,d=k.useMemo(()=>Xe(f)?f.get():f,[f]);return k.createElement(n,{...c,children:d})}}function Tz(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Qp(i)?yz:vz,preloadedFeatures:e,useRender:_z(r),createVisualElement:t,Component:i};return nz(s)}}const Yd={current:null},OS={current:!1};function Mz(){if(OS.current=!0,!!Yp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yd.current=e.matches;e.addListener(t),t()}else Yd.current=!1}function Ez(e,t,n){for(const i in t){const r=t[i],o=n[i];if(Xe(r))e.addValue(i,r);else if(Xe(o))e.addValue(i,ea(r,{owner:e}));else if(o!==r)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{const s=e.getStaticValue(i);e.addValue(i,ea(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Tv=new WeakMap,Rz=[...Sb,Ye,Ti],Oz=e=>Rz.find(bb(e)),Mv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Az{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ap,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=()=>{const d=Mn.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),OS.current||Mz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Tv.delete(this.current),this.projection&&this.projection.unmount(),Pi(this.notifyUpdate),Pi(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=wr.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mo){const n=Mo[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ke()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=ea(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(yb(r)||gb(r))?r=parseFloat(r):!Oz(r)&&Ti.test(n)&&(r=Rb(t,n)),this.setBaseTarget(t,Xe(r)?r.get():r)),Xe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const s=Pp(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(r=s[t])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Xe(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Hp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class AS extends Az{constructor(){super(...arguments),this.KeyframeResolver=Ob}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}}function zz(e){return window.getComputedStyle(e)}class Iz extends AS{constructor(){super(...arguments),this.type="html",this.renderInstance=bS}readValueFromInstance(t,n){if(wr.has(n)){const i=Lp(n);return i&&i.default||0}else{const i=zz(t),r=(xb(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iS(t,n)}build(t,n,i){Jp(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Xp(t,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Dz extends AS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ke}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wr.has(n)){const i=Lp(n);return i&&i.default||0}return n=SS.has(n)?n:Gp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return PS(t,n,i)}build(t,n,i){em(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){kS(t,n,i,r)}mount(t){this.isSVGTag=tm(t.tagName),super.mount(t)}}const Lz=(e,t)=>Qp(e)?new Dz(t):new Iz(t,{allowProjection:e!==k.Fragment}),$z=Tz({...CA,...G5,...D5,...K5},Lz),Pe=mR($z);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Bz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + */var Fz={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Uz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const jz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Di=(e,t)=>{const n=k.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...u},c)=>k.createElement("svg",{ref:c,...Bz,width:r,height:r,stroke:i,strokeWidth:s?Number(o)*24/Number(r):o,className:["lucide",`lucide-${Uz(e)}`,a].join(" "),...u},[...t.map(([f,d])=>k.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/** + */const Li=(e,t)=>{const n=k.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,...u},c)=>k.createElement("svg",{ref:c,...Fz,width:r,height:r,stroke:i,strokeWidth:s?Number(o)*24/Number(r):o,className:["lucide",`lucide-${jz(e)}`,a].join(" "),...u},[...t.map(([f,d])=>k.createElement(f,d)),...Array.isArray(l)?l:[l]]));return n.displayName=`${e}`,n};/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wz=Di("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** + */const Nz=Li("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Hz=Di("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** + */const Vz=Li("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Gz=Di("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + */const Bz=Li("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Kz=Di("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** + */const Uz=Li("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const au=Di("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** + */const au=Li("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Yd=Di("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** + */const Qd=Li("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const qz=Di("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** + */const Wz=Li("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.350.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Qz=Di("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),Ov=[{name:"Home",link:"#home",icon:Gz},{name:"About",link:"#about",icon:qz},{name:"Skills",link:"#skills",icon:Qz},{name:"Projects",link:"#projects",icon:Wz},{name:"Contact",link:"#contact",icon:au}];function Yz(){const[e,t]=k.useState(!1),[n,i]=k.useState("home");k.useEffect(()=>{const o=()=>{const s=window.scrollY>20;t(s);const l=Ov.map(u=>u.link.substring(1)).find(u=>{const c=document.getElementById(u);if(c){const f=c.getBoundingClientRect();return f.top<=100&&f.bottom>=100}return!1});l&&i(l)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const r=(o,s)=>{o.preventDefault();const a=s.substring(1),l=document.getElementById(a);if(l){const u=l.offsetTop-60;window.scrollTo({top:u,behavior:"smooth"})}};return C.jsx(Pe.div,{initial:{y:-100},animate:{y:0},transition:{duration:.5,type:"spring",stiffness:260,damping:20},className:"fixed top-4 left-1/2 -translate-x-1/2 z-50",children:C.jsx("nav",{className:` + */const Hz=Li("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]),Ev=[{name:"Home",link:"#home",icon:Bz},{name:"About",link:"#about",icon:Wz},{name:"Skills",link:"#skills",icon:Hz},{name:"Projects",link:"#projects",icon:Nz},{name:"Contact",link:"#contact",icon:au}];function Gz(){const[e,t]=k.useState(!1),[n,i]=k.useState("home");k.useEffect(()=>{const o=()=>{const s=window.scrollY>20;t(s);const l=Ev.map(u=>u.link.substring(1)).find(u=>{const c=document.getElementById(u);if(c){const f=c.getBoundingClientRect();return f.top<=100&&f.bottom>=100}return!1});l&&i(l)};return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]);const r=(o,s)=>{o.preventDefault();const a=s.substring(1),l=document.getElementById(a);if(l){const u=l.offsetTop-60;window.scrollTo({top:u,behavior:"smooth"})}};return C.jsx(Pe.div,{initial:{y:-100},animate:{y:0},transition:{duration:.5,type:"spring",stiffness:260,damping:20},className:"fixed top-4 left-1/2 -translate-x-1/2 z-50",children:C.jsx("nav",{className:` px-6 py-3 rounded-full border border-white/[0.2] bg-black/50 backdrop-blur-md ${e?"bg-black/80":""} transition-all duration-300 - `,children:C.jsx("div",{className:"flex items-center gap-6",children:Ov.map((o,s)=>C.jsx(Pe.a,{href:o.link,onClick:a=>r(a,o.link),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"group relative",children:C.jsxs("div",{className:` + `,children:C.jsx("div",{className:"flex items-center gap-6",children:Ev.map((o,s)=>C.jsx(Pe.a,{href:o.link,onClick:a=>r(a,o.link),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{delay:s*.1},className:"group relative",children:C.jsxs("div",{className:` relative p-2 transition-colors duration-300 ${n===o.link.substring(1)?"text-purple-500 bg-clip-text":"text-white/70 hover:text-white"} - `,children:[C.jsx(o.icon,{size:20}),C.jsx(Pe.span,{className:"absolute -bottom-12 left-1/2 -translate-x-1/2 px-3 py-2 bg-black/80 text-white text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap",children:o.name}),n===o.link.substring(1)&&C.jsx(Pe.div,{layoutId:"navbar-indicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-purple-500",transition:{type:"spring",stiffness:300,damping:30}})]})},o.name))})})})}const Zi="generated",Xz="pointerdown",Zz="pointerup",Xd="pointerleave",Jz="pointerout",pr="pointermove",e3="touchstart",Av="touchend",t3="touchmove",n3="touchcancel",i3="resize",r3="visibilitychange",qt="tsParticles - Error",hi=100,zv=.5,Ze=1e3;var Be;(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"})(Be||(Be={}));function LS(e){return typeof e=="boolean"}function Mi(e){return typeof e=="string"}function Ei(e){return typeof e=="number"}function Zr(e){return typeof e=="object"&&e!==null}function Rn(e){return Array.isArray(e)}function O(e){return e==null}const xn={x:0,y:0,z:0},Iv=2,o3=1;class xt{constructor(t,n,i){if(this._updateFromAngle=(r,o)=>{this.x=Math.cos(r)*o,this.y=Math.sin(r)*o},!Ei(t)&&t){this.x=t.x,this.y=t.y;const r=t;this.z=r.z?r.z:xn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=i??xn.z;else throw new Error(`${qt} Vector3d not initialized correctly`)}static get origin(){return xt.create(xn.x,xn.y,xn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return xt.create(t.x,t.y,t.z)}static create(t,n,i){return new xt(t,n,i)}add(t){return xt.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return xt.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return xt.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Iv+this.y**Iv}mult(t){return xt.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(o3/t)}rotate(t){return xt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),xn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:xn.z}sub(t){return xt.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Fe extends xt{constructor(t,n){super(t,n,xn.z)}static get origin(){return Fe.create(xn.x,xn.y)}static clone(t){return Fe.create(t.x,t.y)}static create(t,n){return new Fe(t,n)}}let s3=Math.random;const DS={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)},Zd=new Map,a3=2,l3=Math.PI*a3;function pf(e,t){Zd.get(e)||Zd.set(e,t)}function $S(e){return Zd.get(e)??(t=>t)}function ce(){return Qt(s3(),0,1-Number.EPSILON)}function u3(e){return DS.nextFrame(e)}function c3(e){DS.cancel(e)}function Qt(e,t,n){return Math.min(Math.max(e,t),n)}function mf(e,t,n,i){return Math.floor((e*n+t*i)/(n+i))}function kt(e){const t=kn(e),n=0;let i=pc(e);return t===i&&(i=n),ce()*(t-i)+i}function F(e){return Ei(e)?e:kt(e)}function pc(e){return Ei(e)?e:e.min}function kn(e){return Ei(e)?e:e.max}function Y(e,t){if(e===t||t===void 0&&Ei(e))return e;const n=pc(e),i=kn(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(i,t)}:Y(n,i)}function lt(e,t){const n=e.x-t.x,i=e.y-t.y,r=2;return{dx:n,dy:i,distance:Math.sqrt(n**r+i**r)}}function _t(e,t){return lt(e,t).distance}function Si(e){return e*Math.PI/180}function f3(e,t,n){if(Ei(e))return Si(e);const i=0,r=.5,o=.25,s=r+o;switch(e){case Be.top:return-Math.PI*r;case Be.topRight:return-Math.PI*o;case Be.right:return i;case Be.bottomRight:return Math.PI*o;case Be.bottom:return Math.PI*r;case Be.bottomLeft:return Math.PI*s;case Be.left:return Math.PI;case Be.topLeft:return-Math.PI*s;case Be.inside:return Math.atan2(n.y-t.y,n.x-t.x);case Be.outside:return Math.atan2(t.y-n.y,t.x-n.x);default:return ce()*l3}}function d3(e){const t=Fe.origin;return t.length=1,t.angle=e,t}function Lv(e,t,n,i){return Fe.create(e.x*(n-i)/(n+i)+t.x*2*i/(n+i),e.y)}function h3(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??ce()*e.size.width,y:((n=e.position)==null?void 0:n.y)??ce()*e.size.height}}function FS(e){return e?e.endsWith("%")?parseFloat(e)/hi:parseFloat(e):1}var Ji;(function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"})(Ji||(Ji={}));var Re;(function(e){e.increasing="increasing",e.decreasing="decreasing"})(Re||(Re={}));var mr;(function(e){e.none="none",e.max="max",e.min="min"})(mr||(mr={}));var G;(function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"})(G||(G={}));var Eo;(function(e){e.precise="precise",e.percent="percent"})(Eo||(Eo={}));var uo;(function(e){e.max="max",e.min="min",e.random="random"})(uo||(uo={}));const p3={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function gr(){return p3}function Dv(e){const t={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,u=0;return i.mino.max||i.maxo.max||(n.max>=r.min&&n.max<=(r.max+r.min)*l&&s>u||n.min<=r.max&&n.min>(r.max+r.min)*l&&se.matches(i));return Rn(n)?n.some(i=>i):n}function yr(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function g3(){return!yr()&&typeof matchMedia<"u"}function jS(e){if(g3())return matchMedia(e)}function y3(e){if(!(yr()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function v3(e){if(!(yr()||typeof MutationObserver>"u"))return new MutationObserver(e)}function _e(e,t){return e===t||Rn(t)&&t.indexOf(e)>-1}async function $v(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function x3(e){return Math.floor(ce()*e.length)}function mc(e,t,n=!0){return e[t!==void 0&&n?t%e.length:x3(e)]}function rm(e,t,n,i,r){return w3(wa(e,i??0),t,n,r)}function w3(e,t,n,i){let r=!0;return(!i||i===G.bottom)&&(r=e.topn.x),r&&(!i||i===G.right)&&(r=e.leftn.y),r}function wa(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function nt(e,...t){for(const n of t){if(n==null)continue;if(!Zr(n)){e=n;continue}const i=Array.isArray(n);i&&(Zr(e)||!e||!Array.isArray(e))?e=[]:!i&&(Zr(e)||!e||Array.isArray(e))&&(e={});for(const r in n){if(r==="__proto__")continue;const o=n,s=o[r],a=e;a[r]=Zr(s)&&Array.isArray(s)?s.map(l=>nt(a[r],l)):nt(a[r],s)}}return e}function om(e,t){return!!BS(t,n=>n.enable&&_e(e,n.mode))}function sm(e,t,n){Zt(t,i=>{const r=i.mode;i.enable&&_e(e,r)&&b3(i,n)})}function b3(e,t){const n=e.selectors;Zt(n,i=>{t(i,e)})}function NS(e,t){if(!(!t||!e))return BS(e,n=>m3(t,n.selectors))}function Jd(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:Fe.create(F(e.options.bounce.horizontal.value),F(e.options.bounce.vertical.value))}}function VS(e,t){const{x:n,y:i}=e.velocity.sub(t.velocity),[r,o]=[e.position,t.position],{dx:s,dy:a}=lt(o,r);if(n*s+i*a<0)return;const u=-Math.atan2(a,s),c=e.mass,f=t.mass,d=e.velocity.rotate(u),p=t.velocity.rotate(u),y=Lv(d,p,c,f),h=Lv(p,d,c,f),x=y.rotate(-u),m=h.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function S3(e,t){const n=e.getPosition(),i=e.getRadius(),r=wa(n,i),o=e.options.bounce,s=Dv({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:F(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=Dv({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:F(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function Zt(e,t){return Rn(e)?e.map((i,r)=>t(i,r)):t(e,0)}function sn(e,t,n){return Rn(e)?mc(e,t,n):e}function BS(e,t){return Rn(e)?e.find((i,r)=>t(i,r)):t(e,0)?e:void 0}function US(e,t){const n=e.value,i=e.animation,r={delayTime:F(i.delay)*Ze,enable:i.enable,value:F(e.value)*t,max:kn(n)*t,min:pc(n)*t,loops:0,maxLoops:F(i.count),time:0},o=1;if(i.enable){switch(r.decay=o-F(i.decay),i.mode){case Ji.increase:r.status=Re.increasing;break;case Ji.decrease:r.status=Re.decreasing;break;case Ji.random:r.status=ce()>=zv?Re.increasing:Re.decreasing;break}const s=i.mode===Ji.auto;switch(i.startValue){case uo.min:r.value=r.min,s&&(r.status=Re.increasing);break;case uo.max:r.value=r.max,s&&(r.status=Re.decreasing);break;case uo.random:default:r.value=kt(r),s&&(r.status=ce()>=zv?Re.increasing:Re.decreasing);break}}return r.initialValue=r.value,r}function k3(e,t){if(!(e.mode===Eo.percent)){const{mode:r,...o}=e;return o}return"x"in e?{x:e.x/hi*t.width,y:e.y/hi*t.height}:{width:e.width/hi*t.width,height:e.height/hi*t.height}}function WS(e,t){return k3(e,t)}function C3(e,t,n,i,r){switch(t){case mr.max:n>=r&&e.destroy();break;case mr.min:n<=i&&e.destroy();break}}function am(e,t,n,i,r){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*r.factor,f=t.min,d=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=r.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case Re.increasing:t.value>=d?(n?t.status=Re.decreasing:t.value-=d,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case Re.decreasing:t.value<=f?(n?t.status=Re.increasing:t.value+=d,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),C3(e,i,t.value,f,d),e.destroyed||(t.value=Qt(t.value,f,d))}}var eh;(function(e){e.darken="darken",e.enlighten="enlighten"})(eh||(eh={}));var Gi;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"})(Gi||(Gi={}));const lu="random",bl="mid",gc=new Map;function Fv(e){gc.set(e.key,e)}function P3(e){for(const l of gc.values())if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,f,d)=>u+u+c+c+f+f+(d!==void 0?d+d:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n),o=16;return r?{a:r[Gi.a]!==void 0?parseInt(r[Gi.a],o)/255:1,b:parseInt(r[Gi.b],o),g:parseInt(r[Gi.g],o),r:parseInt(r[Gi.r],o)}:void 0}function cn(e,t,n=!0){if(!e)return;const i=Mi(e)?{value:e}:e;if(Mi(i.value))return HS(i.value,t,n);if(Rn(i.value))return cn({value:mc(i.value,t,n)});for(const r of gc.values()){const o=r.handleRangeColor(i);if(o)return o}}function HS(e,t,n=!0){if(!e)return;const i=Mi(e)?{value:e}:e;if(Mi(i.value))return i.value===lu?KS():_3(i.value);if(Rn(i.value))return HS({value:mc(i.value,t,n)});for(const r of gc.values()){const o=r.handleColor(i);if(o)return o}}function ta(e,t,n=!0){const i=cn(e,t,n);return i?GS(i):void 0}function GS(e){const c=e.r/255,f=e.g/255,d=e.b/255,p=Math.max(c,f,d),y=Math.min(c,f,d),h={h:0,l:(p+y)*.5,s:0};return p!==y&&(h.s=h.l<.5?(p-y)/(p+y):(p-y)/(2-p-y),h.h=c===p?(f-d)/(p-y):h.h=f===p?2+(d-c)/(p-y):2*2+(c-f)/(p-y)),h.l*=100,h.s*=100,h.h*=60,h.h<0&&(h.h+=360),h.h>=360&&(h.h-=360),h}function _3(e){return P3(e)}function Ro(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=s/360,c=a/100,f=l/100,d=255,p=3;if(a===0){const A=Math.round(f*d);return{r:A,g:A,b:A}}const y=.5,h=2,x=(A,T,I)=>{if(I<0&&I++,I>1&&I--,I*6<1)return A+(T-A)*6*I;if(I*h<1)return T;if(I*p<1*h){const re=h/p;return A+(T-A)*(re-I)*6}return A},m=1,g=f0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?kt(e.offset):0,f=(e.velocity??0)*i.factor+c*3.6,d=e.decay??1,p=kn(t),y=pc(t);!n||e.status===Re.increasing?(e.value+=f,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status=Re.decreasing:e.value-=p)):(e.value-=f,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status=Re.increasing)),e.velocity&&d!==1&&(e.velocity*=d),e.value=Qt(e.value,y,p)}function YS(e,t){if(!e)return;const{h:n,s:i,l:r}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&yf(n,o.h,!1,t),i&&yf(i,o.s,!0,t),r&&yf(r,o.l,!0,t)}const Oo={x:0,y:0},Ha={a:1,b:0,c:0,d:1};function Ms(e,t,n){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.closePath()}function M3(e,t,n){e.fillStyle=n??"rgba(0,0,0,0)",e.fillRect(Oo.x,Oo.y,t.width,t.height)}function E3(e,t,n,i){n&&(e.globalAlpha=i,e.drawImage(n,Oo.x,Oo.y,t.width,t.height),e.globalAlpha=1)}function vf(e,t){e.clearRect(Oo.x,Oo.y,t.width,t.height)}function R3(e){const{container:t,context:n,particle:i,delta:r,colorStyles:o,backgroundMask:s,composite:a,radius:l,opacity:u,shadow:c,transform:f}=e,d=i.getPosition(),p=0,y=i.rotation+(i.pathRotation?i.velocity.angle:p),h={sin:Math.sin(y),cos:Math.cos(y)},x=!!y,m=1,g={a:h.cos*(f.a??Ha.a),b:x?h.sin*(f.b??m):f.b??Ha.b,c:x?-h.sin*(f.c??m):f.c??Ha.c,d:h.cos*(f.d??Ha.d)};n.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),s&&(n.globalCompositeOperation=a);const v=i.shadowColor;c.enable&&v&&(n.shadowBlur=c.blur,n.shadowColor=Gn(v),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),o.fill&&(n.fillStyle=o.fill);const w=0,b=i.strokeWidth??w;n.lineWidth=b,o.stroke&&(n.strokeStyle=o.stroke);const S={container:t,context:n,particle:i,radius:l,opacity:u,delta:r,transformData:g,strokeWidth:b};A3(S),z3(S),O3(S),n.globalCompositeOperation="source-over",n.resetTransform()}function O3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.effect)return;const l=t.effectDrawers.get(i.effect);l&&l.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function A3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,strokeWidth:a,transformData:l}=e,u=0;if(!i.shape)return;const c=t.shapeDrawers.get(i.shape);c&&(n.beginPath(),c.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...l}}),i.shapeClose&&n.closePath(),a>u&&n.stroke(),i.shapeFill&&n.fill())}function z3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.shape)return;const l=t.shapeDrawers.get(i.shape);l!=null&&l.afterDraw&&l.afterDraw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function I3(e,t,n){t.draw&&t.draw(e,n)}function L3(e,t,n,i){t.drawParticle&&t.drawParticle(e,n,i)}function D3(e,t,n){return{h:e.h,s:e.s,l:e.l+(t===eh.darken?-1:1)*n}}function $3(e,t,n){const i=t[n],r=1;i!==void 0&&(e[n]=(e[n]??r)*i)}function Nv(e,t,n=!1){if(!t)return;const i=e;if(!i)return;const r=i.style;if(r)for(const o in t){const s=t[o];r.setProperty(o,s,n?"important":"")}}class F3{constructor(t){this.container=t,this._applyPostDrawUpdaters=n=>{var i;for(const r of this._postDrawUpdaters)(i=r.afterDraw)==null||i.call(r,n)},this._applyPreDrawUpdaters=(n,i,r,o,s,a)=>{var l;for(const u of this._preDrawUpdaters){if(u.getColorStyles){const{fill:c,stroke:f}=u.getColorStyles(i,n,r,o);c&&(s.fill=c),f&&(s.stroke=f)}if(u.getTransformValues){const c=u.getTransformValues(i);for(const f in c)$3(a,c,f)}(l=u.beforeDraw)==null||l.call(u,i)}},this._applyResizePlugins=()=>{var n;for(const i of this._resizePlugins)(n=i.resize)==null||n.call(i)},this._getPluginParticleColors=n=>{let i,r;for(const o of this._colorPlugins)if(!i&&o.particleFillColor&&(i=ta(o.particleFillColor(n))),!r&&o.particleStrokeColor&&(r=ta(o.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=async()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color;if(r){const o=cn(r);if(o){const s={...o,a:i.opacity};this._coverColorStyle=Gn(s,s.a)}}else await new Promise((o,s)=>{if(!i.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:i.opacity},o()}),a.addEventListener("error",l=>{s(l.error)}),a.src=i.image})},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=nt({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const o=i.style[r];o&&n.style.setProperty(r,o,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(!i.enable)return;const o=1,s=o/i.length;if(r.color){const a=cn(r.color);if(!a)return;this._trailFill={color:{...a},opacity:s}}else await new Promise((a,l)=>{if(!r.image)return;const u=document.createElement("img");u.addEventListener("load",()=>{this._trailFill={image:u,opacity:s},a()}),u.addEventListener("error",c=>{l(c.error)}),u.src=r.image})},this._paintBase=n=>{this.draw(i=>M3(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>E3(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>{!n||!(n instanceof Node)||i.observe(n,{attributes:!0})}))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;n&&i&&Nv(n,i)},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i=10,r=this.container.actualOptions.fullScreen.zIndex.toString(i);Nv(n,{position:"fixed","z-index":r,zIndex:r,top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,n=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(Gn(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(o=>{vf(o,this.size)})}destroy(){if(this.stop(),this._generated){const t=this.element;t==null||t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const n=this._context;if(n)return t(n)}drawAsync(t){const n=this._context;if(n)return t(n)}drawParticle(t,n){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const o=t.getFillColor(),s=t.getStrokeColor()??o;let[a,l]=this._getPluginParticleColors(t);a||(a=o),l||(l=s),!(!a&&!l)&&this.draw(u=>{var P;const c=this.container,f=c.actualOptions,d=t.options.zIndex,p=1,y=p-t.zIndexFactor,h=y**d.opacityRate,x=1,m=t.bubble.opacity??((P=t.opacity)==null?void 0:P.value)??x,g=t.strokeOpacity??m,v=m*h,w=g*h,b={},S={fill:a?na(a,v):void 0};S.stroke=l?na(l,w):S.fill,this._applyPreDrawUpdaters(u,t,i,v,S,b),R3({container:c,context:u,particle:t,delta:n,colorStyles:S,backgroundMask:f.backgroundMask.enable,composite:f.backgroundMask.composite,radius:i*y**d.sizeRate,opacity:v,shadow:t.options.shadow,transform:b}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,n,i){this.draw(r=>L3(r,t,n,i))}drawPlugin(t,n){this.draw(i=>I3(i,t,n))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=v3(t=>{for(const n of t)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){gr().error(t)}this.initBackground(),this._safeMutationObserver(t=>{!this.element||!(this.element instanceof Node)||t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions,n=t.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const o=cn(n.color);r.backgroundColor=o?Gn(o,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&Zi in t.dataset?t.dataset[Zi]==="true":this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=nt({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{!this.element||!(this.element instanceof Node)||n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw(n=>{t.backgroundMask.enable&&t.backgroundMask.cover?(vf(n,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;const t=this.container,n=t.retina.pixelRatio,i=t.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const o={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&t.particles.setResizeFactor({width:i.width/o.width,height:i.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>vf(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,n=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),n&&await t.refresh()}}var co;(function(e){e.canvas="canvas",e.parent="parent",e.window="window"})(co||(co={}));const Vv=2;function zt(e,t,n,i,r){if(i){let o={passive:!0};LS(r)?o.capture=r:r!==void 0&&(o=r),e.addEventListener(t,n,o)}else{const o=r;e.removeEventListener(t,n,o)}}class j3{constructor(t){this.container=t,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const o=i.interactivity.mouse,s=o.position;if(!s)return;o.clickPosition={...s},o.clickTime=new Date().getTime();const a=r.interactivity.events.onClick;Zt(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,o=r.options,s=o.defaultThemes,a=i.matches?s.dark:s.light,l=o.themes.find(u=>u.name===a);l!=null&&l.default.auto&&r.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document!=null&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.animationStatus?n.play(!0):n.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const n=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void n(),this.container.actualOptions.interactivity.events.resize.delay*Ze)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,o=this.container,s=o.actualOptions,a=o.interactivity.element;if(!a)return;const l=a,u=o.canvas.element;u&&(u.style.pointerEvents=l===u?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(zt(a,pr,r.mouseMove,i),zt(a,e3,r.touchStart,i),zt(a,t3,r.touchMove,i),s.interactivity.events.onClick.enable?(zt(a,Av,r.touchEndClick,i),zt(a,Zz,r.mouseUp,i),zt(a,Xz,r.mouseDown,i)):zt(a,Av,r.touchEnd,i),zt(a,n,r.mouseLeave,i),zt(a,n3,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,o=r.actualOptions,s=o.interactivity.detectsOn,a=r.canvas.element;let l=Xd;s===co.window?(r.interactivity.element=window,l=Jz):s===co.parent&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&zt(document,r3,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=jS("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){zt(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){zt(window,i3,i.resize,n);return}const s=r.canvas.element;this._resizeObserver&&!n?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&s&&(this._resizeObserver=new ResizeObserver(a=>{a.find(u=>u.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:o}=i.interactivity;o.inside=!0;let s=!1;const a=o.position;if(!(!a||!r.interactivity.events.onClick.enable)){for(const l of i.plugins.values())if(l.clickPositionValid&&(s=l.clickPositionValid(a),s))break;s||this._doMouseTouchClick(n),o.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=Xd,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,o=i.interactivity,s=i.canvas.element;if(!(o!=null&&o.element))return;o.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(o.element===window){if(s){const c=s.getBoundingClientRect();a={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn===co.parent){const c=u.target,f=u.currentTarget;if(c&&f&&s){const d=c.getBoundingClientRect(),p=f.getBoundingClientRect(),y=s.getBoundingClientRect();a={x:u.offsetX+Vv*d.left-(p.left+y.left),y:u.offsetY+Vv*d.top-(p.top+y.top)}}else a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===s&&(a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",s){const u=n,c=1,f=u.touches[u.touches.length-c],d=s.getBoundingClientRect(),p=0;a={x:f.clientX-(d.left??p),y:f.clientY-(d.top??p)}}const l=i.retina.pixelRatio;a&&(a.x*=l,a.y*=l),o.mouse.position=a,o.status=pr},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.set(o.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var st;(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"})(st||(st={}));class it{constructor(){this.value=""}static create(t,n){const i=new it;return i.load(t),n!==void 0&&(Mi(n)||Rn(n)?i.load({value:n}):i.load(n)),i}load(t){O(t)||O(t.value)||(this.value=t.value)}}class N3{constructor(){this.color=new it,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.position!==void 0&&(this.position=t.position),t.repeat!==void 0&&(this.repeat=t.repeat),t.size!==void 0&&(this.size=t.size),t.opacity!==void 0&&(this.opacity=t.opacity))}}class V3{constructor(){this.opacity=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.opacity!==void 0&&(this.opacity=t.opacity))}}class B3{constructor(){this.composite="destination-out",this.cover=new V3,this.enable=!1}load(t){if(!O(t)){if(t.composite!==void 0&&(this.composite=t.composite),t.cover!==void 0){const n=t.cover,i=Mi(t.cover)?{color:t.cover}:t.cover;this.cover.load(n.color!==void 0||n.image!==void 0?n:{color:i})}t.enable!==void 0&&(this.enable=t.enable)}}}class U3{constructor(){this.enable=!0,this.zIndex=0}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.zIndex!==void 0&&(this.zIndex=t.zIndex))}}class W3{constructor(){this.enable=!1,this.mode=[]}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode))}}var Ao;(function(e){e.circle="circle",e.rectangle="rectangle"})(Ao||(Ao={}));class Bv{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=Ao.circle}load(t){O(t)||(t.selectors!==void 0&&(this.selectors=t.selectors),t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),t.type!==void 0&&(this.type=t.type))}}class H3{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.force!==void 0&&(this.force=t.force),t.smooth!==void 0&&(this.smooth=t.smooth))}}class G3{constructor(){this.enable=!1,this.mode=[],this.parallax=new H3}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class K3{constructor(){this.delay=.5,this.enable=!0}load(t){O(t)||(t.delay!==void 0&&(this.delay=t.delay),t.enable!==void 0&&(this.enable=t.enable))}}class q3{constructor(){this.onClick=new W3,this.onDiv=new Bv,this.onHover=new G3,this.resize=new K3}load(t){if(O(t))return;this.onClick.load(t.onClick);const n=t.onDiv;n!==void 0&&(this.onDiv=Zt(n,i=>{const r=new Bv;return r.load(i),r})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class Q3{constructor(t,n){this._engine=t,this._container=n}load(t){if(O(t)||!this._container)return;const n=this._engine.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,t)}}class XS{constructor(t,n){this.detectsOn=co.window,this.events=new q3,this.modes=new Q3(t,n)}load(t){if(O(t))return;const n=t.detectsOn;n!==void 0&&(this.detectsOn=n),this.events.load(t.events),this.modes.load(t.modes)}}const Uv=50;class Y3{load(t){O(t)||(t.position&&(this.position={x:t.position.x??Uv,y:t.position.y??Uv,mode:t.position.mode??Eo.percent}),t.options&&(this.options=nt({},t.options)))}}var er;(function(e){e.screen="screen",e.canvas="canvas"})(er||(er={}));class X3{constructor(){this.maxWidth=1/0,this.options={},this.mode=er.canvas}load(t){O(t)||(O(t.maxWidth)||(this.maxWidth=t.maxWidth),O(t.mode)||(t.mode===er.screen?this.mode=er.screen:this.mode=er.canvas),O(t.options)||(this.options=nt({},t.options)))}}var ci;(function(e){e.any="any",e.dark="dark",e.light="light"})(ci||(ci={}));class Z3{constructor(){this.auto=!1,this.mode=ci.any,this.value=!1}load(t){O(t)||(t.auto!==void 0&&(this.auto=t.auto),t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class J3{constructor(){this.name="",this.default=new Z3}load(t){O(t)||(t.name!==void 0&&(this.name=t.name),this.default.load(t.default),t.options!==void 0&&(this.options=nt({},t.options)))}}class um{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){O(t)||(t.count!==void 0&&(this.count=Y(t.count)),t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=Y(t.speed)),t.decay!==void 0&&(this.decay=Y(t.decay)),t.delay!==void 0&&(this.delay=Y(t.delay)),t.sync!==void 0&&(this.sync=t.sync))}}class cm extends um{constructor(){super(),this.mode=Ji.auto,this.startValue=uo.random}load(t){super.load(t),!O(t)&&(t.mode!==void 0&&(this.mode=t.mode),t.startValue!==void 0&&(this.startValue=t.startValue))}}class xf extends um{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),!O(t)&&t.offset!==void 0&&(this.offset=Y(t.offset))}}class eI{constructor(){this.h=new xf,this.s=new xf,this.l=new xf}load(t){O(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ia extends it{constructor(){super(),this.animation=new eI}static create(t,n){const i=new ia;return i.load(t),n!==void 0&&(Mi(n)||Rn(n)?i.load({value:n}):i.load(n)),i}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(t.animation))}}var fo;(function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"})(fo||(fo={}));class tI{constructor(){this.speed=2}load(t){O(t)||t.speed!==void 0&&(this.speed=t.speed)}}class nI{constructor(){this.enable=!0,this.retries=0}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.retries!==void 0&&(this.retries=t.retries))}}class br{constructor(){this.value=0}load(t){O(t)||O(t.value)||(this.value=Y(t.value))}}class iI extends br{constructor(){super(),this.animation=new um}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class ZS extends iI{constructor(){super(),this.animation=new cm}load(t){super.load(t)}}class Wv extends br{constructor(){super(),this.value=1}}class JS{constructor(){this.horizontal=new Wv,this.vertical=new Wv}load(t){O(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class rI{constructor(){this.absorb=new tI,this.bounce=new JS,this.enable=!1,this.maxSpeed=50,this.mode=fo.bounce,this.overlap=new nI}load(t){O(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),t.enable!==void 0&&(this.enable=t.enable),t.maxSpeed!==void 0&&(this.maxSpeed=Y(t.maxSpeed)),t.mode!==void 0&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class oI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(O(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=nt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class sI{constructor(){this.offset=0,this.value=90}load(t){O(t)||(t.offset!==void 0&&(this.offset=Y(t.offset)),t.value!==void 0&&(this.value=Y(t.value)))}}class aI{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!O(t)&&(t.distance!==void 0&&(this.distance=Y(t.distance)),t.enable!==void 0&&(this.enable=t.enable),t.rotate)){const n=t.rotate.x;n!==void 0&&(this.rotate.x=n);const i=t.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class lI{constructor(){this.x=50,this.y=50,this.mode=Eo.percent,this.radius=0}load(t){O(t)||(t.x!==void 0&&(this.x=t.x),t.y!==void 0&&(this.y=t.y),t.mode!==void 0&&(this.mode=t.mode),t.radius!==void 0&&(this.radius=t.radius))}}class uI{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){O(t)||(t.acceleration!==void 0&&(this.acceleration=Y(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.inverse!==void 0&&(this.inverse=t.inverse),t.maxSpeed!==void 0&&(this.maxSpeed=Y(t.maxSpeed)))}}class cI{constructor(){this.clamp=!0,this.delay=new br,this.enable=!1,this.options={}}load(t){O(t)||(t.clamp!==void 0&&(this.clamp=t.clamp),this.delay.load(t.delay),t.enable!==void 0&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=nt(this.options,t.options)))}}class fI{load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image))}}class dI{constructor(){this.enable=!1,this.length=10,this.fill=new fI}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.fill!==void 0&&this.fill.load(t.fill),t.length!==void 0&&(this.length=t.length))}}var ze;(function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"})(ze||(ze={}));class hI{constructor(){this.default=ze.out}load(t){O(t)||(t.default!==void 0&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class pI{constructor(){this.acceleration=0,this.enable=!1}load(t){O(t)||(t.acceleration!==void 0&&(this.acceleration=Y(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.position&&(this.position=nt({},t.position)))}}class mI{constructor(){this.angle=new sI,this.attract=new aI,this.center=new lI,this.decay=0,this.distance={},this.direction=Be.none,this.drift=0,this.enable=!1,this.gravity=new uI,this.path=new cI,this.outModes=new hI,this.random=!1,this.size=!1,this.speed=2,this.spin=new pI,this.straight=!1,this.trail=new dI,this.vibrate=!1,this.warp=!1}load(t){if(O(t))return;this.angle.load(Ei(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),t.decay!==void 0&&(this.decay=Y(t.decay)),t.direction!==void 0&&(this.direction=t.direction),t.distance!==void 0&&(this.distance=Ei(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),t.drift!==void 0&&(this.drift=Y(t.drift)),t.enable!==void 0&&(this.enable=t.enable),this.gravity.load(t.gravity);const n=t.outModes;n!==void 0&&(Zr(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(t.path),t.random!==void 0&&(this.random=t.random),t.size!==void 0&&(this.size=t.size),t.speed!==void 0&&(this.speed=Y(t.speed)),this.spin.load(t.spin),t.straight!==void 0&&(this.straight=t.straight),this.trail.load(t.trail),t.vibrate!==void 0&&(this.vibrate=t.vibrate),t.warp!==void 0&&(this.warp=t.warp)}}class gI extends cm{constructor(){super(),this.destroy=mr.none,this.speed=2}load(t){super.load(t),!O(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class yI extends ZS{constructor(){super(),this.animation=new gI,this.value=1}load(t){if(O(t))return;super.load(t);const n=t.animation;n!==void 0&&this.animation.load(n)}}class vI{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(O(t))return;t.enable!==void 0&&(this.enable=t.enable);const n=t.width;n!==void 0&&(this.width=n);const i=t.height;i!==void 0&&(this.height=i)}}var ra;(function(e){e.delete="delete",e.wait="wait"})(ra||(ra={}));class xI{constructor(){this.mode=ra.delete,this.value=0}load(t){O(t)||(t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class wI{constructor(){this.density=new vI,this.limit=new xI,this.value=0}load(t){O(t)||(this.density.load(t.density),this.limit.load(t.limit),t.value!==void 0&&(this.value=t.value))}}class bI{constructor(){this.blur=0,this.color=new it,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){O(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=it.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable),t.offset!==void 0&&(t.offset.x!==void 0&&(this.offset.x=t.offset.x),t.offset.y!==void 0&&(this.offset.y=t.offset.y)))}}class SI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(O(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=nt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class kI extends cm{constructor(){super(),this.destroy=mr.none,this.speed=5}load(t){super.load(t),!O(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class CI extends ZS{constructor(){super(),this.animation=new kI,this.value=3}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class Hv{constructor(){this.width=0}load(t){O(t)||(t.color!==void 0&&(this.color=ia.create(this.color,t.color)),t.width!==void 0&&(this.width=Y(t.width)),t.opacity!==void 0&&(this.opacity=Y(t.opacity)))}}class PI extends br{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),!O(t)&&(t.opacityRate!==void 0&&(this.opacityRate=t.opacityRate),t.sizeRate!==void 0&&(this.sizeRate=t.sizeRate),t.velocityRate!==void 0&&(this.velocityRate=t.velocityRate))}}class _I{constructor(t,n){this._engine=t,this._container=n,this.bounce=new JS,this.collisions=new rI,this.color=new ia,this.color.value="#fff",this.effect=new oI,this.groups={},this.move=new mI,this.number=new wI,this.opacity=new yI,this.reduceDuplicates=!1,this.shadow=new bI,this.shape=new SI,this.size=new CI,this.stroke=new Hv,this.zIndex=new PI}load(t){if(O(t))return;if(t.groups!==void 0)for(const i of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,i))continue;const r=t.groups[i];r!==void 0&&(this.groups[i]=nt(this.groups[i]??{},r))}t.reduceDuplicates!==void 0&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ia.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),t.interactivity!==void 0&&(this.interactivity=nt({},t.interactivity));const n=t.stroke;if(n&&(this.stroke=Zt(n,i=>{const r=new Hv;return r.load(i),r})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const o of i)o.loadOptions&&o.loadOptions(this,t);const r=this._engine.interactors.get(this._container);if(r)for(const o of r)o.loadParticlesOptions&&o.loadParticlesOptions(this,t)}}}function ek(e,...t){for(const n of t)e.load(n)}function tk(e,t,...n){const i=new _I(e,t);return ek(i,...n),i}class TI{constructor(t,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode===ci.any),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=t,this._container=n,this.autoPlay=!0,this.background=new N3,this.backgroundMask=new B3,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new U3,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new XS(t,n),this.manualParticles=[],this.particles=tk(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){var s,a;if(O(t))return;t.preset!==void 0&&Zt(t.preset,l=>this._importPreset(l)),t.autoPlay!==void 0&&(this.autoPlay=t.autoPlay),t.clear!==void 0&&(this.clear=t.clear),t.key!==void 0&&(this.key=t.key),t.name!==void 0&&(this.name=t.name),t.delay!==void 0&&(this.delay=Y(t.delay));const n=t.detectRetina;n!==void 0&&(this.detectRetina=n),t.duration!==void 0&&(this.duration=Y(t.duration));const i=t.fpsLimit;i!==void 0&&(this.fpsLimit=i),t.pauseOnBlur!==void 0&&(this.pauseOnBlur=t.pauseOnBlur),t.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),t.zLayers!==void 0&&(this.zLayers=t.zLayers),this.background.load(t.background);const r=t.fullScreen;LS(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(l=>{const u=new Y3;return u.load(l),u})),this.particles.load(t.particles),this.style=nt(this.style,t.style),this._engine.loadOptions(this,t),t.smooth!==void 0&&(this.smooth=t.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const l of o)l.loadOptions&&l.loadOptions(this,t);if(t.responsive!==void 0)for(const l of t.responsive){const u=new X3;u.load(l),this.responsive.push(u)}if(this.responsive.sort((l,u)=>l.maxWidth-u.maxWidth),t.themes!==void 0)for(const l of t.themes){const u=this.themes.find(c=>c.name===l.name);if(u)u.load(l);else{const c=new J3;c.load(l),this.themes.push(c)}}this.defaultThemes.dark=(s=this._findDefaultTheme(ci.dark))==null?void 0:s.name,this.defaultThemes.light=(a=this._findDefaultTheme(ci.light))==null?void 0:a.name}setResponsive(t,n,i){this.load(i);const r=this.responsive.find(o=>o.mode===er.screen&&screen?o.maxWidth>screen.availWidth:o.maxWidth*n>t);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(t){if(t){const n=this.themes.find(i=>i.name===t);n&&this.load(n.options)}else{const n=jS("(prefers-color-scheme: dark)"),i=n==null?void 0:n.matches,r=this._findDefaultTheme(i?ci.dark:ci.light);r&&this.load(r.options)}}}var zo;(function(e){e.external="external",e.particles="particles"})(zo||(zo={}));class MI{constructor(t,n){this.container=n,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const n of this._externalInteractors)n.isEnabled()&&n.interact(t)}handleClickMode(t){var n;for(const i of this._externalInteractors)(n=i.handleClickMode)==null||n.call(i,t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case zo.external:this._externalInteractors.push(t);break;case zo.particles:this._particleInteractors.push(t);break}t.init()}}particlesInteract(t,n){for(const i of this._externalInteractors)i.clear(t,n);for(const i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,n)}reset(t){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(t);for(const n of this._particleInteractors)n.isEnabled(t)&&n.reset(t)}}var fn;(function(e){e.normal="normal",e.inside="inside",e.outside="outside"})(fn||(fn={}));const Gv=0,nh=2,Ga=.5,EI=2,Kv="random";function RI(e,t,n,i){const r=t.options[e];if(r)return nt({close:t.close,fill:t.fill},sn(r,n,i))}function OI(e,t,n,i){const r=t.options[e];if(r)return nt({close:t.close,fill:t.fill},sn(r,n,i))}function qv(e){if(!_e(e.outMode,e.checkModes))return;const t=e.radius*nh;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord{for(const y of i.plugins.values()){const h=y.particlePosition!==void 0?y.particlePosition(r,this):void 0;if(h)return xt.create(h.x,h.y,o)}const a=i.canvas.size,l=h3({size:a,position:r}),u=xt.create(l.x,l.y,o),c=this.getRadius(),f=this.options.move.outModes,d=y=>{qv({outMode:y,checkModes:[ze.bounce],coord:u.x,maxCoord:i.canvas.size.width,setCb:h=>u.x+=h,radius:c})},p=y=>{qv({outMode:y,checkModes:[ze.bounce],coord:u.y,maxCoord:i.canvas.size.height,setCb:h=>u.y+=h,radius:c})};return d(f.left??f.default),d(f.right??f.default),p(f.top??f.default),p(f.bottom??f.default),this._checkOverlap(u,s)?this._calcPosition(i,void 0,o,s+1):u},this._calculateVelocity=()=>{const i=d3(this.direction),r=i.copy(),o=this.options.move;if(o.direction===Be.inside||o.direction===Be.outside)return r;const s=Si(F(o.angle.value)),a=Si(F(o.angle.offset)),l={left:a-s*Ga,right:a+s*Ga};return o.straight||(r.angle+=kt(Y(l.left,l.right))),o.random&&typeof o.speed=="number"&&(r.length*=ce()),r},this._checkOverlap=(i,r=Gv)=>{const o=this.options.collisions,s=this.getRadius();if(!o.enable)return!1;const a=o.overlap;if(a.enable)return!1;const l=a.retries;if(l>=0&&r>l)throw new Error(`${qt} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>_t(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const r=1,o=0,s=this.roll.horizontal&&this.roll.vertical?nh*r:r,a=this.roll.horizontal?Math.PI*Ga:o;return Math.floor(((this.roll.angle??o)+a)/(Math.PI/s))%nh?this.backColor?this.backColor:this.roll.alter?D3(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const r=this.container,o=F(this.options.zIndex.value),s=0;this.position=this._calcPosition(r,i,Qt(o,s,r.zLayers)),this.initialPosition=this.position.copy();const a=r.canvas.size,l=0;switch(this.moveCenter={...WS(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??Eo.percent},this.direction=f3(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case Be.inside:this.outType=fn.inside;break;case Be.outside:this.outType=fn.outside;break}this.offset=Fe.origin},this._engine=t}destroy(t){var o,s,a;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator,r=n.shapeDrawers.get(this.shape);(o=r==null?void 0:r.particleDestroy)==null||o.call(r,this);for(const l of n.plugins.values())(s=l.particleDestroyed)==null||s.call(l,this,t);for(const l of n.particles.updaters)(a=l.particleDestroyed)==null||a.call(l,this,t);i==null||i.reset(this),this._engine.dispatchEvent(st.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const n=this.container,i=n.canvas;for(const r of n.plugins.values())i.drawParticlePlugin(r,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??jv(this.color))}getMass(){return this.getRadius()**EI*Math.PI*Ga}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??jv(this.strokeColor))}init(t,n,i,r){var _,A,T,I,z,V;const o=this.container,s=this._engine;this.id=t,this.group=r,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=fn.normal,this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,l=o.actualOptions,u=tk(this._engine,o,l.particles),{reduceDuplicates:c}=u,f=u.effect.type,d=u.shape.type;this.effect=sn(f,this.id,c),this.shape=sn(d,this.id,c);const p=u.effect,y=u.shape;if(i){if((_=i.effect)!=null&&_.type){const $=i.effect.type,re=sn($,this.id,c);re&&(this.effect=re,p.load(i.effect))}if((A=i.shape)!=null&&A.type){const $=i.shape.type,re=sn($,this.id,c);re&&(this.shape=re,y.load(i.shape))}}if(this.effect===Kv){const $=[...this.container.effectDrawers.keys()];this.effect=$[Math.floor(Math.random()*$.length)]}if(this.shape===Kv){const $=[...this.container.shapeDrawers.keys()];this.shape=$[Math.floor(Math.random()*$.length)]}this.effectData=RI(this.effect,p,this.id,c),this.shapeData=OI(this.shape,y,this.id,c),u.load(i);const h=this.effectData;h&&u.load(h.particles);const x=this.shapeData;x&&u.load(x.particles);const m=new XS(s,o);m.load(o.actualOptions.interactivity),m.load(u.interactivity),this.interactivity=m,this.effectFill=(h==null?void 0:h.fill)??u.effect.fill,this.effectClose=(h==null?void 0:h.close)??u.effect.close,this.shapeFill=(x==null?void 0:x.fill)??u.shape.fill,this.shapeClose=(x==null?void 0:x.close)??u.shape.close,this.options=u;const g=this.options.move.path;this.pathDelay=F(g.delay.value)*Ze,g.generator&&(this.pathGenerator=this._engine.getPathGenerator(g.generator),this.pathGenerator&&o.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=US(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const v=1;this.moveDecay=v-F(this.options.move.decay);const w=o.particles;w.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let b=o.effectDrawers.get(this.effect);b||(b=this._engine.getEffectDrawer(this.effect),b&&o.effectDrawers.set(this.effect,b)),b!=null&&b.loadEffect&&b.loadEffect(this);let S=o.shapeDrawers.get(this.shape);S||(S=this._engine.getShapeDrawer(this.shape),S&&o.shapeDrawers.set(this.shape,S)),S!=null&&S.loadShape&&S.loadShape(this);const P=S==null?void 0:S.getSidesCount;P&&(this.sides=P(this)),this.spawning=!1,this.shadowColor=cn(this.options.shadow.color);for(const $ of w.updaters)$.init(this);for(const $ of w.movers)(T=$.init)==null||T.call($,this);(I=b==null?void 0:b.particleInit)==null||I.call(b,o,this),(z=S==null?void 0:S.particleInit)==null||z.call(S,o,this);for(const $ of o.plugins.values())(V=$.particleCreated)==null||V.call($,this)}isInsideCanvas(){const t=this.getRadius(),n=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=n.height+t&&i.x<=n.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var t;for(const n of this.container.particles.updaters)(t=n.reset)==null||t.call(n,this)}}class zI{constructor(t,n){this.position=t,this.particle=n}}var ho;(function(e){e.circle="circle",e.rectangle="rectangle"})(ho||(ho={}));const ns=2;class nk{constructor(t,n,i){this.position={x:t,y:n},this.type=i}}class et extends nk{constructor(t,n,i){super(t,n,ho.circle),this.radius=i}contains(t){return _t(t,this.position)<=this.radius}intersects(t){const n=this.position,i=t.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},o=this.radius;if(t instanceof et||t.type===ho.circle){const s=t,a=o+s.radius,l=Math.sqrt(r.x**ns+r.y**ns);return a>l}else if(t instanceof hn||t.type===ho.rectangle){const s=t,{width:a,height:l}=s.size;return Math.pow(r.x-a,ns)+Math.pow(r.y-l,ns)<=o**ns||r.x<=o+a&&r.y<=o+l||r.x<=a||r.y<=l}return!1}}class hn extends nk{constructor(t,n,i,r){super(t,n,ho.rectangle),this.size={height:r,width:i}}contains(t){const n=this.size.width,i=this.size.height,r=this.position;return t.x>=r.x&&t.x<=r.x+n&&t.y>=r.y&&t.y<=r.y+i}intersects(t){if(t instanceof et)return t.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,o=t.position,s=t instanceof hn?t.size:{width:0,height:0},a=s.width,l=s.height;return o.xr.x&&o.yr.y}}const is=.5,II=2,LI=4;class uu{constructor(t,n){this.rectangle=t,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:o,height:s}=this.rectangle.size,{capacity:a}=this;for(let l=0;ln.insert(t))):!1}query(t,n){const i=[];if(!t.intersects(this.rectangle))return[];for(const r of this._points)!t.contains(r.position)&&_t(t.position,r.position)>r.particle.getRadius()&&(!n||n(r.particle))||i.push(r.particle);if(this._divided)for(const r of this._subs)i.push(...r.query(t,n));return i}queryCircle(t,n,i){return this.query(new et(t.x,t.y,n),i)}queryRectangle(t,n,i){return this.query(new hn(t.x,t.y,n.width,n.height),i)}}const Qv=4,DI=2,$I=1,Yv=e=>{const{height:t,width:n}=e,i=-.25,r=1.5;return new hn(i*n,i*t,r*n,r*t)};class FI{constructor(t,n){this._addToPool=(...r)=>{this._pool.push(...r)},this._applyDensity=(r,o,s)=>{var y;const a=r.number;if(!((y=r.number.density)!=null&&y.enable)){s===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(s,a.limit.value);return}const l=this._initDensityFactor(a.density),u=a.value,c=0,f=a.limit.value>c?a.limit.value:u,d=Math.min(u,f)*l+o,p=Math.min(this.count,this.filter(h=>h.group===s).length);s===void 0?this._limit=a.limit.value*l:this._groupLimits.set(s,a.limit.value*l),pd&&this.removeQuantity(p-d,s)},this._initDensityFactor=r=>{const o=this._container,s=1;if(!o.canvas.element||!r.enable)return s;const a=o.canvas.element,l=o.retina.pixelRatio;return a.width*a.height/(r.height*r.width*l**DI)},this._pushParticle=(r,o,s,a)=>{try{let l=this._pool.pop();l||(l=new AI(this._engine,this._container)),l.init(this._nextId,r,o,s);let u=!0;return a&&(u=a(l)),u?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent(st.particleAdded,{container:this._container,data:{particle:l}}),l):void 0}catch(l){gr().warning(`${qt} adding particle: ${l}`)}},this._removeParticle=(r,o,s)=>{const a=this._array[r];if(!a||a.group!==o)return!1;const l=this._zArray.indexOf(a),u=1;return this._array.splice(r,u),this._zArray.splice(l,u),a.destroy(s),this._engine.dispatchEvent(st.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=t,this._container=n,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 MI(t,n),this._pluginsInitialized=!1;const i=n.canvas.size;this.quadTree=new uu(Yv(i),Qv),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(i=>this.addParticle(i.position?WS(i.position,t.canvas.size):void 0,i.options))}addParticle(t,n,i,r){const o=this._container.actualOptions.particles.number.limit.mode,s=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(s>0)switch(o){case ra.delete:{const f=a+1-s;f>0&&this.removeQuantity(f);break}case ra.wait:if(a>=s)return;break}return this._pushParticle(t,n,i,r)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const n=this._container,i=n.canvas;i.clear(),this.update(t);for(const r of n.plugins.values())i.drawPlugin(r,t);for(const r of this._zArray)r.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){var r,o;const t=this._container,n=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const s of t.plugins.values())if(i=((r=s.particlesInitialization)==null?void 0:r.call(s))??i,i)break;if(this.addManualParticles(),!i){const s=n.particles,a=s.groups;for(const l in a){const u=a[l];for(let c=this.count,f=0;f<((o=u.number)==null?void 0:o.value)&&cthis.count)return;let s=0;for(let a=t;s!i.has(l);this._array=this.filter(a),this._zArray=this._zArray.filter(a);for(const l of i)this._engine.dispatchEvent(st.particleRemoved,{container:this._container,data:{particle:l}});this._addToPool(...i)}this._interactionManager.externalInteract(t);for(const a of this._array){for(const l of this.updaters)l.update(a,t);!a.destroyed&&!a.spawning&&this._interactionManager.particlesInteract(a,t)}if(delete this._resizeFactor,this._needsSort){const a=this._zArray;a.sort((u,c)=>c.position.z-u.position.z||u.id-c.id);const l=1;this._lastZIndex=a[a.length-l].position.z,this._needsSort=!1}}}const Xv=1,Zv=1;class jI{constructor(t){this.container=t,this.pixelRatio=Xv,this.reduceFactor=Zv}init(){const t=this.container,n=t.actualOptions;this.pixelRatio=!n.detectRetina||yr()?Xv:window.devicePixelRatio,this.reduceFactor=Zv;const i=this.pixelRatio,r=t.canvas;if(r.element){const a=r.element;r.size.width=a.offsetWidth*i,r.size.height=a.offsetHeight*i}const o=n.particles,s=o.move;this.maxSpeed=F(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=F(o.size.animation.speed)*i}initParticle(t){const n=t.options,i=this.pixelRatio,r=n.move,o=r.distance,s=t.retina;s.moveDrift=F(r.drift)*i,s.moveSpeed=F(r.speed)*i,s.sizeAnimationSpeed=F(n.size.animation.speed)*i;const a=s.maxDistance;a.horizontal=o.horizontal!==void 0?o.horizontal*i:void 0,a.vertical=o.vertical!==void 0?o.vertical*i:void 0,s.maxSpeed=F(r.gravity.maxSpeed)*i}}function xe(e){return e&&!e.destroyed}const wf=60;function NI(e,t=wf,n=!1){return{value:e,factor:n?wf/t:wf*e/Ze}}function Or(e,t,...n){const i=new TI(e,t);return ek(i,...n),i}let VI=class{constructor(t,n,i){this._intersectionManager=r=>{if(!(!xe(this)||!this.actualOptions.pauseOnOutsideViewport))for(const o of r)o.target===this.interactivity.element&&(o.isIntersecting?this.play():this.pause())},this._nextFrame=r=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&rZe){this.draw(!1);return}if(this.particles.draw(o),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(o){gr().error(`${qt} in animation loop`,o)}},this._engine=t,this.id=Symbol(n),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 jI(this),this.canvas=new F3(this),this.particles=new FI(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=Or(this._engine,this),this.actualOptions=Or(this._engine,this),this._eventListeners=new j3(this),this._intersectionObserver=y3(r=>this._intersectionManager(r)),this._engine.dispatchEvent(st.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&xe(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!xe(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,p)=>{if(!xe(this))return;const y=this.retina.pixelRatio,h={x:d.x*y,y:d.y*y},x=this.particles.quadTree.queryCircle(h,p*y);t(f,x)},r=f=>{if(!xe(this))return;const d=f,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,p,1)},o=()=>{xe(this)&&(u=!0,c=!1)},s=()=>{xe(this)&&(c=!0)},a=f=>{if(xe(this)){if(u&&!c){const d=f,p=1;let y=d.touches[d.touches.length-p];if(!y&&(y=d.changedTouches[d.changedTouches.length-p],!y))return;const h=this.canvas.element,x=h?h.getBoundingClientRect():void 0,m=0,g={x:y.clientX-(x?x.left:m),y:y.clientY-(x?x.top:m)};i(f,g,Math.max(y.radiusX,y.radiusY))}u=!1,c=!1}},l=()=>{xe(this)&&(u=!1,c=!1)};let u=!1,c=!1;this._clickHandlers.set("click",r),this._clickHandlers.set("touchstart",o),this._clickHandlers.set("touchmove",s),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",l);for(const[f,d]of this._clickHandlers)n.addEventListener(f,d)}addLifeTime(t){this._lifeTime+=t}addPath(t,n,i=!1){return!xe(this)||!i&&this.pathGenerators.has(t)?!1:(this.pathGenerators.set(t,n),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var t;if(xe(this)){for(const[n,i]of this._clickHandlers)(t=this.interactivity.element)==null||t.removeEventListener(n,i);this._clickHandlers.clear()}}destroy(t=!0){var n,i;if(xe(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const r of this.effectDrawers.values())(n=r.destroy)==null||n.call(r,this);for(const r of this.shapeDrawers.values())(i=r.destroy)==null||i.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const r=this._engine.items,o=r.findIndex(a=>a===this);o>=0&&r.splice(o,1)}this._engine.dispatchEvent(st.containerDestroyed,{container:this})}}draw(t){if(!xe(this))return;let n=t;const i=r=>{n&&(this._lastFrameTime=void 0,n=!1),this._nextFrame(r)};this._drawAnimationFrame=u3(r=>i(r))}async export(t,n={}){for(const i of this.plugins.values()){if(!i.export)continue;const r=await i.export(t,n);if(r.supported)return r.blob}gr().error(`${qt} - Export plugin with type ${t} not found`)}handleClickMode(t){var n;if(xe(this)){this.particles.handleClickMode(t);for(const i of this.plugins.values())(n=i.handleClickMode)==null||n.call(i,t)}}async init(){var f,d,p,y;if(!xe(this))return;const t=this._engine.getSupportedEffects();for(const h of t){const x=this._engine.getEffectDrawer(h);x&&this.effectDrawers.set(h,x)}const n=this._engine.getSupportedShapes();for(const h of n){const x=this._engine.getShapeDrawer(h);x&&this.shapeDrawers.set(h,x)}await this.particles.initPlugins(),this._options=Or(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Or(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[h,x]of i)this.plugins.set(h,x);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:r,duration:o,delay:s,fpsLimit:a,smooth:l}=this.actualOptions;this.zLayers=r,this._duration=F(o)*Ze,this._delay=F(s)*Ze,this._lifeTime=0;const u=120,c=0;this.fpsLimit=a>c?a:u,this._smooth=l;for(const h of this.effectDrawers.values())await((f=h.init)==null?void 0:f.call(h,this));for(const h of this.shapeDrawers.values())await((d=h.init)==null?void 0:d.call(h,this));for(const h of this.plugins.values())await((p=h.init)==null?void 0:p.call(h));this._engine.dispatchEvent(st.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const h of this.plugins.values())(y=h.particlesSetup)==null||y.call(h);this._engine.dispatchEvent(st.particlesSetup,{container:this})}async loadTheme(t){xe(this)&&(this._currentTheme=t,await this.refresh())}pause(){var t;if(xe(this)&&(this._drawAnimationFrame!==void 0&&(c3(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const n of this.plugins.values())(t=n.pause)==null||t.call(n);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(st.containerPaused,{container:this})}}play(t){if(!xe(this))return;const n=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const i of this.plugins.values())i.play&&i.play();this._engine.dispatchEvent(st.containerPlay,{container:this}),this.draw(n??!1)}async refresh(){if(xe(this))return this.stop(),this.start()}async reset(t){if(xe(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=Or(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Or(this._engine,this,this._options),this.refresh()}async start(){!xe(this)||this.started||(await this.init(),this.started=!0,await new Promise(t=>{const n=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const r of this.plugins.values())await((i=r.start)==null?void 0:i.call(r));this._engine.dispatchEvent(st.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void n(),this._delay)}))}stop(){var t;if(!(!xe(this)||!this.started)){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);for(const n of this.plugins.values())(t=n.stop)==null||t.call(n);for(const n of this.plugins.keys())this.plugins.delete(n);this._sourceOptions=this._options,this._engine.dispatchEvent(st.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===t?!1:(this._responsiveMaxWidth=t,!0)}};class BI{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(n)}dispatchEvent(t,n){const i=this._listeners.get(t);i==null||i.forEach(r=>r(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const i=this._listeners.get(t);if(!i)return;const r=i.length,o=i.indexOf(n);if(o<0)return;const a=1;r===a?this._listeners.delete(t):i.splice(o,a)}}async function bf(e,t,n,i=!1){let r=t.get(e);return(!r||i)&&(r=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,r)),r}async function UI(e){const t=sn(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(gr().error(`${qt} ${n.status} while retrieving config file`),e.fallback)}const ik="true",Jv="false",Sf="canvas",WI=e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===Sf)t=e,t.dataset[Zi]||(t.dataset[Zi]=Jv);else{const i=e.getElementsByTagName(Sf);i.length?(t=i[0],t.dataset[Zi]=Jv):(t=document.createElement(Sf),t.dataset[Zi]=ik,e.appendChild(t))}const n="100%";return t.style.width||(t.style.width=n),t.style.height||(t.style.height=n),t},HI=(e,t)=>{let n=t??document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,n.dataset[Zi]=ik,document.body.append(n),n)};class GI{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new BI,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,i]of this._configs)t[n]=i;return t}get items(){return this._domArray}get version(){return"3.6.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent(st.configAdded,{data:{name:n,config:t}})}async addEffect(t,n,i=!0){Zt(t,r=>{this.getEffectDrawer(r)||this.effectDrawers.set(r,n)}),await this.refresh(i)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,i=!0){this._initializers.interactors.set(t,n),await this.refresh(i)}async addMover(t,n,i=!0){this._initializers.movers.set(t,n),await this.refresh(i)}async addParticleUpdater(t,n,i=!0){this._initializers.updaters.set(t,n),await this.refresh(i)}async addPathGenerator(t,n,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(i)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,i=!1,r=!0){(i||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(r)}async addShape(t,n=!0){for(const i of t.validTypes)this.getShapeDrawer(i)||this.shapeDrawers.set(i,t);await this.refresh(n)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const n=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&n.set(i.id,await i.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return bf(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return bf(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return bf(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:n}=this,i=n[t];if(!i||i.destroyed){n.splice(t,1);return}return i}async load(t){var y;const i=t.id??((y=t.element)==null?void 0:y.id)??`tsparticles${Math.floor(ce()*1e4)}`,{index:r,url:o}=t,s=o?await UI({fallback:t.options,url:o,index:r}):t.options,a=sn(s,r),{items:l}=this,u=l.findIndex(h=>h.id.description===i),c=0,f=new VI(this,i,a);if(u>=c){const h=this.item(u),x=1,m=0,g=h?x:m;h&&!h.destroyed&&h.destroy(!1),l.splice(u,g,f)}else l.push(f);const d=HI(i,t.element),p=WI(d);return f.canvas.loadCanvas(p),await f.start(),f}loadOptions(t,n){this.plugins.forEach(i=>{var r;return(r=i.loadOptions)==null?void 0:r.call(i,t,n)})}loadParticlesOptions(t,n,...i){const r=this.updaters.get(t);r&&r.forEach(o=>{var s;return(s=o.loadOptions)==null?void 0:s.call(o,n,...i)})}async refresh(t=!0){t&&await Promise.all(this.items.map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const{items:n}=this;if(!n.length)throw new Error(`${qt} can only set click handlers after calling tsParticles.load()`);n.forEach(i=>i.addClickHandler(t))}}var Jr;(function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"})(Jr||(Jr={}));class KI{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Ro(i)}handleRangeColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.l!==void 0)return Ro({h:F(i.h),l:F(i.l),s:F(i.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,i=n.exec(t),r=4,o=1,s=10;return i?T3({a:i.length>r?FS(i[Jr.a]):o,h:parseInt(i[Jr.h],s),l:parseInt(i[Jr.l],s),s:parseInt(i[Jr.s],s)}):void 0}}var eo;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"})(eo||(eo={}));class qI{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return i}handleRangeColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return{r:F(i.r),g:F(i.g),b:F(i.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/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,i=n.exec(t),r=10;return i?{a:i.length>4?FS(i[eo.a]):1,b:parseInt(i[eo.b],r),g:parseInt(i[eo.g],r),r:parseInt(i[eo.r],r)}:void 0}}function QI(){const e=new qI,t=new KI;Fv(e),Fv(t);const n=new GI;return n.init(),n}class On{constructor(t){this.type=zo.external,this.container=t}}class fm{constructor(t){this.type=zo.particles,this.container=t}}var Vt;(function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"})(Vt||(Vt={}));var e0;(function(e){e.linear="linear",e.radial="radial",e.random="random"})(e0||(e0={}));var ar;(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-out-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"})(ar||(ar={}));const dm=QI();yr()||(window.tsParticles=dm);const YI=e=>{const t=e.id??"tsparticles";return k.useEffect(()=>{let n;return dm.load({id:t,url:e.url,options:e.options}).then(i=>{var r;n=i,(r=e.particlesLoaded)==null||r.call(e,i)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),C.jsx("div",{id:t,className:e.className})};async function XI(e){await e(dm)}const ih=.5,tr=0,an=1,t0=60,n0=0,ZI=.01;function JI(e){const t=e.initialPosition,{dx:n,dy:i}=lt(t,e.position),r=Math.abs(n),o=Math.abs(i),{maxDistance:s}=e.retina,a=s.horizontal,l=s.vertical;if(!a&&!l)return;const u=(a&&r>=a)??!1,c=(l&&o>=l)??!1;if((u||c)&&!e.misplaced)e.misplaced=!!a&&r>a||!!l&&o>l,a&&(e.velocity.x=e.velocity.y*ih-e.velocity.x),l&&(e.velocity.y=e.velocity.x*ih-e.velocity.y);else if((!a||rt.x&&d.x>tr)&&(d.x*=-ce()),l&&(f.yt.y&&d.y>tr)&&(d.y*=-ce())}}function eL(e,t,n,i,r,o){nL(e,o);const s=e.gravity,a=s!=null&&s.enable&&s.inverse?-an:an;r&&n&&(e.velocity.x+=r*o.factor/(t0*n)),s!=null&&s.enable&&n&&(e.velocity.y+=a*(s.acceleration*o.factor)/(t0*n));const l=e.moveDecay;e.velocity.multTo(l);const u=e.velocity.mult(n);s!=null&&s.enable&&i>tr&&(!s.inverse&&u.y>=tr&&u.y>=i||s.inverse&&u.y<=tr&&u.y<=-i)&&(u.y=a*i,n&&(e.velocity.y=u.y/n));const c=e.options.zIndex,f=(an-e.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=e;d.addTo(u),t.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function tL(e,t){const n=e.container;if(!e.spin)return;const i={x:e.spin.direction===Vt.clockwise?Math.cos:Math.sin,y:e.spin.direction===Vt.clockwise?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*i.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*i.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height),o=r*ih;e.spin.radius>o?(e.spin.radius=o,e.spin.acceleration*=-an):e.spin.radius=c?Vt.clockwise:Vt.counterClockwise,angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}const oL=2,sL=1,aL=1;class lL{init(t){const n=t.options,i=n.move.gravity;t.gravity={enable:i.enable,acceleration:F(i.acceleration),inverse:i.inverse},rL(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,n){var h,x;const i=t.options,r=i.move;if(!r.enable)return;const o=t.container,s=o.retina.pixelRatio;(h=t.retina).moveSpeed??(h.moveSpeed=F(r.speed)*s),(x=t.retina).moveDrift??(x.moveDrift=F(t.options.move.drift)*s);const a=iL(t),l=t.retina.moveSpeed*o.retina.reduceFactor,u=t.retina.moveDrift,c=kn(i.size.value)*s,f=r.size?t.getRadius()/c:sL,d=n.factor||aL,p=l*f*a*d/oL,y=t.retina.maxSpeed??o.retina.maxSpeed;r.spin.enable?tL(t,p):eL(t,r,p,y,u,n),JI(t)}}async function uL(e,t=!0){await e.addMover("base",()=>Promise.resolve(new lL),t)}const cL=2,fL=Math.PI*cL,dL=0,i0={x:0,y:0};function hL(e){const{context:t,particle:n,radius:i}=e;n.circleRange||(n.circleRange={min:dL,max:fL});const r=n.circleRange;t.arc(i0.x,i0.y,i,r.min,r.max,!1)}const pL=12,mL=360,r0=0;class gL{constructor(){this.validTypes=["circle"]}draw(t){hL(t)}getSidesCount(){return pL}particleInit(t,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:mL,min:r0};n.circleRange=Zr(r)?{min:Si(r.min),max:Si(r.max)}:{min:r0,max:Si(r)}}}async function yL(e,t=!0){await e.addShape(new gL,t)}class vL{constructor(t){this.container=t}init(t){const n=ta(t.options.color,t.id,t.options.reduceDuplicates);n&&(t.color=QS(n,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:n,s:i,l:r}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&((o==null?void 0:o.h.value)!==void 0&&n.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&r.enable)}update(t,n){YS(t.color,n)}}async function xL(e,t=!0){await e.addParticleUpdater("color",n=>Promise.resolve(new vL(n)),t)}class wL{constructor(t){this.container=t}init(t){const n=t.options.opacity,i=1;t.opacity=US(n,i);const r=n.animation;r.enable&&(t.opacity.velocity=F(r.speed)/hi*this.container.retina.reduceFactor,r.sync||(t.opacity.velocity*=ce()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,n){!this.isEnabled(t)||!t.opacity||am(t,t.opacity,!0,t.options.opacity.animation.destroy,n)}}async function bL(e,t=!0){await e.addParticleUpdater("opacity",n=>Promise.resolve(new wL(n)),t)}const cu=0,po=0;function SL(e){if(e.outMode!==ze.bounce&&e.outMode!==ze.split||e.direction!==G.left&&e.direction!==G.right)return;e.bounds.righte.canvasSize.width&&e.direction===G.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let n=!1;if(e.direction===G.right&&e.bounds.right>=e.canvasSize.width&&t>cu||e.direction===G.left&&e.bounds.left<=po&&t=e.canvasSize.width&&e.direction===G.right?e.particle.position.x=e.canvasSize.width-i:e.bounds.left<=po&&e.direction===G.left&&(e.particle.position.x=i),e.outMode===ze.split&&e.particle.destroy()}function kL(e){if(e.outMode!==ze.bounce&&e.outMode!==ze.split||e.direction!==G.bottom&&e.direction!==G.top)return;e.bounds.bottome.canvasSize.height&&e.direction===G.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let n=!1;if(e.direction===G.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>cu||e.direction===G.top&&e.bounds.top<=po&&t=e.canvasSize.height&&e.direction===G.bottom?e.particle.position.y=e.canvasSize.height-i:e.bounds.top<=po&&e.direction===G.top&&(e.particle.position.y=i),e.outMode===ze.split&&e.particle.destroy()}class CL{constructor(t){this.container=t,this.modes=[ze.bounce,ze.split]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;let s=!1;for(const d of o.plugins.values())if(d.particleBounce!==void 0&&(s=d.particleBounce(t,i,n)),s)break;if(s)return;const a=t.getPosition(),l=t.offset,u=t.getRadius(),c=wa(a,u),f=o.canvas.size;SL({particle:t,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u}),kL({particle:t,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u})}}const Ka=0;class PL{constructor(t){this.container=t,this.modes=[ze.destroy]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case fn.normal:case fn.outside:if(rm(t.position,o.canvas.size,Fe.origin,t.getRadius(),n))return;break;case fn.inside:{const{dx:s,dy:a}=lt(t.position,t.moveCenter),{x:l,y:u}=t.velocity;if(lt.moveCenter.radius||ut.moveCenter.radius||l>=Ka&&s<-t.moveCenter.radius||u>=Ka&&a<-t.moveCenter.radius)return;break}}o.particles.remove(t,t.group,!0)}}const qa=0;class _L{constructor(t){this.container=t,this.modes=[ze.none]}update(t,n,i,r){if(!this.modes.includes(r)||((t.options.move.distance.horizontal&&(n===G.left||n===G.right))??(t.options.move.distance.vertical&&(n===G.top||n===G.bottom))))return;const o=t.options.move.gravity,s=this.container,a=s.canvas.size,l=t.getRadius();if(o.enable){const u=t.position;(!o.inverse&&u.y>a.height+l&&n===G.bottom||o.inverse&&u.y<-l&&n===G.top)&&s.particles.remove(t)}else{if(t.velocity.y>qa&&t.position.y<=a.height+l||t.velocity.y=-l||t.velocity.x>qa&&t.position.x<=a.width+l||t.velocity.x=-l)return;rm(t.position,s.canvas.size,Fe.origin,l,n)||s.particles.remove(t)}}}const Qa=0,Ya=0;class TL{constructor(t){this.container=t,this.modes=[ze.out]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case fn.inside:{const{x:s,y:a}=t.velocity,l=Fe.origin;l.length=t.moveCenter.radius,l.angle=t.velocity.angle+Math.PI,l.addTo(Fe.create(t.moveCenter));const{dx:u,dy:c}=lt(t.position,l);if(s<=Qa&&u>=Ya||a<=Qa&&c>=Ya||s>=Qa&&u<=Ya||a>=Qa&&c<=Ya)return;t.position.x=Math.floor(kt({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(kt({min:0,max:o.canvas.size.height}));const{dx:f,dy:d}=lt(t.position,t.moveCenter);t.direction=Math.atan2(-d,-f),t.velocity.angle=t.direction;break}default:{if(rm(t.position,o.canvas.size,Fe.origin,t.getRadius(),n))return;switch(t.outType){case fn.outside:{t.position.x=Math.floor(kt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(kt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:s,dy:a}=lt(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(a,s),t.velocity.angle=t.direction);break}case fn.normal:{const s=t.options.move.warp,a=o.canvas.size,l={bottom:a.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:a.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},u=t.getRadius(),c=wa(t.position,u);n===G.right&&c.left>a.width+t.offset.x?(t.position.x=l.left,t.initialPosition.x=t.position.x,s||(t.position.y=ce()*a.height,t.initialPosition.y=t.position.y)):n===G.left&&c.right<-t.offset.x&&(t.position.x=l.right,t.initialPosition.x=t.position.x,s||(t.position.y=ce()*a.height,t.initialPosition.y=t.position.y)),n===G.bottom&&c.top>a.height+t.offset.y?(s||(t.position.x=ce()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.top,t.initialPosition.y=t.position.y):n===G.top&&c.bottom<-t.offset.y&&(s||(t.position.x=ce()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.bottom,t.initialPosition.y=t.position.y);break}}break}}}}const ML=(e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t;class EL{constructor(t){this._addUpdaterIfMissing=(n,i,r)=>{const o=n.options.move.outModes;!this.updaters.has(i)&&ML(o,i)&&this.updaters.set(i,r(this.container))},this._updateOutMode=(n,i,r,o)=>{for(const s of this.updaters.values())s.update(n,o,i,r)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,ze.bounce,n=>new CL(n)),this._addUpdaterIfMissing(t,ze.out,n=>new TL(n)),this._addUpdaterIfMissing(t,ze.destroy,n=>new PL(n)),this._addUpdaterIfMissing(t,ze.none,n=>new _L(n))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,n){const i=t.options.move.outModes;this._updateOutMode(t,n,i.bottom??i.default,G.bottom),this._updateOutMode(t,n,i.left??i.default,G.left),this._updateOutMode(t,n,i.right??i.default,G.right),this._updateOutMode(t,n,i.top??i.default,G.top)}}async function RL(e,t=!0){await e.addParticleUpdater("outModes",n=>Promise.resolve(new EL(n)),t)}const Fi=0;class OL{init(t){const n=t.container,i=t.options.size,r=i.animation;r.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/hi*n.retina.reduceFactor,r.sync||(t.size.velocity*=ce()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??Fi)<=Fi||(t.size.maxLoops??Fi)>Fi&&(t.size.loops??Fi)<(t.size.maxLoops??Fi))}reset(t){t.size.loops=Fi}update(t,n){this.isEnabled(t)&&am(t,t.size,!0,t.options.size.animation.destroy,n)}}async function AL(e,t=!0){await e.addParticleUpdater("size",()=>Promise.resolve(new OL),t)}async function zL(e,t=!0){await uL(e,!1),await yL(e,!1),await xL(e,!1),await bL(e,!1),await RL(e,!1),await AL(e,!1),await e.refresh(t)}async function IL(){pf(ar.easeInQuad,e=>e**2),pf(ar.easeOutQuad,e=>1-(1-e)**2),pf(ar.easeInOutQuad,e=>e<.5?2*e**2:1-(-2*e+2)**2/2),await Promise.resolve()}function LL(e,t){const{context:n,opacity:i}=e,r=.5,o=n.globalAlpha;if(!t)return;const s=t.width,a=s*r;n.globalAlpha=i,n.drawImage(t,-a,-a,s,s),n.globalAlpha=o}const kf='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',o0=0;class DL{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[t,n]of this._emojiShapeDict)n instanceof ImageBitmap&&(n==null||n.close()),this._emojiShapeDict.delete(t)}draw(t){const n=t.particle.emojiDataKey;if(!n)return;const i=this._emojiShapeDict.get(n);i&&LL(t,i)}async init(t){const n=t.actualOptions,{validTypes:i}=this;if(!i.find(s=>_e(s,n.particles.shape.type)))return;const r=[$v(kf)],o=i.map(s=>n.particles.shape.options[s]).find(s=>!!s);o&&Zt(o,s=>{s.font&&r.push($v(s.font))}),await Promise.all(r)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,n){const r=n.shapeData;if(!(r!=null&&r.value))return;const o=sn(r.value,n.randomIndexData);if(!o)return;const s=typeof o=="string"?{font:r.font??kf,padding:r.padding??o0,value:o}:{font:kf,padding:o0,...r,...o},a=s.font,l=s.value,u=`${l}_${a}`;if(this._emojiShapeDict.has(u)){n.emojiDataKey=u;return}const c=s.padding*2,f=kn(n.size.value),d=f+c,p=d*2;let y;if(typeof OffscreenCanvas<"u"){const h=new OffscreenCanvas(p,p),x=h.getContext("2d");if(!x)return;x.font=`400 ${f*2}px ${a}`,x.textBaseline="middle",x.textAlign="center",x.fillText(l,d,d),y=h.transferToImageBitmap()}else{const h=document.createElement("canvas");h.width=p,h.height=p;const x=h.getContext("2d");if(!x)return;x.font=`400 ${f*2}px ${a}`,x.textBaseline="middle",x.textAlign="center",x.fillText(l,d,d),y=h}this._emojiShapeDict.set(u,y),n.emojiDataKey=u}}async function $L(e,t=!0){await e.addShape(new DL,t)}const FL=1,jL=1,rk=0;function ok(e,t,n,i,r){const o=e.actualOptions.interactivity.modes.attract;if(!o)return;const s=e.particles.quadTree.query(i,r);for(const a of s){const{dx:l,dy:u,distance:c}=lt(a.position,t),f=o.speed*o.factor,d=Qt($S(o.easing)(jL-c/n)*f,FL,o.maxSpeed),p=Fe.create(c?l/c*d:f,c?u/c*d:f);a.position.subFrom(p)}}function NL(e,t){e.attract||(e.attract={particles:[]});const{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count===e.particles.count&&(n.finish=!0)),n.clicking){const i=e.interactivity.mouse.clickPosition,r=e.retina.attractModeDistance;if(!r||rt(o))}else n.clicking===!1&&(n.particles=[])}function VL(e,t){const n=e.interactivity.mouse.position,i=e.retina.attractModeDistance;!i||it(r))}class BL{constructor(){this.distance=200,this.duration=.4,this.easing=ar.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed),t.speed!==void 0&&(this.speed=t.speed))}}const rs="attract";let UL=class extends On{constructor(t,n){super(n),this._engine=t,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.attract;if(!(!o||i!==rs)){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const s of n.attract.particles)this.isEnabled(s)&&s.velocity.setTo(s.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},o.duration*Ze)}}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.attract;n&&(t.retina.attractModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===pr,r=n.interactivity.events,{enable:o,mode:s}=r.onHover,{enable:a,mode:l}=r.onClick;i&&o&&_e(rs,s)?VL(this.container,u=>this.isEnabled(u)):a&&_e(rs,l)&&NL(this.container,u=>this.isEnabled(u))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events;if((!r.position||!o.onHover.enable)&&(!r.clickPosition||!o.onClick.enable))return!1;const s=o.onHover.mode,a=o.onClick.mode;return _e(rs,s)||_e(rs,a)}loadModeOptions(t,...n){t.attract||(t.attract=new BL);for(const i of n)t.attract.load(i==null?void 0:i.attract)}reset(){}};async function WL(e,t=!0){await e.addInteractor("externalAttract",n=>Promise.resolve(new UL(e,n)),t)}const HL=2,Sl=.5,GL=Math.PI*Sl,s0=2,sk=10,KL=0;function ak(e,t,n,i,r){const o=e.particles.quadTree.query(i,r);for(const s of o)i instanceof et?VS(Jd(s),{position:t,radius:n,mass:n**HL*GL,velocity:Fe.origin,factor:Fe.origin}):i instanceof hn&&S3(s,wa(t,n))}function qL(e,t,n,i){const r=document.querySelectorAll(t);r.length&&r.forEach(o=>{const s=o,a=e.retina.pixelRatio,l={x:(s.offsetLeft+s.offsetWidth*Sl)*a,y:(s.offsetTop+s.offsetHeight*Sl)*a},u=s.offsetWidth*Sl*a,c=sk*a,f=n.type===Ao.circle?new et(l.x,l.y,u+c):new hn(s.offsetLeft*a-c,s.offsetTop*a-c,s.offsetWidth*a+c*s0,s.offsetHeight*a+c*s0);i(l,u,f)})}function QL(e,t,n,i){sm(n,t,(r,o)=>qL(e,r,o,(s,a,l)=>ak(e,s,a,l,i)))}function YL(e,t){const n=e.retina.pixelRatio,i=sk*n,r=e.interactivity.mouse.position,o=e.retina.bounceModeDistance;!o||othis.isEnabled(l)):QL(this.container,a,Xa,l=>this.isEnabled(l))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv;return!!r.position&&o.onHover.enable&&_e(Xa,o.onHover.mode)||om(Xa,s)}loadModeOptions(t,...n){t.bounce||(t.bounce=new XL);for(const i of n)t.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function JL(e,t=!0){await e.addInteractor("externalBounce",n=>Promise.resolve(new ZL(n)),t)}class lk{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!O(t)){if(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.mix!==void 0&&(this.mix=t.mix),t.opacity!==void 0&&(this.opacity=t.opacity),t.color!==void 0){const n=Rn(this.color)?void 0:this.color;this.color=Zt(t.color,i=>it.create(n,i))}t.size!==void 0&&(this.size=t.size)}}}class e4 extends lk{constructor(){super(),this.selectors=[]}load(t){super.load(t),!O(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class t4 extends lk{load(t){super.load(t),!O(t)&&(this.divs=Zt(t.divs,n=>{const i=new e4;return i.load(n),i}))}}var vn;(function(e){e.color="color",e.opacity="opacity",e.size="size"})(vn||(vn={}));function a0(e,t,n,i){if(t>=n){const r=e+(t-n)*i;return Qt(r,e,t)}else if(t{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,o=i.interactivity.modes.bubble;if(!o||!r)return;n.bubble||(n.bubble={});const s=n.retina.bubbleModeDistance;if(!s||sthis.isEnabled(c)),{bubble:l}=n;for(const c of a){if(!l.clicking)continue;c.bubble.inRange=!l.durationEnd;const f=c.getPosition(),d=_t(f,r),p=(new Date().getTime()-(n.interactivity.mouse.clickTime??n4))/Ze;p>o.duration&&(l.durationEnd=!0),p>o.duration*i4&&(l.clicking=!1,l.durationEnd=!1);const y={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:kn(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:vn.size};this._process(c,d,p,y);const h={bubbleObj:{optValue:o.opacity,value:c.bubble.opacity},particlesObj:{optValue:kn(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??l0},type:vn.opacity};this._process(c,d,p,h),!l.durationEnd&&d<=s?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||rthis.isEnabled(s));for(const s of o){s.bubble.inRange=!0;const a=s.getPosition(),l=_t(a,i),u=u0-l/r;l<=r?u>=o4&&n.interactivity.status===pr&&(this._hoverBubbleSize(s,u),this._hoverBubbleOpacity(s,u),this._hoverBubbleColor(s,u)):this.reset(s),n.interactivity.status===Xd&&this.reset(s)}},this._hoverBubbleColor=(n,i,r)=>{const o=this.container.actualOptions,s=r??o.interactivity.modes.bubble;if(s){if(!n.bubble.finalColor){const a=s.color;if(!a)return;const l=sn(a);n.bubble.finalColor=ta(l)}if(n.bubble.finalColor)if(s.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?GS(lm(a,n.bubble.finalColor,u0-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const o=this.container,s=o.actualOptions,a=(r==null?void 0:r.opacity)??((f=s.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??l0,c=a0(u,a,kn(l),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const o=this.container,s=r!=null&&r.size?r.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(s===void 0)return;const a=kn(n.options.size.value)*o.retina.pixelRatio,l=n.size.value,u=a0(l,s,a,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,o)=>{const s=this.container,a=o.bubbleObj.optValue,l=s.actualOptions,u=l.interactivity.modes.bubble;if(!u||a===void 0)return;const c=u.duration,f=s.retina.bubbleModeDistance,d=o.particlesObj.optValue,p=o.bubbleObj.value,y=o.particlesObj.value??r4,h=o.type;if(!(!f||f{const o=this.container,s=document.querySelectorAll(i),a=o.actualOptions.interactivity.modes.bubble;!a||!s.length||s.forEach(l=>{const u=l,c=o.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth*Pf)*c,y:(u.offsetTop+u.offsetHeight*Pf)*c},d=u.offsetWidth*Pf*c,p=r.type===Ao.circle?new et(f.x,f.y,d):new hn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),y=o.particles.quadTree.query(p,h=>this.isEnabled(h));for(const h of y){if(!p.contains(h.getPosition()))continue;h.bubble.inRange=!0;const x=a.divs,m=NS(x,u);(!h.bubble.div||h.bubble.div!==u)&&(this.clear(h,n,!0),h.bubble.div=u),this._hoverBubbleSize(h,_f,m),this._hoverBubbleOpacity(h,_f,m),this._hoverBubbleColor(h,_f,m)}})},t.bubble||(t.bubble={}),this.handleClickMode=n=>{n===ji&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,n,i){t.bubble.inRange&&!i||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.bubble;n&&(t.retina.bubbleModeDistance=n.distance*t.retina.pixelRatio,n.size!==void 0&&(t.retina.bubbleModeSize=n.size*t.retina.pixelRatio))}interact(t){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,o=i.onClick,s=r.enable,a=r.mode,l=o.enable,u=o.mode,c=i.onDiv;s&&_e(ji,a)?this._hoverBubble():l&&_e(ji,u)?this._clickBubble():sm(ji,c,(f,d)=>this._singleSelectorHover(t,f,d))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,{onClick:s,onDiv:a,onHover:l}=o,u=om(ji,a);return u||l.enable&&r.position||s.enable&&r.clickPosition?_e(ji,l.mode)||_e(ji,s.mode)||u:!1}loadModeOptions(t,...n){t.bubble||(t.bubble=new t4);for(const i of n)t.bubble.load(i==null?void 0:i.bubble)}reset(t){t.bubble.inRange=!1}}async function a4(e,t=!0){await e.addInteractor("externalBubble",n=>Promise.resolve(new s4(n)),t)}class l4{constructor(){this.opacity=.5}load(t){O(t)||t.opacity!==void 0&&(this.opacity=t.opacity)}}class u4{constructor(){this.distance=80,this.links=new l4,this.radius=60}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links),t.radius!==void 0&&(this.radius=t.radius))}}const c0=0,f0=1,c4=0;function f4(e,t,n,i){const r=Math.floor(n.getRadius()/t.getRadius()),o=t.getFillColor(),s=n.getFillColor();if(!o||!s)return;const a=t.getPosition(),l=n.getPosition(),u=lm(o,s,t.getRadius(),n.getRadius()),c=e.createLinearGradient(a.x,a.y,l.x,l.y);return c.addColorStop(c0,na(o,i)),c.addColorStop(Qt(r,c0,f0),Gn(u,i)),c.addColorStop(f0,na(s,i)),c}function d4(e,t,n,i,r){Ms(e,i,r),e.lineWidth=t,e.strokeStyle=n,e.stroke()}function h4(e,t,n,i){const r=e.actualOptions,o=r.interactivity.modes.connect;if(o)return f4(t,n,i,o.links.opacity)}function p4(e,t,n){e.canvas.draw(i=>{const r=h4(e,i,t,n);if(!r)return;const o=t.getPosition(),s=n.getPosition();d4(i,t.retina.linksWidth??c4,r,o,s)})}const m4="connect",d0=0;class g4 extends On{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const i=t.interactivity.mouse.position,{connectModeDistance:r,connectModeRadius:o}=t.retina;if(!r||rthis.isEnabled(l));a.forEach((l,u)=>{const c=l.getPosition(),f=1;for(const d of a.slice(u+f)){const p=d.getPosition(),y=Math.abs(r),h=Math.abs(c.x-p.x),x=Math.abs(c.y-p.y);hPromise.resolve(new g4(n)),t)}class v4{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){O(t)||(t.blink!==void 0&&(this.blink=t.blink),t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.consent!==void 0&&(this.consent=t.consent),t.opacity!==void 0&&(this.opacity=t.opacity))}}class x4{constructor(){this.distance=100,this.links=new v4}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links))}}const w4=0;function b4(e,t,n,i,r,o){Ms(e,n,i),e.strokeStyle=Gn(r,o),e.lineWidth=t,e.stroke()}function S4(e,t,n,i,r){e.canvas.draw(o=>{const s=t.getPosition();b4(o,t.retina.linksWidth??w4,s,r,n,i)})}const k4="grab",C4=0,P4=0;class _4 extends On{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var a;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==pr)return;const r=t.interactivity.mouse.position;if(!r)return;const o=t.retina.grabModeDistance;if(!o||othis.isEnabled(l));for(const l of s){const u=l.getPosition(),c=_t(u,r);if(c>o)continue;const f=i.modes.grab.links,d=f.opacity,p=d-c*d/o;if(p<=P4)continue;const y=f.color??((a=l.options.links)==null?void 0:a.color);if(!t.particles.grabLineColor&&y){const x=i.modes.grab.links;t.particles.grabLineColor=qS(y,x.blink,x.consent)}const h=th(l,void 0,t.particles.grabLineColor);h&&S4(t,l,h,p,r)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&_e(k4,r.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new x4);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}async function T4(e,t=!0){await e.addInteractor("externalGrab",n=>Promise.resolve(new _4(n)),t)}const M4="pause";class E4 extends On{constructor(t){super(t),this.handleClickMode=n=>{if(n!==M4)return;const i=this.container;i.animationStatus?i.pause():i.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function R4(e,t=!0){await e.addInteractor("externalPause",n=>Promise.resolve(new E4(n)),t)}class O4{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(O(t))return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=t.quantity;n!==void 0&&(this.quantity=Y(n))}}const A4="push",z4=0;class I4 extends On{constructor(t){super(t),this.handleClickMode=n=>{if(n!==A4)return;const i=this.container,r=i.actualOptions,o=r.interactivity.modes.push;if(!o)return;const s=F(o.quantity);if(s<=z4)return;const a=mc([void 0,...o.groups]),l=a!==void 0?i.actualOptions.particles.groups[a]:void 0;i.particles.push(s,i.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.push||(t.push=new O4);for(const i of n)t.push.load(i==null?void 0:i.push)}reset(){}}async function L4(e,t=!0){await e.addInteractor("externalPush",n=>Promise.resolve(new I4(n)),t)}class D4{constructor(){this.quantity=2}load(t){if(O(t))return;const n=t.quantity;n!==void 0&&(this.quantity=Y(n))}}const $4="remove";class F4 extends On{constructor(t){super(t),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!==$4)return;const o=F(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(o)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.remove||(t.remove=new D4);for(const i of n)t.remove.load(i==null?void 0:i.remove)}reset(){}}async function j4(e,t=!0){await e.addInteractor("externalRemove",n=>Promise.resolve(new F4(n)),t)}class uk{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=ar.easeOutQuad}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.speed!==void 0&&(this.speed=t.speed),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed))}}class N4 extends uk{constructor(){super(),this.selectors=[]}load(t){super.load(t),!O(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class V4 extends uk{load(t){super.load(t),!O(t)&&(this.divs=Zt(t.divs,n=>{const i=new N4;return i.load(n),i}))}}const Ni="repulse",B4=0,U4=6,W4=3,H4=2,G4=0,K4=0,q4=1,Tf=.5;class Q4 extends On{constructor(t,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const o=i.repulse??{particles:[]};if(o.finish||(o.count||(o.count=0),o.count++,o.count===i.particles.count&&(o.finish=!0)),o.clicking){const s=i.retina.repulseModeDistance;if(!s||sthis.isEnabled(f));for(const f of c){const{dx:d,dy:p,distance:y}=lt(l,f.position),h=y**H4,x=r.speed,m=-a*x/h;if(h<=a){o.particles.push(f);const g=Fe.create(d,p);g.length=m,f.velocity.setTo(g)}}}else if(o.clicking===!1){for(const s of o.particles)s.velocity.setTo(s.initialVelocity);o.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,o=i.retina.repulseModeDistance;!o||o{const a=this.container,l=a.particles.quadTree.query(o,x=>this.isEnabled(x)),u=a.actualOptions.interactivity.modes.repulse;if(!u)return;const{easing:c,speed:f,factor:d,maxSpeed:p}=u,y=$S(c),h=((s==null?void 0:s.speed)??f)*d;for(const x of l){const{dx:m,dy:g,distance:v}=lt(x.position,i),w=Qt(y(q4-v/r)*h,K4,p),b=Fe.create(v?m/v*w:h,v?g/v*w:h);x.position.addTo(b)}},this._singleSelectorRepulse=(i,r)=>{const o=this.container,s=o.actualOptions.interactivity.modes.repulse;if(!s)return;const a=document.querySelectorAll(i);a.length&&a.forEach(l=>{const u=l,c=o.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth*Tf)*c,y:(u.offsetTop+u.offsetHeight*Tf)*c},d=u.offsetWidth*Tf*c,p=r.type===Ao.circle?new et(f.x,f.y,d):new hn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),y=s.divs,h=NS(y,u);this._processRepulse(f,d,p,h)})},this._engine=t,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.repulse;if(!o||i!==Ni)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},o.duration*Ze)}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.repulse;n&&(t.retina.repulseModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===pr,r=n.interactivity.events,o=r.onHover,s=o.enable,a=o.mode,l=r.onClick,u=l.enable,c=l.mode,f=r.onDiv;i&&s&&_e(Ni,a)?this._hoverRepulse():u&&_e(Ni,c)?this._clickRepulse():sm(Ni,f,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv,a=o.onHover,l=o.onClick,u=om(Ni,s);if(!(u||a.enable&&r.position||l.enable&&r.clickPosition))return!1;const c=a.mode,f=l.mode;return _e(Ni,c)||_e(Ni,f)||u}loadModeOptions(t,...n){t.repulse||(t.repulse=new V4);for(const i of n)t.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function Y4(e,t=!0){await e.addInteractor("externalRepulse",n=>Promise.resolve(new Q4(e,n)),t)}class X4{constructor(){this.factor=3,this.radius=200}load(t){O(t)||(t.factor!==void 0&&(this.factor=t.factor),t.radius!==void 0&&(this.radius=t.radius))}}const Z4="slow",J4=0;class eD extends On{constructor(t){super(t)}clear(t,n,i){t.slow.inRange&&!i||(t.slow.factor=1)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.slow;n&&(t.retina.slowModeRadius=n.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&_e(Z4,r.onHover.mode)}loadModeOptions(t,...n){t.slow||(t.slow=new X4);for(const i of n)t.slow.load(i==null?void 0:i.slow)}reset(t){t.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,o=n.retina.slowModeRadius,s=i.interactivity.modes.slow;if(!s||!o||oo||(f.inRange=!0,f.factor=u/c)}}async function tD(e,t=!0){await e.addInteractor("externalSlow",n=>Promise.resolve(new eD(n)),t)}const nD=0,iD=1,rD=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function oD(e,t,n){const{svgData:i}=e;if(!i)return"";const r=na(t,n);if(i.includes("fill"))return i.replace(rD,()=>r);const o=i.indexOf(">");return`${i.substring(nD,o)} fill="${r}"${i.substring(o)}`}async function yc(e){return new Promise(t=>{e.loading=!0;const n=new Image;e.element=n,n.addEventListener("load",()=>{e.loading=!1,t()}),n.addEventListener("error",()=>{e.element=void 0,e.error=!0,e.loading=!1,gr().error(`${qt} loading image: ${e.source}`),t()}),n.src=e.source})}async function sD(e){if(e.type!=="svg"){await yc(e);return}e.loading=!0;const t=await fetch(e.source);t.ok?e.svgData=await t.text():(gr().error(`${qt} Image not found`),e.error=!0),e.loading=!1}function aD(e,t,n,i){var s;const r=oD(e,n,((s=i.opacity)==null?void 0:s.value)??iD),o={color:n,gif:t.gif,data:{...e,svgData:r},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(a=>{const l=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{o.loaded=!0,o.element=f,a(o),u.revokeObjectURL(c)});const d=async()=>{u.revokeObjectURL(c);const p={...e,error:!1,loading:!0};await yc(p),o.loaded=!0,o.element=p.element,a(o)};f.addEventListener("error",()=>void d()),f.src=c})}const Mf=[0,4,2,1],h0=[8,8,4,2];class lD{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const n=this.data.slice(this.pos,this.pos+t);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",n=0;const i=0,r=0;do{n=this.data[this.pos++];for(let o=n;--o>=i;t+=String.fromCharCode(this.data[this.pos++]));}while(n!==r);return t}readSubBlocksBin(){let t=this.data[this.pos],n=0;const i=0,r=1;for(let s=0;t!==i;s+=t+r,t=this.data[this.pos+s])n+=t;const o=new Uint8Array(n);t=this.data[this.pos++];for(let s=0;t!==i;t=this.data[this.pos++])for(let a=t;--a>=i;o[s++]=this.data[this.pos++]);return o}skipSubBlocks(){for(const t=1,n=0;this.data[this.pos]!==n;this.pos+=this.data[this.pos]+t);this.pos++}}var nn;(function(e){e[e.Replace=0]="Replace",e[e.Combine=1]="Combine",e[e.RestoreBackground=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"})(nn||(nn={}));var Nn;(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"})(Nn||(Nn={}));const ft={x:0,y:0},uD=0,p0=.5,cD=0,m0=0,rh=0;function ck(e,t){const n=[];for(let i=0;i>>5,r.disposalMethod=(o&28)>>>2,r.userInputDelayFlag=(o&2)===2;const s=(o&1)===1;r.delayTime=e.nextTwoBytes()*10;const a=e.nextByte();s&&i(a),e.pos++;break}case Nn.ApplicationExtension:{e.pos++;const r={identifier:e.getString(8),authenticationCode:e.getString(3),data:e.readSubBlocksBin()};t.applicationExtensions.push(r);break}case Nn.CommentExtension:{t.comments.push([n(!1),e.readSubBlocks()]);break}case Nn.PlainTextExtension:{if(t.globalColorTable.length===0)throw new 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}}async function dD(e,t,n,i,r,o){const s=t.frames[i(!0)];s.left=e.nextTwoBytes(),s.top=e.nextTwoBytes(),s.width=e.nextTwoBytes(),s.height=e.nextTwoBytes();const a=e.nextByte(),l=(a&128)===128,u=(a&64)===64;s.sortFlag=(a&32)===32,s.reserved=(a&24)>>>3;const c=1<<(a&7)+1;l&&(s.localColorTable=ck(e,c));const f=m=>{const{r:g,g:v,b:w}=(l?s.localColorTable:t.globalColorTable)[m];return m!==r(null)?{r:g,g:v,b:w,a:255}:{r:g,g:v,b:w,a:n?~~((g+v+w)/3):0}},d=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(m){if(m instanceof DOMException&&m.name==="IndexSizeError")return null;throw m}})();if(d==null)throw new EvalError("GIF frame size is to large");const p=e.nextByte(),y=e.readSubBlocksBin(),h=1<{const v=m>>>3,w=m&7;return(y[v]+(y[v+1]<<8)+(y[v+2]<<16)&(1<>>w};if(u){for(let m=0,g=p+1,v=0,w=[[0]],b=0;b<4;b++)if(Mf[b]=w.length?w.push(w[A].concat(w[A][0])):A!==h&&w.push(w[A].concat(w[m][0]));for(const T of w[m]){const{r:I,g:z,b:V,a:$}=f(T);d.data.set([I,z,V,$],Mf[b]*s.width+h0[b]*P+S%(s.width*4)),S+=4}w.length===1<=s.height&&(_=!0))}}s.image=d,s.bitmap=await createImageBitmap(d)}else{let m=0,g=p+1,v=0,w=-4,b=!1;const S=[[0]];for(;!b;){const P=m;if(m=x(v,g),v+=g,m===h){g=p+1,S.length=h+2;for(let _=0;_=S.length?S.push(S[P].concat(S[P][0])):P!==h&&S.push(S[P].concat(S[m][0]));for(const _ of S[m]){const{r:A,g:T,b:I,a:z}=f(_);d.data.set([A,T,I,z],w+=4)}S.length>=1<>>4,o.sortFlag=(a&8)===8;const u=1<<(a&7)+1,c=s.nextByte();o.pixelAspectRatio=s.nextByte(),o.pixelAspectRatio!==0&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=ck(s,u));const f=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:p,b:y}=o.globalColorTable[c];f.data.set(l?[d,p,y,255]:[0,0,0,0]);for(let w=4;w(w&&(x=!0),h),v=w=>(w!=null&&(m=w),m);try{do x&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:nn.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),h++,m=-1,x=!1);while(!await hD(s,o,n,g,v,t));o.frames.length--;for(const w of o.frames){if(w.userInputDelayFlag&&w.delayTime===0){o.totalTime=1/0;break}o.totalTime+=w.delayTime}return o}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${h} "${w.message}"`):w}}function gD(e){const{context:t,radius:n,particle:i,delta:r}=e,o=i.image;if(!(o!=null&&o.gifData)||!o.gif)return;const s=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=s.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ft.x,ft.y,s.width,s.height),i.gifLoopCount===void 0&&(i.gifLoopCount=o.gifLoopCount??rh);let l=i.gifFrame??uD;const u={x:-o.gifData.width*p0,y:-o.gifData.height*p0},c=o.gifData.frames[l];if(i.gifTime===void 0&&(i.gifTime=cD),!!c.bitmap){switch(t.scale(n/o.gifData.width,n/o.gifData.height),c.disposalMethod){case nn.UndefinedA:case nn.UndefinedB:case nn.UndefinedC:case nn.UndefinedD:case nn.Replace:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height);break;case nn.Combine:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y);break;case nn.RestoreBackground:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height),o.gifData.globalColorTable.length?a.putImageData(o.gifData.backgroundImage,u.x,u.y):a.putImageData(o.gifData.frames[m0].image,u.x+c.left,u.y+c.top);break;case nn.RestorePrevious:{const f=a.getImageData(ft.x,ft.y,s.width,s.height);a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height),a.putImageData(f,ft.x,ft.y)}break}if(i.gifTime+=r.value,i.gifTime>c.delayTime){if(i.gifTime-=c.delayTime,++l>=o.gifData.frames.length){if(--i.gifLoopCount<=rh)return;l=m0,a.clearRect(ft.x,ft.y,s.width,s.height)}i.gifFrame=l}t.scale(o.gifData.width/n,o.gifData.height/n)}}async function yD(e){if(e.type!=="gif"){await yc(e);return}e.loading=!0;try{e.gifData=await mD(e.source),e.gifLoopCount=pD(e.gifData)??rh,e.gifLoopCount||(e.gifLoopCount=1/0)}catch{e.error=!0}e.loading=!1}const vD=2,xD=1,wD=12,bD=1;class SD{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${qt} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??!1,src:n.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:n,radius:i,particle:r,opacity:o}=t,s=r.image,a=s==null?void 0:s.element;if(s){if(n.globalAlpha=o,s.gif&&s.gifData)gD(t);else if(a){const l=s.ratio,u={x:-i,y:-i},c=i*vD;n.drawImage(a,u.x,u.y,c,c/l)}n.globalAlpha=xD}}getSidesCount(){return wD}async init(t){const n=t.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=t.shapeData;if(!n)return;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(t)})}particleInit(t,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData;if(!r)return;const o=n.getFillColor(),s=i.find(l=>l.name===r.name||l.source===r.src);if(!s)return;const a=r.replaceColor??s.replaceColor;if(s.loading){setTimeout(()=>{this.particleInit(t,n)});return}(async()=>{let l;s.svgData&&o?l=await aD(s,r,o,n):l={color:o,data:s,element:s.element,gif:s.gif,gifData:s.gifData,gifLoopCount:s.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:s.ratio??bD,replaceColor:a,source:r.src},l.ratio||(l.ratio=1);const u=r.fill??n.shapeFill,c=r.close??n.shapeClose,f={image:l,fill:u,close:c};n.image=f.image,n.shapeFill=f.fill,n.shapeClose=f.close})()}}class kD{constructor(){this.src="",this.gif=!1}load(t){O(t)||(t.gif!==void 0&&(this.gif=t.gif),t.height!==void 0&&(this.height=t.height),t.name!==void 0&&(this.name=t.name),t.replaceColor!==void 0&&(this.replaceColor=t.replaceColor),t.src!==void 0&&(this.src=t.src),t.width!==void 0&&(this.width=t.width))}}class CD{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,n){if(!(n!=null&&n.preload))return;t.preload||(t.preload=[]);const i=t.preload;for(const r of n.preload){const o=i.find(s=>s.name===r.name||s.src===r.src);if(o)o.load(r);else{const s=new kD;s.load(r),i.push(s)}}}needsPlugin(){return!0}}const PD=3;function _D(e){e.loadImage||(e.loadImage=async t=>{if(!t.name&&!t.src)throw new Error(`${qt} no image source provided`);if(e.images||(e.images=[]),!e.images.find(n=>n.name===t.name||n.source===t.src))try{const n={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-PD),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};e.images.push(n);let i;t.gif?i=yD:i=t.replaceColor?sD:yc,await i(n)}catch{throw new Error(`${qt} ${t.name??t.src} not found`)}})}async function TD(e,t=!0){_D(e);const n=new CD(e);await e.addPlugin(n,t),await e.addShape(new SD(e),t)}class MD extends br{constructor(){super(),this.sync=!1}load(t){O(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class ED extends br{constructor(){super(),this.sync=!1}load(t){O(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class RD{constructor(){this.count=0,this.delay=new MD,this.duration=new ED}load(t){O(t)||(t.count!==void 0&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}const Ar=0,OD=-1,g0=0,y0=0;function AD(e,t,n){if(!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=t.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=Ar,i.time=Ar;else return;if(i.duration===OD||e.spawning||(r?i.time=Ar:i.time+=t.value,i.timeg0&&e.life.count--,e.life.count===g0){e.destroy();return}const o=Y(y0,n.width),s=Y(y0,n.width);e.position.x=kt(o),e.position.y=kt(s),e.spawning=!0,i.delayTime=Ar,i.time=Ar,e.reset();const a=e.options.life;a&&(i.delay=F(a.delay.value)*Ze,i.duration=F(a.duration.value)*Ze)}const Vi=0,v0=1,x0=-1;class zD{constructor(t){this.container=t}init(t){const n=this.container,i=t.options,r=i.life;r&&(t.life={delay:n.retina.reduceFactor?F(r.delay.value)*(r.delay.sync?v0:ce())/n.retina.reduceFactor*Ze:Vi,delayTime:Vi,duration:n.retina.reduceFactor?F(r.duration.value)*(r.duration.sync?v0:ce())/n.retina.reduceFactor*Ze:Vi,time:Vi,count:r.count},t.life.duration<=Vi&&(t.life.duration=x0),t.life.count<=Vi&&(t.life.count=x0),t.life&&(t.spawning=t.life.delay>Vi))}isEnabled(t){return!t.destroyed}loadOptions(t,...n){t.life||(t.life=new RD);for(const i of n)t.life.load(i==null?void 0:i.life)}update(t,n){!this.isEnabled(t)||!t.life||AD(t,n,this.container.canvas.size)}}async function ID(e,t=!0){await e.addParticleUpdater("life",async n=>Promise.resolve(new zD(n)),t)}function LD(e){const{context:t,particle:n,radius:i}=e,r=n.shapeData,o=0;t.moveTo(-i,o),t.lineTo(i,o),t.lineCap=(r==null?void 0:r.cap)??"butt"}const DD=1;class $D{constructor(){this.validTypes=["line"]}draw(t){LD(t)}getSidesCount(){return DD}}async function FD(e,t=!0){await e.addShape(new $D,t)}const w0=.5;class jD{init(){}isEnabled(t){return!yr()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const n=t.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(yr()||!r.enable)return;const o=r.force,s=n.interactivity.mouse.position;if(!s)return;const a=n.canvas.size,l={x:a.width*w0,y:a.height*w0},u=r.smooth,c=t.getRadius()/o,f={x:(s.x-l.x)*c,y:(s.y-l.y)*c},{offset:d}=t;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function ND(e,t=!0){await e.addMover("parallax",()=>Promise.resolve(new jD),t)}const b0=1e3,VD=1;class BD extends fm{constructor(t){super(t)}clear(){}init(){}interact(t){const n=this.container;t.attractDistance===void 0&&(t.attractDistance=F(t.options.move.attract.distance)*n.retina.pixelRatio);const i=t.attractDistance,r=t.getPosition(),o=n.particles.quadTree.queryCircle(r,i);for(const s of o){if(t===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;const a=s.getPosition(),{dx:l,dy:u}=lt(r,a),c=t.options.move.attract.rotate,f=l/(c.x*b0),d=u/(c.y*b0),p=s.size.value/t.size.value,y=VD/p;t.velocity.x-=f*p,t.velocity.y-=d*p,s.velocity.x+=f*y,s.velocity.y+=d*y}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function UD(e,t=!0){await e.addInteractor("particlesAttract",n=>Promise.resolve(new BD(n)),t)}const WD=.5,HD=10,GD=0;function S0(e,t,n,i,r,o){const s=Qt(e.options.collisions.absorb.speed*r.factor/HD,GD,i);e.size.value+=s*WD,n.size.value-=s,i<=o&&(n.size.value=0,n.destroy())}function KD(e,t,n,i){const r=e.getRadius(),o=t.getRadius();r===void 0&&o!==void 0?e.destroy():r!==void 0&&o===void 0?t.destroy():r!==void 0&&o!==void 0&&(r>=o?S0(e,r,t,o,n,i):S0(t,o,e,r,n,i))}const k0=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=F(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function fk(e,t){VS(Jd(e),Jd(t)),k0(e),k0(t)}function qD(e,t){!e.unbreakable&&!t.unbreakable&&fk(e,t),e.getRadius()===void 0&&t.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&t.getRadius()===void 0?t.destroy():e.getRadius()!==void 0&&t.getRadius()!==void 0&&(e.getRadius()>=t.getRadius()?t:e).destroy()}function QD(e,t,n,i){switch(e.options.collisions.mode){case fo.absorb:{KD(e,t,n,i);break}case fo.bounce:{fk(e,t);break}case fo.destroy:{qD(e,t);break}}}const YD=2;class XD extends fm{constructor(t){super(t)}clear(){}init(){}interact(t,n){if(t.destroyed||t.spawning)return;const i=this.container,r=t.getPosition(),o=t.getRadius(),s=i.particles.quadTree.queryCircle(r,o*YD);for(const a of s){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),u=a.getRadius();if(Math.abs(Math.round(r.z)-Math.round(l.z))>o+u)continue;const c=_t(r,l),f=o+u;c>f||QD(t,a,n,i.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function ZD(e,t=!0){await e.addInteractor("particlesCollisions",n=>Promise.resolve(new XD(n)),t)}const Ef=2;class JD extends et{constructor(t,n,i,r){super(t,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(t){const{width:n,height:i}=this.canvasSize,{x:r,y:o}=t;return super.contains(t)||super.contains({x:r-n,y:o})||super.contains({x:r-n,y:o-i})||super.contains({x:r,y:o-i})}intersects(t){if(super.intersects(t))return!0;const n=t,i=t,r={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(i.radius!==void 0){const o=new et(r.x,r.y,i.radius*Ef);return super.intersects(o)}else if(n.size!==void 0){const o=new hn(r.x,r.y,n.size.width*Ef,n.size.height*Ef);return super.intersects(o)}return!1}}class e${constructor(){this.blur=5,this.color=new it,this.color.value="#000",this.enable=!1}load(t){O(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=it.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable))}}class t${constructor(){this.enable=!1,this.frequency=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity))}}class n${constructor(){this.blink=!1,this.color=new it,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new e$,this.triangles=new t$,this.width=1,this.warp=!1}load(t){O(t)||(t.id!==void 0&&(this.id=t.id),t.blink!==void 0&&(this.blink=t.blink),this.color=it.create(this.color,t.color),t.consent!==void 0&&(this.consent=t.consent),t.distance!==void 0&&(this.distance=t.distance),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),t.width!==void 0&&(this.width=t.width),t.warp!==void 0&&(this.warp=t.warp))}}const C0=2,i$=1,Za={x:0,y:0},r$=0;function o$(e,t,n,i,r){const{dx:o,dy:s,distance:a}=lt(e,t);if(!r||a<=n)return a;const l={x:Math.abs(o),y:Math.abs(s)},u={x:Math.min(l.x,i.width-l.x),y:Math.min(l.y,i.height-l.y)};return Math.sqrt(u.x**C0+u.y**C0)}class s$ extends fm{constructor(t){super(t),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let o=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(o)return;const s=r.color;o=qS(s,r.blink,r.consent),r.id===void 0?i.particles.linksColor=o:i.particles.linksColors.set(r.id,o)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[];const n=t.getPosition(),i=this.container,r=i.canvas.size;if(n.xr.width||n.y>r.height)return;const o=t.options.links,s=o.opacity,a=t.retina.linksDistance??r$,l=o.warp;let u;l?u=new JD(n.x,n.y,a,r):u=new et(n.x,n.y,a);const c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(t===f||!(d!=null&&d.enable)||o.id!==d.id||f.spawning||f.destroyed||!f.links||t.links.some(x=>x.destination===f)||f.links.some(x=>x.destination===t))continue;const p=f.getPosition();if(p.xr.width||p.y>r.height)continue;const y=o$(n,p,a,r,l&&d.warp);if(y>a)continue;const h=(i$-y/a)*s;this._setColor(t),t.links.push({destination:f,opacity:h})}}isEnabled(t){var n;return!!((n=t.options.links)!=null&&n.enable)}loadParticlesOptions(t,...n){t.links||(t.links=new n$);for(const i of n)t.links.load(i==null?void 0:i.links)}reset(){}}async function a$(e,t=!0){await e.addInteractor("particlesLinks",async n=>Promise.resolve(new s$(n)),t)}function l$(e,t,n,i){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.lineTo(i.x,i.y),e.closePath()}function u$(e){let t=!1;const{begin:n,end:i,maxDistance:r,context:o,canvasSize:s,width:a,backgroundMask:l,colorLine:u,opacity:c,links:f}=e;if(_t(n,i)<=r)Ms(o,n,i),t=!0;else if(f.warp){let p,y;const h={x:i.x-s.width,y:i.y},x=lt(n,h);if(x.distance<=r){const m=n.y-x.dy/x.dx*n.x;p={x:0,y:m},y={x:s.width,y:m}}else{const m={x:i.x,y:i.y-s.height},g=lt(n,m);if(g.distance<=r){const w=-(n.y-g.dy/g.dx*n.x)/(g.dy/g.dx);p={x:w,y:0},y={x:w,y:s.height}}else{const v={x:i.x-s.width,y:i.y-s.height},w=lt(n,v);if(w.distance<=r){const b=n.y-w.dy/w.dx*n.x;p={x:-b/(w.dy/w.dx),y:b},y={x:p.x+s.width,y:p.y+s.height}}}}p&&y&&(Ms(o,n,p),Ms(o,i,y),t=!0)}if(!t)return;o.lineWidth=a,l.enable&&(o.globalCompositeOperation=l.composite),o.strokeStyle=Gn(u,c);const{shadow:d}=f;if(d.enable){const p=cn(d.color);p&&(o.shadowBlur=d.blur,o.shadowColor=Gn(p))}o.stroke()}function c$(e){const{context:t,pos1:n,pos2:i,pos3:r,backgroundMask:o,colorTriangle:s,opacityTriangle:a}=e;l$(t,n,i,r),o.enable&&(t.globalCompositeOperation=o.composite),t.fillStyle=Gn(s,a),t.fill()}function f$(e){return e.sort((t,n)=>t-n),e.join("_")}function P0(e,t){const n=f$(e.map(r=>r.id));let i=t.get(n);return i===void 0&&(i=ce(),t.set(n,i)),i}const _0=0,Rf=0,T0=0,d$=.5,h$=1;class p${constructor(t){this.container=t,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const o=this.container,s=o.actualOptions,a=i.destination,l=n.getPosition(),u=a.getPosition();let c=i.opacity;o.canvas.draw(f=>{var m;let d;const p=(m=n.options.twinkle)==null?void 0:m.lines;if(p!=null&&p.enable){const g=p.frequency,v=cn(p.color);ce(){const o=n.options.links;if(!(o!=null&&o.enable))return;const s=o.triangles;if(!s.enable)return;const a=this.container,l=a.actualOptions,u=i.destination,c=r.destination,f=s.opacity??(i.opacity+r.opacity)*d$;f<=_0||a.canvas.draw(d=>{const p=n.getPosition(),y=u.getPosition(),h=c.getPosition(),x=n.retina.linksDistance??T0;if(_t(p,y)>x||_t(h,y)>x||_t(h,p)>x)return;let m=cn(s.color);if(!m){const g=o.id!==void 0?a.particles.linksColors.get(o.id):a.particles.linksColor;m=th(n,u,g)}m&&c$({context:d,pos1:p,pos2:y,pos3:h,backgroundMask:l.backgroundMask,colorTriangle:m,opacityTriangle:f})})},this._drawTriangles=(n,i,r,o)=>{var l,u,c;const s=r.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const a=(c=s.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(s,f.destination);return s.options.links&&d<=s.options.links.frequency&&o.findIndex(y=>y.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(i,s,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>P0([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>P0([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,n){const{links:i,options:r}=n;if(!(i!=null&&i.length))return;const o=i.filter(s=>r.links&&(r.links.frequency>=h$||this._getLinkFrequency(n,s.destination)<=r.links.frequency));for(const s of o)this._drawTriangles(r,n,s,o),s.opacity>_0&&(n.retina.linksWidth??Rf)>Rf&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=t,{distance:r,width:o}=t.options.links;i.linksDistance=r*n,i.linksWidth=o*n}particleDestroyed(t){t.links=[]}}class m${constructor(){this.id="links"}getPlugin(t){return Promise.resolve(new p$(t))}loadOptions(){}needsPlugin(){return!0}}async function g$(e,t=!0){const n=new m$;await e.addPlugin(n,t)}async function y$(e,t=!0){await a$(e,t),await g$(e,t)}const v$=180,Ja={x:0,y:0},x$=2;function w$(e,t,n){const{context:i}=e,r=n.count.numerator*n.count.denominator,o=n.count.numerator/n.count.denominator,s=v$*(o-x$)/o,a=Math.PI-Si(s);if(i){i.beginPath(),i.translate(t.x,t.y),i.moveTo(Ja.x,Ja.y);for(let l=0;l0?Vt.counterClockwise:Vt.clockwise),i){case Vt.counterClockwise:case"counterClockwise":t.rotate.status=Re.decreasing;break;case Vt.clockwise:t.rotate.status=Re.increasing;break}const r=n.animation;r.enable&&(t.rotate.decay=I$-F(r.decay),t.rotate.velocity=F(r.speed)/L$*this.container.retina.reduceFactor,r.sync||(t.rotate.velocity*=ce())),t.rotation=t.rotate.value}isEnabled(t){const n=t.options.rotate;return n?!t.destroyed&&!t.spawning&&(!!n.value||n.animation.enable||n.path):!1}loadOptions(t,...n){t.rotate||(t.rotate=new A$);for(const i of n)t.rotate.load(i==null?void 0:i.rotate)}update(t,n){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(am(t,t.rotate,!1,mr.none,n),t.rotation=t.rotate.value))}}async function $$(e,t=!0){await e.addParticleUpdater("rotate",n=>Promise.resolve(new D$(n)),t)}const F$=2,j$=Math.sqrt(F$),N$=2;function V$(e){const{context:t,radius:n}=e,i=n/j$,r=i*N$;t.rect(-i,-i,r,r)}const B$=4;class U${constructor(){this.validTypes=["edge","square"]}draw(t){V$(t)}getSidesCount(){return B$}}async function W$(e,t=!0){await e.addShape(new U$,t)}const H$=2,zr={x:0,y:0};function G$(e){const{context:t,particle:n,radius:i}=e,r=n.sides,o=n.starInset??H$;t.moveTo(zr.x,zr.y-i);for(let s=0;sPromise.resolve(new Z$(n)),t)}async function eF(e,t=!0){await ND(e,!1),await WL(e,!1),await JL(e,!1),await a4(e,!1),await y4(e,!1),await T4(e,!1),await R4(e,!1),await L4(e,!1),await j4(e,!1),await Y4(e,!1),await tD(e,!1),await UD(e,!1),await ZD(e,!1),await y$(e,!1),await IL(),await $L(e,!1),await TD(e,!1),await FD(e,!1),await R$(e,!1),await W$(e,!1),await Y$(e,!1),await ID(e,!1),await $$(e,!1),await J$(e,!1),await zL(e,t)}const hm="-",tF=e=>{const t=iF(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const a=s.split(hm);return a[0]===""&&a.length!==1&&a.shift(),pk(a,t)||nF(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&i[s]?[...l,...i[s]]:l}}},pk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?pk(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(hm);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},R0=/^\[(.+)\]$/,nF=e=>{if(R0.test(e)){const t=R0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},iF=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return oF(Object.entries(e.classGroups),n).forEach(([o,s])=>{oh(s,i,o,t)}),i},oh=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:O0(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(rF(r)){oh(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,s])=>{oh(s,O0(t,o),n,i)})})},O0=(e,t)=>{let n=e;return t.split(hm).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},rF=e=>e.isThemeGetter,oF=(e,t)=>t?e.map(([n,i])=>{const r=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,r]}):e,sF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set(o,s){n.has(o)?n.set(o,s):r(o,s)}}},mk="!",aF=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,r=t[0],o=t.length,s=a=>{const l=[];let u=0,c=0,f;for(let x=0;xc?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},lF=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},uF=e=>({cache:sF(e.cacheSize),parseClassName:aF(e),...tF(e)}),cF=/\s+/,fF=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=[],s=e.trim().split(cF);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(u);let y=!!p,h=i(y?d.substring(0,p):d);if(!h){if(!y){a=u+(a.length>0?" "+a:a);continue}if(h=i(d),!h){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=lF(c).join(":"),m=f?x+mk:x,g=m+h;if(o.includes(g))continue;o.push(g);const v=r(h,y);for(let w=0;w0?" "+a:a)}return a};function dF(){let e=0,t,n,i="";for(;e{if(typeof e=="string")return e;let t,n="";for(let i=0;if(c),e());return n=uF(u),i=n.cache.get,r=n.cache.set,o=a,a(l)}function a(l){const u=i(l);if(u)return u;const c=fF(l,n);return r(l,c),c}return function(){return o(dF.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},yk=/^\[(?:([a-z-]+):)?(.+)\]$/i,pF=/^\d+\/\d+$/,mF=new Set(["px","full","screen"]),gF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zn=e=>mo(e)||mF.has(e)||pF.test(e),ii=e=>Uo(e,"length",MF),mo=e=>!!e&&!Number.isNaN(Number(e)),Of=e=>Uo(e,"number",mo),os=e=>!!e&&Number.isInteger(Number(e)),bF=e=>e.endsWith("%")&&mo(e.slice(0,-1)),B=e=>yk.test(e),ri=e=>gF.test(e),SF=new Set(["length","size","percentage"]),kF=e=>Uo(e,SF,vk),CF=e=>Uo(e,"position",vk),PF=new Set(["image","url"]),_F=e=>Uo(e,PF,RF),TF=e=>Uo(e,"",EF),ss=()=>!0,Uo=(e,t,n)=>{const i=yk.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},MF=e=>yF.test(e)&&!vF.test(e),vk=()=>!1,EF=e=>xF.test(e),RF=e=>wF.test(e),OF=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),i=ae("brightness"),r=ae("borderColor"),o=ae("borderRadius"),s=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),u=ae("grayscale"),c=ae("hueRotate"),f=ae("invert"),d=ae("gap"),p=ae("gradientColorStops"),y=ae("gradientColorStopPositions"),h=ae("inset"),x=ae("margin"),m=ae("opacity"),g=ae("padding"),v=ae("saturate"),w=ae("scale"),b=ae("sepia"),S=ae("skew"),P=ae("space"),_=ae("translate"),A=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",B,t],z=()=>[B,t],V=()=>["",zn,ii],$=()=>["auto",mo,B],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",B],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[mo,B];return{cacheSize:500,separator:":",theme:{colors:[ss],spacing:[zn,ii],blur:["none","",ri,B],brightness:K(),borderColor:[e],borderRadius:["none","","full",ri,B],borderSpacing:z(),borderWidth:V(),contrast:K(),grayscale:L(),hueRotate:K(),invert:L(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[bF,ii],inset:I(),margin:I(),opacity:K(),padding:z(),saturate:K(),scale:K(),sepia:L(),skew:K(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[ri]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),B]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",os,B]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",os,B]}],"grid-cols":[{"grid-cols":[ss]}],"col-start-end":[{col:["auto",{span:["full",os,B]},B]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ss]}],"row-start-end":[{row:["auto",{span:[os,B]},B]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[ri]},ri]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ri,ii]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Of]}],"font-family":[{font:[ss]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",mo,Of]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zn,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zn,ii]}],"underline-offset":[{"underline-offset":["auto",zn,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),CF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_F]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:oe()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[zn,B]}],"outline-w":[{outline:[zn,ii]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[zn,ii]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ri,TF]}],"shadow-color":[{shadow:[ss]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ri,B]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[os,B]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zn,ii,Of]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},AF=hF(OF);function A0(...e){return AF(de(e))}const xk=e=>{const{id:t="tsparticles",className:n,background:i="transparent",minSize:r=.6,maxSize:o=1.4,particleDensity:s=100,particleColor:a="#FFFFFF"}=e,[l,u]=k.useState(!1);k.useEffect(()=>{XI(async f=>{await eF(f)}).then(()=>{u(!0)})},[]);const c=async()=>{};return l?C.jsx("div",{className:A0("w-full h-full",n),children:C.jsx(YI,{id:t,className:A0("h-full w-full"),particlesLoaded:c,options:{background:{color:{value:i}},fullScreen:{enable:!1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!0,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:100,duration:.4}}},particles:{color:{value:a},links:{color:a,distance:150,enable:!0,opacity:.5,width:1},collisions:{enable:!0},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:s},value:s},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:r,max:o}}},detectRetina:!0}})}):null},sh=["AI Innovations","Web Solutions","Cloud Systems"],wk=Math.max(...sh.map(e=>e.length))-3,zF=" ".repeat(wk),bk=k.memo(()=>{const[e,t]=k.useState(0),[n,i]=k.useState(""),[r,o]=k.useState(!1);return k.useEffect(()=>{let s;const a=sh[e];return s=setTimeout(()=>{r?n.length>0?i(a.slice(0,n.length-1)):(o(!1),t(c=>(c+1)%sh.length)):n.length0?50:100:n.lengthclearTimeout(s)},[e,n,r]),C.jsxs("div",{className:"inline-block relative",style:{minWidth:`${wk}ch`},children:[C.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500 whitespace-pre opacity-0",children:zF}),C.jsx("span",{className:"absolute top-0 left-0 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",style:{clipPath:"inset(0 0 0 0)",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",backfaceVisibility:"hidden",transition:"color 0.1s ease-in-out"},children:n})]})});bk.displayName="TypeWriter";const IF=` + `,children:[C.jsx(o.icon,{size:20}),C.jsx(Pe.span,{className:"absolute -bottom-12 left-1/2 -translate-x-1/2 px-3 py-2 bg-black/80 text-white text-sm rounded-lg opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap",children:o.name}),n===o.link.substring(1)&&C.jsx(Pe.div,{layoutId:"navbar-indicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-purple-500",transition:{type:"spring",stiffness:300,damping:30}})]})},o.name))})})})}const Zi="generated",Kz="pointerdown",qz="pointerup",Xd="pointerleave",Yz="pointerout",pr="pointermove",Qz="touchstart",Rv="touchend",Xz="touchmove",Zz="touchcancel",Jz="resize",e3="visibilitychange",qt="tsParticles - Error",hi=100,Ov=.5,Ze=1e3;var Be;(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"})(Be||(Be={}));function zS(e){return typeof e=="boolean"}function Mi(e){return typeof e=="string"}function Ei(e){return typeof e=="number"}function Zr(e){return typeof e=="object"&&e!==null}function Rn(e){return Array.isArray(e)}function O(e){return e==null}const xn={x:0,y:0,z:0},Av=2,t3=1;class xt{constructor(t,n,i){if(this._updateFromAngle=(r,o)=>{this.x=Math.cos(r)*o,this.y=Math.sin(r)*o},!Ei(t)&&t){this.x=t.x,this.y=t.y;const r=t;this.z=r.z?r.z:xn.z}else if(t!==void 0&&n!==void 0)this.x=t,this.y=n,this.z=i??xn.z;else throw new Error(`${qt} Vector3d not initialized correctly`)}static get origin(){return xt.create(xn.x,xn.y,xn.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return xt.create(t.x,t.y,t.z)}static create(t,n,i){return new xt(t,n,i)}add(t){return xt.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return xt.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return xt.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**Av+this.y**Av}mult(t){return xt.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=0&&this.multTo(t3/t)}rotate(t){return xt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),xn.z)}setTo(t){this.x=t.x,this.y=t.y;const n=t;this.z=n.z?n.z:xn.z}sub(t){return xt.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Fe extends xt{constructor(t,n){super(t,n,xn.z)}static get origin(){return Fe.create(xn.x,xn.y)}static clone(t){return Fe.create(t.x,t.y)}static create(t,n){return new Fe(t,n)}}let n3=Math.random;const IS={nextFrame:e=>requestAnimationFrame(e),cancel:e=>cancelAnimationFrame(e)},Zd=new Map,i3=2,r3=Math.PI*i3;function pf(e,t){Zd.get(e)||Zd.set(e,t)}function DS(e){return Zd.get(e)??(t=>t)}function ce(){return Yt(n3(),0,1-Number.EPSILON)}function o3(e){return IS.nextFrame(e)}function s3(e){IS.cancel(e)}function Yt(e,t,n){return Math.min(Math.max(e,t),n)}function mf(e,t,n,i){return Math.floor((e*n+t*i)/(n+i))}function kt(e){const t=kn(e),n=0;let i=pc(e);return t===i&&(i=n),ce()*(t-i)+i}function F(e){return Ei(e)?e:kt(e)}function pc(e){return Ei(e)?e:e.min}function kn(e){return Ei(e)?e:e.max}function Q(e,t){if(e===t||t===void 0&&Ei(e))return e;const n=pc(e),i=kn(e);return t!==void 0?{min:Math.min(n,t),max:Math.max(i,t)}:Q(n,i)}function lt(e,t){const n=e.x-t.x,i=e.y-t.y,r=2;return{dx:n,dy:i,distance:Math.sqrt(n**r+i**r)}}function _t(e,t){return lt(e,t).distance}function Si(e){return e*Math.PI/180}function a3(e,t,n){if(Ei(e))return Si(e);const i=0,r=.5,o=.25,s=r+o;switch(e){case Be.top:return-Math.PI*r;case Be.topRight:return-Math.PI*o;case Be.right:return i;case Be.bottomRight:return Math.PI*o;case Be.bottom:return Math.PI*r;case Be.bottomLeft:return Math.PI*s;case Be.left:return Math.PI;case Be.topLeft:return-Math.PI*s;case Be.inside:return Math.atan2(n.y-t.y,n.x-t.x);case Be.outside:return Math.atan2(t.y-n.y,t.x-n.x);default:return ce()*r3}}function l3(e){const t=Fe.origin;return t.length=1,t.angle=e,t}function zv(e,t,n,i){return Fe.create(e.x*(n-i)/(n+i)+t.x*2*i/(n+i),e.y)}function u3(e){var t,n;return{x:((t=e.position)==null?void 0:t.x)??ce()*e.size.width,y:((n=e.position)==null?void 0:n.y)??ce()*e.size.height}}function LS(e){return e?e.endsWith("%")?parseFloat(e)/hi:parseFloat(e):1}var Ji;(function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"})(Ji||(Ji={}));var Re;(function(e){e.increasing="increasing",e.decreasing="decreasing"})(Re||(Re={}));var mr;(function(e){e.none="none",e.max="max",e.min="min"})(mr||(mr={}));var G;(function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"})(G||(G={}));var Eo;(function(e){e.precise="precise",e.percent="percent"})(Eo||(Eo={}));var uo;(function(e){e.max="max",e.min="min",e.random="random"})(uo||(uo={}));const c3={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function gr(){return c3}function Iv(e){const t={bounced:!1},{pSide:n,pOtherSide:i,rectSide:r,rectOtherSide:o,velocity:s,factor:a}=e,l=.5,u=0;return i.mino.max||i.maxo.max||(n.max>=r.min&&n.max<=(r.max+r.min)*l&&s>u||n.min<=r.max&&n.min>(r.max+r.min)*l&&se.matches(i));return Rn(n)?n.some(i=>i):n}function yr(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function d3(){return!yr()&&typeof matchMedia<"u"}function $S(e){if(d3())return matchMedia(e)}function h3(e){if(!(yr()||typeof IntersectionObserver>"u"))return new IntersectionObserver(e)}function p3(e){if(!(yr()||typeof MutationObserver>"u"))return new MutationObserver(e)}function _e(e,t){return e===t||Rn(t)&&t.indexOf(e)>-1}async function Dv(e,t){try{await document.fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function m3(e){return Math.floor(ce()*e.length)}function mc(e,t,n=!0){return e[t!==void 0&&n?t%e.length:m3(e)]}function nm(e,t,n,i,r){return g3(wa(e,i??0),t,n,r)}function g3(e,t,n,i){let r=!0;return(!i||i===G.bottom)&&(r=e.topn.x),r&&(!i||i===G.right)&&(r=e.leftn.y),r}function wa(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function nt(e,...t){for(const n of t){if(n==null)continue;if(!Zr(n)){e=n;continue}const i=Array.isArray(n);i&&(Zr(e)||!e||!Array.isArray(e))?e=[]:!i&&(Zr(e)||!e||Array.isArray(e))&&(e={});for(const r in n){if(r==="__proto__")continue;const o=n,s=o[r],a=e;a[r]=Zr(s)&&Array.isArray(s)?s.map(l=>nt(a[r],l)):nt(a[r],s)}}return e}function im(e,t){return!!NS(t,n=>n.enable&&_e(e,n.mode))}function rm(e,t,n){Zt(t,i=>{const r=i.mode;i.enable&&_e(e,r)&&y3(i,n)})}function y3(e,t){const n=e.selectors;Zt(n,i=>{t(i,e)})}function FS(e,t){if(!(!t||!e))return NS(e,n=>f3(t,n.selectors))}function Jd(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:Fe.create(F(e.options.bounce.horizontal.value),F(e.options.bounce.vertical.value))}}function jS(e,t){const{x:n,y:i}=e.velocity.sub(t.velocity),[r,o]=[e.position,t.position],{dx:s,dy:a}=lt(o,r);if(n*s+i*a<0)return;const u=-Math.atan2(a,s),c=e.mass,f=t.mass,d=e.velocity.rotate(u),p=t.velocity.rotate(u),y=zv(d,p,c,f),h=zv(p,d,c,f),x=y.rotate(-u),m=h.rotate(-u);e.velocity.x=x.x*e.factor.x,e.velocity.y=x.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function v3(e,t){const n=e.getPosition(),i=e.getRadius(),r=wa(n,i),o=e.options.bounce,s=Iv({pSide:{min:r.left,max:r.right},pOtherSide:{min:r.top,max:r.bottom},rectSide:{min:t.left,max:t.right},rectOtherSide:{min:t.top,max:t.bottom},velocity:e.velocity.x,factor:F(o.horizontal.value)});s.bounced&&(s.velocity!==void 0&&(e.velocity.x=s.velocity),s.position!==void 0&&(e.position.x=s.position));const a=Iv({pSide:{min:r.top,max:r.bottom},pOtherSide:{min:r.left,max:r.right},rectSide:{min:t.top,max:t.bottom},rectOtherSide:{min:t.left,max:t.right},velocity:e.velocity.y,factor:F(o.vertical.value)});a.bounced&&(a.velocity!==void 0&&(e.velocity.y=a.velocity),a.position!==void 0&&(e.position.y=a.position))}function Zt(e,t){return Rn(e)?e.map((i,r)=>t(i,r)):t(e,0)}function sn(e,t,n){return Rn(e)?mc(e,t,n):e}function NS(e,t){return Rn(e)?e.find((i,r)=>t(i,r)):t(e,0)?e:void 0}function VS(e,t){const n=e.value,i=e.animation,r={delayTime:F(i.delay)*Ze,enable:i.enable,value:F(e.value)*t,max:kn(n)*t,min:pc(n)*t,loops:0,maxLoops:F(i.count),time:0},o=1;if(i.enable){switch(r.decay=o-F(i.decay),i.mode){case Ji.increase:r.status=Re.increasing;break;case Ji.decrease:r.status=Re.decreasing;break;case Ji.random:r.status=ce()>=Ov?Re.increasing:Re.decreasing;break}const s=i.mode===Ji.auto;switch(i.startValue){case uo.min:r.value=r.min,s&&(r.status=Re.increasing);break;case uo.max:r.value=r.max,s&&(r.status=Re.decreasing);break;case uo.random:default:r.value=kt(r),s&&(r.status=ce()>=Ov?Re.increasing:Re.decreasing);break}}return r.initialValue=r.value,r}function x3(e,t){if(!(e.mode===Eo.percent)){const{mode:r,...o}=e;return o}return"x"in e?{x:e.x/hi*t.width,y:e.y/hi*t.height}:{width:e.width/hi*t.width,height:e.height/hi*t.height}}function BS(e,t){return x3(e,t)}function w3(e,t,n,i,r){switch(t){case mr.max:n>=r&&e.destroy();break;case mr.min:n<=i&&e.destroy();break}}function om(e,t,n,i,r){if(e.destroyed||!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const c=(t.velocity??0)*r.factor,f=t.min,d=t.max,p=t.decay??1;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=r.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case Re.increasing:t.value>=d?(n?t.status=Re.decreasing:t.value-=d,t.loops||(t.loops=0),t.loops++):t.value+=c;break;case Re.decreasing:t.value<=f?(n?t.status=Re.increasing:t.value+=d,t.loops||(t.loops=0),t.loops++):t.value-=c}t.velocity&&p!==1&&(t.velocity*=p),w3(e,i,t.value,f,d),e.destroyed||(t.value=Yt(t.value,f,d))}}var eh;(function(e){e.darken="darken",e.enlighten="enlighten"})(eh||(eh={}));var Gi;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=4]="a"})(Gi||(Gi={}));const lu="random",bl="mid",gc=new Map;function Lv(e){gc.set(e.key,e)}function b3(e){for(const l of gc.values())if(e.startsWith(l.stringPrefix))return l.parseString(e);const t=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,n=e.replace(t,(l,u,c,f,d)=>u+u+c+c+f+f+(d!==void 0?d+d:"")),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=i.exec(n),o=16;return r?{a:r[Gi.a]!==void 0?parseInt(r[Gi.a],o)/255:1,b:parseInt(r[Gi.b],o),g:parseInt(r[Gi.g],o),r:parseInt(r[Gi.r],o)}:void 0}function cn(e,t,n=!0){if(!e)return;const i=Mi(e)?{value:e}:e;if(Mi(i.value))return US(i.value,t,n);if(Rn(i.value))return cn({value:mc(i.value,t,n)});for(const r of gc.values()){const o=r.handleRangeColor(i);if(o)return o}}function US(e,t,n=!0){if(!e)return;const i=Mi(e)?{value:e}:e;if(Mi(i.value))return i.value===lu?HS():S3(i.value);if(Rn(i.value))return US({value:mc(i.value,t,n)});for(const r of gc.values()){const o=r.handleColor(i);if(o)return o}}function ta(e,t,n=!0){const i=cn(e,t,n);return i?WS(i):void 0}function WS(e){const c=e.r/255,f=e.g/255,d=e.b/255,p=Math.max(c,f,d),y=Math.min(c,f,d),h={h:0,l:(p+y)*.5,s:0};return p!==y&&(h.s=h.l<.5?(p-y)/(p+y):(p-y)/(2-p-y),h.h=c===p?(f-d)/(p-y):h.h=f===p?2+(d-c)/(p-y):2*2+(c-f)/(p-y)),h.l*=100,h.s*=100,h.h*=60,h.h<0&&(h.h+=360),h.h>=360&&(h.h-=360),h}function S3(e){return b3(e)}function Ro(e){const s=(e.h%360+360)%360,a=Math.max(0,Math.min(100,e.s)),l=Math.max(0,Math.min(100,e.l)),u=s/360,c=a/100,f=l/100,d=255,p=3;if(a===0){const A=Math.round(f*d);return{r:A,g:A,b:A}}const y=.5,h=2,x=(A,T,I)=>{if(I<0&&I++,I>1&&I--,I*6<1)return A+(T-A)*6*I;if(I*h<1)return T;if(I*p<1*h){const re=h/p;return A+(T-A)*(re-I)*6}return A},m=1,g=f0&&(e.loops??0)>(e.maxLoops??0)||(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;const c=e.offset?kt(e.offset):0,f=(e.velocity??0)*i.factor+c*3.6,d=e.decay??1,p=kn(t),y=pc(t);!n||e.status===Re.increasing?(e.value+=f,e.value>p&&(e.loops||(e.loops=0),e.loops++,n?e.status=Re.decreasing:e.value-=p)):(e.value-=f,e.value<0&&(e.loops||(e.loops=0),e.loops++,e.status=Re.increasing)),e.velocity&&d!==1&&(e.velocity*=d),e.value=Yt(e.value,y,p)}function qS(e,t){if(!e)return;const{h:n,s:i,l:r}=e,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};n&&yf(n,o.h,!1,t),i&&yf(i,o.s,!0,t),r&&yf(r,o.l,!0,t)}const Oo={x:0,y:0},Ha={a:1,b:0,c:0,d:1};function Ms(e,t,n){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.closePath()}function C3(e,t,n){e.fillStyle=n??"rgba(0,0,0,0)",e.fillRect(Oo.x,Oo.y,t.width,t.height)}function P3(e,t,n,i){n&&(e.globalAlpha=i,e.drawImage(n,Oo.x,Oo.y,t.width,t.height),e.globalAlpha=1)}function vf(e,t){e.clearRect(Oo.x,Oo.y,t.width,t.height)}function _3(e){const{container:t,context:n,particle:i,delta:r,colorStyles:o,backgroundMask:s,composite:a,radius:l,opacity:u,shadow:c,transform:f}=e,d=i.getPosition(),p=0,y=i.rotation+(i.pathRotation?i.velocity.angle:p),h={sin:Math.sin(y),cos:Math.cos(y)},x=!!y,m=1,g={a:h.cos*(f.a??Ha.a),b:x?h.sin*(f.b??m):f.b??Ha.b,c:x?-h.sin*(f.c??m):f.c??Ha.c,d:h.cos*(f.d??Ha.d)};n.setTransform(g.a,g.b,g.c,g.d,d.x,d.y),s&&(n.globalCompositeOperation=a);const v=i.shadowColor;c.enable&&v&&(n.shadowBlur=c.blur,n.shadowColor=Gn(v),n.shadowOffsetX=c.offset.x,n.shadowOffsetY=c.offset.y),o.fill&&(n.fillStyle=o.fill);const w=0,b=i.strokeWidth??w;n.lineWidth=b,o.stroke&&(n.strokeStyle=o.stroke);const S={container:t,context:n,particle:i,radius:l,opacity:u,delta:r,transformData:g,strokeWidth:b};M3(S),E3(S),T3(S),n.globalCompositeOperation="source-over",n.resetTransform()}function T3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.effect)return;const l=t.effectDrawers.get(i.effect);l&&l.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function M3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,strokeWidth:a,transformData:l}=e,u=0;if(!i.shape)return;const c=t.shapeDrawers.get(i.shape);c&&(n.beginPath(),c.draw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...l}}),i.shapeClose&&n.closePath(),a>u&&n.stroke(),i.shapeFill&&n.fill())}function E3(e){const{container:t,context:n,particle:i,radius:r,opacity:o,delta:s,transformData:a}=e;if(!i.shape)return;const l=t.shapeDrawers.get(i.shape);l!=null&&l.afterDraw&&l.afterDraw({context:n,particle:i,radius:r,opacity:o,delta:s,pixelRatio:t.retina.pixelRatio,transformData:{...a}})}function R3(e,t,n){t.draw&&t.draw(e,n)}function O3(e,t,n,i){t.drawParticle&&t.drawParticle(e,n,i)}function A3(e,t,n){return{h:e.h,s:e.s,l:e.l+(t===eh.darken?-1:1)*n}}function z3(e,t,n){const i=t[n],r=1;i!==void 0&&(e[n]=(e[n]??r)*i)}function Fv(e,t,n=!1){if(!t)return;const i=e;if(!i)return;const r=i.style;if(r)for(const o in t){const s=t[o];r.setProperty(o,s,n?"important":"")}}class I3{constructor(t){this.container=t,this._applyPostDrawUpdaters=n=>{var i;for(const r of this._postDrawUpdaters)(i=r.afterDraw)==null||i.call(r,n)},this._applyPreDrawUpdaters=(n,i,r,o,s,a)=>{var l;for(const u of this._preDrawUpdaters){if(u.getColorStyles){const{fill:c,stroke:f}=u.getColorStyles(i,n,r,o);c&&(s.fill=c),f&&(s.stroke=f)}if(u.getTransformValues){const c=u.getTransformValues(i);for(const f in c)z3(a,c,f)}(l=u.beforeDraw)==null||l.call(u,i)}},this._applyResizePlugins=()=>{var n;for(const i of this._resizePlugins)(n=i.resize)==null||n.call(i)},this._getPluginParticleColors=n=>{let i,r;for(const o of this._colorPlugins)if(!i&&o.particleFillColor&&(i=ta(o.particleFillColor(n))),!r&&o.particleStrokeColor&&(r=ta(o.particleStrokeColor(n))),i&&r)break;return[i,r]},this._initCover=async()=>{const n=this.container.actualOptions,i=n.backgroundMask.cover,r=i.color;if(r){const o=cn(r);if(o){const s={...o,a:i.opacity};this._coverColorStyle=Gn(s,s.a)}}else await new Promise((o,s)=>{if(!i.image)return;const a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:i.opacity},o()}),a.addEventListener("error",l=>{s(l.error)}),a.src=i.image})},this._initStyle=()=>{const n=this.element,i=this.container.actualOptions;if(n){this._fullScreen?(this._originalStyle=nt({},n.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const r in i.style){if(!r||!i.style)continue;const o=i.style[r];o&&n.style.setProperty(r,o,"important")}}},this._initTrail=async()=>{const n=this.container.actualOptions,i=n.particles.move.trail,r=i.fill;if(!i.enable)return;const o=1,s=o/i.length;if(r.color){const a=cn(r.color);if(!a)return;this._trailFill={color:{...a},opacity:s}}else await new Promise((a,l)=>{if(!r.image)return;const u=document.createElement("img");u.addEventListener("load",()=>{this._trailFill={image:u,opacity:s},a()}),u.addEventListener("error",c=>{l(c.error)}),u.src=r.image})},this._paintBase=n=>{this.draw(i=>C3(i,this.size,n))},this._paintImage=(n,i)=>{this.draw(r=>P3(r,this.size,n,i))},this._repairStyle=()=>{const n=this.element;n&&(this._safeMutationObserver(i=>i.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(i=>{!n||!(n instanceof Node)||i.observe(n,{attributes:!0})}))},this._resetOriginalStyle=()=>{const n=this.element,i=this._originalStyle;n&&i&&Fv(n,i)},this._safeMutationObserver=n=>{this._mutationObserver&&n(this._mutationObserver)},this._setFullScreenStyle=()=>{const n=this.element;if(!n)return;const i=10,r=this.container.actualOptions.fullScreen.zIndex.toString(i);Fv(n,{position:"fixed","z-index":r,zIndex:r,top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,n=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():n.enable&&n.length>0&&i?i.color?this._paintBase(Gn(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(o=>{vf(o,this.size)})}destroy(){if(this.stop(),this._generated){const t=this.element;t==null||t.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const n=this._context;if(n)return t(n)}drawAsync(t){const n=this._context;if(n)return t(n)}drawParticle(t,n){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const o=t.getFillColor(),s=t.getStrokeColor()??o;let[a,l]=this._getPluginParticleColors(t);a||(a=o),l||(l=s),!(!a&&!l)&&this.draw(u=>{var P;const c=this.container,f=c.actualOptions,d=t.options.zIndex,p=1,y=p-t.zIndexFactor,h=y**d.opacityRate,x=1,m=t.bubble.opacity??((P=t.opacity)==null?void 0:P.value)??x,g=t.strokeOpacity??m,v=m*h,w=g*h,b={},S={fill:a?na(a,v):void 0};S.stroke=l?na(l,w):S.fill,this._applyPreDrawUpdaters(u,t,i,v,S,b),_3({container:c,context:u,particle:t,delta:n,colorStyles:S,backgroundMask:f.backgroundMask.enable,composite:f.backgroundMask.composite,radius:i*y**d.sizeRate,opacity:v,shadow:t.options.shadow,transform:b}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,n,i){this.draw(r=>O3(r,t,n,i))}drawPlugin(t,n){this.draw(i=>R3(i,t,n))}async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=p3(t=>{for(const n of t)n.type==="attributes"&&n.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){gr().error(t)}this.initBackground(),this._safeMutationObserver(t=>{!this.element||!(this.element instanceof Node)||t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions,n=t.background,i=this.element;if(!i)return;const r=i.style;if(r){if(n.color){const o=cn(n.color);r.backgroundColor=o?Gn(o,n.opacity):""}else r.backgroundColor="";r.backgroundImage=n.image||"",r.backgroundPosition=n.position||"",r.backgroundRepeat=n.repeat||"",r.backgroundSize=n.size||""}}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&Zi in t.dataset?t.dataset[Zi]==="true":this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=nt({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(n=>{!this.element||!(this.element instanceof Node)||n.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw(n=>{t.backgroundMask.enable&&t.backgroundMask.cover?(vf(n,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;const t=this.container,n=t.retina.pixelRatio,i=t.canvas.size,r={width:this.element.offsetWidth*n,height:this.element.offsetHeight*n};if(r.height===i.height&&r.width===i.width&&r.height===this.element.height&&r.width===this.element.width)return!1;const o={...i};return this.element.width=i.width=this.element.offsetWidth*n,this.element.height=i.height=this.element.offsetHeight*n,this.container.started&&t.particles.setResizeFactor({width:i.width/o.width,height:i.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>vf(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,n=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),n&&await t.refresh()}}var co;(function(e){e.canvas="canvas",e.parent="parent",e.window="window"})(co||(co={}));const jv=2;function zt(e,t,n,i,r){if(i){let o={passive:!0};zS(r)?o.capture=r:r!==void 0&&(o=r),e.addEventListener(t,n,o)}else{const o=r;e.removeEventListener(t,n,o)}}class D3{constructor(t){this.container=t,this._doMouseTouchClick=n=>{const i=this.container,r=i.actualOptions;if(this._canPush){const o=i.interactivity.mouse,s=o.position;if(!s)return;o.clickPosition={...s},o.clickTime=new Date().getTime();const a=r.interactivity.events.onClick;Zt(a.mode,l=>this.container.handleClickMode(l))}n.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=n=>{const i=n,r=this.container,o=r.options,s=o.defaultThemes,a=i.matches?s.dark:s.light,l=o.themes.find(u=>u.name===a);l!=null&&l.default.auto&&r.loadTheme(a)},this._handleVisibilityChange=()=>{const n=this.container,i=n.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document!=null&&document.hidden?(n.pageHidden=!0,n.pause()):(n.pageHidden=!1,n.animationStatus?n.play(!0):n.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const n=async()=>{const i=this.container.canvas;await(i==null?void 0:i.windowResize())};this._resizeTimeout=setTimeout(()=>void n(),this.container.actualOptions.interactivity.events.resize.delay*Ze)},this._manageInteractivityListeners=(n,i)=>{const r=this._handlers,o=this.container,s=o.actualOptions,a=o.interactivity.element;if(!a)return;const l=a,u=o.canvas.element;u&&(u.style.pointerEvents=l===u?"initial":"none"),(s.interactivity.events.onHover.enable||s.interactivity.events.onClick.enable)&&(zt(a,pr,r.mouseMove,i),zt(a,Qz,r.touchStart,i),zt(a,Xz,r.touchMove,i),s.interactivity.events.onClick.enable?(zt(a,Rv,r.touchEndClick,i),zt(a,qz,r.mouseUp,i),zt(a,Kz,r.mouseDown,i)):zt(a,Rv,r.touchEnd,i),zt(a,n,r.mouseLeave,i),zt(a,Zz,r.touchCancel,i))},this._manageListeners=n=>{const i=this._handlers,r=this.container,o=r.actualOptions,s=o.interactivity.detectsOn,a=r.canvas.element;let l=Xd;s===co.window?(r.interactivity.element=window,l=Yz):s===co.parent&&a?r.interactivity.element=a.parentElement??a.parentNode:r.interactivity.element=a,this._manageMediaMatch(n),this._manageResize(n),this._manageInteractivityListeners(l,n),document&&zt(document,e3,i.visibilityChange,n,!1)},this._manageMediaMatch=n=>{const i=this._handlers,r=$S("(prefers-color-scheme: dark)");if(r){if(r.addEventListener!==void 0){zt(r,"change",i.themeChange,n);return}r.addListener!==void 0&&(n?r.addListener(i.oldThemeChange):r.removeListener(i.oldThemeChange))}},this._manageResize=n=>{const i=this._handlers,r=this.container;if(!r.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){zt(window,Jz,i.resize,n);return}const s=r.canvas.element;this._resizeObserver&&!n?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&n&&s&&(this._resizeObserver=new ResizeObserver(a=>{a.find(u=>u.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:n}=this.container;if(!n)return;const{mouse:i}=n;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=n=>{const i=this.container,r=i.actualOptions,{mouse:o}=i.interactivity;o.inside=!0;let s=!1;const a=o.position;if(!(!a||!r.interactivity.events.onClick.enable)){for(const l of i.plugins.values())if(l.clickPositionValid&&(s=l.clickPositionValid(a),s))break;s||this._doMouseTouchClick(n),o.clicking=!1}},this._mouseTouchFinish=()=>{const n=this.container.interactivity;if(!n)return;const i=n.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,n.status=Xd,i.inside=!1,i.clicking=!1},this._mouseTouchMove=n=>{const i=this.container,r=i.actualOptions,o=i.interactivity,s=i.canvas.element;if(!(o!=null&&o.element))return;o.mouse.inside=!0;let a;if(n.type.startsWith("pointer")){this._canPush=!0;const u=n;if(o.element===window){if(s){const c=s.getBoundingClientRect();a={x:u.clientX-c.left,y:u.clientY-c.top}}}else if(r.interactivity.detectsOn===co.parent){const c=u.target,f=u.currentTarget;if(c&&f&&s){const d=c.getBoundingClientRect(),p=f.getBoundingClientRect(),y=s.getBoundingClientRect();a={x:u.offsetX+jv*d.left-(p.left+y.left),y:u.offsetY+jv*d.top-(p.top+y.top)}}else a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY}}else u.target===s&&(a={x:u.offsetX??u.clientX,y:u.offsetY??u.clientY})}else if(this._canPush=n.type!=="touchmove",s){const u=n,c=1,f=u.touches[u.touches.length-c],d=s.getBoundingClientRect(),p=0;a={x:f.clientX-(d.left??p),y:f.clientY-(d.top??p)}}const l=i.retina.pixelRatio;a&&(a.x*=l,a.y*=l),o.mouse.position=a,o.status=pr},this._touchEnd=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchFinish()},this._touchEndClick=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.delete(o.identifier);this._mouseTouchClick(n)},this._touchStart=n=>{const i=n,r=Array.from(i.changedTouches);for(const o of r)this._touches.set(o.identifier,performance.now());this._mouseTouchMove(n)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:n=>this._mouseTouchMove(n),mouseUp:n=>this._mouseTouchClick(n),touchStart:n=>this._touchStart(n),touchMove:n=>this._mouseTouchMove(n),touchEnd:n=>this._touchEnd(n),touchCancel:n=>this._touchEnd(n),touchEndClick:n=>this._touchEndClick(n),visibilityChange:()=>this._handleVisibilityChange(),themeChange:n=>this._handleThemeChange(n),oldThemeChange:n=>this._handleThemeChange(n),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var st;(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"})(st||(st={}));class it{constructor(){this.value=""}static create(t,n){const i=new it;return i.load(t),n!==void 0&&(Mi(n)||Rn(n)?i.load({value:n}):i.load(n)),i}load(t){O(t)||O(t.value)||(this.value=t.value)}}class L3{constructor(){this.color=new it,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.position!==void 0&&(this.position=t.position),t.repeat!==void 0&&(this.repeat=t.repeat),t.size!==void 0&&(this.size=t.size),t.opacity!==void 0&&(this.opacity=t.opacity))}}class $3{constructor(){this.opacity=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image),t.opacity!==void 0&&(this.opacity=t.opacity))}}class F3{constructor(){this.composite="destination-out",this.cover=new $3,this.enable=!1}load(t){if(!O(t)){if(t.composite!==void 0&&(this.composite=t.composite),t.cover!==void 0){const n=t.cover,i=Mi(t.cover)?{color:t.cover}:t.cover;this.cover.load(n.color!==void 0||n.image!==void 0?n:{color:i})}t.enable!==void 0&&(this.enable=t.enable)}}}class j3{constructor(){this.enable=!0,this.zIndex=0}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.zIndex!==void 0&&(this.zIndex=t.zIndex))}}class N3{constructor(){this.enable=!1,this.mode=[]}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode))}}var Ao;(function(e){e.circle="circle",e.rectangle="rectangle"})(Ao||(Ao={}));class Nv{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=Ao.circle}load(t){O(t)||(t.selectors!==void 0&&(this.selectors=t.selectors),t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),t.type!==void 0&&(this.type=t.type))}}class V3{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.force!==void 0&&(this.force=t.force),t.smooth!==void 0&&(this.smooth=t.smooth))}}class B3{constructor(){this.enable=!1,this.mode=[],this.parallax=new V3}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.mode!==void 0&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class U3{constructor(){this.delay=.5,this.enable=!0}load(t){O(t)||(t.delay!==void 0&&(this.delay=t.delay),t.enable!==void 0&&(this.enable=t.enable))}}class W3{constructor(){this.onClick=new N3,this.onDiv=new Nv,this.onHover=new B3,this.resize=new U3}load(t){if(O(t))return;this.onClick.load(t.onClick);const n=t.onDiv;n!==void 0&&(this.onDiv=Zt(n,i=>{const r=new Nv;return r.load(i),r})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class H3{constructor(t,n){this._engine=t,this._container=n}load(t){if(O(t)||!this._container)return;const n=this._engine.interactors.get(this._container);if(n)for(const i of n)i.loadModeOptions&&i.loadModeOptions(this,t)}}class YS{constructor(t,n){this.detectsOn=co.window,this.events=new W3,this.modes=new H3(t,n)}load(t){if(O(t))return;const n=t.detectsOn;n!==void 0&&(this.detectsOn=n),this.events.load(t.events),this.modes.load(t.modes)}}const Vv=50;class G3{load(t){O(t)||(t.position&&(this.position={x:t.position.x??Vv,y:t.position.y??Vv,mode:t.position.mode??Eo.percent}),t.options&&(this.options=nt({},t.options)))}}var er;(function(e){e.screen="screen",e.canvas="canvas"})(er||(er={}));class K3{constructor(){this.maxWidth=1/0,this.options={},this.mode=er.canvas}load(t){O(t)||(O(t.maxWidth)||(this.maxWidth=t.maxWidth),O(t.mode)||(t.mode===er.screen?this.mode=er.screen:this.mode=er.canvas),O(t.options)||(this.options=nt({},t.options)))}}var ci;(function(e){e.any="any",e.dark="dark",e.light="light"})(ci||(ci={}));class q3{constructor(){this.auto=!1,this.mode=ci.any,this.value=!1}load(t){O(t)||(t.auto!==void 0&&(this.auto=t.auto),t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class Y3{constructor(){this.name="",this.default=new q3}load(t){O(t)||(t.name!==void 0&&(this.name=t.name),this.default.load(t.default),t.options!==void 0&&(this.options=nt({},t.options)))}}class am{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){O(t)||(t.count!==void 0&&(this.count=Q(t.count)),t.enable!==void 0&&(this.enable=t.enable),t.speed!==void 0&&(this.speed=Q(t.speed)),t.decay!==void 0&&(this.decay=Q(t.decay)),t.delay!==void 0&&(this.delay=Q(t.delay)),t.sync!==void 0&&(this.sync=t.sync))}}class lm extends am{constructor(){super(),this.mode=Ji.auto,this.startValue=uo.random}load(t){super.load(t),!O(t)&&(t.mode!==void 0&&(this.mode=t.mode),t.startValue!==void 0&&(this.startValue=t.startValue))}}class xf extends am{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),!O(t)&&t.offset!==void 0&&(this.offset=Q(t.offset))}}class Q3{constructor(){this.h=new xf,this.s=new xf,this.l=new xf}load(t){O(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ia extends it{constructor(){super(),this.animation=new Q3}static create(t,n){const i=new ia;return i.load(t),n!==void 0&&(Mi(n)||Rn(n)?i.load({value:n}):i.load(n)),i}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&(n.enable!==void 0?this.animation.h.load(n):this.animation.load(t.animation))}}var fo;(function(e){e.absorb="absorb",e.bounce="bounce",e.destroy="destroy"})(fo||(fo={}));class X3{constructor(){this.speed=2}load(t){O(t)||t.speed!==void 0&&(this.speed=t.speed)}}class Z3{constructor(){this.enable=!0,this.retries=0}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.retries!==void 0&&(this.retries=t.retries))}}class br{constructor(){this.value=0}load(t){O(t)||O(t.value)||(this.value=Q(t.value))}}class J3 extends br{constructor(){super(),this.animation=new am}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class QS extends J3{constructor(){super(),this.animation=new lm}load(t){super.load(t)}}class Bv extends br{constructor(){super(),this.value=1}}class XS{constructor(){this.horizontal=new Bv,this.vertical=new Bv}load(t){O(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class eI{constructor(){this.absorb=new X3,this.bounce=new XS,this.enable=!1,this.maxSpeed=50,this.mode=fo.bounce,this.overlap=new Z3}load(t){O(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),t.enable!==void 0&&(this.enable=t.enable),t.maxSpeed!==void 0&&(this.maxSpeed=Q(t.maxSpeed)),t.mode!==void 0&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class tI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(O(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=nt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class nI{constructor(){this.offset=0,this.value=90}load(t){O(t)||(t.offset!==void 0&&(this.offset=Q(t.offset)),t.value!==void 0&&(this.value=Q(t.value)))}}class iI{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!O(t)&&(t.distance!==void 0&&(this.distance=Q(t.distance)),t.enable!==void 0&&(this.enable=t.enable),t.rotate)){const n=t.rotate.x;n!==void 0&&(this.rotate.x=n);const i=t.rotate.y;i!==void 0&&(this.rotate.y=i)}}}class rI{constructor(){this.x=50,this.y=50,this.mode=Eo.percent,this.radius=0}load(t){O(t)||(t.x!==void 0&&(this.x=t.x),t.y!==void 0&&(this.y=t.y),t.mode!==void 0&&(this.mode=t.mode),t.radius!==void 0&&(this.radius=t.radius))}}class oI{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){O(t)||(t.acceleration!==void 0&&(this.acceleration=Q(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.inverse!==void 0&&(this.inverse=t.inverse),t.maxSpeed!==void 0&&(this.maxSpeed=Q(t.maxSpeed)))}}class sI{constructor(){this.clamp=!0,this.delay=new br,this.enable=!1,this.options={}}load(t){O(t)||(t.clamp!==void 0&&(this.clamp=t.clamp),this.delay.load(t.delay),t.enable!==void 0&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=nt(this.options,t.options)))}}class aI{load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.image!==void 0&&(this.image=t.image))}}class lI{constructor(){this.enable=!1,this.length=10,this.fill=new aI}load(t){O(t)||(t.enable!==void 0&&(this.enable=t.enable),t.fill!==void 0&&this.fill.load(t.fill),t.length!==void 0&&(this.length=t.length))}}var ze;(function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"})(ze||(ze={}));class uI{constructor(){this.default=ze.out}load(t){O(t)||(t.default!==void 0&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class cI{constructor(){this.acceleration=0,this.enable=!1}load(t){O(t)||(t.acceleration!==void 0&&(this.acceleration=Q(t.acceleration)),t.enable!==void 0&&(this.enable=t.enable),t.position&&(this.position=nt({},t.position)))}}class fI{constructor(){this.angle=new nI,this.attract=new iI,this.center=new rI,this.decay=0,this.distance={},this.direction=Be.none,this.drift=0,this.enable=!1,this.gravity=new oI,this.path=new sI,this.outModes=new uI,this.random=!1,this.size=!1,this.speed=2,this.spin=new cI,this.straight=!1,this.trail=new lI,this.vibrate=!1,this.warp=!1}load(t){if(O(t))return;this.angle.load(Ei(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),t.decay!==void 0&&(this.decay=Q(t.decay)),t.direction!==void 0&&(this.direction=t.direction),t.distance!==void 0&&(this.distance=Ei(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),t.drift!==void 0&&(this.drift=Q(t.drift)),t.enable!==void 0&&(this.enable=t.enable),this.gravity.load(t.gravity);const n=t.outModes;n!==void 0&&(Zr(n)?this.outModes.load(n):this.outModes.load({default:n})),this.path.load(t.path),t.random!==void 0&&(this.random=t.random),t.size!==void 0&&(this.size=t.size),t.speed!==void 0&&(this.speed=Q(t.speed)),this.spin.load(t.spin),t.straight!==void 0&&(this.straight=t.straight),this.trail.load(t.trail),t.vibrate!==void 0&&(this.vibrate=t.vibrate),t.warp!==void 0&&(this.warp=t.warp)}}class dI extends lm{constructor(){super(),this.destroy=mr.none,this.speed=2}load(t){super.load(t),!O(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class hI extends QS{constructor(){super(),this.animation=new dI,this.value=1}load(t){if(O(t))return;super.load(t);const n=t.animation;n!==void 0&&this.animation.load(n)}}class pI{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(O(t))return;t.enable!==void 0&&(this.enable=t.enable);const n=t.width;n!==void 0&&(this.width=n);const i=t.height;i!==void 0&&(this.height=i)}}var ra;(function(e){e.delete="delete",e.wait="wait"})(ra||(ra={}));class mI{constructor(){this.mode=ra.delete,this.value=0}load(t){O(t)||(t.mode!==void 0&&(this.mode=t.mode),t.value!==void 0&&(this.value=t.value))}}class gI{constructor(){this.density=new pI,this.limit=new mI,this.value=0}load(t){O(t)||(this.density.load(t.density),this.limit.load(t.limit),t.value!==void 0&&(this.value=t.value))}}class yI{constructor(){this.blur=0,this.color=new it,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){O(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=it.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable),t.offset!==void 0&&(t.offset.x!==void 0&&(this.offset.x=t.offset.x),t.offset.y!==void 0&&(this.offset.y=t.offset.y)))}}class vI{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(O(t))return;const n=t.options;if(n!==void 0)for(const i in n){const r=n[i];r&&(this.options[i]=nt(this.options[i]??{},r))}t.close!==void 0&&(this.close=t.close),t.fill!==void 0&&(this.fill=t.fill),t.type!==void 0&&(this.type=t.type)}}class xI extends lm{constructor(){super(),this.destroy=mr.none,this.speed=5}load(t){super.load(t),!O(t)&&t.destroy!==void 0&&(this.destroy=t.destroy)}}class wI extends QS{constructor(){super(),this.animation=new xI,this.value=3}load(t){if(super.load(t),O(t))return;const n=t.animation;n!==void 0&&this.animation.load(n)}}class Uv{constructor(){this.width=0}load(t){O(t)||(t.color!==void 0&&(this.color=ia.create(this.color,t.color)),t.width!==void 0&&(this.width=Q(t.width)),t.opacity!==void 0&&(this.opacity=Q(t.opacity)))}}class bI extends br{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),!O(t)&&(t.opacityRate!==void 0&&(this.opacityRate=t.opacityRate),t.sizeRate!==void 0&&(this.sizeRate=t.sizeRate),t.velocityRate!==void 0&&(this.velocityRate=t.velocityRate))}}class SI{constructor(t,n){this._engine=t,this._container=n,this.bounce=new XS,this.collisions=new eI,this.color=new ia,this.color.value="#fff",this.effect=new tI,this.groups={},this.move=new fI,this.number=new gI,this.opacity=new hI,this.reduceDuplicates=!1,this.shadow=new yI,this.shape=new vI,this.size=new wI,this.stroke=new Uv,this.zIndex=new bI}load(t){if(O(t))return;if(t.groups!==void 0)for(const i of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,i))continue;const r=t.groups[i];r!==void 0&&(this.groups[i]=nt(this.groups[i]??{},r))}t.reduceDuplicates!==void 0&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ia.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),t.interactivity!==void 0&&(this.interactivity=nt({},t.interactivity));const n=t.stroke;if(n&&(this.stroke=Zt(n,i=>{const r=new Uv;return r.load(i),r})),this._container){const i=this._engine.updaters.get(this._container);if(i)for(const o of i)o.loadOptions&&o.loadOptions(this,t);const r=this._engine.interactors.get(this._container);if(r)for(const o of r)o.loadParticlesOptions&&o.loadParticlesOptions(this,t)}}}function ZS(e,...t){for(const n of t)e.load(n)}function JS(e,t,...n){const i=new SI(e,t);return ZS(i,...n),i}class kI{constructor(t,n){this._findDefaultTheme=i=>this.themes.find(r=>r.default.value&&r.default.mode===i)??this.themes.find(r=>r.default.value&&r.default.mode===ci.any),this._importPreset=i=>{this.load(this._engine.getPreset(i))},this._engine=t,this._container=n,this.autoPlay=!0,this.background=new L3,this.backgroundMask=new F3,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new j3,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new YS(t,n),this.manualParticles=[],this.particles=JS(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){var s,a;if(O(t))return;t.preset!==void 0&&Zt(t.preset,l=>this._importPreset(l)),t.autoPlay!==void 0&&(this.autoPlay=t.autoPlay),t.clear!==void 0&&(this.clear=t.clear),t.key!==void 0&&(this.key=t.key),t.name!==void 0&&(this.name=t.name),t.delay!==void 0&&(this.delay=Q(t.delay));const n=t.detectRetina;n!==void 0&&(this.detectRetina=n),t.duration!==void 0&&(this.duration=Q(t.duration));const i=t.fpsLimit;i!==void 0&&(this.fpsLimit=i),t.pauseOnBlur!==void 0&&(this.pauseOnBlur=t.pauseOnBlur),t.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),t.zLayers!==void 0&&(this.zLayers=t.zLayers),this.background.load(t.background);const r=t.fullScreen;zS(r)?this.fullScreen.enable=r:this.fullScreen.load(r),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(l=>{const u=new G3;return u.load(l),u})),this.particles.load(t.particles),this.style=nt(this.style,t.style),this._engine.loadOptions(this,t),t.smooth!==void 0&&(this.smooth=t.smooth);const o=this._engine.interactors.get(this._container);if(o)for(const l of o)l.loadOptions&&l.loadOptions(this,t);if(t.responsive!==void 0)for(const l of t.responsive){const u=new K3;u.load(l),this.responsive.push(u)}if(this.responsive.sort((l,u)=>l.maxWidth-u.maxWidth),t.themes!==void 0)for(const l of t.themes){const u=this.themes.find(c=>c.name===l.name);if(u)u.load(l);else{const c=new Y3;c.load(l),this.themes.push(c)}}this.defaultThemes.dark=(s=this._findDefaultTheme(ci.dark))==null?void 0:s.name,this.defaultThemes.light=(a=this._findDefaultTheme(ci.light))==null?void 0:a.name}setResponsive(t,n,i){this.load(i);const r=this.responsive.find(o=>o.mode===er.screen&&screen?o.maxWidth>screen.availWidth:o.maxWidth*n>t);return this.load(r==null?void 0:r.options),r==null?void 0:r.maxWidth}setTheme(t){if(t){const n=this.themes.find(i=>i.name===t);n&&this.load(n.options)}else{const n=$S("(prefers-color-scheme: dark)"),i=n==null?void 0:n.matches,r=this._findDefaultTheme(i?ci.dark:ci.light);r&&this.load(r.options)}}}var zo;(function(e){e.external="external",e.particles="particles"})(zo||(zo={}));class CI{constructor(t,n){this.container=n,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const n of this._externalInteractors)n.isEnabled()&&n.interact(t)}handleClickMode(t){var n;for(const i of this._externalInteractors)(n=i.handleClickMode)==null||n.call(i,t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case zo.external:this._externalInteractors.push(t);break;case zo.particles:this._particleInteractors.push(t);break}t.init()}}particlesInteract(t,n){for(const i of this._externalInteractors)i.clear(t,n);for(const i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,n)}reset(t){for(const n of this._externalInteractors)n.isEnabled()&&n.reset(t);for(const n of this._particleInteractors)n.isEnabled(t)&&n.reset(t)}}var fn;(function(e){e.normal="normal",e.inside="inside",e.outside="outside"})(fn||(fn={}));const Wv=0,nh=2,Ga=.5,PI=2,Hv="random";function _I(e,t,n,i){const r=t.options[e];if(r)return nt({close:t.close,fill:t.fill},sn(r,n,i))}function TI(e,t,n,i){const r=t.options[e];if(r)return nt({close:t.close,fill:t.fill},sn(r,n,i))}function Gv(e){if(!_e(e.outMode,e.checkModes))return;const t=e.radius*nh;e.coord>e.maxCoord-t?e.setCb(-e.radius):e.coord{for(const y of i.plugins.values()){const h=y.particlePosition!==void 0?y.particlePosition(r,this):void 0;if(h)return xt.create(h.x,h.y,o)}const a=i.canvas.size,l=u3({size:a,position:r}),u=xt.create(l.x,l.y,o),c=this.getRadius(),f=this.options.move.outModes,d=y=>{Gv({outMode:y,checkModes:[ze.bounce],coord:u.x,maxCoord:i.canvas.size.width,setCb:h=>u.x+=h,radius:c})},p=y=>{Gv({outMode:y,checkModes:[ze.bounce],coord:u.y,maxCoord:i.canvas.size.height,setCb:h=>u.y+=h,radius:c})};return d(f.left??f.default),d(f.right??f.default),p(f.top??f.default),p(f.bottom??f.default),this._checkOverlap(u,s)?this._calcPosition(i,void 0,o,s+1):u},this._calculateVelocity=()=>{const i=l3(this.direction),r=i.copy(),o=this.options.move;if(o.direction===Be.inside||o.direction===Be.outside)return r;const s=Si(F(o.angle.value)),a=Si(F(o.angle.offset)),l={left:a-s*Ga,right:a+s*Ga};return o.straight||(r.angle+=kt(Q(l.left,l.right))),o.random&&typeof o.speed=="number"&&(r.length*=ce()),r},this._checkOverlap=(i,r=Wv)=>{const o=this.options.collisions,s=this.getRadius();if(!o.enable)return!1;const a=o.overlap;if(a.enable)return!1;const l=a.retries;if(l>=0&&r>l)throw new Error(`${qt} particle is overlapping and can't be placed`);return!!this.container.particles.find(c=>_t(i,c.position){if(!i||!this.roll||!this.backColor&&!this.roll.alter)return i;const r=1,o=0,s=this.roll.horizontal&&this.roll.vertical?nh*r:r,a=this.roll.horizontal?Math.PI*Ga:o;return Math.floor(((this.roll.angle??o)+a)/(Math.PI/s))%nh?this.backColor?this.backColor:this.roll.alter?A3(i,this.roll.alter.type,this.roll.alter.value):i:i},this._initPosition=i=>{const r=this.container,o=F(this.options.zIndex.value),s=0;this.position=this._calcPosition(r,i,Yt(o,s,r.zLayers)),this.initialPosition=this.position.copy();const a=r.canvas.size,l=0;switch(this.moveCenter={...BS(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??Eo.percent},this.direction=a3(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case Be.inside:this.outType=fn.inside;break;case Be.outside:this.outType=fn.outside;break}this.offset=Fe.origin},this._engine=t}destroy(t){var o,s,a;if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const n=this.container,i=this.pathGenerator,r=n.shapeDrawers.get(this.shape);(o=r==null?void 0:r.particleDestroy)==null||o.call(r,this);for(const l of n.plugins.values())(s=l.particleDestroyed)==null||s.call(l,this,t);for(const l of n.particles.updaters)(a=l.particleDestroyed)==null||a.call(l,this,t);i==null||i.reset(this),this._engine.dispatchEvent(st.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const n=this.container,i=n.canvas;for(const r of n.plugins.values())i.drawParticlePlugin(r,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??$v(this.color))}getMass(){return this.getRadius()**PI*Math.PI*Ga}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??$v(this.strokeColor))}init(t,n,i,r){var _,A,T,I,z,V;const o=this.container,s=this._engine;this.id=t,this.group=r,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=fn.normal,this.ignoresResizeRatio=!0;const a=o.retina.pixelRatio,l=o.actualOptions,u=JS(this._engine,o,l.particles),{reduceDuplicates:c}=u,f=u.effect.type,d=u.shape.type;this.effect=sn(f,this.id,c),this.shape=sn(d,this.id,c);const p=u.effect,y=u.shape;if(i){if((_=i.effect)!=null&&_.type){const $=i.effect.type,re=sn($,this.id,c);re&&(this.effect=re,p.load(i.effect))}if((A=i.shape)!=null&&A.type){const $=i.shape.type,re=sn($,this.id,c);re&&(this.shape=re,y.load(i.shape))}}if(this.effect===Hv){const $=[...this.container.effectDrawers.keys()];this.effect=$[Math.floor(Math.random()*$.length)]}if(this.shape===Hv){const $=[...this.container.shapeDrawers.keys()];this.shape=$[Math.floor(Math.random()*$.length)]}this.effectData=_I(this.effect,p,this.id,c),this.shapeData=TI(this.shape,y,this.id,c),u.load(i);const h=this.effectData;h&&u.load(h.particles);const x=this.shapeData;x&&u.load(x.particles);const m=new YS(s,o);m.load(o.actualOptions.interactivity),m.load(u.interactivity),this.interactivity=m,this.effectFill=(h==null?void 0:h.fill)??u.effect.fill,this.effectClose=(h==null?void 0:h.close)??u.effect.close,this.shapeFill=(x==null?void 0:x.fill)??u.shape.fill,this.shapeClose=(x==null?void 0:x.close)??u.shape.close,this.options=u;const g=this.options.move.path;this.pathDelay=F(g.delay.value)*Ze,g.generator&&(this.pathGenerator=this._engine.getPathGenerator(g.generator),this.pathGenerator&&o.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(o)),o.retina.initParticle(this),this.size=VS(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(n),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();const v=1;this.moveDecay=v-F(this.options.move.decay);const w=o.particles;w.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24;let b=o.effectDrawers.get(this.effect);b||(b=this._engine.getEffectDrawer(this.effect),b&&o.effectDrawers.set(this.effect,b)),b!=null&&b.loadEffect&&b.loadEffect(this);let S=o.shapeDrawers.get(this.shape);S||(S=this._engine.getShapeDrawer(this.shape),S&&o.shapeDrawers.set(this.shape,S)),S!=null&&S.loadShape&&S.loadShape(this);const P=S==null?void 0:S.getSidesCount;P&&(this.sides=P(this)),this.spawning=!1,this.shadowColor=cn(this.options.shadow.color);for(const $ of w.updaters)$.init(this);for(const $ of w.movers)(T=$.init)==null||T.call($,this);(I=b==null?void 0:b.particleInit)==null||I.call(b,o,this),(z=S==null?void 0:S.particleInit)==null||z.call(S,o,this);for(const $ of o.plugins.values())(V=$.particleCreated)==null||V.call($,this)}isInsideCanvas(){const t=this.getRadius(),n=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=n.height+t&&i.x<=n.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){var t;for(const n of this.container.particles.updaters)(t=n.reset)==null||t.call(n,this)}}class EI{constructor(t,n){this.position=t,this.particle=n}}var ho;(function(e){e.circle="circle",e.rectangle="rectangle"})(ho||(ho={}));const ns=2;class ek{constructor(t,n,i){this.position={x:t,y:n},this.type=i}}class et extends ek{constructor(t,n,i){super(t,n,ho.circle),this.radius=i}contains(t){return _t(t,this.position)<=this.radius}intersects(t){const n=this.position,i=t.position,r={x:Math.abs(i.x-n.x),y:Math.abs(i.y-n.y)},o=this.radius;if(t instanceof et||t.type===ho.circle){const s=t,a=o+s.radius,l=Math.sqrt(r.x**ns+r.y**ns);return a>l}else if(t instanceof hn||t.type===ho.rectangle){const s=t,{width:a,height:l}=s.size;return Math.pow(r.x-a,ns)+Math.pow(r.y-l,ns)<=o**ns||r.x<=o+a&&r.y<=o+l||r.x<=a||r.y<=l}return!1}}class hn extends ek{constructor(t,n,i,r){super(t,n,ho.rectangle),this.size={height:r,width:i}}contains(t){const n=this.size.width,i=this.size.height,r=this.position;return t.x>=r.x&&t.x<=r.x+n&&t.y>=r.y&&t.y<=r.y+i}intersects(t){if(t instanceof et)return t.intersects(this);const n=this.size.width,i=this.size.height,r=this.position,o=t.position,s=t instanceof hn?t.size:{width:0,height:0},a=s.width,l=s.height;return o.xr.x&&o.yr.y}}const is=.5,RI=2,OI=4;class uu{constructor(t,n){this.rectangle=t,this.capacity=n,this._subdivide=()=>{const{x:i,y:r}=this.rectangle.position,{width:o,height:s}=this.rectangle.size,{capacity:a}=this;for(let l=0;ln.insert(t))):!1}query(t,n){const i=[];if(!t.intersects(this.rectangle))return[];for(const r of this._points)!t.contains(r.position)&&_t(t.position,r.position)>r.particle.getRadius()&&(!n||n(r.particle))||i.push(r.particle);if(this._divided)for(const r of this._subs)i.push(...r.query(t,n));return i}queryCircle(t,n,i){return this.query(new et(t.x,t.y,n),i)}queryRectangle(t,n,i){return this.query(new hn(t.x,t.y,n.width,n.height),i)}}const Kv=4,AI=2,zI=1,qv=e=>{const{height:t,width:n}=e,i=-.25,r=1.5;return new hn(i*n,i*t,r*n,r*t)};class II{constructor(t,n){this._addToPool=(...r)=>{this._pool.push(...r)},this._applyDensity=(r,o,s)=>{var y;const a=r.number;if(!((y=r.number.density)!=null&&y.enable)){s===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(s,a.limit.value);return}const l=this._initDensityFactor(a.density),u=a.value,c=0,f=a.limit.value>c?a.limit.value:u,d=Math.min(u,f)*l+o,p=Math.min(this.count,this.filter(h=>h.group===s).length);s===void 0?this._limit=a.limit.value*l:this._groupLimits.set(s,a.limit.value*l),pd&&this.removeQuantity(p-d,s)},this._initDensityFactor=r=>{const o=this._container,s=1;if(!o.canvas.element||!r.enable)return s;const a=o.canvas.element,l=o.retina.pixelRatio;return a.width*a.height/(r.height*r.width*l**AI)},this._pushParticle=(r,o,s,a)=>{try{let l=this._pool.pop();l||(l=new MI(this._engine,this._container)),l.init(this._nextId,r,o,s);let u=!0;return a&&(u=a(l)),u?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent(st.particleAdded,{container:this._container,data:{particle:l}}),l):void 0}catch(l){gr().warning(`${qt} adding particle: ${l}`)}},this._removeParticle=(r,o,s)=>{const a=this._array[r];if(!a||a.group!==o)return!1;const l=this._zArray.indexOf(a),u=1;return this._array.splice(r,u),this._zArray.splice(l,u),a.destroy(s),this._engine.dispatchEvent(st.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=t,this._container=n,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 CI(t,n),this._pluginsInitialized=!1;const i=n.canvas.size;this.quadTree=new uu(qv(i),Kv),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach(i=>this.addParticle(i.position?BS(i.position,t.canvas.size):void 0,i.options))}addParticle(t,n,i,r){const o=this._container.actualOptions.particles.number.limit.mode,s=i===void 0?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(s>0)switch(o){case ra.delete:{const f=a+1-s;f>0&&this.removeQuantity(f);break}case ra.wait:if(a>=s)return;break}return this._pushParticle(t,n,i,r)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const n=this._container,i=n.canvas;i.clear(),this.update(t);for(const r of n.plugins.values())i.drawPlugin(r,t);for(const r of this._zArray)r.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){var r,o;const t=this._container,n=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const s of t.plugins.values())if(i=((r=s.particlesInitialization)==null?void 0:r.call(s))??i,i)break;if(this.addManualParticles(),!i){const s=n.particles,a=s.groups;for(const l in a){const u=a[l];for(let c=this.count,f=0;f<((o=u.number)==null?void 0:o.value)&&cthis.count)return;let s=0;for(let a=t;s!i.has(l);this._array=this.filter(a),this._zArray=this._zArray.filter(a);for(const l of i)this._engine.dispatchEvent(st.particleRemoved,{container:this._container,data:{particle:l}});this._addToPool(...i)}this._interactionManager.externalInteract(t);for(const a of this._array){for(const l of this.updaters)l.update(a,t);!a.destroyed&&!a.spawning&&this._interactionManager.particlesInteract(a,t)}if(delete this._resizeFactor,this._needsSort){const a=this._zArray;a.sort((u,c)=>c.position.z-u.position.z||u.id-c.id);const l=1;this._lastZIndex=a[a.length-l].position.z,this._needsSort=!1}}}const Yv=1,Qv=1;class DI{constructor(t){this.container=t,this.pixelRatio=Yv,this.reduceFactor=Qv}init(){const t=this.container,n=t.actualOptions;this.pixelRatio=!n.detectRetina||yr()?Yv:window.devicePixelRatio,this.reduceFactor=Qv;const i=this.pixelRatio,r=t.canvas;if(r.element){const a=r.element;r.size.width=a.offsetWidth*i,r.size.height=a.offsetHeight*i}const o=n.particles,s=o.move;this.maxSpeed=F(s.gravity.maxSpeed)*i,this.sizeAnimationSpeed=F(o.size.animation.speed)*i}initParticle(t){const n=t.options,i=this.pixelRatio,r=n.move,o=r.distance,s=t.retina;s.moveDrift=F(r.drift)*i,s.moveSpeed=F(r.speed)*i,s.sizeAnimationSpeed=F(n.size.animation.speed)*i;const a=s.maxDistance;a.horizontal=o.horizontal!==void 0?o.horizontal*i:void 0,a.vertical=o.vertical!==void 0?o.vertical*i:void 0,s.maxSpeed=F(r.gravity.maxSpeed)*i}}function xe(e){return e&&!e.destroyed}const wf=60;function LI(e,t=wf,n=!1){return{value:e,factor:n?wf/t:wf*e/Ze}}function Or(e,t,...n){const i=new kI(e,t);return ZS(i,...n),i}let $I=class{constructor(t,n,i){this._intersectionManager=r=>{if(!(!xe(this)||!this.actualOptions.pauseOnOutsideViewport))for(const o of r)o.target===this.interactivity.element&&(o.isIntersecting?this.play():this.pause())},this._nextFrame=r=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&rZe){this.draw(!1);return}if(this.particles.draw(o),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(o){gr().error(`${qt} in animation loop`,o)}},this._engine=t,this.id=Symbol(n),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 DI(this),this.canvas=new I3(this),this.particles=new II(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=Or(this._engine,this),this.actualOptions=Or(this._engine,this),this._eventListeners=new D3(this),this._intersectionObserver=h3(r=>this._intersectionManager(r)),this._engine.dispatchEvent(st.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&xe(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!xe(this))return;const n=this.interactivity.element;if(!n)return;const i=(f,d,p)=>{if(!xe(this))return;const y=this.retina.pixelRatio,h={x:d.x*y,y:d.y*y},x=this.particles.quadTree.queryCircle(h,p*y);t(f,x)},r=f=>{if(!xe(this))return;const d=f,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};i(f,p,1)},o=()=>{xe(this)&&(u=!0,c=!1)},s=()=>{xe(this)&&(c=!0)},a=f=>{if(xe(this)){if(u&&!c){const d=f,p=1;let y=d.touches[d.touches.length-p];if(!y&&(y=d.changedTouches[d.changedTouches.length-p],!y))return;const h=this.canvas.element,x=h?h.getBoundingClientRect():void 0,m=0,g={x:y.clientX-(x?x.left:m),y:y.clientY-(x?x.top:m)};i(f,g,Math.max(y.radiusX,y.radiusY))}u=!1,c=!1}},l=()=>{xe(this)&&(u=!1,c=!1)};let u=!1,c=!1;this._clickHandlers.set("click",r),this._clickHandlers.set("touchstart",o),this._clickHandlers.set("touchmove",s),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",l);for(const[f,d]of this._clickHandlers)n.addEventListener(f,d)}addLifeTime(t){this._lifeTime+=t}addPath(t,n,i=!1){return!xe(this)||!i&&this.pathGenerators.has(t)?!1:(this.pathGenerators.set(t,n),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){var t;if(xe(this)){for(const[n,i]of this._clickHandlers)(t=this.interactivity.element)==null||t.removeEventListener(n,i);this._clickHandlers.clear()}}destroy(t=!0){var n,i;if(xe(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const r of this.effectDrawers.values())(n=r.destroy)==null||n.call(r,this);for(const r of this.shapeDrawers.values())(i=r.destroy)==null||i.call(r,this);for(const r of this.effectDrawers.keys())this.effectDrawers.delete(r);for(const r of this.shapeDrawers.keys())this.shapeDrawers.delete(r);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const r=this._engine.items,o=r.findIndex(a=>a===this);o>=0&&r.splice(o,1)}this._engine.dispatchEvent(st.containerDestroyed,{container:this})}}draw(t){if(!xe(this))return;let n=t;const i=r=>{n&&(this._lastFrameTime=void 0,n=!1),this._nextFrame(r)};this._drawAnimationFrame=o3(r=>i(r))}async export(t,n={}){for(const i of this.plugins.values()){if(!i.export)continue;const r=await i.export(t,n);if(r.supported)return r.blob}gr().error(`${qt} - Export plugin with type ${t} not found`)}handleClickMode(t){var n;if(xe(this)){this.particles.handleClickMode(t);for(const i of this.plugins.values())(n=i.handleClickMode)==null||n.call(i,t)}}async init(){var f,d,p,y;if(!xe(this))return;const t=this._engine.getSupportedEffects();for(const h of t){const x=this._engine.getEffectDrawer(h);x&&this.effectDrawers.set(h,x)}const n=this._engine.getSupportedShapes();for(const h of n){const x=this._engine.getShapeDrawer(h);x&&this.shapeDrawers.set(h,x)}await this.particles.initPlugins(),this._options=Or(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Or(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[h,x]of i)this.plugins.set(h,x);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:r,duration:o,delay:s,fpsLimit:a,smooth:l}=this.actualOptions;this.zLayers=r,this._duration=F(o)*Ze,this._delay=F(s)*Ze,this._lifeTime=0;const u=120,c=0;this.fpsLimit=a>c?a:u,this._smooth=l;for(const h of this.effectDrawers.values())await((f=h.init)==null?void 0:f.call(h,this));for(const h of this.shapeDrawers.values())await((d=h.init)==null?void 0:d.call(h,this));for(const h of this.plugins.values())await((p=h.init)==null?void 0:p.call(h));this._engine.dispatchEvent(st.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const h of this.plugins.values())(y=h.particlesSetup)==null||y.call(h);this._engine.dispatchEvent(st.particlesSetup,{container:this})}async loadTheme(t){xe(this)&&(this._currentTheme=t,await this.refresh())}pause(){var t;if(xe(this)&&(this._drawAnimationFrame!==void 0&&(s3(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const n of this.plugins.values())(t=n.pause)==null||t.call(n);this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(st.containerPaused,{container:this})}}play(t){if(!xe(this))return;const n=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),n)for(const i of this.plugins.values())i.play&&i.play();this._engine.dispatchEvent(st.containerPlay,{container:this}),this.draw(n??!1)}async refresh(){if(xe(this))return this.stop(),this.start()}async reset(t){if(xe(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=Or(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Or(this._engine,this,this._options),this.refresh()}async start(){!xe(this)||this.started||(await this.init(),this.started=!0,await new Promise(t=>{const n=async()=>{var i;this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const r of this.plugins.values())await((i=r.start)==null?void 0:i.call(r));this._engine.dispatchEvent(st.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void n(),this._delay)}))}stop(){var t;if(!(!xe(this)||!this.started)){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);for(const n of this.plugins.values())(t=n.stop)==null||t.call(n);for(const n of this.plugins.keys())this.plugins.delete(n);this._sourceOptions=this._options,this._engine.dispatchEvent(st.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===t?!1:(this._responsiveMaxWidth=t,!0)}};class FI{constructor(){this._listeners=new Map}addEventListener(t,n){this.removeEventListener(t,n);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(n)}dispatchEvent(t,n){const i=this._listeners.get(t);i==null||i.forEach(r=>r(n))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,n){const i=this._listeners.get(t);if(!i)return;const r=i.length,o=i.indexOf(n);if(o<0)return;const a=1;r===a?this._listeners.delete(t):i.splice(o,a)}}async function bf(e,t,n,i=!1){let r=t.get(e);return(!r||i)&&(r=await Promise.all([...n.values()].map(o=>o(e))),t.set(e,r)),r}async function jI(e){const t=sn(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():(gr().error(`${qt} ${n.status} while retrieving config file`),e.fallback)}const tk="true",Xv="false",Sf="canvas",NI=e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===Sf)t=e,t.dataset[Zi]||(t.dataset[Zi]=Xv);else{const i=e.getElementsByTagName(Sf);i.length?(t=i[0],t.dataset[Zi]=Xv):(t=document.createElement(Sf),t.dataset[Zi]=tk,e.appendChild(t))}const n="100%";return t.style.width||(t.style.width=n),t.style.height||(t.style.height=n),t},VI=(e,t)=>{let n=t??document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,n.dataset[Zi]=tk,document.body.append(n),n)};class BI{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new FI,this._initialized=!1,this.plugins=[],this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[n,i]of this._configs)t[n]=i;return t}get items(){return this._domArray}get version(){return"3.6.0"}addConfig(t){const n=t.key??t.name??"default";this._configs.set(n,t),this._eventDispatcher.dispatchEvent(st.configAdded,{data:{name:n,config:t}})}async addEffect(t,n,i=!0){Zt(t,r=>{this.getEffectDrawer(r)||this.effectDrawers.set(r,n)}),await this.refresh(i)}addEventListener(t,n){this._eventDispatcher.addEventListener(t,n)}async addInteractor(t,n,i=!0){this._initializers.interactors.set(t,n),await this.refresh(i)}async addMover(t,n,i=!0){this._initializers.movers.set(t,n),await this.refresh(i)}async addParticleUpdater(t,n,i=!0){this._initializers.updaters.set(t,n),await this.refresh(i)}async addPathGenerator(t,n,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,n),await this.refresh(i)}async addPlugin(t,n=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(n)}async addPreset(t,n,i=!1,r=!0){(i||!this.getPreset(t))&&this.presets.set(t,n),await this.refresh(r)}async addShape(t,n=!0){for(const i of t.validTypes)this.getShapeDrawer(i)||this.shapeDrawers.set(i,t);await this.refresh(n)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,n){this._eventDispatcher.dispatchEvent(t,n)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const n=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&n.set(i.id,await i.getPlugin(t));return n}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,n=!1){return bf(t,this.interactors,this._initializers.interactors,n)}async getMovers(t,n=!1){return bf(t,this.movers,this._initializers.movers,n)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(n=>n.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,n=!1){return bf(t,this.updaters,this._initializers.updaters,n)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:n}=this,i=n[t];if(!i||i.destroyed){n.splice(t,1);return}return i}async load(t){var y;const i=t.id??((y=t.element)==null?void 0:y.id)??`tsparticles${Math.floor(ce()*1e4)}`,{index:r,url:o}=t,s=o?await jI({fallback:t.options,url:o,index:r}):t.options,a=sn(s,r),{items:l}=this,u=l.findIndex(h=>h.id.description===i),c=0,f=new $I(this,i,a);if(u>=c){const h=this.item(u),x=1,m=0,g=h?x:m;h&&!h.destroyed&&h.destroy(!1),l.splice(u,g,f)}else l.push(f);const d=VI(i,t.element),p=NI(d);return f.canvas.loadCanvas(p),await f.start(),f}loadOptions(t,n){this.plugins.forEach(i=>{var r;return(r=i.loadOptions)==null?void 0:r.call(i,t,n)})}loadParticlesOptions(t,n,...i){const r=this.updaters.get(t);r&&r.forEach(o=>{var s;return(s=o.loadOptions)==null?void 0:s.call(o,n,...i)})}async refresh(t=!0){t&&await Promise.all(this.items.map(n=>n.refresh()))}removeEventListener(t,n){this._eventDispatcher.removeEventListener(t,n)}setOnClickHandler(t){const{items:n}=this;if(!n.length)throw new Error(`${qt} can only set click handlers after calling tsParticles.load()`);n.forEach(i=>i.addClickHandler(t))}}var Jr;(function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"})(Jr||(Jr={}));class UI{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.s!==void 0&&i.l!==void 0)return Ro(i)}handleRangeColor(t){const n=t.value,i=n.hsl??t.value;if(i.h!==void 0&&i.l!==void 0)return Ro({h:F(i.h),l:F(i.l),s:F(i.s)})}parseString(t){if(!t.startsWith("hsl"))return;const n=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,i=n.exec(t),r=4,o=1,s=10;return i?k3({a:i.length>r?LS(i[Jr.a]):o,h:parseInt(i[Jr.h],s),l:parseInt(i[Jr.l],s),s:parseInt(i[Jr.s],s)}):void 0}}var eo;(function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"})(eo||(eo={}));class WI{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return i}handleRangeColor(t){const n=t.value,i=n.rgb??t.value;if(i.r!==void 0)return{r:F(i.r),g:F(i.g),b:F(i.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;const n=/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,i=n.exec(t),r=10;return i?{a:i.length>4?LS(i[eo.a]):1,b:parseInt(i[eo.b],r),g:parseInt(i[eo.g],r),r:parseInt(i[eo.r],r)}:void 0}}function HI(){const e=new WI,t=new UI;Lv(e),Lv(t);const n=new BI;return n.init(),n}class On{constructor(t){this.type=zo.external,this.container=t}}class um{constructor(t){this.type=zo.particles,this.container=t}}var Vt;(function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"})(Vt||(Vt={}));var Zv;(function(e){e.linear="linear",e.radial="radial",e.random="random"})(Zv||(Zv={}));var ar;(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-out-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"})(ar||(ar={}));const cm=HI();yr()||(window.tsParticles=cm);const GI=e=>{const t=e.id??"tsparticles";return k.useEffect(()=>{let n;return cm.load({id:t,url:e.url,options:e.options}).then(i=>{var r;n=i,(r=e.particlesLoaded)==null||r.call(e,i)}),()=>{n==null||n.destroy()}},[t,e,e.url,e.options]),C.jsx("div",{id:t,className:e.className})};async function KI(e){await e(cm)}const ih=.5,tr=0,an=1,Jv=60,e0=0,qI=.01;function YI(e){const t=e.initialPosition,{dx:n,dy:i}=lt(t,e.position),r=Math.abs(n),o=Math.abs(i),{maxDistance:s}=e.retina,a=s.horizontal,l=s.vertical;if(!a&&!l)return;const u=(a&&r>=a)??!1,c=(l&&o>=l)??!1;if((u||c)&&!e.misplaced)e.misplaced=!!a&&r>a||!!l&&o>l,a&&(e.velocity.x=e.velocity.y*ih-e.velocity.x),l&&(e.velocity.y=e.velocity.x*ih-e.velocity.y);else if((!a||rt.x&&d.x>tr)&&(d.x*=-ce()),l&&(f.yt.y&&d.y>tr)&&(d.y*=-ce())}}function QI(e,t,n,i,r,o){ZI(e,o);const s=e.gravity,a=s!=null&&s.enable&&s.inverse?-an:an;r&&n&&(e.velocity.x+=r*o.factor/(Jv*n)),s!=null&&s.enable&&n&&(e.velocity.y+=a*(s.acceleration*o.factor)/(Jv*n));const l=e.moveDecay;e.velocity.multTo(l);const u=e.velocity.mult(n);s!=null&&s.enable&&i>tr&&(!s.inverse&&u.y>=tr&&u.y>=i||s.inverse&&u.y<=tr&&u.y<=-i)&&(u.y=a*i,n&&(e.velocity.y=u.y/n));const c=e.options.zIndex,f=(an-e.zIndexFactor)**c.velocityRate;u.multTo(f);const{position:d}=e;d.addTo(u),t.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function XI(e,t){const n=e.container;if(!e.spin)return;const i={x:e.spin.direction===Vt.clockwise?Math.cos:Math.sin,y:e.spin.direction===Vt.clockwise?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*i.x(e.spin.angle),e.position.y=e.spin.center.y+e.spin.radius*i.y(e.spin.angle),e.spin.radius+=e.spin.acceleration;const r=Math.max(n.canvas.size.width,n.canvas.size.height),o=r*ih;e.spin.radius>o?(e.spin.radius=o,e.spin.acceleration*=-an):e.spin.radius=c?Vt.clockwise:Vt.counterClockwise,angle:e.velocity.angle,radius:l,acceleration:e.retina.spinAcceleration}}const t4=2,n4=1,i4=1;class r4{init(t){const n=t.options,i=n.move.gravity;t.gravity={enable:i.enable,acceleration:F(i.acceleration),inverse:i.inverse},e4(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,n){var h,x;const i=t.options,r=i.move;if(!r.enable)return;const o=t.container,s=o.retina.pixelRatio;(h=t.retina).moveSpeed??(h.moveSpeed=F(r.speed)*s),(x=t.retina).moveDrift??(x.moveDrift=F(t.options.move.drift)*s);const a=JI(t),l=t.retina.moveSpeed*o.retina.reduceFactor,u=t.retina.moveDrift,c=kn(i.size.value)*s,f=r.size?t.getRadius()/c:n4,d=n.factor||i4,p=l*f*a*d/t4,y=t.retina.maxSpeed??o.retina.maxSpeed;r.spin.enable?XI(t,p):QI(t,r,p,y,u,n),YI(t)}}async function o4(e,t=!0){await e.addMover("base",()=>Promise.resolve(new r4),t)}const s4=2,a4=Math.PI*s4,l4=0,t0={x:0,y:0};function u4(e){const{context:t,particle:n,radius:i}=e;n.circleRange||(n.circleRange={min:l4,max:a4});const r=n.circleRange;t.arc(t0.x,t0.y,i,r.min,r.max,!1)}const c4=12,f4=360,n0=0;class d4{constructor(){this.validTypes=["circle"]}draw(t){u4(t)}getSidesCount(){return c4}particleInit(t,n){const i=n.shapeData,r=(i==null?void 0:i.angle)??{max:f4,min:n0};n.circleRange=Zr(r)?{min:Si(r.min),max:Si(r.max)}:{min:n0,max:Si(r)}}}async function h4(e,t=!0){await e.addShape(new d4,t)}class p4{constructor(t){this.container=t}init(t){const n=ta(t.options.color,t.id,t.options.reduceDuplicates);n&&(t.color=KS(n,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){const{h:n,s:i,l:r}=t.options.color.animation,{color:o}=t;return!t.destroyed&&!t.spawning&&((o==null?void 0:o.h.value)!==void 0&&n.enable||(o==null?void 0:o.s.value)!==void 0&&i.enable||(o==null?void 0:o.l.value)!==void 0&&r.enable)}update(t,n){qS(t.color,n)}}async function m4(e,t=!0){await e.addParticleUpdater("color",n=>Promise.resolve(new p4(n)),t)}class g4{constructor(t){this.container=t}init(t){const n=t.options.opacity,i=1;t.opacity=VS(n,i);const r=n.animation;r.enable&&(t.opacity.velocity=F(r.speed)/hi*this.container.retina.reduceFactor,r.sync||(t.opacity.velocity*=ce()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,n){!this.isEnabled(t)||!t.opacity||om(t,t.opacity,!0,t.options.opacity.animation.destroy,n)}}async function y4(e,t=!0){await e.addParticleUpdater("opacity",n=>Promise.resolve(new g4(n)),t)}const cu=0,po=0;function v4(e){if(e.outMode!==ze.bounce&&e.outMode!==ze.split||e.direction!==G.left&&e.direction!==G.right)return;e.bounds.righte.canvasSize.width&&e.direction===G.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let n=!1;if(e.direction===G.right&&e.bounds.right>=e.canvasSize.width&&t>cu||e.direction===G.left&&e.bounds.left<=po&&t=e.canvasSize.width&&e.direction===G.right?e.particle.position.x=e.canvasSize.width-i:e.bounds.left<=po&&e.direction===G.left&&(e.particle.position.x=i),e.outMode===ze.split&&e.particle.destroy()}function x4(e){if(e.outMode!==ze.bounce&&e.outMode!==ze.split||e.direction!==G.bottom&&e.direction!==G.top)return;e.bounds.bottome.canvasSize.height&&e.direction===G.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let n=!1;if(e.direction===G.bottom&&e.bounds.bottom>=e.canvasSize.height&&t>cu||e.direction===G.top&&e.bounds.top<=po&&t=e.canvasSize.height&&e.direction===G.bottom?e.particle.position.y=e.canvasSize.height-i:e.bounds.top<=po&&e.direction===G.top&&(e.particle.position.y=i),e.outMode===ze.split&&e.particle.destroy()}class w4{constructor(t){this.container=t,this.modes=[ze.bounce,ze.split]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;let s=!1;for(const d of o.plugins.values())if(d.particleBounce!==void 0&&(s=d.particleBounce(t,i,n)),s)break;if(s)return;const a=t.getPosition(),l=t.offset,u=t.getRadius(),c=wa(a,u),f=o.canvas.size;v4({particle:t,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u}),x4({particle:t,outMode:r,direction:n,bounds:c,canvasSize:f,offset:l,size:u})}}const Ka=0;class b4{constructor(t){this.container=t,this.modes=[ze.destroy]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case fn.normal:case fn.outside:if(nm(t.position,o.canvas.size,Fe.origin,t.getRadius(),n))return;break;case fn.inside:{const{dx:s,dy:a}=lt(t.position,t.moveCenter),{x:l,y:u}=t.velocity;if(lt.moveCenter.radius||ut.moveCenter.radius||l>=Ka&&s<-t.moveCenter.radius||u>=Ka&&a<-t.moveCenter.radius)return;break}}o.particles.remove(t,t.group,!0)}}const qa=0;class S4{constructor(t){this.container=t,this.modes=[ze.none]}update(t,n,i,r){if(!this.modes.includes(r)||((t.options.move.distance.horizontal&&(n===G.left||n===G.right))??(t.options.move.distance.vertical&&(n===G.top||n===G.bottom))))return;const o=t.options.move.gravity,s=this.container,a=s.canvas.size,l=t.getRadius();if(o.enable){const u=t.position;(!o.inverse&&u.y>a.height+l&&n===G.bottom||o.inverse&&u.y<-l&&n===G.top)&&s.particles.remove(t)}else{if(t.velocity.y>qa&&t.position.y<=a.height+l||t.velocity.y=-l||t.velocity.x>qa&&t.position.x<=a.width+l||t.velocity.x=-l)return;nm(t.position,s.canvas.size,Fe.origin,l,n)||s.particles.remove(t)}}}const Ya=0,Qa=0;class k4{constructor(t){this.container=t,this.modes=[ze.out]}update(t,n,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(t.outType){case fn.inside:{const{x:s,y:a}=t.velocity,l=Fe.origin;l.length=t.moveCenter.radius,l.angle=t.velocity.angle+Math.PI,l.addTo(Fe.create(t.moveCenter));const{dx:u,dy:c}=lt(t.position,l);if(s<=Ya&&u>=Qa||a<=Ya&&c>=Qa||s>=Ya&&u<=Qa||a>=Ya&&c<=Qa)return;t.position.x=Math.floor(kt({min:0,max:o.canvas.size.width})),t.position.y=Math.floor(kt({min:0,max:o.canvas.size.height}));const{dx:f,dy:d}=lt(t.position,t.moveCenter);t.direction=Math.atan2(-d,-f),t.velocity.angle=t.direction;break}default:{if(nm(t.position,o.canvas.size,Fe.origin,t.getRadius(),n))return;switch(t.outType){case fn.outside:{t.position.x=Math.floor(kt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(kt({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:s,dy:a}=lt(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(a,s),t.velocity.angle=t.direction);break}case fn.normal:{const s=t.options.move.warp,a=o.canvas.size,l={bottom:a.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:a.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},u=t.getRadius(),c=wa(t.position,u);n===G.right&&c.left>a.width+t.offset.x?(t.position.x=l.left,t.initialPosition.x=t.position.x,s||(t.position.y=ce()*a.height,t.initialPosition.y=t.position.y)):n===G.left&&c.right<-t.offset.x&&(t.position.x=l.right,t.initialPosition.x=t.position.x,s||(t.position.y=ce()*a.height,t.initialPosition.y=t.position.y)),n===G.bottom&&c.top>a.height+t.offset.y?(s||(t.position.x=ce()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.top,t.initialPosition.y=t.position.y):n===G.top&&c.bottom<-t.offset.y&&(s||(t.position.x=ce()*a.width,t.initialPosition.x=t.position.x),t.position.y=l.bottom,t.initialPosition.y=t.position.y);break}}break}}}}const C4=(e,t)=>e.default===t||e.bottom===t||e.left===t||e.right===t||e.top===t;class P4{constructor(t){this._addUpdaterIfMissing=(n,i,r)=>{const o=n.options.move.outModes;!this.updaters.has(i)&&C4(o,i)&&this.updaters.set(i,r(this.container))},this._updateOutMode=(n,i,r,o)=>{for(const s of this.updaters.values())s.update(n,o,i,r)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,ze.bounce,n=>new w4(n)),this._addUpdaterIfMissing(t,ze.out,n=>new k4(n)),this._addUpdaterIfMissing(t,ze.destroy,n=>new b4(n)),this._addUpdaterIfMissing(t,ze.none,n=>new S4(n))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,n){const i=t.options.move.outModes;this._updateOutMode(t,n,i.bottom??i.default,G.bottom),this._updateOutMode(t,n,i.left??i.default,G.left),this._updateOutMode(t,n,i.right??i.default,G.right),this._updateOutMode(t,n,i.top??i.default,G.top)}}async function _4(e,t=!0){await e.addParticleUpdater("outModes",n=>Promise.resolve(new P4(n)),t)}const Fi=0;class T4{init(t){const n=t.container,i=t.options.size,r=i.animation;r.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??n.retina.sizeAnimationSpeed)/hi*n.retina.reduceFactor,r.sync||(t.size.velocity*=ce()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??Fi)<=Fi||(t.size.maxLoops??Fi)>Fi&&(t.size.loops??Fi)<(t.size.maxLoops??Fi))}reset(t){t.size.loops=Fi}update(t,n){this.isEnabled(t)&&om(t,t.size,!0,t.options.size.animation.destroy,n)}}async function M4(e,t=!0){await e.addParticleUpdater("size",()=>Promise.resolve(new T4),t)}async function E4(e,t=!0){await o4(e,!1),await h4(e,!1),await m4(e,!1),await y4(e,!1),await _4(e,!1),await M4(e,!1),await e.refresh(t)}async function R4(){pf(ar.easeInQuad,e=>e**2),pf(ar.easeOutQuad,e=>1-(1-e)**2),pf(ar.easeInOutQuad,e=>e<.5?2*e**2:1-(-2*e+2)**2/2),await Promise.resolve()}function O4(e,t){const{context:n,opacity:i}=e,r=.5,o=n.globalAlpha;if(!t)return;const s=t.width,a=s*r;n.globalAlpha=i,n.drawImage(t,-a,-a,s,s),n.globalAlpha=o}const kf='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',i0=0;class A4{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(const[t,n]of this._emojiShapeDict)n instanceof ImageBitmap&&(n==null||n.close()),this._emojiShapeDict.delete(t)}draw(t){const n=t.particle.emojiDataKey;if(!n)return;const i=this._emojiShapeDict.get(n);i&&O4(t,i)}async init(t){const n=t.actualOptions,{validTypes:i}=this;if(!i.find(s=>_e(s,n.particles.shape.type)))return;const r=[Dv(kf)],o=i.map(s=>n.particles.shape.options[s]).find(s=>!!s);o&&Zt(o,s=>{s.font&&r.push(Dv(s.font))}),await Promise.all(r)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,n){const r=n.shapeData;if(!(r!=null&&r.value))return;const o=sn(r.value,n.randomIndexData);if(!o)return;const s=typeof o=="string"?{font:r.font??kf,padding:r.padding??i0,value:o}:{font:kf,padding:i0,...r,...o},a=s.font,l=s.value,u=`${l}_${a}`;if(this._emojiShapeDict.has(u)){n.emojiDataKey=u;return}const c=s.padding*2,f=kn(n.size.value),d=f+c,p=d*2;let y;if(typeof OffscreenCanvas<"u"){const h=new OffscreenCanvas(p,p),x=h.getContext("2d");if(!x)return;x.font=`400 ${f*2}px ${a}`,x.textBaseline="middle",x.textAlign="center",x.fillText(l,d,d),y=h.transferToImageBitmap()}else{const h=document.createElement("canvas");h.width=p,h.height=p;const x=h.getContext("2d");if(!x)return;x.font=`400 ${f*2}px ${a}`,x.textBaseline="middle",x.textAlign="center",x.fillText(l,d,d),y=h}this._emojiShapeDict.set(u,y),n.emojiDataKey=u}}async function z4(e,t=!0){await e.addShape(new A4,t)}const I4=1,D4=1,nk=0;function ik(e,t,n,i,r){const o=e.actualOptions.interactivity.modes.attract;if(!o)return;const s=e.particles.quadTree.query(i,r);for(const a of s){const{dx:l,dy:u,distance:c}=lt(a.position,t),f=o.speed*o.factor,d=Yt(DS(o.easing)(D4-c/n)*f,I4,o.maxSpeed),p=Fe.create(c?l/c*d:f,c?u/c*d:f);a.position.subFrom(p)}}function L4(e,t){e.attract||(e.attract={particles:[]});const{attract:n}=e;if(n.finish||(n.count||(n.count=0),n.count++,n.count===e.particles.count&&(n.finish=!0)),n.clicking){const i=e.interactivity.mouse.clickPosition,r=e.retina.attractModeDistance;if(!r||rt(o))}else n.clicking===!1&&(n.particles=[])}function $4(e,t){const n=e.interactivity.mouse.position,i=e.retina.attractModeDistance;!i||it(r))}class F4{constructor(){this.distance=200,this.duration=.4,this.easing=ar.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed),t.speed!==void 0&&(this.speed=t.speed))}}const rs="attract";let j4=class extends On{constructor(t,n){super(n),this._engine=t,n.attract||(n.attract={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.attract;if(!(!o||i!==rs)){n.attract||(n.attract={particles:[]}),n.attract.clicking=!0,n.attract.count=0;for(const s of n.attract.particles)this.isEnabled(s)&&s.velocity.setTo(s.initialVelocity);n.attract.particles=[],n.attract.finish=!1,setTimeout(()=>{n.destroyed||(n.attract||(n.attract={particles:[]}),n.attract.clicking=!1)},o.duration*Ze)}}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.attract;n&&(t.retina.attractModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===pr,r=n.interactivity.events,{enable:o,mode:s}=r.onHover,{enable:a,mode:l}=r.onClick;i&&o&&_e(rs,s)?$4(this.container,u=>this.isEnabled(u)):a&&_e(rs,l)&&L4(this.container,u=>this.isEnabled(u))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events;if((!r.position||!o.onHover.enable)&&(!r.clickPosition||!o.onClick.enable))return!1;const s=o.onHover.mode,a=o.onClick.mode;return _e(rs,s)||_e(rs,a)}loadModeOptions(t,...n){t.attract||(t.attract=new F4);for(const i of n)t.attract.load(i==null?void 0:i.attract)}reset(){}};async function N4(e,t=!0){await e.addInteractor("externalAttract",n=>Promise.resolve(new j4(e,n)),t)}const V4=2,Sl=.5,B4=Math.PI*Sl,r0=2,rk=10,U4=0;function ok(e,t,n,i,r){const o=e.particles.quadTree.query(i,r);for(const s of o)i instanceof et?jS(Jd(s),{position:t,radius:n,mass:n**V4*B4,velocity:Fe.origin,factor:Fe.origin}):i instanceof hn&&v3(s,wa(t,n))}function W4(e,t,n,i){const r=document.querySelectorAll(t);r.length&&r.forEach(o=>{const s=o,a=e.retina.pixelRatio,l={x:(s.offsetLeft+s.offsetWidth*Sl)*a,y:(s.offsetTop+s.offsetHeight*Sl)*a},u=s.offsetWidth*Sl*a,c=rk*a,f=n.type===Ao.circle?new et(l.x,l.y,u+c):new hn(s.offsetLeft*a-c,s.offsetTop*a-c,s.offsetWidth*a+c*r0,s.offsetHeight*a+c*r0);i(l,u,f)})}function H4(e,t,n,i){rm(n,t,(r,o)=>W4(e,r,o,(s,a,l)=>ok(e,s,a,l,i)))}function G4(e,t){const n=e.retina.pixelRatio,i=rk*n,r=e.interactivity.mouse.position,o=e.retina.bounceModeDistance;!o||othis.isEnabled(l)):H4(this.container,a,Xa,l=>this.isEnabled(l))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv;return!!r.position&&o.onHover.enable&&_e(Xa,o.onHover.mode)||im(Xa,s)}loadModeOptions(t,...n){t.bounce||(t.bounce=new K4);for(const i of n)t.bounce.load(i==null?void 0:i.bounce)}reset(){}}async function Y4(e,t=!0){await e.addInteractor("externalBounce",n=>Promise.resolve(new q4(n)),t)}class sk{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!O(t)){if(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.mix!==void 0&&(this.mix=t.mix),t.opacity!==void 0&&(this.opacity=t.opacity),t.color!==void 0){const n=Rn(this.color)?void 0:this.color;this.color=Zt(t.color,i=>it.create(n,i))}t.size!==void 0&&(this.size=t.size)}}}class Q4 extends sk{constructor(){super(),this.selectors=[]}load(t){super.load(t),!O(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class X4 extends sk{load(t){super.load(t),!O(t)&&(this.divs=Zt(t.divs,n=>{const i=new Q4;return i.load(n),i}))}}var vn;(function(e){e.color="color",e.opacity="opacity",e.size="size"})(vn||(vn={}));function o0(e,t,n,i){if(t>=n){const r=e+(t-n)*i;return Yt(r,e,t)}else if(t{var u;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.clickPosition,o=i.interactivity.modes.bubble;if(!o||!r)return;n.bubble||(n.bubble={});const s=n.retina.bubbleModeDistance;if(!s||sthis.isEnabled(c)),{bubble:l}=n;for(const c of a){if(!l.clicking)continue;c.bubble.inRange=!l.durationEnd;const f=c.getPosition(),d=_t(f,r),p=(new Date().getTime()-(n.interactivity.mouse.clickTime??Z4))/Ze;p>o.duration&&(l.durationEnd=!0),p>o.duration*J4&&(l.clicking=!1,l.durationEnd=!1);const y={bubbleObj:{optValue:n.retina.bubbleModeSize,value:c.bubble.radius},particlesObj:{optValue:kn(c.options.size.value)*n.retina.pixelRatio,value:c.size.value},type:vn.size};this._process(c,d,p,y);const h={bubbleObj:{optValue:o.opacity,value:c.bubble.opacity},particlesObj:{optValue:kn(c.options.opacity.value),value:((u=c.opacity)==null?void 0:u.value)??s0},type:vn.opacity};this._process(c,d,p,h),!l.durationEnd&&d<=s?this._hoverBubbleColor(c,d):delete c.bubble.color}},this._hoverBubble=()=>{const n=this.container,i=n.interactivity.mouse.position,r=n.retina.bubbleModeDistance;if(!r||rthis.isEnabled(s));for(const s of o){s.bubble.inRange=!0;const a=s.getPosition(),l=_t(a,i),u=a0-l/r;l<=r?u>=tD&&n.interactivity.status===pr&&(this._hoverBubbleSize(s,u),this._hoverBubbleOpacity(s,u),this._hoverBubbleColor(s,u)):this.reset(s),n.interactivity.status===Xd&&this.reset(s)}},this._hoverBubbleColor=(n,i,r)=>{const o=this.container.actualOptions,s=r??o.interactivity.modes.bubble;if(s){if(!n.bubble.finalColor){const a=s.color;if(!a)return;const l=sn(a);n.bubble.finalColor=ta(l)}if(n.bubble.finalColor)if(s.mix){n.bubble.color=void 0;const a=n.getFillColor();n.bubble.color=a?WS(sm(a,n.bubble.finalColor,a0-i,i)):n.bubble.finalColor}else n.bubble.color=n.bubble.finalColor}},this._hoverBubbleOpacity=(n,i,r)=>{var f,d;const o=this.container,s=o.actualOptions,a=(r==null?void 0:r.opacity)??((f=s.interactivity.modes.bubble)==null?void 0:f.opacity);if(!a)return;const l=n.options.opacity.value,u=((d=n.opacity)==null?void 0:d.value)??s0,c=o0(u,a,kn(l),i);c!==void 0&&(n.bubble.opacity=c)},this._hoverBubbleSize=(n,i,r)=>{const o=this.container,s=r!=null&&r.size?r.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(s===void 0)return;const a=kn(n.options.size.value)*o.retina.pixelRatio,l=n.size.value,u=o0(l,s,a,i);u!==void 0&&(n.bubble.radius=u)},this._process=(n,i,r,o)=>{const s=this.container,a=o.bubbleObj.optValue,l=s.actualOptions,u=l.interactivity.modes.bubble;if(!u||a===void 0)return;const c=u.duration,f=s.retina.bubbleModeDistance,d=o.particlesObj.optValue,p=o.bubbleObj.value,y=o.particlesObj.value??eD,h=o.type;if(!(!f||f{const o=this.container,s=document.querySelectorAll(i),a=o.actualOptions.interactivity.modes.bubble;!a||!s.length||s.forEach(l=>{const u=l,c=o.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth*Pf)*c,y:(u.offsetTop+u.offsetHeight*Pf)*c},d=u.offsetWidth*Pf*c,p=r.type===Ao.circle?new et(f.x,f.y,d):new hn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),y=o.particles.quadTree.query(p,h=>this.isEnabled(h));for(const h of y){if(!p.contains(h.getPosition()))continue;h.bubble.inRange=!0;const x=a.divs,m=FS(x,u);(!h.bubble.div||h.bubble.div!==u)&&(this.clear(h,n,!0),h.bubble.div=u),this._hoverBubbleSize(h,_f,m),this._hoverBubbleOpacity(h,_f,m),this._hoverBubbleColor(h,_f,m)}})},t.bubble||(t.bubble={}),this.handleClickMode=n=>{n===ji&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,n,i){t.bubble.inRange&&!i||(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.bubble;n&&(t.retina.bubbleModeDistance=n.distance*t.retina.pixelRatio,n.size!==void 0&&(t.retina.bubbleModeSize=n.size*t.retina.pixelRatio))}interact(t){const n=this.container.actualOptions,i=n.interactivity.events,r=i.onHover,o=i.onClick,s=r.enable,a=r.mode,l=o.enable,u=o.mode,c=i.onDiv;s&&_e(ji,a)?this._hoverBubble():l&&_e(ji,u)?this._clickBubble():rm(ji,c,(f,d)=>this._singleSelectorHover(t,f,d))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,{onClick:s,onDiv:a,onHover:l}=o,u=im(ji,a);return u||l.enable&&r.position||s.enable&&r.clickPosition?_e(ji,l.mode)||_e(ji,s.mode)||u:!1}loadModeOptions(t,...n){t.bubble||(t.bubble=new X4);for(const i of n)t.bubble.load(i==null?void 0:i.bubble)}reset(t){t.bubble.inRange=!1}}async function iD(e,t=!0){await e.addInteractor("externalBubble",n=>Promise.resolve(new nD(n)),t)}class rD{constructor(){this.opacity=.5}load(t){O(t)||t.opacity!==void 0&&(this.opacity=t.opacity)}}class oD{constructor(){this.distance=80,this.links=new rD,this.radius=60}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links),t.radius!==void 0&&(this.radius=t.radius))}}const l0=0,u0=1,sD=0;function aD(e,t,n,i){const r=Math.floor(n.getRadius()/t.getRadius()),o=t.getFillColor(),s=n.getFillColor();if(!o||!s)return;const a=t.getPosition(),l=n.getPosition(),u=sm(o,s,t.getRadius(),n.getRadius()),c=e.createLinearGradient(a.x,a.y,l.x,l.y);return c.addColorStop(l0,na(o,i)),c.addColorStop(Yt(r,l0,u0),Gn(u,i)),c.addColorStop(u0,na(s,i)),c}function lD(e,t,n,i,r){Ms(e,i,r),e.lineWidth=t,e.strokeStyle=n,e.stroke()}function uD(e,t,n,i){const r=e.actualOptions,o=r.interactivity.modes.connect;if(o)return aD(t,n,i,o.links.opacity)}function cD(e,t,n){e.canvas.draw(i=>{const r=uD(e,i,t,n);if(!r)return;const o=t.getPosition(),s=n.getPosition();lD(i,t.retina.linksWidth??sD,r,o,s)})}const fD="connect",c0=0;class dD extends On{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.connect;n&&(t.retina.connectModeDistance=n.distance*t.retina.pixelRatio,t.retina.connectModeRadius=n.radius*t.retina.pixelRatio)}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&t.interactivity.status==="pointermove"){const i=t.interactivity.mouse.position,{connectModeDistance:r,connectModeRadius:o}=t.retina;if(!r||rthis.isEnabled(l));a.forEach((l,u)=>{const c=l.getPosition(),f=1;for(const d of a.slice(u+f)){const p=d.getPosition(),y=Math.abs(r),h=Math.abs(c.x-p.x),x=Math.abs(c.y-p.y);hPromise.resolve(new dD(n)),t)}class pD{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){O(t)||(t.blink!==void 0&&(this.blink=t.blink),t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.consent!==void 0&&(this.consent=t.consent),t.opacity!==void 0&&(this.opacity=t.opacity))}}class mD{constructor(){this.distance=100,this.links=new pD}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),this.links.load(t.links))}}const gD=0;function yD(e,t,n,i,r,o){Ms(e,n,i),e.strokeStyle=Gn(r,o),e.lineWidth=t,e.stroke()}function vD(e,t,n,i,r){e.canvas.draw(o=>{const s=t.getPosition();yD(o,t.retina.linksWidth??gD,s,r,n,i)})}const xD="grab",wD=0,bD=0;class SD extends On{constructor(t){super(t)}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.grab;n&&(t.retina.grabModeDistance=n.distance*t.retina.pixelRatio)}interact(){var a;const t=this.container,n=t.actualOptions,i=n.interactivity;if(!i.modes.grab||!i.events.onHover.enable||t.interactivity.status!==pr)return;const r=t.interactivity.mouse.position;if(!r)return;const o=t.retina.grabModeDistance;if(!o||othis.isEnabled(l));for(const l of s){const u=l.getPosition(),c=_t(u,r);if(c>o)continue;const f=i.modes.grab.links,d=f.opacity,p=d-c*d/o;if(p<=bD)continue;const y=f.color??((a=l.options.links)==null?void 0:a.color);if(!t.particles.grabLineColor&&y){const x=i.modes.grab.links;t.particles.grabLineColor=GS(y,x.blink,x.consent)}const h=th(l,void 0,t.particles.grabLineColor);h&&vD(t,l,h,p,r)}}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&_e(xD,r.onHover.mode)}loadModeOptions(t,...n){t.grab||(t.grab=new mD);for(const i of n)t.grab.load(i==null?void 0:i.grab)}reset(){}}async function kD(e,t=!0){await e.addInteractor("externalGrab",n=>Promise.resolve(new SD(n)),t)}const CD="pause";class PD extends On{constructor(t){super(t),this.handleClickMode=n=>{if(n!==CD)return;const i=this.container;i.animationStatus?i.pause():i.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function _D(e,t=!0){await e.addInteractor("externalPause",n=>Promise.resolve(new PD(n)),t)}class TD{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if(O(t))return;t.default!==void 0&&(this.default=t.default),t.groups!==void 0&&(this.groups=t.groups.map(i=>i)),this.groups.length||(this.default=!0);const n=t.quantity;n!==void 0&&(this.quantity=Q(n))}}const MD="push",ED=0;class RD extends On{constructor(t){super(t),this.handleClickMode=n=>{if(n!==MD)return;const i=this.container,r=i.actualOptions,o=r.interactivity.modes.push;if(!o)return;const s=F(o.quantity);if(s<=ED)return;const a=mc([void 0,...o.groups]),l=a!==void 0?i.actualOptions.particles.groups[a]:void 0;i.particles.push(s,i.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.push||(t.push=new TD);for(const i of n)t.push.load(i==null?void 0:i.push)}reset(){}}async function OD(e,t=!0){await e.addInteractor("externalPush",n=>Promise.resolve(new RD(n)),t)}class AD{constructor(){this.quantity=2}load(t){if(O(t))return;const n=t.quantity;n!==void 0&&(this.quantity=Q(n))}}const zD="remove";class ID extends On{constructor(t){super(t),this.handleClickMode=n=>{const i=this.container,r=i.actualOptions;if(!r.interactivity.modes.remove||n!==zD)return;const o=F(r.interactivity.modes.remove.quantity);i.particles.removeQuantity(o)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...n){t.remove||(t.remove=new AD);for(const i of n)t.remove.load(i==null?void 0:i.remove)}reset(){}}async function DD(e,t=!0){await e.addInteractor("externalRemove",n=>Promise.resolve(new ID(n)),t)}class ak{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=ar.easeOutQuad}load(t){O(t)||(t.distance!==void 0&&(this.distance=t.distance),t.duration!==void 0&&(this.duration=t.duration),t.easing!==void 0&&(this.easing=t.easing),t.factor!==void 0&&(this.factor=t.factor),t.speed!==void 0&&(this.speed=t.speed),t.maxSpeed!==void 0&&(this.maxSpeed=t.maxSpeed))}}class LD extends ak{constructor(){super(),this.selectors=[]}load(t){super.load(t),!O(t)&&t.selectors!==void 0&&(this.selectors=t.selectors)}}class $D extends ak{load(t){super.load(t),!O(t)&&(this.divs=Zt(t.divs,n=>{const i=new LD;return i.load(n),i}))}}const Ni="repulse",FD=0,jD=6,ND=3,VD=2,BD=0,UD=0,WD=1,Tf=.5;class HD extends On{constructor(t,n){super(n),this._clickRepulse=()=>{const i=this.container,r=i.actualOptions.interactivity.modes.repulse;if(!r)return;const o=i.repulse??{particles:[]};if(o.finish||(o.count||(o.count=0),o.count++,o.count===i.particles.count&&(o.finish=!0)),o.clicking){const s=i.retina.repulseModeDistance;if(!s||sthis.isEnabled(f));for(const f of c){const{dx:d,dy:p,distance:y}=lt(l,f.position),h=y**VD,x=r.speed,m=-a*x/h;if(h<=a){o.particles.push(f);const g=Fe.create(d,p);g.length=m,f.velocity.setTo(g)}}}else if(o.clicking===!1){for(const s of o.particles)s.velocity.setTo(s.initialVelocity);o.particles=[]}},this._hoverRepulse=()=>{const i=this.container,r=i.interactivity.mouse.position,o=i.retina.repulseModeDistance;!o||o{const a=this.container,l=a.particles.quadTree.query(o,x=>this.isEnabled(x)),u=a.actualOptions.interactivity.modes.repulse;if(!u)return;const{easing:c,speed:f,factor:d,maxSpeed:p}=u,y=DS(c),h=((s==null?void 0:s.speed)??f)*d;for(const x of l){const{dx:m,dy:g,distance:v}=lt(x.position,i),w=Yt(y(WD-v/r)*h,UD,p),b=Fe.create(v?m/v*w:h,v?g/v*w:h);x.position.addTo(b)}},this._singleSelectorRepulse=(i,r)=>{const o=this.container,s=o.actualOptions.interactivity.modes.repulse;if(!s)return;const a=document.querySelectorAll(i);a.length&&a.forEach(l=>{const u=l,c=o.retina.pixelRatio,f={x:(u.offsetLeft+u.offsetWidth*Tf)*c,y:(u.offsetTop+u.offsetHeight*Tf)*c},d=u.offsetWidth*Tf*c,p=r.type===Ao.circle?new et(f.x,f.y,d):new hn(u.offsetLeft*c,u.offsetTop*c,u.offsetWidth*c,u.offsetHeight*c),y=s.divs,h=FS(y,u);this._processRepulse(f,d,p,h)})},this._engine=t,n.repulse||(n.repulse={particles:[]}),this.handleClickMode=i=>{const r=this.container.actualOptions,o=r.interactivity.modes.repulse;if(!o||i!==Ni)return;n.repulse||(n.repulse={particles:[]});const s=n.repulse;s.clicking=!0,s.count=0;for(const a of n.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{n.destroyed||(s.clicking=!1)},o.duration*Ze)}}clear(){}init(){const t=this.container,n=t.actualOptions.interactivity.modes.repulse;n&&(t.retina.repulseModeDistance=n.distance*t.retina.pixelRatio)}interact(){const t=this.container,n=t.actualOptions,i=t.interactivity.status===pr,r=n.interactivity.events,o=r.onHover,s=o.enable,a=o.mode,l=r.onClick,u=l.enable,c=l.mode,f=r.onDiv;i&&s&&_e(Ni,a)?this._hoverRepulse():u&&_e(Ni,c)?this._clickRepulse():rm(Ni,f,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(t){const n=this.container,i=n.actualOptions,r=n.interactivity.mouse,o=((t==null?void 0:t.interactivity)??i.interactivity).events,s=o.onDiv,a=o.onHover,l=o.onClick,u=im(Ni,s);if(!(u||a.enable&&r.position||l.enable&&r.clickPosition))return!1;const c=a.mode,f=l.mode;return _e(Ni,c)||_e(Ni,f)||u}loadModeOptions(t,...n){t.repulse||(t.repulse=new $D);for(const i of n)t.repulse.load(i==null?void 0:i.repulse)}reset(){}}async function GD(e,t=!0){await e.addInteractor("externalRepulse",n=>Promise.resolve(new HD(e,n)),t)}class KD{constructor(){this.factor=3,this.radius=200}load(t){O(t)||(t.factor!==void 0&&(this.factor=t.factor),t.radius!==void 0&&(this.radius=t.radius))}}const qD="slow",YD=0;class QD extends On{constructor(t){super(t)}clear(t,n,i){t.slow.inRange&&!i||(t.slow.factor=1)}init(){const t=this.container,n=t.actualOptions.interactivity.modes.slow;n&&(t.retina.slowModeRadius=n.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){const n=this.container,i=n.interactivity.mouse,r=((t==null?void 0:t.interactivity)??n.actualOptions.interactivity).events;return r.onHover.enable&&!!i.position&&_e(qD,r.onHover.mode)}loadModeOptions(t,...n){t.slow||(t.slow=new KD);for(const i of n)t.slow.load(i==null?void 0:i.slow)}reset(t){t.slow.inRange=!1;const n=this.container,i=n.actualOptions,r=n.interactivity.mouse.position,o=n.retina.slowModeRadius,s=i.interactivity.modes.slow;if(!s||!o||oo||(f.inRange=!0,f.factor=u/c)}}async function XD(e,t=!0){await e.addInteractor("externalSlow",n=>Promise.resolve(new QD(n)),t)}const ZD=0,JD=1,eL=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function tL(e,t,n){const{svgData:i}=e;if(!i)return"";const r=na(t,n);if(i.includes("fill"))return i.replace(eL,()=>r);const o=i.indexOf(">");return`${i.substring(ZD,o)} fill="${r}"${i.substring(o)}`}async function yc(e){return new Promise(t=>{e.loading=!0;const n=new Image;e.element=n,n.addEventListener("load",()=>{e.loading=!1,t()}),n.addEventListener("error",()=>{e.element=void 0,e.error=!0,e.loading=!1,gr().error(`${qt} loading image: ${e.source}`),t()}),n.src=e.source})}async function nL(e){if(e.type!=="svg"){await yc(e);return}e.loading=!0;const t=await fetch(e.source);t.ok?e.svgData=await t.text():(gr().error(`${qt} Image not found`),e.error=!0),e.loading=!1}function iL(e,t,n,i){var s;const r=tL(e,n,((s=i.opacity)==null?void 0:s.value)??JD),o={color:n,gif:t.gif,data:{...e,svgData:r},loaded:!1,ratio:t.width/t.height,replaceColor:t.replaceColor,source:t.src};return new Promise(a=>{const l=new Blob([r],{type:"image/svg+xml"}),u=URL||window.URL||window.webkitURL||window,c=u.createObjectURL(l),f=new Image;f.addEventListener("load",()=>{o.loaded=!0,o.element=f,a(o),u.revokeObjectURL(c)});const d=async()=>{u.revokeObjectURL(c);const p={...e,error:!1,loading:!0};await yc(p),o.loaded=!0,o.element=p.element,a(o)};f.addEventListener("error",()=>void d()),f.src=c})}const Mf=[0,4,2,1],f0=[8,8,4,2];class rL{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){const n=this.data.slice(this.pos,this.pos+t);return this.pos+=n.length,n.reduce((i,r)=>i+String.fromCharCode(r),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",n=0;const i=0,r=0;do{n=this.data[this.pos++];for(let o=n;--o>=i;t+=String.fromCharCode(this.data[this.pos++]));}while(n!==r);return t}readSubBlocksBin(){let t=this.data[this.pos],n=0;const i=0,r=1;for(let s=0;t!==i;s+=t+r,t=this.data[this.pos+s])n+=t;const o=new Uint8Array(n);t=this.data[this.pos++];for(let s=0;t!==i;t=this.data[this.pos++])for(let a=t;--a>=i;o[s++]=this.data[this.pos++]);return o}skipSubBlocks(){for(const t=1,n=0;this.data[this.pos]!==n;this.pos+=this.data[this.pos]+t);this.pos++}}var nn;(function(e){e[e.Replace=0]="Replace",e[e.Combine=1]="Combine",e[e.RestoreBackground=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"})(nn||(nn={}));var Nn;(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"})(Nn||(Nn={}));const ft={x:0,y:0},oL=0,d0=.5,sL=0,h0=0,rh=0;function lk(e,t){const n=[];for(let i=0;i>>5,r.disposalMethod=(o&28)>>>2,r.userInputDelayFlag=(o&2)===2;const s=(o&1)===1;r.delayTime=e.nextTwoBytes()*10;const a=e.nextByte();s&&i(a),e.pos++;break}case Nn.ApplicationExtension:{e.pos++;const r={identifier:e.getString(8),authenticationCode:e.getString(3),data:e.readSubBlocksBin()};t.applicationExtensions.push(r);break}case Nn.CommentExtension:{t.comments.push([n(!1),e.readSubBlocks()]);break}case Nn.PlainTextExtension:{if(t.globalColorTable.length===0)throw new 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}}async function lL(e,t,n,i,r,o){const s=t.frames[i(!0)];s.left=e.nextTwoBytes(),s.top=e.nextTwoBytes(),s.width=e.nextTwoBytes(),s.height=e.nextTwoBytes();const a=e.nextByte(),l=(a&128)===128,u=(a&64)===64;s.sortFlag=(a&32)===32,s.reserved=(a&24)>>>3;const c=1<<(a&7)+1;l&&(s.localColorTable=lk(e,c));const f=m=>{const{r:g,g:v,b:w}=(l?s.localColorTable:t.globalColorTable)[m];return m!==r(null)?{r:g,g:v,b:w,a:255}:{r:g,g:v,b:w,a:n?~~((g+v+w)/3):0}},d=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(m){if(m instanceof DOMException&&m.name==="IndexSizeError")return null;throw m}})();if(d==null)throw new EvalError("GIF frame size is to large");const p=e.nextByte(),y=e.readSubBlocksBin(),h=1<{const v=m>>>3,w=m&7;return(y[v]+(y[v+1]<<8)+(y[v+2]<<16)&(1<>>w};if(u){for(let m=0,g=p+1,v=0,w=[[0]],b=0;b<4;b++)if(Mf[b]=w.length?w.push(w[A].concat(w[A][0])):A!==h&&w.push(w[A].concat(w[m][0]));for(const T of w[m]){const{r:I,g:z,b:V,a:$}=f(T);d.data.set([I,z,V,$],Mf[b]*s.width+f0[b]*P+S%(s.width*4)),S+=4}w.length===1<=s.height&&(_=!0))}}s.image=d,s.bitmap=await createImageBitmap(d)}else{let m=0,g=p+1,v=0,w=-4,b=!1;const S=[[0]];for(;!b;){const P=m;if(m=x(v,g),v+=g,m===h){g=p+1,S.length=h+2;for(let _=0;_=S.length?S.push(S[P].concat(S[P][0])):P!==h&&S.push(S[P].concat(S[m][0]));for(const _ of S[m]){const{r:A,g:T,b:I,a:z}=f(_);d.data.set([A,T,I,z],w+=4)}S.length>=1<>>4,o.sortFlag=(a&8)===8;const u=1<<(a&7)+1,c=s.nextByte();o.pixelAspectRatio=s.nextByte(),o.pixelAspectRatio!==0&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),l&&(o.globalColorTable=lk(s,u));const f=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(w){if(w instanceof DOMException&&w.name==="IndexSizeError")return null;throw w}})();if(f==null)throw new Error("GIF frame size is to large");const{r:d,g:p,b:y}=o.globalColorTable[c];f.data.set(l?[d,p,y,255]:[0,0,0,0]);for(let w=4;w(w&&(x=!0),h),v=w=>(w!=null&&(m=w),m);try{do x&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:nn.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),h++,m=-1,x=!1);while(!await uL(s,o,n,g,v,t));o.frames.length--;for(const w of o.frames){if(w.userInputDelayFlag&&w.delayTime===0){o.totalTime=1/0;break}o.totalTime+=w.delayTime}return o}catch(w){throw w instanceof EvalError?new Error(`error while parsing frame ${h} "${w.message}"`):w}}function dL(e){const{context:t,radius:n,particle:i,delta:r}=e,o=i.image;if(!(o!=null&&o.gifData)||!o.gif)return;const s=new OffscreenCanvas(o.gifData.width,o.gifData.height),a=s.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ft.x,ft.y,s.width,s.height),i.gifLoopCount===void 0&&(i.gifLoopCount=o.gifLoopCount??rh);let l=i.gifFrame??oL;const u={x:-o.gifData.width*d0,y:-o.gifData.height*d0},c=o.gifData.frames[l];if(i.gifTime===void 0&&(i.gifTime=sL),!!c.bitmap){switch(t.scale(n/o.gifData.width,n/o.gifData.height),c.disposalMethod){case nn.UndefinedA:case nn.UndefinedB:case nn.UndefinedC:case nn.UndefinedD:case nn.Replace:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height);break;case nn.Combine:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y);break;case nn.RestoreBackground:a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height),o.gifData.globalColorTable.length?a.putImageData(o.gifData.backgroundImage,u.x,u.y):a.putImageData(o.gifData.frames[h0].image,u.x+c.left,u.y+c.top);break;case nn.RestorePrevious:{const f=a.getImageData(ft.x,ft.y,s.width,s.height);a.drawImage(c.bitmap,c.left,c.top),t.drawImage(s,u.x,u.y),a.clearRect(ft.x,ft.y,s.width,s.height),a.putImageData(f,ft.x,ft.y)}break}if(i.gifTime+=r.value,i.gifTime>c.delayTime){if(i.gifTime-=c.delayTime,++l>=o.gifData.frames.length){if(--i.gifLoopCount<=rh)return;l=h0,a.clearRect(ft.x,ft.y,s.width,s.height)}i.gifFrame=l}t.scale(o.gifData.width/n,o.gifData.height/n)}}async function hL(e){if(e.type!=="gif"){await yc(e);return}e.loading=!0;try{e.gifData=await fL(e.source),e.gifLoopCount=cL(e.gifData)??rh,e.gifLoopCount||(e.gifLoopCount=1/0)}catch{e.error=!0}e.loading=!1}const pL=2,mL=1,gL=12,yL=1;class vL{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async n=>{if(!this._engine.loadImage)throw new Error(`${qt} image shape not initialized`);await this._engine.loadImage({gif:n.gif,name:n.name,replaceColor:n.replaceColor??!1,src:n.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){const{context:n,radius:i,particle:r,opacity:o}=t,s=r.image,a=s==null?void 0:s.element;if(s){if(n.globalAlpha=o,s.gif&&s.gifData)dL(t);else if(a){const l=s.ratio,u={x:-i,y:-i},c=i*pL;n.drawImage(a,u.x,u.y,c,c/l)}n.globalAlpha=mL}}getSidesCount(){return gL}async init(t){const n=t.actualOptions;if(!(!n.preload||!this._engine.loadImage))for(const i of n.preload)await this._engine.loadImage(i)}loadShape(t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);const n=t.shapeData;if(!n)return;this._engine.images.find(r=>r.name===n.name||r.source===n.src)||this.loadImageShape(n).then(()=>{this.loadShape(t)})}particleInit(t,n){if(n.shape!=="image"&&n.shape!=="images")return;this._engine.images||(this._engine.images=[]);const i=this._engine.images,r=n.shapeData;if(!r)return;const o=n.getFillColor(),s=i.find(l=>l.name===r.name||l.source===r.src);if(!s)return;const a=r.replaceColor??s.replaceColor;if(s.loading){setTimeout(()=>{this.particleInit(t,n)});return}(async()=>{let l;s.svgData&&o?l=await iL(s,r,o,n):l={color:o,data:s,element:s.element,gif:s.gif,gifData:s.gifData,gifLoopCount:s.gifLoopCount,loaded:!0,ratio:r.width&&r.height?r.width/r.height:s.ratio??yL,replaceColor:a,source:r.src},l.ratio||(l.ratio=1);const u=r.fill??n.shapeFill,c=r.close??n.shapeClose,f={image:l,fill:u,close:c};n.image=f.image,n.shapeFill=f.fill,n.shapeClose=f.close})()}}class xL{constructor(){this.src="",this.gif=!1}load(t){O(t)||(t.gif!==void 0&&(this.gif=t.gif),t.height!==void 0&&(this.height=t.height),t.name!==void 0&&(this.name=t.name),t.replaceColor!==void 0&&(this.replaceColor=t.replaceColor),t.src!==void 0&&(this.src=t.src),t.width!==void 0&&(this.width=t.width))}}class wL{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,n){if(!(n!=null&&n.preload))return;t.preload||(t.preload=[]);const i=t.preload;for(const r of n.preload){const o=i.find(s=>s.name===r.name||s.src===r.src);if(o)o.load(r);else{const s=new xL;s.load(r),i.push(s)}}}needsPlugin(){return!0}}const bL=3;function SL(e){e.loadImage||(e.loadImage=async t=>{if(!t.name&&!t.src)throw new Error(`${qt} no image source provided`);if(e.images||(e.images=[]),!e.images.find(n=>n.name===t.name||n.source===t.src))try{const n={gif:t.gif??!1,name:t.name??t.src,source:t.src,type:t.src.substring(t.src.length-bL),error:!1,loading:!0,replaceColor:t.replaceColor,ratio:t.width&&t.height?t.width/t.height:void 0};e.images.push(n);let i;t.gif?i=hL:i=t.replaceColor?nL:yc,await i(n)}catch{throw new Error(`${qt} ${t.name??t.src} not found`)}})}async function kL(e,t=!0){SL(e);const n=new wL(e);await e.addPlugin(n,t),await e.addShape(new vL(e),t)}class CL extends br{constructor(){super(),this.sync=!1}load(t){O(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class PL extends br{constructor(){super(),this.sync=!1}load(t){O(t)||(super.load(t),t.sync!==void 0&&(this.sync=t.sync))}}class _L{constructor(){this.count=0,this.delay=new CL,this.duration=new PL}load(t){O(t)||(t.count!==void 0&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}const Ar=0,TL=-1,p0=0,m0=0;function ML(e,t,n){if(!e.life)return;const i=e.life;let r=!1;if(e.spawning)if(i.delayTime+=t.value,i.delayTime>=e.life.delay)r=!0,e.spawning=!1,i.delayTime=Ar,i.time=Ar;else return;if(i.duration===TL||e.spawning||(r?i.time=Ar:i.time+=t.value,i.timep0&&e.life.count--,e.life.count===p0){e.destroy();return}const o=Q(m0,n.width),s=Q(m0,n.width);e.position.x=kt(o),e.position.y=kt(s),e.spawning=!0,i.delayTime=Ar,i.time=Ar,e.reset();const a=e.options.life;a&&(i.delay=F(a.delay.value)*Ze,i.duration=F(a.duration.value)*Ze)}const Vi=0,g0=1,y0=-1;class EL{constructor(t){this.container=t}init(t){const n=this.container,i=t.options,r=i.life;r&&(t.life={delay:n.retina.reduceFactor?F(r.delay.value)*(r.delay.sync?g0:ce())/n.retina.reduceFactor*Ze:Vi,delayTime:Vi,duration:n.retina.reduceFactor?F(r.duration.value)*(r.duration.sync?g0:ce())/n.retina.reduceFactor*Ze:Vi,time:Vi,count:r.count},t.life.duration<=Vi&&(t.life.duration=y0),t.life.count<=Vi&&(t.life.count=y0),t.life&&(t.spawning=t.life.delay>Vi))}isEnabled(t){return!t.destroyed}loadOptions(t,...n){t.life||(t.life=new _L);for(const i of n)t.life.load(i==null?void 0:i.life)}update(t,n){!this.isEnabled(t)||!t.life||ML(t,n,this.container.canvas.size)}}async function RL(e,t=!0){await e.addParticleUpdater("life",async n=>Promise.resolve(new EL(n)),t)}function OL(e){const{context:t,particle:n,radius:i}=e,r=n.shapeData,o=0;t.moveTo(-i,o),t.lineTo(i,o),t.lineCap=(r==null?void 0:r.cap)??"butt"}const AL=1;class zL{constructor(){this.validTypes=["line"]}draw(t){OL(t)}getSidesCount(){return AL}}async function IL(e,t=!0){await e.addShape(new zL,t)}const v0=.5;class DL{init(){}isEnabled(t){return!yr()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){const n=t.container,i=n.actualOptions,r=i.interactivity.events.onHover.parallax;if(yr()||!r.enable)return;const o=r.force,s=n.interactivity.mouse.position;if(!s)return;const a=n.canvas.size,l={x:a.width*v0,y:a.height*v0},u=r.smooth,c=t.getRadius()/o,f={x:(s.x-l.x)*c,y:(s.y-l.y)*c},{offset:d}=t;d.x+=(f.x-d.x)/u,d.y+=(f.y-d.y)/u}}async function LL(e,t=!0){await e.addMover("parallax",()=>Promise.resolve(new DL),t)}const x0=1e3,$L=1;class FL extends um{constructor(t){super(t)}clear(){}init(){}interact(t){const n=this.container;t.attractDistance===void 0&&(t.attractDistance=F(t.options.move.attract.distance)*n.retina.pixelRatio);const i=t.attractDistance,r=t.getPosition(),o=n.particles.quadTree.queryCircle(r,i);for(const s of o){if(t===s||!s.options.move.attract.enable||s.destroyed||s.spawning)continue;const a=s.getPosition(),{dx:l,dy:u}=lt(r,a),c=t.options.move.attract.rotate,f=l/(c.x*x0),d=u/(c.y*x0),p=s.size.value/t.size.value,y=$L/p;t.velocity.x-=f*p,t.velocity.y-=d*p,s.velocity.x+=f*y,s.velocity.y+=d*y}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function jL(e,t=!0){await e.addInteractor("particlesAttract",n=>Promise.resolve(new FL(n)),t)}const NL=.5,VL=10,BL=0;function w0(e,t,n,i,r,o){const s=Yt(e.options.collisions.absorb.speed*r.factor/VL,BL,i);e.size.value+=s*NL,n.size.value-=s,i<=o&&(n.size.value=0,n.destroy())}function UL(e,t,n,i){const r=e.getRadius(),o=t.getRadius();r===void 0&&o!==void 0?e.destroy():r!==void 0&&o===void 0?t.destroy():r!==void 0&&o!==void 0&&(r>=o?w0(e,r,t,o,n,i):w0(t,o,e,r,n,i))}const b0=e=>{e.collisionMaxSpeed===void 0&&(e.collisionMaxSpeed=F(e.options.collisions.maxSpeed)),e.velocity.length>e.collisionMaxSpeed&&(e.velocity.length=e.collisionMaxSpeed)};function uk(e,t){jS(Jd(e),Jd(t)),b0(e),b0(t)}function WL(e,t){!e.unbreakable&&!t.unbreakable&&uk(e,t),e.getRadius()===void 0&&t.getRadius()!==void 0?e.destroy():e.getRadius()!==void 0&&t.getRadius()===void 0?t.destroy():e.getRadius()!==void 0&&t.getRadius()!==void 0&&(e.getRadius()>=t.getRadius()?t:e).destroy()}function HL(e,t,n,i){switch(e.options.collisions.mode){case fo.absorb:{UL(e,t,n,i);break}case fo.bounce:{uk(e,t);break}case fo.destroy:{WL(e,t);break}}}const GL=2;class KL extends um{constructor(t){super(t)}clear(){}init(){}interact(t,n){if(t.destroyed||t.spawning)return;const i=this.container,r=t.getPosition(),o=t.getRadius(),s=i.particles.quadTree.queryCircle(r,o*GL);for(const a of s){if(t===a||!a.options.collisions.enable||t.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;const l=a.getPosition(),u=a.getRadius();if(Math.abs(Math.round(r.z)-Math.round(l.z))>o+u)continue;const c=_t(r,l),f=o+u;c>f||HL(t,a,n,i.retina.pixelRatio)}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function qL(e,t=!0){await e.addInteractor("particlesCollisions",n=>Promise.resolve(new KL(n)),t)}const Ef=2;class YL extends et{constructor(t,n,i,r){super(t,n,i),this.canvasSize=r,this.canvasSize={...r}}contains(t){const{width:n,height:i}=this.canvasSize,{x:r,y:o}=t;return super.contains(t)||super.contains({x:r-n,y:o})||super.contains({x:r-n,y:o-i})||super.contains({x:r,y:o-i})}intersects(t){if(super.intersects(t))return!0;const n=t,i=t,r={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(i.radius!==void 0){const o=new et(r.x,r.y,i.radius*Ef);return super.intersects(o)}else if(n.size!==void 0){const o=new hn(r.x,r.y,n.size.width*Ef,n.size.height*Ef);return super.intersects(o)}return!1}}class QL{constructor(){this.blur=5,this.color=new it,this.color.value="#000",this.enable=!1}load(t){O(t)||(t.blur!==void 0&&(this.blur=t.blur),this.color=it.create(this.color,t.color),t.enable!==void 0&&(this.enable=t.enable))}}class XL{constructor(){this.enable=!1,this.frequency=1}load(t){O(t)||(t.color!==void 0&&(this.color=it.create(this.color,t.color)),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity))}}class ZL{constructor(){this.blink=!1,this.color=new it,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new QL,this.triangles=new XL,this.width=1,this.warp=!1}load(t){O(t)||(t.id!==void 0&&(this.id=t.id),t.blink!==void 0&&(this.blink=t.blink),this.color=it.create(this.color,t.color),t.consent!==void 0&&(this.consent=t.consent),t.distance!==void 0&&(this.distance=t.distance),t.enable!==void 0&&(this.enable=t.enable),t.frequency!==void 0&&(this.frequency=t.frequency),t.opacity!==void 0&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),t.width!==void 0&&(this.width=t.width),t.warp!==void 0&&(this.warp=t.warp))}}const S0=2,JL=1,Za={x:0,y:0},e$=0;function t$(e,t,n,i,r){const{dx:o,dy:s,distance:a}=lt(e,t);if(!r||a<=n)return a;const l={x:Math.abs(o),y:Math.abs(s)},u={x:Math.min(l.x,i.width-l.x),y:Math.min(l.y,i.height-l.y)};return Math.sqrt(u.x**S0+u.y**S0)}class n$ extends um{constructor(t){super(t),this._setColor=n=>{if(!n.options.links)return;const i=this.linkContainer,r=n.options.links;let o=r.id===void 0?i.particles.linksColor:i.particles.linksColors.get(r.id);if(o)return;const s=r.color;o=GS(s,r.blink,r.consent),r.id===void 0?i.particles.linksColor=o:i.particles.linksColors.set(r.id,o)},this.linkContainer=t}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(t){if(!t.options.links)return;t.links=[];const n=t.getPosition(),i=this.container,r=i.canvas.size;if(n.xr.width||n.y>r.height)return;const o=t.options.links,s=o.opacity,a=t.retina.linksDistance??e$,l=o.warp;let u;l?u=new YL(n.x,n.y,a,r):u=new et(n.x,n.y,a);const c=i.particles.quadTree.query(u);for(const f of c){const d=f.options.links;if(t===f||!(d!=null&&d.enable)||o.id!==d.id||f.spawning||f.destroyed||!f.links||t.links.some(x=>x.destination===f)||f.links.some(x=>x.destination===t))continue;const p=f.getPosition();if(p.xr.width||p.y>r.height)continue;const y=t$(n,p,a,r,l&&d.warp);if(y>a)continue;const h=(JL-y/a)*s;this._setColor(t),t.links.push({destination:f,opacity:h})}}isEnabled(t){var n;return!!((n=t.options.links)!=null&&n.enable)}loadParticlesOptions(t,...n){t.links||(t.links=new ZL);for(const i of n)t.links.load(i==null?void 0:i.links)}reset(){}}async function i$(e,t=!0){await e.addInteractor("particlesLinks",async n=>Promise.resolve(new n$(n)),t)}function r$(e,t,n,i){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(n.x,n.y),e.lineTo(i.x,i.y),e.closePath()}function o$(e){let t=!1;const{begin:n,end:i,maxDistance:r,context:o,canvasSize:s,width:a,backgroundMask:l,colorLine:u,opacity:c,links:f}=e;if(_t(n,i)<=r)Ms(o,n,i),t=!0;else if(f.warp){let p,y;const h={x:i.x-s.width,y:i.y},x=lt(n,h);if(x.distance<=r){const m=n.y-x.dy/x.dx*n.x;p={x:0,y:m},y={x:s.width,y:m}}else{const m={x:i.x,y:i.y-s.height},g=lt(n,m);if(g.distance<=r){const w=-(n.y-g.dy/g.dx*n.x)/(g.dy/g.dx);p={x:w,y:0},y={x:w,y:s.height}}else{const v={x:i.x-s.width,y:i.y-s.height},w=lt(n,v);if(w.distance<=r){const b=n.y-w.dy/w.dx*n.x;p={x:-b/(w.dy/w.dx),y:b},y={x:p.x+s.width,y:p.y+s.height}}}}p&&y&&(Ms(o,n,p),Ms(o,i,y),t=!0)}if(!t)return;o.lineWidth=a,l.enable&&(o.globalCompositeOperation=l.composite),o.strokeStyle=Gn(u,c);const{shadow:d}=f;if(d.enable){const p=cn(d.color);p&&(o.shadowBlur=d.blur,o.shadowColor=Gn(p))}o.stroke()}function s$(e){const{context:t,pos1:n,pos2:i,pos3:r,backgroundMask:o,colorTriangle:s,opacityTriangle:a}=e;r$(t,n,i,r),o.enable&&(t.globalCompositeOperation=o.composite),t.fillStyle=Gn(s,a),t.fill()}function a$(e){return e.sort((t,n)=>t-n),e.join("_")}function k0(e,t){const n=a$(e.map(r=>r.id));let i=t.get(n);return i===void 0&&(i=ce(),t.set(n,i)),i}const C0=0,Rf=0,P0=0,l$=.5,u$=1;class c${constructor(t){this.container=t,this._drawLinkLine=(n,i)=>{const r=n.options.links;if(!(r!=null&&r.enable))return;const o=this.container,s=o.actualOptions,a=i.destination,l=n.getPosition(),u=a.getPosition();let c=i.opacity;o.canvas.draw(f=>{var m;let d;const p=(m=n.options.twinkle)==null?void 0:m.lines;if(p!=null&&p.enable){const g=p.frequency,v=cn(p.color);ce(){const o=n.options.links;if(!(o!=null&&o.enable))return;const s=o.triangles;if(!s.enable)return;const a=this.container,l=a.actualOptions,u=i.destination,c=r.destination,f=s.opacity??(i.opacity+r.opacity)*l$;f<=C0||a.canvas.draw(d=>{const p=n.getPosition(),y=u.getPosition(),h=c.getPosition(),x=n.retina.linksDistance??P0;if(_t(p,y)>x||_t(h,y)>x||_t(h,p)>x)return;let m=cn(s.color);if(!m){const g=o.id!==void 0?a.particles.linksColors.get(o.id):a.particles.linksColor;m=th(n,u,g)}m&&s$({context:d,pos1:p,pos2:y,pos3:h,backgroundMask:l.backgroundMask,colorTriangle:m,opacityTriangle:f})})},this._drawTriangles=(n,i,r,o)=>{var l,u,c;const s=r.destination;if(!((l=n.links)!=null&&l.triangles.enable&&((u=s.options.links)!=null&&u.triangles.enable)))return;const a=(c=s.links)==null?void 0:c.filter(f=>{const d=this._getLinkFrequency(s,f.destination);return s.options.links&&d<=s.options.links.frequency&&o.findIndex(y=>y.destination===f.destination)>=0});if(a!=null&&a.length)for(const f of a){const d=f.destination;this._getTriangleFrequency(i,s,d)>n.links.triangles.frequency||this._drawLinkTriangle(i,r,f)}},this._getLinkFrequency=(n,i)=>k0([n,i],this._freqs.links),this._getTriangleFrequency=(n,i,r)=>k0([n,i,r],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(t,n){const{links:i,options:r}=n;if(!(i!=null&&i.length))return;const o=i.filter(s=>r.links&&(r.links.frequency>=u$||this._getLinkFrequency(n,s.destination)<=r.links.frequency));for(const s of o)this._drawTriangles(r,n,s,o),s.opacity>C0&&(n.retina.linksWidth??Rf)>Rf&&this._drawLinkLine(n,s)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;const n=this.container.retina.pixelRatio,{retina:i}=t,{distance:r,width:o}=t.options.links;i.linksDistance=r*n,i.linksWidth=o*n}particleDestroyed(t){t.links=[]}}class f${constructor(){this.id="links"}getPlugin(t){return Promise.resolve(new c$(t))}loadOptions(){}needsPlugin(){return!0}}async function d$(e,t=!0){const n=new f$;await e.addPlugin(n,t)}async function h$(e,t=!0){await i$(e,t),await d$(e,t)}const p$=180,Ja={x:0,y:0},m$=2;function g$(e,t,n){const{context:i}=e,r=n.count.numerator*n.count.denominator,o=n.count.numerator/n.count.denominator,s=p$*(o-m$)/o,a=Math.PI-Si(s);if(i){i.beginPath(),i.translate(t.x,t.y),i.moveTo(Ja.x,Ja.y);for(let l=0;l0?Vt.counterClockwise:Vt.clockwise),i){case Vt.counterClockwise:case"counterClockwise":t.rotate.status=Re.decreasing;break;case Vt.clockwise:t.rotate.status=Re.increasing;break}const r=n.animation;r.enable&&(t.rotate.decay=R$-F(r.decay),t.rotate.velocity=F(r.speed)/O$*this.container.retina.reduceFactor,r.sync||(t.rotate.velocity*=ce())),t.rotation=t.rotate.value}isEnabled(t){const n=t.options.rotate;return n?!t.destroyed&&!t.spawning&&(!!n.value||n.animation.enable||n.path):!1}loadOptions(t,...n){t.rotate||(t.rotate=new M$);for(const i of n)t.rotate.load(i==null?void 0:i.rotate)}update(t,n){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&(om(t,t.rotate,!1,mr.none,n),t.rotation=t.rotate.value))}}async function z$(e,t=!0){await e.addParticleUpdater("rotate",n=>Promise.resolve(new A$(n)),t)}const I$=2,D$=Math.sqrt(I$),L$=2;function $$(e){const{context:t,radius:n}=e,i=n/D$,r=i*L$;t.rect(-i,-i,r,r)}const F$=4;class j${constructor(){this.validTypes=["edge","square"]}draw(t){$$(t)}getSidesCount(){return F$}}async function N$(e,t=!0){await e.addShape(new j$,t)}const V$=2,zr={x:0,y:0};function B$(e){const{context:t,particle:n,radius:i}=e,r=n.sides,o=n.starInset??V$;t.moveTo(zr.x,zr.y-i);for(let s=0;sPromise.resolve(new q$(n)),t)}async function Q$(e,t=!0){await LL(e,!1),await N4(e,!1),await Y4(e,!1),await iD(e,!1),await hD(e,!1),await kD(e,!1),await _D(e,!1),await OD(e,!1),await DD(e,!1),await GD(e,!1),await XD(e,!1),await jL(e,!1),await qL(e,!1),await h$(e,!1),await R4(),await z4(e,!1),await kL(e,!1),await IL(e,!1),await _$(e,!1),await N$(e,!1),await G$(e,!1),await RL(e,!1),await z$(e,!1),await Y$(e,!1),await E4(e,t)}const fm="-",X$=e=>{const t=J$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const a=s.split(fm);return a[0]===""&&a.length!==1&&a.shift(),dk(a,t)||Z$(s)},getConflictingClassGroupIds:(s,a)=>{const l=n[s]||[];return a&&i[s]?[...l,...i[s]]:l}}},dk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?dk(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const o=e.join(fm);return(s=t.validators.find(({validator:a})=>a(o)))==null?void 0:s.classGroupId},M0=/^\[(.+)\]$/,Z$=e=>{if(M0.test(e)){const t=M0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},J$=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return tF(Object.entries(e.classGroups),n).forEach(([o,s])=>{oh(s,i,o,t)}),i},oh=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const o=r===""?t:E0(t,r);o.classGroupId=n;return}if(typeof r=="function"){if(eF(r)){oh(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([o,s])=>{oh(s,E0(t,o),n,i)})})},E0=(e,t)=>{let n=e;return t.split(fm).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},eF=e=>e.isThemeGetter,tF=(e,t)=>t?e.map(([n,i])=>{const r=i.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,a])=>[t+s,a])):o);return[n,r]}):e,nF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const r=(o,s)=>{n.set(o,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(o){let s=n.get(o);if(s!==void 0)return s;if((s=i.get(o))!==void 0)return r(o,s),s},set(o,s){n.has(o)?n.set(o,s):r(o,s)}}},hk="!",iF=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,r=t[0],o=t.length,s=a=>{const l=[];let u=0,c=0,f;for(let x=0;xc?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:s}):s},rF=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},oF=e=>({cache:nF(e.cacheSize),parseClassName:iF(e),...X$(e)}),sF=/\s+/,aF=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,o=[],s=e.trim().split(sF);let a="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}=n(u);let y=!!p,h=i(y?d.substring(0,p):d);if(!h){if(!y){a=u+(a.length>0?" "+a:a);continue}if(h=i(d),!h){a=u+(a.length>0?" "+a:a);continue}y=!1}const x=rF(c).join(":"),m=f?x+hk:x,g=m+h;if(o.includes(g))continue;o.push(g);const v=r(h,y);for(let w=0;w0?" "+a:a)}return a};function lF(){let e=0,t,n,i="";for(;e{if(typeof e=="string")return e;let t,n="";for(let i=0;if(c),e());return n=oF(u),i=n.cache.get,r=n.cache.set,o=a,a(l)}function a(l){const u=i(l);if(u)return u;const c=aF(l,n);return r(l,c),c}return function(){return o(lF.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},mk=/^\[(?:([a-z-]+):)?(.+)\]$/i,cF=/^\d+\/\d+$/,fF=new Set(["px","full","screen"]),dF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hF=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zn=e=>mo(e)||fF.has(e)||cF.test(e),ii=e=>Uo(e,"length",CF),mo=e=>!!e&&!Number.isNaN(Number(e)),Of=e=>Uo(e,"number",mo),os=e=>!!e&&Number.isInteger(Number(e)),yF=e=>e.endsWith("%")&&mo(e.slice(0,-1)),B=e=>mk.test(e),ri=e=>dF.test(e),vF=new Set(["length","size","percentage"]),xF=e=>Uo(e,vF,gk),wF=e=>Uo(e,"position",gk),bF=new Set(["image","url"]),SF=e=>Uo(e,bF,_F),kF=e=>Uo(e,"",PF),ss=()=>!0,Uo=(e,t,n)=>{const i=mk.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},CF=e=>hF.test(e)&&!pF.test(e),gk=()=>!1,PF=e=>mF.test(e),_F=e=>gF.test(e),TF=()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),i=ae("brightness"),r=ae("borderColor"),o=ae("borderRadius"),s=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),u=ae("grayscale"),c=ae("hueRotate"),f=ae("invert"),d=ae("gap"),p=ae("gradientColorStops"),y=ae("gradientColorStopPositions"),h=ae("inset"),x=ae("margin"),m=ae("opacity"),g=ae("padding"),v=ae("saturate"),w=ae("scale"),b=ae("sepia"),S=ae("skew"),P=ae("space"),_=ae("translate"),A=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",B,t],z=()=>[B,t],V=()=>["",zn,ii],$=()=>["auto",mo,B],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],oe=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],E=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",B],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[mo,B];return{cacheSize:500,separator:":",theme:{colors:[ss],spacing:[zn,ii],blur:["none","",ri,B],brightness:K(),borderColor:[e],borderRadius:["none","","full",ri,B],borderSpacing:z(),borderWidth:V(),contrast:K(),grayscale:D(),hueRotate:K(),invert:D(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[yF,ii],inset:I(),margin:I(),opacity:K(),padding:z(),saturate:K(),scale:K(),sepia:D(),skew:K(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[ri]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),B]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",os,B]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",os,B]}],"grid-cols":[{"grid-cols":[ss]}],"col-start-end":[{col:["auto",{span:["full",os,B]},B]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ss]}],"row-start-end":[{row:["auto",{span:[os,B]},B]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[ri]},ri]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ri,ii]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Of]}],"font-family":[{font:[ss]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",mo,Of]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zn,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zn,ii]}],"underline-offset":[{"underline-offset":["auto",zn,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),wF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},SF]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...oe(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:oe()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...oe()]}],"outline-offset":[{"outline-offset":[zn,B]}],"outline-w":[{outline:[zn,ii]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[zn,ii]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ri,kF]}],"shadow-color":[{shadow:[ss]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ri,B]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[os,B]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zn,ii,Of]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},MF=uF(TF);function R0(...e){return MF(de(e))}const yk=e=>{const{id:t="tsparticles",className:n,background:i="transparent",minSize:r=.6,maxSize:o=1.4,particleDensity:s=100,particleColor:a="#FFFFFF"}=e,[l,u]=k.useState(!1);k.useEffect(()=>{KI(async f=>{await Q$(f)}).then(()=>{u(!0)})},[]);const c=async()=>{};return l?C.jsx("div",{className:R0("w-full h-full",n),children:C.jsx(GI,{id:t,className:R0("h-full w-full"),particlesLoaded:c,options:{background:{color:{value:i}},fullScreen:{enable:!1},fpsLimit:120,interactivity:{events:{onClick:{enable:!0,mode:"push"},onHover:{enable:!0,mode:"repulse"},resize:!0},modes:{push:{quantity:4},repulse:{distance:100,duration:.4}}},particles:{color:{value:a},links:{color:a,distance:150,enable:!0,opacity:.5,width:1},collisions:{enable:!0},move:{direction:"none",enable:!0,outModes:{default:"bounce"},random:!1,speed:1,straight:!1},number:{density:{enable:!0,area:s},value:s},opacity:{value:.5},shape:{type:"circle"},size:{value:{min:r,max:o}}},detectRetina:!0}})}):null},sh=["AI Innovations","Web Solutions","Cloud Systems"],vk=Math.max(...sh.map(e=>e.length)),EF=" ".repeat(vk),xk=k.memo(()=>{const[e,t]=k.useState(0),[n,i]=k.useState(""),[r,o]=k.useState(!1);return k.useEffect(()=>{let s;const a=sh[e];return s=setTimeout(()=>{r?n.length>0?i(a.slice(0,n.length-1)):(o(!1),t(c=>(c+1)%sh.length)):n.length0?50:100:n.lengthclearTimeout(s)},[e,n,r]),C.jsxs("div",{className:"inline-block relative",style:{minWidth:`${vk}ch`},children:[C.jsx("span",{className:"bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500 whitespace-pre opacity-0",children:EF}),C.jsx("span",{className:"absolute top-0 left-0 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",style:{clipPath:"inset(0 0 0 0)",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",backfaceVisibility:"hidden",transition:"color 0.1s ease-in-out"},children:n})]})});xk.displayName="TypeWriter";const RF=` @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } -`;if(typeof document<"u"){const e=document.createElement("style");e.textContent=IF,document.head.appendChild(e)}function LF(){return C.jsxs("div",{id:"home",className:"h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden rounded-md relative",children:[C.jsx("div",{className:"w-full absolute inset-0 h-screen",children:C.jsx(xk,{id:"tsparticlesfullpage",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),C.jsx("div",{className:"relative z-20 text-center",children:C.jsxs(Pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:2.5},className:"flex flex-col items-center gap-4 p-8 backdrop-blur-sm rounded-lg border border-white/10 bg-black/20",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"text-5xl md:text-6xl font-bold text-center mb-6 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Rushi M Goswami"}),C.jsx(Pe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"text-lg md:text-xl text-white/90 font-semibold",children:"Software Engineer"}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"mt-4 w-full max-w-1xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold",children:[C.jsxs("span",{className:"text-white/90",children:["Engineering excellence through"," "]}),C.jsx(bk,{})]})]})}),C.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"})]})}const vc=({children:e,id:t,className:n=""})=>C.jsxs("section",{id:t,className:`relative min-h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden py-24 md:py-32 ${n}`,children:[C.jsx("div",{className:"w-full absolute inset-0 h-full",children:C.jsx(xk,{id:`tsparticles-${t}`,background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),C.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"}),C.jsx("div",{className:"relative z-20 w-full",children:e})]}),gn={company:"Promact Infotech",role:"Software Engineer",duration:"July 2023 - Present",description:"Working as a Software Engineer specializing in AI/ML development.",achievements:["Developed and deployed multiple ML models improving business efficiency by 40%","Implemented NLP solutions for automated text analysis and processing","Created custom AI solutions for client-specific requirements","Optimized existing ML pipelines reducing processing time by 30%"],responsibilities:["Design and implement ML models for various business applications","Develop and maintain AI-powered software solutions","Collaborate with cross-functional teams for project delivery","Research and implement new AI/ML technologies"],education:{degree:"B.Tech in Computer Science",institution:"Marwadi University",duration:"2019-2023",gpa:"8.9/10"}};function DF(){return C.jsx(vc,{id:"about",children:C.jsxs("div",{className:"container mx-auto px-4",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"About Me"}),C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.02},transition:{duration:.5},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Current Role"}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("p",{className:"text-white/90 font-semibold",children:gn.company}),C.jsx("p",{className:"text-white/80",children:gn.role}),C.jsx("p",{className:"text-white/70",children:gn.duration}),C.jsx("p",{className:"text-white/80 mt-4",children:gn.description})]})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.02},transition:{duration:.5,delay:.1},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Education"}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("p",{className:"text-white/90 font-semibold",children:gn.education.degree}),C.jsx("p",{className:"text-white/80",children:gn.education.institution}),C.jsx("p",{className:"text-white/70",children:gn.education.duration}),C.jsxs("p",{className:"text-white/80 mt-4",children:["GPA: ",gn.education.gpa]})]})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.02},transition:{duration:.5,delay:.2},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Key Achievements"}),C.jsx("ul",{className:"list-disc list-inside space-y-2",children:gn.achievements.map((e,t)=>C.jsx("li",{className:"text-white/80",children:e},t))})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.02},transition:{duration:.5,delay:.3},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Responsibilities"}),C.jsx("ul",{className:"list-disc list-inside space-y-2",children:gn.responsibilities.map((e,t)=>C.jsx("li",{className:"text-white/80",children:e},t))})]})]})]})})}function $F(e){return Jn("MuiSvgIcon",e)}zi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],jF=e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return Ii(r,$F,i)},NF=pn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,i,r,o,s,a,l,u,c,f,d,p,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(i=n.create)==null?void 0:i.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),ah=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=i,p=ve(i,FF),y=k.isValidElement(r)&&r.type==="svg",h=R({},i,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:y}),x={};c||(x.viewBox=d);const m=jF(h);return C.jsxs(NF,R({as:a,className:de(m.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,p,y&&r.props,{ownerState:h,children:[y?r.props.children:r,f?C.jsx("title",{children:f}):null]}))});ah.muiName="SvgIcon";function Sk(e,t){function n(i,r){return C.jsx(ah,R({"data-testid":`${t}Icon`,ref:r},i,{children:e}))}return n.muiName=ah.muiName,k.memo(k.forwardRef(n))}const VF={configure:e=>{vp.configure(e)}},BF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:U,createChainedFunction:JT,createSvgIcon:Sk,debounce:eM,deprecatedPropType:tM,isMuiElement:nM,ownerDocument:Bw,ownerWindow:iM,requirePropFactory:rM,setRef:Uw,unstable_ClassNameGenerator:VF,unstable_useEnhancedEffect:bp,unstable_useId:sM,unsupportedProp:aM,useControlled:lM,useEventCallback:ds,useForkRef:Xl,useIsFocusVisible:Ww},Symbol.toStringTag,{value:"Module"}));function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lh(e,t)}function UF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lh(e,t)}const z0=Ir.createContext(null);function WF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pm(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},i=Object.create(null);return e&&k.Children.map(e,function(r){return r}).forEach(function(r){i[r.key]=n(r)}),i}function HF(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var i=Object.create(null),r=[];for(var o in e)o in t?r.length&&(i[o]=r,r=[]):r.push(o);var s,a={};for(var l in t){if(i[l])for(s=0;s{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Ii(o,YF,r)},JF=pn("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return R({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${It("#fff",uy(t.elevation))}, ${It("#fff",uy(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),ej=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=i,u=ve(i,XF),c=R({},i,{component:o,elevation:s,square:a,variant:l}),f=ZF(c);return C.jsx(JF,R({as:o,ownerState:c,className:de(f.root,r),ref:n},u))});function tj(e){const{className:t,classes:n,pulsate:i=!1,rippleX:r,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=k.useState(!1),d=de(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+r},y=de(n.child,c&&n.childLeaving,i&&n.childPulsate);return!a&&!c&&f(!0),k.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,u);return()=>{clearTimeout(h)}}},[l,a,u]),C.jsx("span",{className:d,style:p,children:C.jsx("span",{className:y})})}const $t=zi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nj=["center","classes","className"];let xc=e=>e,I0,L0,D0,$0;const uh=550,ij=80,rj=Bu(I0||(I0=xc` +`;if(typeof document<"u"){const e=document.createElement("style");e.textContent=RF,document.head.appendChild(e)}function OF(){return C.jsxs("div",{id:"home",className:"h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden rounded-md relative",children:[C.jsx("div",{className:"w-full absolute inset-0 h-screen",children:C.jsx(yk,{id:"tsparticlesfullpage",background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),C.jsx("div",{className:"relative z-20 text-center",children:C.jsxs(Pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:2.5},className:"flex flex-col items-center gap-4 p-8 backdrop-blur-sm rounded-lg border border-white/10 bg-black/20",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"text-5xl md:text-6xl font-bold text-center mb-3 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Rushi M Goswami"}),C.jsx(Pe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"text-lg md:text-xl text-white/90 font-semibold",children:"Software Engineer"}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1.5,delay:.6},className:"mt-3 w-full max-w-1xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold",children:[C.jsxs("span",{className:"text-white/90",children:["Engineering excellence through"," "]}),C.jsx(xk,{})]})]})}),C.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"})]})}const vc=({children:e,id:t,className:n=""})=>C.jsxs("section",{id:t,className:`relative min-h-screen w-full bg-black flex flex-col items-center justify-center overflow-hidden py-24 md:py-32 ${n}`,children:[C.jsx("div",{className:"w-full absolute inset-0 h-full",children:C.jsx(yk,{id:`tsparticles-${t}`,background:"transparent",minSize:.6,maxSize:1.4,particleDensity:100,className:"w-full h-full",particleColor:"#FFFFFF"})}),C.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-black/20 to-black/50 pointer-events-none z-10"}),C.jsx("div",{className:"relative z-20 w-full",children:e})]}),gn={company:"Promact Infotech",role:"Software Engineer",duration:"January 2023 - Present",description:"Working as a Software Engineer specializing in AI/ML development.",achievements:["Developed and deployed multiple ML models improving business efficiency by 40%","Implemented NLP solutions for automated text analysis and processing","Created custom AI solutions for client-specific requirements","Optimized existing ML pipelines reducing processing time by 30%"],responsibilities:["Design and implement ML models for various business applications","Develop and maintain AI-powered software solutions","Collaborate with cross-functional teams for project delivery","Research and implement new AI/ML technologies"],education:{degree:"B.Tech in Computer Science",institution:"Marwadi University",duration:"2019-2023",gpa:"8.9/10"}};function AF(){return C.jsx(vc,{id:"about",children:C.jsxs("div",{className:"container mx-auto px-4",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"About Me"}),C.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.04},transition:{duration:.02,delay:.1},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Current Role"}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("p",{className:"text-white/90 font-semibold",children:gn.company}),C.jsx("p",{className:"text-white/80",children:gn.role}),C.jsx("p",{className:"text-white/70",children:gn.duration}),C.jsx("p",{className:"text-white/80 mt-4",children:gn.description})]})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.04},transition:{duration:.02,delay:.2},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Education"}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("p",{className:"text-white/90 font-semibold",children:gn.education.degree}),C.jsx("p",{className:"text-white/80",children:gn.education.institution}),C.jsx("p",{className:"text-white/70",children:gn.education.duration}),C.jsxs("p",{className:"text-white/80 mt-4",children:["GPA: ",gn.education.gpa]})]})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.04},transition:{duration:.02,delay:.3},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Key Achievements"}),C.jsx("ul",{className:"list-disc list-inside space-y-2",children:gn.achievements.map((e,t)=>C.jsx("li",{className:"text-white/80",children:e},t))})]}),C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{scale:1.04},transition:{duration:.02,delay:.4},className:"p-6 rounded-lg border border-white/10 bg-black/60 hover:bg-black/70 transition-all",children:[C.jsx("h3",{className:"text-2xl font-semibold mb-4 text-white/90",children:"Responsibilities"}),C.jsx("ul",{className:"list-disc list-inside space-y-2",children:gn.responsibilities.map((e,t)=>C.jsx("li",{className:"text-white/80",children:e},t))})]})]})]})})}function zF(e){return Jn("MuiSvgIcon",e)}zi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const IF=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],DF=e=>{const{color:t,fontSize:n,classes:i}=e,r={root:["root",t!=="inherit"&&`color${U(t)}`,`fontSize${U(n)}`]};return Ii(r,zF,i)},LF=pn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${U(n.color)}`],t[`fontSize${U(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,i,r,o,s,a,l,u,c,f,d,p,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(i=n.create)==null?void 0:i.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),ah=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiSvgIcon"}),{children:r,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=i,p=ve(i,IF),y=k.isValidElement(r)&&r.type==="svg",h=R({},i,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:y}),x={};c||(x.viewBox=d);const m=DF(h);return C.jsxs(LF,R({as:a,className:de(m.root,o),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},x,p,y&&r.props,{ownerState:h,children:[y?r.props.children:r,f?C.jsx("title",{children:f}):null]}))});ah.muiName="SvgIcon";function wk(e,t){function n(i,r){return C.jsx(ah,R({"data-testid":`${t}Icon`,ref:r},i,{children:e}))}return n.muiName=ah.muiName,k.memo(k.forwardRef(n))}const $F={configure:e=>{yp.configure(e)}},FF=Object.freeze(Object.defineProperty({__proto__:null,capitalize:U,createChainedFunction:YT,createSvgIcon:wk,debounce:QT,deprecatedPropType:XT,isMuiElement:ZT,ownerDocument:Nw,ownerWindow:JT,requirePropFactory:eM,setRef:Vw,unstable_ClassNameGenerator:$F,unstable_useEnhancedEffect:jw,unstable_useId:nM,unsupportedProp:iM,useControlled:rM,useEventCallback:ds,useForkRef:Xl,useIsFocusVisible:Bw},Symbol.toStringTag,{value:"Module"}));function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lh(e,t)}function jF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lh(e,t)}const O0=Ir.createContext(null);function NF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dm(e,t){var n=function(o){return t&&k.isValidElement(o)?t(o):o},i=Object.create(null);return e&&k.Children.map(e,function(r){return r}).forEach(function(r){i[r.key]=n(r)}),i}function VF(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var i=Object.create(null),r=[];for(var o in e)o in t?r.length&&(i[o]=r,r=[]):r.push(o);var s,a={};for(var l in t){if(i[l])for(s=0;s{const{square:t,elevation:n,variant:i,classes:r}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return Ii(o,GF,r)},YF=pn("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return R({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&R({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${It("#fff",ay(t.elevation))}, ${It("#fff",ay(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),QF=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiPaper"}),{className:r,component:o="div",elevation:s=1,square:a=!1,variant:l="elevation"}=i,u=ve(i,KF),c=R({},i,{component:o,elevation:s,square:a,variant:l}),f=qF(c);return C.jsx(YF,R({as:o,ownerState:c,className:de(f.root,r),ref:n},u))});function XF(e){const{className:t,classes:n,pulsate:i=!1,rippleX:r,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[c,f]=k.useState(!1),d=de(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+o,left:-(s/2)+r},y=de(n.child,c&&n.childLeaving,i&&n.childPulsate);return!a&&!c&&f(!0),k.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,u);return()=>{clearTimeout(h)}}},[l,a,u]),C.jsx("span",{className:d,style:p,children:C.jsx("span",{className:y})})}const $t=zi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ZF=["center","classes","className"];let xc=e=>e,A0,z0,I0,D0;const uh=550,JF=80,ej=Bu(A0||(A0=xc` 0% { transform: scale(0); opacity: 0.1; @@ -156,7 +156,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),oj=Bu(L0||(L0=xc` +`)),tj=Bu(z0||(z0=xc` 0% { opacity: 1; } @@ -164,7 +164,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),sj=Bu(D0||(D0=xc` +`)),nj=Bu(I0||(I0=xc` 0% { transform: scale(1); } @@ -176,7 +176,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),aj=pn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lj=pn(tj,{name:"MuiTouchRipple",slot:"Ripple"})($0||($0=xc` +`)),ij=pn("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rj=pn(XF,{name:"MuiTouchRipple",slot:"Ripple"})(D0||(D0=xc` opacity: 0; position: absolute; @@ -219,4 +219,4 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),$t.rippleVisible,rj,uh,({theme:e})=>e.transitions.easing.easeInOut,$t.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$t.child,$t.childLeaving,oj,uh,({theme:e})=>e.transitions.easing.easeInOut,$t.childPulsate,sj,({theme:e})=>e.transitions.easing.easeInOut),uj=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:s}=i,a=ve(i,nj),[l,u]=k.useState([]),c=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=k.useRef(!1),p=dM(),y=k.useRef(null),h=k.useRef(null),x=k.useCallback(w=>{const{pulsate:b,rippleX:S,rippleY:P,rippleSize:_,cb:A}=w;u(T=>[...T,C.jsx(lj,{classes:{ripple:de(o.ripple,$t.ripple),rippleVisible:de(o.rippleVisible,$t.rippleVisible),ripplePulsate:de(o.ripplePulsate,$t.ripplePulsate),child:de(o.child,$t.child),childLeaving:de(o.childLeaving,$t.childLeaving),childPulsate:de(o.childPulsate,$t.childPulsate)},timeout:uh,pulsate:b,rippleX:S,rippleY:P,rippleSize:_},c.current)]),c.current+=1,f.current=A},[o]),m=k.useCallback((w={},b={},S=()=>{})=>{const{pulsate:P=!1,center:_=r||b.pulsate,fakeElement:A=!1}=b;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const T=A?null:h.current,I=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,V,$;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)z=Math.round(I.width/2),V=Math.round(I.height/2);else{const{clientX:re,clientY:oe}=w.touches&&w.touches.length>0?w.touches[0]:w;z=Math.round(re-I.left),V=Math.round(oe-I.top)}if(_)$=Math.sqrt((2*I.width**2+I.height**2)/3),$%2===0&&($+=1);else{const re=Math.max(Math.abs((T?T.clientWidth:0)-z),z)*2+2,oe=Math.max(Math.abs((T?T.clientHeight:0)-V),V)*2+2;$=Math.sqrt(re**2+oe**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{x({pulsate:P,rippleX:z,rippleY:V,rippleSize:$,cb:S})},p.start(ij,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:P,rippleX:z,rippleY:V,rippleSize:$,cb:S})},[r,x,p]),g=k.useCallback(()=>{m({},{pulsate:!0})},[m]),v=k.useCallback((w,b)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,p.start(0,()=>{v(w,b)});return}y.current=null,u(S=>S.length>0?S.slice(1):S),f.current=b},[p]);return k.useImperativeHandle(n,()=>({pulsate:g,start:m,stop:v}),[g,m,v]),C.jsx(aj,R({className:de($t.root,o.root,s),ref:h},a,{children:C.jsx(mm,{component:null,exit:!0,children:l})}))});function cj(e){return Jn("MuiButtonBase",e)}const fj=zi("MuiButtonBase",["root","disabled","focusVisible"]),dj=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],hj=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:r}=e,s=Ii({root:["root",t&&"disabled",n&&"focusVisible"]},cj,r);return n&&i&&(s.root+=` ${i}`),s},pj=pn("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),F0=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:y,onClick:h,onContextMenu:x,onDragLeave:m,onFocus:g,onFocusVisible:v,onKeyDown:w,onKeyUp:b,onMouseDown:S,onMouseLeave:P,onMouseUp:_,onTouchEnd:A,onTouchMove:T,onTouchStart:I,tabIndex:z=0,TouchRippleProps:V,touchRippleRef:$,type:re}=i,oe=ve(i,dj),X=k.useRef(null),E=k.useRef(null),L=Xl(E,$),{isFocusVisibleRef:N,onFocus:K,onBlur:Ee,ref:kr}=Ww(),[rt,ti]=k.useState(!1);u&&rt&&ti(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{ti(!0),X.current.focus()}}),[]);const[Jt,Cr]=k.useState(!1);k.useEffect(()=>{Cr(!0)},[]);const Ak=Jt&&!c&&!u;k.useEffect(()=>{rt&&d&&!c&&Jt&&E.current.pulsate()},[c,d,rt,Jt]);function An(W,Cm,Kk=f){return ds(Pm=>(Cm&&Cm(Pm),!Kk&&E.current&&E.current[W](Pm),!0))}const zk=An("start",S),Ik=An("stop",x),Lk=An("stop",m),Dk=An("stop",_),$k=An("stop",W=>{rt&&W.preventDefault(),P&&P(W)}),Fk=An("start",I),jk=An("stop",A),Nk=An("stop",T),Vk=An("stop",W=>{Ee(W),N.current===!1&&ti(!1),y&&y(W)},!1),Bk=ds(W=>{X.current||(X.current=W.currentTarget),K(W),N.current===!0&&(ti(!0),v&&v(W)),g&&g(W)}),wc=()=>{const W=X.current;return l&&l!=="button"&&!(W.tagName==="A"&&W.href)},bc=k.useRef(!1),Uk=ds(W=>{d&&!bc.current&&rt&&E.current&&W.key===" "&&(bc.current=!0,E.current.stop(W,()=>{E.current.start(W)})),W.target===W.currentTarget&&wc()&&W.key===" "&&W.preventDefault(),w&&w(W),W.target===W.currentTarget&&wc()&&W.key==="Enter"&&!u&&(W.preventDefault(),h&&h(W))}),Wk=ds(W=>{d&&W.key===" "&&E.current&&rt&&!W.defaultPrevented&&(bc.current=!1,E.current.stop(W,()=>{E.current.pulsate(W)})),b&&b(W),h&&W.target===W.currentTarget&&wc()&&W.key===" "&&!W.defaultPrevented&&h(W)});let ba=l;ba==="button"&&(oe.href||oe.to)&&(ba=p);const Wo={};ba==="button"?(Wo.type=re===void 0?"button":re,Wo.disabled=u):(!oe.href&&!oe.to&&(Wo.role="button"),u&&(Wo["aria-disabled"]=u));const Hk=Xl(n,kr,X),km=R({},i,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:z,focusVisible:rt}),Gk=hj(km);return C.jsxs(pj,R({as:ba,className:de(Gk.root,a),ownerState:km,onBlur:Vk,onClick:h,onContextMenu:Ik,onFocus:Bk,onKeyDown:Uk,onKeyUp:Wk,onMouseDown:zk,onMouseLeave:$k,onMouseUp:Dk,onDragLeave:Lk,onTouchEnd:jk,onTouchMove:Nk,onTouchStart:Fk,ref:Hk,tabIndex:u?-1:z,type:re},Wo,oe,{children:[s,Ak?C.jsx(uj,R({ref:L,center:o},V)):null]}))});function mj(e){return Jn("MuiTypography",e)}zi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yj=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:r,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return Ii(a,mj,s)},vj=pn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),j0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wj=e=>xj[e]||e,bj=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiTypography"}),r=wj(i.color),o=ma(R({},i,{color:r})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:p=j0}=o,y=ve(o,gj),h=R({},o,{align:s,color:r,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:p}),x=l||(f?"p":p[d]||j0[d])||"span",m=yj(h);return C.jsx(vj,R({as:x,ref:n,ownerState:h,className:de(m.root,a)},y))}),Sj=Sk(C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function kj(e){return Jn("MuiChip",e)}const Q=zi("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Cj=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Pj=e=>{const{classes:t,disabled:n,size:i,color:r,iconColor:o,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${U(i)}`,`color${U(r)}`,a&&"clickable",a&&`clickableColor${U(r)}`,s&&"deletable",s&&`deletableColor${U(r)}`,`${l}${U(r)}`],label:["label",`label${U(i)}`],avatar:["avatar",`avatar${U(i)}`,`avatarColor${U(r)}`],icon:["icon",`icon${U(i)}`,`iconColor${U(o)}`],deleteIcon:["deleteIcon",`deleteIcon${U(i)}`,`deleteIconColor${U(r)}`,`deleteIcon${U(l)}Color${U(r)}`]};return Ii(u,kj,t)},_j=pn("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:r,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${Q.avatar}`]:t.avatar},{[`& .${Q.avatar}`]:t[`avatar${U(a)}`]},{[`& .${Q.avatar}`]:t[`avatarColor${U(i)}`]},{[`& .${Q.icon}`]:t.icon},{[`& .${Q.icon}`]:t[`icon${U(a)}`]},{[`& .${Q.icon}`]:t[`iconColor${U(r)}`]},{[`& .${Q.deleteIcon}`]:t.deleteIcon},{[`& .${Q.deleteIcon}`]:t[`deleteIcon${U(a)}`]},{[`& .${Q.deleteIcon}`]:t[`deleteIconColor${U(i)}`]},{[`& .${Q.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(i)}`]},t.root,t[`size${U(a)}`],t[`color${U(i)}`],o&&t.clickable,o&&i!=="default"&&t[`clickableColor${U(i)})`],s&&t.deletable,s&&i!=="default"&&t[`deletableColor${U(i)}`],t[l],t[`${l}${U(i)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return R({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Q.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Q.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Q.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Q.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Q.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Q.icon}`]:R({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&R({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Q.deleteIcon}`]:R({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:It(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:It(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:It(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Q.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Q.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>R({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Q.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Q.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>R({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Q.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Q.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Q.avatar}`]:{marginLeft:4},[`& .${Q.avatarSmall}`]:{marginLeft:2},[`& .${Q.icon}`]:{marginLeft:4},[`& .${Q.iconSmall}`]:{marginLeft:2},[`& .${Q.deleteIcon}`]:{marginRight:5},[`& .${Q.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:It(e.palette[t.color].main,.7)}`,[`&.${Q.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Q.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:It(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Q.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:It(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Tj=pn("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${U(i)}`]]}})(({ownerState:e})=>R({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function N0(e){return e.key==="Backspace"||e.key==="Delete"}const kk=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiChip"}),{avatar:r,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:d,onClick:p,onDelete:y,onKeyDown:h,onKeyUp:x,size:m="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=i,b=ve(i,Cj),S=k.useRef(null),P=Xl(S,n),_=L=>{L.stopPropagation(),y&&y(L)},A=L=>{L.currentTarget===L.target&&N0(L)&&L.preventDefault(),h&&h(L)},T=L=>{L.currentTarget===L.target&&(y&&N0(L)?y(L):L.key==="Escape"&&S.current&&S.current.blur()),x&&x(L)},I=s!==!1&&p?!0:s,z=I||y?F0:l||"div",V=R({},i,{component:z,disabled:c,size:m,color:a,iconColor:k.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:I,variant:g}),$=Pj(V),re=z===F0?R({component:l||"div",focusVisibleClassName:$.focusVisible},y&&{disableRipple:!0}):{};let oe=null;y&&(oe=u&&k.isValidElement(u)?k.cloneElement(u,{className:de(u.props.className,$.deleteIcon),onClick:_}):C.jsx(Sj,{className:de($.deleteIcon),onClick:_}));let X=null;r&&k.isValidElement(r)&&(X=k.cloneElement(r,{className:de($.avatar,r.props.className)}));let E=null;return f&&k.isValidElement(f)&&(E=k.cloneElement(f,{className:de($.icon,f.props.className)})),C.jsxs(_j,R({as:z,className:de($.root,o),disabled:I&&c?!0:void 0,onClick:p,onKeyDown:A,onKeyUp:T,ref:P,tabIndex:w&&c?-1:v,ownerState:V},re,b,{children:[X||E,C.jsx(Tj,{className:de($.label),ownerState:V,children:d}),oe]}))}),Mj=zi("MuiBox",["root"]),Ej=Pp(),fu=AT({themeId:Co,defaultTheme:Ej,defaultClassName:Mj.root,generateClassName:vp.generate}),Rj=DM({createStyledComponent:pn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>En({props:e,name:"MuiContainer"})}),Oj=WM({createStyledComponent:pn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>En({props:e,name:"MuiStack"})}),V0=k.createContext();function Aj(e){return Jn("MuiGrid",e)}const zj=[0,1,2,3,4,5,6,7,8,9,10],Ij=["column-reverse","column","row-reverse","row"],Lj=["nowrap","wrap-reverse","wrap"],as=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],oa=zi("MuiGrid",["root","container","item","zeroMinWidth",...zj.map(e=>`spacing-xs-${e}`),...Ij.map(e=>`direction-xs-${e}`),...Lj.map(e=>`wrap-xs-${e}`),...as.map(e=>`grid-xs-${e}`),...as.map(e=>`grid-sm-${e}`),...as.map(e=>`grid-md-${e}`),...as.map(e=>`grid-lg-${e}`),...as.map(e=>`grid-xl-${e}`)]),Dj=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function go(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function $j({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((i,r)=>{let o={};if(t[r]&&(n=t[r]),!n)return i;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=or({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[r]:s;if(a==null)return i;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${go(c)})`;u={flexBasis:f,maxWidth:f}}}o=R({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[r]===0?Object.assign(i,o):i[e.breakpoints.up(r)]=o,i},{})}function Fj({theme:e,ownerState:t}){const n=or({values:t.direction,breakpoints:e.breakpoints.values});return vt({theme:e},n,i=>{const r={flexDirection:i};return i.indexOf("column")===0&&(r[`& > .${oa.item}`]={maxWidth:"none"}),r})}function Ck({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const i=Object.keys(e).sort((r,o)=>e[r]-e[o]);return i.slice(0,i.indexOf(n))}function jj({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let r={};if(n&&i!==0){const o=or({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Ck({breakpoints:e.breakpoints.values,values:o})),r=vt({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${go(c)}`,[`& > .${oa.item}`]:{paddingTop:go(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${oa.item}`]:{paddingTop:0}}})}return r}function Nj({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let r={};if(n&&i!==0){const o=or({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Ck({breakpoints:e.breakpoints.values,values:o})),r=vt({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${go(c)})`,marginLeft:`-${go(c)}`,[`& > .${oa.item}`]:{paddingLeft:go(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${oa.item}`]:{paddingLeft:0}}})}return r}function Vj(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach(r=>{const o=e[r];Number(o)>0&&i.push(n[`spacing-${r}-${String(o)}`])}),i}const Bj=pn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:r,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];i&&(c=Vj(s,u,t));const f=[];return u.forEach(d=>{const p=n[d];p&&f.push(t[`grid-${d}-${String(p)}`])}),[t.root,i&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,r!=="row"&&t[`direction-xs-${String(r)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>R({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Fj,jj,Nj,$j);function Uj(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(i=>{const r=e[i];if(Number(r)>0){const o=`spacing-${i}-${String(r)}`;n.push(o)}}),n}const Wj=e=>{const{classes:t,container:n,direction:i,item:r,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=Uj(o,l));const c=[];l.forEach(d=>{const p=e[d];p&&c.push(`grid-${d}-${String(p)}`)});const f={root:["root",n&&"container",r&&"item",a&&"zeroMinWidth",...u,i!=="row"&&`direction-xs-${String(i)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Ii(f,Aj,t)},du=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiGrid"}),{breakpoints:r}=tb(),o=ma(i),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:d=!1,rowSpacing:p,spacing:y=0,wrap:h="wrap",zeroMinWidth:x=!1}=o,m=ve(o,Dj),g=p||y,v=l||y,w=k.useContext(V0),b=c?a||12:w,S={},P=R({},m);r.keys.forEach(T=>{m[T]!=null&&(S[T]=m[T],delete P[T])});const _=R({},o,{columns:b,container:c,direction:f,item:d,rowSpacing:g,columnSpacing:v,wrap:h,zeroMinWidth:x,spacing:y},S,{breakpoints:r.keys}),A=Wj(_);return C.jsx(V0.Provider,{value:b,children:C.jsx(Bj,R({ownerState:_,className:de(A.root,s),as:u,ref:n},P))})});var gm={},Af={};const Hj=Xn(BF);var B0;function Sr(){return B0||(B0=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Hj}(Af)),Af}var Gj=ei;Object.defineProperty(gm,"__esModule",{value:!0});var Pk=gm.default=void 0,Kj=Gj(Sr()),qj=C;Pk=gm.default=(0,Kj.default)((0,qj.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var ym={},Qj=ei;Object.defineProperty(ym,"__esModule",{value:!0});var _k=ym.default=void 0,Yj=Qj(Sr()),Xj=C;_k=ym.default=(0,Yj.default)((0,Xj.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var vm={},Zj=ei;Object.defineProperty(vm,"__esModule",{value:!0});var Tk=vm.default=void 0,Jj=Zj(Sr()),U0=C;Tk=vm.default=(0,Jj.default)([(0,U0.jsx)("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),(0,U0.jsx)("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology");var xm={},e6=ei;Object.defineProperty(xm,"__esModule",{value:!0});var Mk=xm.default=void 0,t6=e6(Sr()),n6=C;Mk=xm.default=(0,t6.default)((0,n6.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud");var wm={},i6=ei;Object.defineProperty(wm,"__esModule",{value:!0});var Ek=wm.default=void 0,r6=i6(Sr()),o6=C;Ek=wm.default=(0,r6.default)((0,o6.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");var bm={},s6=ei;Object.defineProperty(bm,"__esModule",{value:!0});var Rk=bm.default=void 0,a6=s6(Sr()),l6=C;Rk=bm.default=(0,a6.default)((0,l6.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal");var Sm={},u6=ei;Object.defineProperty(Sm,"__esModule",{value:!0});var Ok=Sm.default=void 0,c6=u6(Sr()),zf=C;Ok=Sm.default=(0,c6.default)([(0,zf.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,zf.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,zf.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");const f6=[{title:"Languages",icon:C.jsx(Pk,{fontSize:"large",color:"primary"}),skills:["Python","JavaScript","C++"]},{title:"Database",icon:C.jsx(_k,{fontSize:"large",color:"primary"}),skills:["Postgres","Azure Data Tables","MySQL","Neo4j- Graph DB"]},{title:"Web Technologies",icon:C.jsx(Rk,{fontSize:"large",color:"primary"}),skills:["React","Django","FastAPI","Flask","Git/GitHub","VSCode"]},{title:"Machine Learning",icon:C.jsx(Ok,{fontSize:"large",color:"primary"}),skills:["Linear regression","Ridge & Lasso Regularization","Logistic Regression","Naive-Bayes Classifier","KNN","SVM","Decision Tree","Random Forest","Ada-Boost","XG-Boost","K-means Clustering"]},{title:"Deep Learning & NLP",icon:C.jsx(Tk,{fontSize:"large",color:"primary"}),skills:["NLTK","Spacy","Stop-words","Stemming","Lemmatization","Tokenization","TF-IDF","Bag of Words","Word2Vec","RNNs","CNNs","LSTM","Yolo","Activation Functions","Pytorch","Tensorflow"]},{title:"Generative AI",icon:C.jsx(Ek,{fontSize:"large",color:"primary"}),skills:["OpenAI API","LLMs (Llama, Mistral, Phi-mini, Reflection-based models)","Prompt Engineering","RAG","Tool Calling","Fine Tuning","PEFT","VectorDBs","Agents","Langchain","LanGraph","LlamaIndex","HuggingFace tools","Langfuse","Cursor"]},{title:"Cloud services",icon:C.jsx(Mk,{fontSize:"large",color:"primary"}),skills:["Azure AI services","Azure Openai","Azure AI search","Azure Document Intelligence","Azure Speech","Azure Machine Learning","AWS bedrock","AWS sagemaker","AWS SQS"]}];function d6(){const e=tb();return YT(e.breakpoints.down("sm")),C.jsx(vc,{id:"skills",children:C.jsxs("div",{className:"container mx-auto px-4",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Skills"}),C.jsx(du,{container:!0,spacing:4,children:f6.map((t,n)=>C.jsx(du,{item:!0,xs:12,sm:6,md:4,children:C.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},style:{height:"100%"},children:C.jsxs(ej,{elevation:0,component:Pe.div,whileHover:{scale:1.02},className:"h-full p-6 bg-black/60 hover:bg-black/70 transition-all border border-white/10 rounded-lg",children:[C.jsxs(fu,{sx:{display:"flex",alignItems:"center",mb:2},children:[t.icon,C.jsx(bj,{variant:"h6",sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"},color:"primary.main",ml:1,fontWeight:600},children:t.title})]}),C.jsx(fu,{sx:{display:"flex",flexWrap:"wrap",gap:1,flex:1,alignContent:"flex-start"},children:t.skills.map((i,r)=>C.jsx(kk,{label:i,sx:{bgcolor:"rgba(255, 255, 255, 0.05)",color:"text.primary","&:hover":{bgcolor:"rgba(255, 255, 255, 0.1)"},fontSize:"0.85rem",height:"28px"}},r))})]})})},n))})]})})}const h6=()=>{const e=[{title:"AI based large construction project analyser",description:"Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.",tools:["Python FastAPI","Azure functions","Azure OpenAI","Langchain","Unstructured","Neo4j"]},{title:"AI Legal Research Tool",description:"Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.",tools:["Flask","Elasticsearch","OpenAI API","RAG","BiLSTM","Selenium","Azure machine learning"]},{title:"AI Sales Agent",description:"Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.",tools:["FastAPI","Reactjs","ChromaDB","Agent Architectures","OpenAI API","Zapier","Salesforce- Apex"]}];return C.jsx(vc,{id:"projects",children:C.jsxs(Rj,{className:"relative z-10",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Projects"}),C.jsx(du,{container:!0,spacing:4,children:e.map((t,n)=>C.jsx(du,{item:!0,xs:12,children:C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"p-6 rounded-lg border border-white/10 bg-black/80 backdrop-blur-sm transition-all group",children:[C.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90 group-hover:text-white transition-colors",children:t.title}),C.jsx("p",{className:"text-white/70 group-hover:text-white/80 transition-colors mb-4",children:t.description}),C.jsx(Oj,{direction:"row",spacing:1,flexWrap:"wrap",gap:1,mt:2,children:t.tools.map(i=>C.jsx(kk,{label:i,className:"bg-white/10 hover:bg-white/20 transition-colors text-white/80 hover:text-white border-white/20"},i))})]})},t.title))})]})})},p6=[{icon:au,label:"Email",value:"goswamirushi39@gmail.com",link:"mailto:goswamirushi39@gmail.com"},{icon:Yd,label:"Phone",value:"8140226399",link:"tel:8140226399"},{icon:Kz,label:"LinkedIn",value:"linkedin.com/in/rushigoswami",link:"https://linkedin.com/in/rushigoswami"},{icon:Hz,label:"GitHub",value:"github.com/rushigoswami",link:"https://github.com/rushigoswami"}];function m6(){return C.jsxs(vc,{id:"contact",children:[C.jsx("div",{className:"absolute inset-0 bg-black",children:C.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),C.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Get in Touch"}),C.jsx("div",{className:"max-w-4xl mx-auto",children:C.jsx("div",{className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:C.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:p6.map((e,t)=>C.jsxs(Pe.a,{href:e.link,target:e.icon!==Yd&&e.icon!==au?"_blank":void 0,rel:e.icon!==Yd&&e.icon!==au?"noopener noreferrer":void 0,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/[0.07] transition-all group flex items-center gap-4",children:[C.jsx("div",{className:"p-3 rounded-full bg-white/10 group-hover:bg-white/20 transition-colors",children:C.jsx(e.icon,{size:24,className:"text-white/80"})}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-lg font-semibold text-white/90 mb-1",children:e.label}),C.jsx("p",{className:"text-white/70 group-hover:text-white/90 transition-colors",children:e.value})]})]},e.label))})})})]})]})}function g6(){const[e,t]=k.useState("dark"),n=k.useMemo(()=>Pp({palette:{mode:e,primary:{main:e==="dark"?"#7C3AED":"#6D28D9",light:e==="dark"?"#8B5CF6":"#7C3AED",dark:"#5B21B6"},secondary:{main:e==="dark"?"#EC4899":"#DB2777"},background:{default:e==="dark"?"#0F172A":"#F8FAFC",paper:e==="dark"?"#1E293B":"#FFFFFF"},text:{primary:e==="dark"?"#F1F5F9":"#1E293B",secondary:e==="dark"?"#CBD5E1":"#475569"}},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:800},h2:{fontWeight:700},h3:{fontWeight:700},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600}},components:{MuiContainer:{styleOverrides:{root:{"@media (min-width: 1200px)":{maxWidth:"1400px"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}}}}),[e]),i=()=>{t(r=>r==="light"?"dark":"light")};return C.jsxs(eR,{theme:n,children:[C.jsx(oR,{}),C.jsx(vR,{children:C.jsx(fu,{sx:{width:"100%",margin:0,padding:0,overflow:"hidden",minHeight:"100vh",bgcolor:"background.default",color:"text.primary",position:"relative","&::before":{content:'""',position:"fixed",top:0,left:0,right:0,bottom:0,background:e==="dark"?"radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(15, 23, 42, 0) 70%)":"radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, rgba(248, 250, 252, 0) 70%)",pointerEvents:"none",zIndex:1}},children:C.jsxs(fu,{sx:{position:"relative",zIndex:2},children:[C.jsx(Yz,{colorMode:{mode:e,toggleColorMode:i}}),C.jsx(LF,{}),C.jsx(DF,{}),C.jsx(d6,{}),C.jsx(h6,{}),C.jsx(m6,{})]})})})]})}nw(document.getElementById("root")).render(C.jsx(k.StrictMode,{children:C.jsx(g6,{})})); +`),$t.rippleVisible,ej,uh,({theme:e})=>e.transitions.easing.easeInOut,$t.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,$t.child,$t.childLeaving,tj,uh,({theme:e})=>e.transitions.easing.easeInOut,$t.childPulsate,nj,({theme:e})=>e.transitions.easing.easeInOut),oj=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:s}=i,a=ve(i,ZF),[l,u]=k.useState([]),c=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=k.useRef(!1),p=lM(),y=k.useRef(null),h=k.useRef(null),x=k.useCallback(w=>{const{pulsate:b,rippleX:S,rippleY:P,rippleSize:_,cb:A}=w;u(T=>[...T,C.jsx(rj,{classes:{ripple:de(o.ripple,$t.ripple),rippleVisible:de(o.rippleVisible,$t.rippleVisible),ripplePulsate:de(o.ripplePulsate,$t.ripplePulsate),child:de(o.child,$t.child),childLeaving:de(o.childLeaving,$t.childLeaving),childPulsate:de(o.childPulsate,$t.childPulsate)},timeout:uh,pulsate:b,rippleX:S,rippleY:P,rippleSize:_},c.current)]),c.current+=1,f.current=A},[o]),m=k.useCallback((w={},b={},S=()=>{})=>{const{pulsate:P=!1,center:_=r||b.pulsate,fakeElement:A=!1}=b;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const T=A?null:h.current,I=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let z,V,$;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)z=Math.round(I.width/2),V=Math.round(I.height/2);else{const{clientX:re,clientY:oe}=w.touches&&w.touches.length>0?w.touches[0]:w;z=Math.round(re-I.left),V=Math.round(oe-I.top)}if(_)$=Math.sqrt((2*I.width**2+I.height**2)/3),$%2===0&&($+=1);else{const re=Math.max(Math.abs((T?T.clientWidth:0)-z),z)*2+2,oe=Math.max(Math.abs((T?T.clientHeight:0)-V),V)*2+2;$=Math.sqrt(re**2+oe**2)}w!=null&&w.touches?y.current===null&&(y.current=()=>{x({pulsate:P,rippleX:z,rippleY:V,rippleSize:$,cb:S})},p.start(JF,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:P,rippleX:z,rippleY:V,rippleSize:$,cb:S})},[r,x,p]),g=k.useCallback(()=>{m({},{pulsate:!0})},[m]),v=k.useCallback((w,b)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&y.current){y.current(),y.current=null,p.start(0,()=>{v(w,b)});return}y.current=null,u(S=>S.length>0?S.slice(1):S),f.current=b},[p]);return k.useImperativeHandle(n,()=>({pulsate:g,start:m,stop:v}),[g,m,v]),C.jsx(ij,R({className:de($t.root,o.root,s),ref:h},a,{children:C.jsx(hm,{component:null,exit:!0,children:l})}))});function sj(e){return Jn("MuiButtonBase",e)}const aj=zi("MuiButtonBase",["root","disabled","focusVisible"]),lj=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],uj=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:r}=e,s=Ii({root:["root",t&&"disabled",n&&"focusVisible"]},sj,r);return n&&i&&(s.root+=` ${i}`),s},cj=pn("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aj.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),L0=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:y,onClick:h,onContextMenu:x,onDragLeave:m,onFocus:g,onFocusVisible:v,onKeyDown:w,onKeyUp:b,onMouseDown:S,onMouseLeave:P,onMouseUp:_,onTouchEnd:A,onTouchMove:T,onTouchStart:I,tabIndex:z=0,TouchRippleProps:V,touchRippleRef:$,type:re}=i,oe=ve(i,lj),X=k.useRef(null),E=k.useRef(null),D=Xl(E,$),{isFocusVisibleRef:N,onFocus:K,onBlur:Ee,ref:kr}=Bw(),[rt,ti]=k.useState(!1);u&&rt&&ti(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{ti(!0),X.current.focus()}}),[]);const[Jt,Cr]=k.useState(!1);k.useEffect(()=>{Cr(!0)},[]);const Rk=Jt&&!c&&!u;k.useEffect(()=>{rt&&d&&!c&&Jt&&E.current.pulsate()},[c,d,rt,Jt]);function An(W,Sm,Hk=f){return ds(km=>(Sm&&Sm(km),!Hk&&E.current&&E.current[W](km),!0))}const Ok=An("start",S),Ak=An("stop",x),zk=An("stop",m),Ik=An("stop",_),Dk=An("stop",W=>{rt&&W.preventDefault(),P&&P(W)}),Lk=An("start",I),$k=An("stop",A),Fk=An("stop",T),jk=An("stop",W=>{Ee(W),N.current===!1&&ti(!1),y&&y(W)},!1),Nk=ds(W=>{X.current||(X.current=W.currentTarget),K(W),N.current===!0&&(ti(!0),v&&v(W)),g&&g(W)}),wc=()=>{const W=X.current;return l&&l!=="button"&&!(W.tagName==="A"&&W.href)},bc=k.useRef(!1),Vk=ds(W=>{d&&!bc.current&&rt&&E.current&&W.key===" "&&(bc.current=!0,E.current.stop(W,()=>{E.current.start(W)})),W.target===W.currentTarget&&wc()&&W.key===" "&&W.preventDefault(),w&&w(W),W.target===W.currentTarget&&wc()&&W.key==="Enter"&&!u&&(W.preventDefault(),h&&h(W))}),Bk=ds(W=>{d&&W.key===" "&&E.current&&rt&&!W.defaultPrevented&&(bc.current=!1,E.current.stop(W,()=>{E.current.pulsate(W)})),b&&b(W),h&&W.target===W.currentTarget&&wc()&&W.key===" "&&!W.defaultPrevented&&h(W)});let ba=l;ba==="button"&&(oe.href||oe.to)&&(ba=p);const Wo={};ba==="button"?(Wo.type=re===void 0?"button":re,Wo.disabled=u):(!oe.href&&!oe.to&&(Wo.role="button"),u&&(Wo["aria-disabled"]=u));const Uk=Xl(n,kr,X),bm=R({},i,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:z,focusVisible:rt}),Wk=uj(bm);return C.jsxs(cj,R({as:ba,className:de(Wk.root,a),ownerState:bm,onBlur:jk,onClick:h,onContextMenu:Ak,onFocus:Nk,onKeyDown:Vk,onKeyUp:Bk,onMouseDown:Ok,onMouseLeave:Dk,onMouseUp:Ik,onDragLeave:zk,onTouchEnd:$k,onTouchMove:Fk,onTouchStart:Lk,ref:Uk,tabIndex:u?-1:z,type:re},Wo,oe,{children:[s,Rk?C.jsx(oj,R({ref:D,center:o},V)):null]}))});function fj(e){return Jn("MuiTypography",e)}zi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],hj=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:r,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${U(t)}`,n&&"gutterBottom",i&&"noWrap",r&&"paragraph"]};return Ii(a,fj,s)},pj=pn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${U(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>R({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),$0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mj={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gj=e=>mj[e]||e,yj=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiTypography"}),r=gj(i.color),o=ma(R({},i,{color:r})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:p=$0}=o,y=ve(o,dj),h=R({},o,{align:s,color:r,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:p}),x=l||(f?"p":p[d]||$0[d])||"span",m=hj(h);return C.jsx(pj,R({as:x,ref:n,ownerState:h,className:de(m.root,a)},y))}),vj=wk(C.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function xj(e){return Jn("MuiChip",e)}const Y=zi("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),wj=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bj=e=>{const{classes:t,disabled:n,size:i,color:r,iconColor:o,onDelete:s,clickable:a,variant:l}=e,u={root:["root",l,n&&"disabled",`size${U(i)}`,`color${U(r)}`,a&&"clickable",a&&`clickableColor${U(r)}`,s&&"deletable",s&&`deletableColor${U(r)}`,`${l}${U(r)}`],label:["label",`label${U(i)}`],avatar:["avatar",`avatar${U(i)}`,`avatarColor${U(r)}`],icon:["icon",`icon${U(i)}`,`iconColor${U(o)}`],deleteIcon:["deleteIcon",`deleteIcon${U(i)}`,`deleteIconColor${U(r)}`,`deleteIcon${U(l)}Color${U(r)}`]};return Ii(u,xj,t)},Sj=pn("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:r,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${Y.avatar}`]:t.avatar},{[`& .${Y.avatar}`]:t[`avatar${U(a)}`]},{[`& .${Y.avatar}`]:t[`avatarColor${U(i)}`]},{[`& .${Y.icon}`]:t.icon},{[`& .${Y.icon}`]:t[`icon${U(a)}`]},{[`& .${Y.icon}`]:t[`iconColor${U(r)}`]},{[`& .${Y.deleteIcon}`]:t.deleteIcon},{[`& .${Y.deleteIcon}`]:t[`deleteIcon${U(a)}`]},{[`& .${Y.deleteIcon}`]:t[`deleteIconColor${U(i)}`]},{[`& .${Y.deleteIcon}`]:t[`deleteIcon${U(l)}Color${U(i)}`]},t.root,t[`size${U(a)}`],t[`color${U(i)}`],o&&t.clickable,o&&i!=="default"&&t[`clickableColor${U(i)})`],s&&t.deletable,s&&i!=="default"&&t[`deletableColor${U(i)}`],t[l],t[`${l}${U(i)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return R({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Y.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Y.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Y.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Y.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Y.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Y.icon}`]:R({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&R({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Y.deleteIcon}`]:R({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:It(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:It(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:It(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Y.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Y.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>R({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Y.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:It(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Y.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>R({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Y.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Y.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Y.avatar}`]:{marginLeft:4},[`& .${Y.avatarSmall}`]:{marginLeft:2},[`& .${Y.icon}`]:{marginLeft:4},[`& .${Y.iconSmall}`]:{marginLeft:2},[`& .${Y.deleteIcon}`]:{marginRight:5},[`& .${Y.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:It(e.palette[t.color].main,.7)}`,[`&.${Y.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:It(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Y.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:It(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Y.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:It(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),kj=pn("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${U(i)}`]]}})(({ownerState:e})=>R({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function F0(e){return e.key==="Backspace"||e.key==="Delete"}const bk=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiChip"}),{avatar:r,className:o,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:d,onClick:p,onDelete:y,onKeyDown:h,onKeyUp:x,size:m="medium",variant:g="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=i,b=ve(i,wj),S=k.useRef(null),P=Xl(S,n),_=D=>{D.stopPropagation(),y&&y(D)},A=D=>{D.currentTarget===D.target&&F0(D)&&D.preventDefault(),h&&h(D)},T=D=>{D.currentTarget===D.target&&(y&&F0(D)?y(D):D.key==="Escape"&&S.current&&S.current.blur()),x&&x(D)},I=s!==!1&&p?!0:s,z=I||y?L0:l||"div",V=R({},i,{component:z,disabled:c,size:m,color:a,iconColor:k.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:I,variant:g}),$=bj(V),re=z===L0?R({component:l||"div",focusVisibleClassName:$.focusVisible},y&&{disableRipple:!0}):{};let oe=null;y&&(oe=u&&k.isValidElement(u)?k.cloneElement(u,{className:de(u.props.className,$.deleteIcon),onClick:_}):C.jsx(vj,{className:de($.deleteIcon),onClick:_}));let X=null;r&&k.isValidElement(r)&&(X=k.cloneElement(r,{className:de($.avatar,r.props.className)}));let E=null;return f&&k.isValidElement(f)&&(E=k.cloneElement(f,{className:de($.icon,f.props.className)})),C.jsxs(Sj,R({as:z,className:de($.root,o),disabled:I&&c?!0:void 0,onClick:p,onKeyDown:A,onKeyUp:T,ref:P,tabIndex:w&&c?-1:v,ownerState:V},re,b,{children:[X||E,C.jsx(kj,{className:de($.label),ownerState:V,children:d}),oe]}))}),Cj=zi("MuiBox",["root"]),Pj=kp(),fu=RT({themeId:Co,defaultTheme:Pj,defaultClassName:Cj.root,generateClassName:yp.generate}),_j=AM({createStyledComponent:pn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${U(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>En({props:e,name:"MuiContainer"})}),Tj=NM({createStyledComponent:pn("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>En({props:e,name:"MuiStack"})}),j0=k.createContext();function Mj(e){return Jn("MuiGrid",e)}const Ej=[0,1,2,3,4,5,6,7,8,9,10],Rj=["column-reverse","column","row-reverse","row"],Oj=["nowrap","wrap-reverse","wrap"],as=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],oa=zi("MuiGrid",["root","container","item","zeroMinWidth",...Ej.map(e=>`spacing-xs-${e}`),...Rj.map(e=>`direction-xs-${e}`),...Oj.map(e=>`wrap-xs-${e}`),...as.map(e=>`grid-xs-${e}`),...as.map(e=>`grid-sm-${e}`),...as.map(e=>`grid-md-${e}`),...as.map(e=>`grid-lg-${e}`),...as.map(e=>`grid-xl-${e}`)]),Aj=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function go(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function zj({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((i,r)=>{let o={};if(t[r]&&(n=t[r]),!n)return i;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=or({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof s=="object"?s[r]:s;if(a==null)return i;const l=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${go(c)})`;u={flexBasis:f,maxWidth:f}}}o=R({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[r]===0?Object.assign(i,o):i[e.breakpoints.up(r)]=o,i},{})}function Ij({theme:e,ownerState:t}){const n=or({values:t.direction,breakpoints:e.breakpoints.values});return vt({theme:e},n,i=>{const r={flexDirection:i};return i.indexOf("column")===0&&(r[`& > .${oa.item}`]={maxWidth:"none"}),r})}function Sk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const i=Object.keys(e).sort((r,o)=>e[r]-e[o]);return i.slice(0,i.indexOf(n))}function Dj({theme:e,ownerState:t}){const{container:n,rowSpacing:i}=t;let r={};if(n&&i!==0){const o=or({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Sk({breakpoints:e.breakpoints.values,values:o})),r=vt({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${go(c)}`,[`& > .${oa.item}`]:{paddingTop:go(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${oa.item}`]:{paddingTop:0}}})}return r}function Lj({theme:e,ownerState:t}){const{container:n,columnSpacing:i}=t;let r={};if(n&&i!==0){const o=or({values:i,breakpoints:e.breakpoints.values});let s;typeof o=="object"&&(s=Sk({breakpoints:e.breakpoints.values,values:o})),r=vt({theme:e},o,(a,l)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${go(c)})`,marginLeft:`-${go(c)}`,[`& > .${oa.item}`]:{paddingLeft:go(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${oa.item}`]:{paddingLeft:0}}})}return r}function $j(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const i=[];return t.forEach(r=>{const o=e[r];Number(o)>0&&i.push(n[`spacing-${r}-${String(o)}`])}),i}const Fj=pn("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:i,direction:r,item:o,spacing:s,wrap:a,zeroMinWidth:l,breakpoints:u}=n;let c=[];i&&(c=$j(s,u,t));const f=[];return u.forEach(d=>{const p=n[d];p&&f.push(t[`grid-${d}-${String(p)}`])}),[t.root,i&&t.container,o&&t.item,l&&t.zeroMinWidth,...c,r!=="row"&&t[`direction-xs-${String(r)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...f]}})(({ownerState:e})=>R({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Ij,Dj,Lj,zj);function jj(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(i=>{const r=e[i];if(Number(r)>0){const o=`spacing-${i}-${String(r)}`;n.push(o)}}),n}const Nj=e=>{const{classes:t,container:n,direction:i,item:r,spacing:o,wrap:s,zeroMinWidth:a,breakpoints:l}=e;let u=[];n&&(u=jj(o,l));const c=[];l.forEach(d=>{const p=e[d];p&&c.push(`grid-${d}-${String(p)}`)});const f={root:["root",n&&"container",r&&"item",a&&"zeroMinWidth",...u,i!=="row"&&`direction-xs-${String(i)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Ii(f,Mj,t)},du=k.forwardRef(function(t,n){const i=En({props:t,name:"MuiGrid"}),{breakpoints:r}=Jw(),o=ma(i),{className:s,columns:a,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:d=!1,rowSpacing:p,spacing:y=0,wrap:h="wrap",zeroMinWidth:x=!1}=o,m=ve(o,Aj),g=p||y,v=l||y,w=k.useContext(j0),b=c?a||12:w,S={},P=R({},m);r.keys.forEach(T=>{m[T]!=null&&(S[T]=m[T],delete P[T])});const _=R({},o,{columns:b,container:c,direction:f,item:d,rowSpacing:g,columnSpacing:v,wrap:h,zeroMinWidth:x,spacing:y},S,{breakpoints:r.keys}),A=Nj(_);return C.jsx(j0.Provider,{value:b,children:C.jsx(Fj,R({ownerState:_,className:de(A.root,s),as:u,ref:n},P))})});var pm={},Af={};const Vj=Xn(FF);var N0;function Sr(){return N0||(N0=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Vj}(Af)),Af}var Bj=ei;Object.defineProperty(pm,"__esModule",{value:!0});var kk=pm.default=void 0,Uj=Bj(Sr()),Wj=C;kk=pm.default=(0,Uj.default)((0,Wj.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");var mm={},Hj=ei;Object.defineProperty(mm,"__esModule",{value:!0});var Ck=mm.default=void 0,Gj=Hj(Sr()),Kj=C;Ck=mm.default=(0,Gj.default)((0,Kj.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");var gm={},qj=ei;Object.defineProperty(gm,"__esModule",{value:!0});var Pk=gm.default=void 0,Yj=qj(Sr()),V0=C;Pk=gm.default=(0,Yj.default)([(0,V0.jsx)("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),(0,V0.jsx)("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology");var ym={},Qj=ei;Object.defineProperty(ym,"__esModule",{value:!0});var _k=ym.default=void 0,Xj=Qj(Sr()),Zj=C;_k=ym.default=(0,Xj.default)((0,Zj.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96"}),"Cloud");var vm={},Jj=ei;Object.defineProperty(vm,"__esModule",{value:!0});var Tk=vm.default=void 0,e6=Jj(Sr()),t6=C;Tk=vm.default=(0,e6.default)((0,t6.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy");var xm={},n6=ei;Object.defineProperty(xm,"__esModule",{value:!0});var Mk=xm.default=void 0,i6=n6(Sr()),r6=C;Mk=xm.default=(0,i6.default)((0,r6.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z"}),"Terminal");var wm={},o6=ei;Object.defineProperty(wm,"__esModule",{value:!0});var Ek=wm.default=void 0,s6=o6(Sr()),zf=C;Ek=wm.default=(0,s6.default)([(0,zf.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2z"},"0"),(0,zf.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35z"},"1"),(0,zf.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");const a6=[{title:"Languages",icon:C.jsx(kk,{fontSize:"large",color:"primary"}),skills:["Python","JavaScript","C++"]},{title:"Database",icon:C.jsx(Ck,{fontSize:"large",color:"primary"}),skills:["Postgres","Azure Data Tables","MySQL","Neo4j - Graph DB"]},{title:"Web Technologies",icon:C.jsx(Mk,{fontSize:"large",color:"primary"}),skills:["React","Django","FastAPI","Flask","Git/GitHub"]},{title:"Machine Learning",icon:C.jsx(Ek,{fontSize:"large",color:"primary"}),skills:["Linear regression","Ridge & Lasso Regularization","Logistic Regression","Naive-Bayes Classifier","KNN","SVM","Decision Tree","Random Forest","Ada-Boost & XG-Boost","K-means Clustering"]},{title:"Deep Learning & NLP",icon:C.jsx(Pk,{fontSize:"large",color:"primary"}),skills:["NLTK","Spacy","TF-IDF","Bag of Words","Word2Vec","CNNs","LSTM","Yolo","Pytorch","Tensorflow"]},{title:"Generative AI",icon:C.jsx(Tk,{fontSize:"large",color:"primary"}),skills:["OpenAI API","LLMs (Llama, Mistral, Phi-mini, Reflection-based models)","Prompt Engineering","RAG","Tool Calling","Fine Tuning + PEFT","VectorDBs","Agents","Langchain + LangGraph","LlamaIndex","HuggingFace tools","Langfuse","Cursor","Windsurf"]},{title:"Cloud services",icon:C.jsx(_k,{fontSize:"large",color:"primary"}),skills:["Azure AI services","Azure Openai","Azure AI search","Azure Document Intelligence","Azure Speech","Azure Machine Learning","AWS bedrock","AWS sagemaker"]}];function l6(){return Jw(),C.jsx(vc,{id:"skills",children:C.jsxs("div",{className:"container mx-auto px-4",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-10 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Skills"}),C.jsx(du,{container:!0,spacing:4,children:a6.map((e,t)=>C.jsx(du,{item:!0,xs:12,sm:6,md:4,children:C.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},style:{height:"100%"},children:C.jsxs(QF,{elevation:0,component:Pe.div,whileHover:{scale:1.02},className:"h-full p-6 bg-black/60 hover:bg-black/70 transition-all border border-white/10 rounded-lg",children:[C.jsxs(fu,{sx:{display:"flex",alignItems:"center",mb:2},children:[e.icon,C.jsx(yj,{variant:"h6",sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"},color:"primary.main",ml:1,fontWeight:600},children:e.title})]}),C.jsx(fu,{sx:{display:"flex",flexWrap:"wrap",gap:1,flex:1,alignContent:"flex-start"},children:e.skills.map((n,i)=>C.jsx(bk,{label:n,sx:{bgcolor:"rgba(255, 255, 255, 0.05)",color:"text.primary","&:hover":{bgcolor:"rgba(255, 255, 255, 0.1)"},fontSize:"0.85rem",height:"28px"}},i))})]})})},t))})]})})}const u6=()=>{const e=[{title:"AI based large construction project analyser",description:"Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.",tools:["Python","FastAPI","Azure functions","Azure OpenAI","Langchain","Unstructured","Neo4j"]},{title:"AI Legal Research Tool",description:"Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.",tools:["Flask","Elasticsearch","OpenAI API","RAG","BiLSTM","Selenium","Azure machine learning"]},{title:"AI Sales Agent",description:"Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.",tools:["FastAPI","Reactjs","ChromaDB","Agent Architectures","OpenAI API","Zapier","Salesforce - Apex"]}];return C.jsx(vc,{id:"projects",children:C.jsxs(_j,{className:"relative z-10",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Projects"}),C.jsx(du,{container:!0,spacing:4,children:e.map((t,n)=>C.jsx(du,{item:!0,xs:12,children:C.jsxs(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:n*.1},className:"p-6 rounded-lg border border-white/10 bg-black/80 backdrop-blur-sm transition-all group",children:[C.jsx("h3",{className:"text-xl font-semibold mb-4 text-white/90 group-hover:text-white transition-colors",children:t.title}),C.jsx("p",{className:"text-white/70 group-hover:text-white/80 transition-colors mb-4",children:t.description}),C.jsx(Tj,{direction:"row",spacing:1,flexWrap:"wrap",gap:1,mt:2,children:t.tools.map(i=>C.jsx(bk,{label:i,className:"bg-white/10 hover:bg-white/20 transition-colors text-white/80 hover:text-white border-white/20"},i))})]})},t.title))})]})})},c6=[{icon:au,label:"Email",value:"goswamirushi39@gmail.com",link:"mailto:goswamirushi39@gmail.com"},{icon:Qd,label:"Phone",value:"8140226399",link:"tel:8140226399"},{icon:Uz,label:"LinkedIn",value:"linkedin.com/in/rushigoswami",link:"https://linkedin.com/in/rushigoswami"},{icon:Vz,label:"GitHub",value:"github.com/rushigoswami",link:"https://github.com/rushigoswami"}];function f6(){return C.jsxs(vc,{id:"contact",children:[C.jsx("div",{className:"absolute inset-0 bg-black",children:C.jsx("div",{className:"absolute inset-0 bg-dot-pattern opacity-20"})}),C.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[C.jsx(Pe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500",children:"Get in Touch"}),C.jsx("div",{className:"max-w-4xl mx-auto",children:C.jsx("div",{className:"p-6 rounded-lg border border-white/10 bg-white/5 backdrop-blur-sm",children:C.jsx(Pe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:c6.map((e,t)=>C.jsxs(Pe.a,{href:e.link,target:e.icon!==Qd&&e.icon!==au?"_blank":void 0,rel:e.icon!==Qd&&e.icon!==au?"noopener noreferrer":void 0,initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.5,delay:t*.1},className:"p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/[0.07] transition-all group flex items-center gap-4",children:[C.jsx("div",{className:"p-3 rounded-full bg-white/10 group-hover:bg-white/20 transition-colors",children:C.jsx(e.icon,{size:24,className:"text-white/80"})}),C.jsxs("div",{children:[C.jsx("h3",{className:"text-lg font-semibold text-white/90 mb-1",children:e.label}),C.jsx("p",{className:"text-white/70 group-hover:text-white/90 transition-colors",children:e.value})]})]},e.label))})})})]})]})}function d6(){const[e,t]=k.useState("dark"),n=k.useMemo(()=>kp({palette:{mode:e,primary:{main:e==="dark"?"#7C3AED":"#6D28D9",light:e==="dark"?"#8B5CF6":"#7C3AED",dark:"#5B21B6"},secondary:{main:e==="dark"?"#EC4899":"#DB2777"},background:{default:e==="dark"?"#0F172A":"#F8FAFC",paper:e==="dark"?"#1E293B":"#FFFFFF"},text:{primary:e==="dark"?"#F1F5F9":"#1E293B",secondary:e==="dark"?"#CBD5E1":"#475569"}},typography:{fontFamily:'"Inter", "Roboto", "Helvetica", "Arial", sans-serif',h1:{fontWeight:800},h2:{fontWeight:700},h3:{fontWeight:700},h4:{fontWeight:600},h5:{fontWeight:600},h6:{fontWeight:600}},components:{MuiContainer:{styleOverrides:{root:{"@media (min-width: 1200px)":{maxWidth:"1400px"}}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}}}}),[e]),i=()=>{t(r=>r==="light"?"dark":"light")};return C.jsxs(QE,{theme:n,children:[C.jsx(tR,{}),C.jsx(pR,{children:C.jsx(fu,{sx:{width:"100%",margin:0,padding:0,overflow:"hidden",minHeight:"100vh",bgcolor:"background.default",color:"text.primary",position:"relative","&::before":{content:'""',position:"fixed",top:0,left:0,right:0,bottom:0,background:e==="dark"?"radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(15, 23, 42, 0) 70%)":"radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, rgba(248, 250, 252, 0) 70%)",pointerEvents:"none",zIndex:1}},children:C.jsxs(fu,{sx:{position:"relative",zIndex:2},children:[C.jsx(Gz,{colorMode:{mode:e,toggleColorMode:i}}),C.jsx(OF,{}),C.jsx(AF,{}),C.jsx(l6,{}),C.jsx(u6,{}),C.jsx(f6,{})]})})})]})}ew(document.getElementById("root")).render(C.jsx(k.StrictMode,{children:C.jsx(d6,{})})); diff --git a/dist/assets/index-DcHaOxaZ.css b/dist/assets/index-DcHaOxaZ.css deleted file mode 100644 index 3a8631c..0000000 --- a/dist/assets/index-DcHaOxaZ.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.pointer-events-none{pointer-events:none!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.inset-auto{inset:auto!important}.-bottom-1{bottom:-.25rem!important}.-bottom-12{bottom:-3rem!important}.left-0{left:0!important}.left-1\/2{left:50%!important}.right-0{right:0!important}.top-0{top:0!important}.top-4{top:1rem!important}.top-full{top:100%!important}.z-0{z-index:0!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-50{z-index:50!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.mb-1{margin-bottom:.25rem!important}.mb-12{margin-bottom:3rem!important}.mb-2{margin-bottom:.5rem!important}.mb-4{margin-bottom:1rem!important}.mb-6{margin-bottom:1.5rem!important}.ml-1{margin-left:.25rem!important}.mt-4{margin-top:1rem!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-0\.5{height:.125rem!important}.h-4{height:1rem!important}.h-40{height:10rem!important}.h-5{height:1.25rem!important}.h-\[500px\]{height:500px!important}.h-full{height:100%!important}.h-screen{height:100vh!important}.min-h-screen{min-height:100vh!important}.w-5{width:1.25rem!important}.w-\[300px\]{width:300px!important}.w-\[4px\]{width:4px!important}.w-\[500px\]{width:500px!important}.w-full{width:100%!important}.w-max{width:-moz-max-content!important;width:max-content!important}.max-w-4xl{max-width:56rem!important}.max-w-6xl{max-width:72rem!important}.-translate-x-1\/2{--tw-translate-x: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-y-1\/2{--tw-translate-y: -50% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes gradient{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}.animate-gradient{animation:gradient 8s linear infinite!important}.resize{resize:both!important}.list-inside{list-style-position:inside!important}.list-disc{list-style-type:disc!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.flex-col{flex-direction:column!important}.items-start{align-items:flex-start!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.gap-2{gap:.5rem!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.overflow-hidden{overflow:hidden!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre{white-space:pre!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-sm{border-radius:.125rem!important}.rounded-xl{border-radius:.75rem!important}.border{border-width:1px!important}.border-neutral-800{--tw-border-opacity: 1 !important;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))!important}.border-white\/10{border-color:#ffffff1a!important}.border-white\/20,.border-white\/\[0\.2\]{border-color:#fff3!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/20{background-color:#0003!important}.bg-black\/50{background-color:#00000080!important}.bg-black\/60{background-color:#0009!important}.bg-black\/80{background-color:#000c!important}.bg-blue-100{--tw-bg-opacity: 1 !important;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.bg-purple-500{--tw-bg-opacity: 1 !important;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))!important}.bg-white\/10{background-color:#ffffff1a!important}.bg-white\/5{background-color:#ffffff0d!important}.bg-zinc-900{--tw-bg-opacity: 1 !important;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))!important}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))!important}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))!important}.from-black\/50{--tw-gradient-from: rgb(0 0 0 / .5) var(--tw-gradient-from-position) !important;--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important}.from-blue-500{--tw-gradient-from: #3b82f6 var(--tw-gradient-from-position) !important;--tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to) !important}.via-purple-500{--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position) !important;--tw-gradient-stops: var(--tw-gradient-from), #a855f7 var(--tw-gradient-via-position), var(--tw-gradient-to) !important}.to-black\/50{--tw-gradient-to: rgb(0 0 0 / .5) var(--tw-gradient-to-position) !important}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position) !important}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position) !important}.bg-dot-pattern{background-size:24px 24px!important}.bg-clip-text{-webkit-background-clip:text!important;background-clip:text!important}.object-cover{-o-object-fit:cover!important;object-fit:cover!important}.p-2{padding:.5rem!important}.p-3{padding:.75rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.p-\[4px\]{padding:4px!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-24{padding-top:6rem!important;padding-bottom:6rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-5xl{font-size:3rem!important;line-height:1!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xl{font-size:1.25rem!important;line-height:1.75rem!important}.font-bold{font-weight:700!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.text-current{color:currentColor!important}.text-gray-300{--tw-text-opacity: 1 !important;color:rgb(209 213 219 / var(--tw-text-opacity, 1))!important}.text-purple-500{--tw-text-opacity: 1 !important;color:rgb(168 85 247 / var(--tw-text-opacity, 1))!important}.text-transparent{color:transparent!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-white\/70{color:#ffffffb3!important}.text-white\/80{color:#fffc!important}.text-white\/90{color:#ffffffe6!important}.antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.opacity-0{opacity:0!important}.opacity-20{opacity:.2!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.blur{--tw-blur: blur(8px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.blur-3xl{--tw-blur: blur(64px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.blur-lg{--tw-blur: blur(16px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.duration-500{transition-duration:.5s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{color-scheme:dark}html{scroll-behavior:smooth;scroll-padding-top:80px}body{min-height:100vh;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));font-family:Inter,system-ui,-apple-system,sans-serif}.bg-dot-pattern{background-image:radial-gradient(rgba(255,255,255,.1) 1px,transparent 1px);background-size:40px 40px;background-position:-19px -19px}.hover\:bg-black\/70:hover{background-color:#000000b3!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))!important}.hover\:bg-white\/20:hover{background-color:#fff3!important}.hover\:bg-white\/\[0\.07\]:hover{background-color:#ffffff12!important}.hover\:text-blue-500:hover{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.hover\:text-white:hover{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:bg-white\/20{background-color:#fff3!important}.group:hover .group-hover\:text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:text-white\/80{color:#fffc!important}.group:hover .group-hover\:text-white\/90{color:#ffffffe6!important}.group:hover .group-hover\:opacity-100{opacity:1!important}.group:hover .group-hover\:blur-2xl{--tw-blur: blur(40px) !important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}@media (min-width: 640px){.sm\:text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.sm\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}@media (min-width: 768px){.md\:h-6{height:1.5rem!important}.md\:h-8{height:2rem!important}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\:py-32{padding-top:8rem!important;padding-bottom:8rem!important}.md\:text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.md\:text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.md\:text-5xl{font-size:3rem!important;line-height:1!important}.md\:text-6xl{font-size:3.75rem!important;line-height:1!important}.md\:text-xl{font-size:1.25rem!important;line-height:1.75rem!important}}@media (min-width: 1024px){.lg\:h-8{height:2rem!important}.lg\:text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}}@media (prefers-color-scheme: dark){.dark\:bg-blue-900\/20{background-color:#1e3a8a33!important}.dark\:hover\:bg-gray-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:text-blue-400:hover{--tw-text-opacity: 1 !important;color:rgb(96 165 250 / var(--tw-text-opacity, 1))!important}} diff --git a/dist/index.html b/dist/index.html index e50fa54..df28a2a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,14 +1,14 @@ - - - - - - - Rushi - Portfolio - - - - -
- - + + + + + + + Rushi - Portfolio + + + + +
+ + diff --git a/src/components/About.jsx b/src/components/About.jsx index 2496763..dab96eb 100644 --- a/src/components/About.jsx +++ b/src/components/About.jsx @@ -1,29 +1,30 @@ import { motion } from "framer-motion"; -import { SectionWrapper } from './ui/section-wrapper'; +import { SectionWrapper } from "../ui/section-wrapper"; const experienceData = { company: "Promact Infotech", role: "Software Engineer", - duration: "July 2023 - Present", - description: "Working as a Software Engineer specializing in AI/ML development.", + duration: "January 2023 - Present", + description: + "Working as a Software Engineer specializing in AI/ML development.", achievements: [ "Developed and deployed multiple ML models improving business efficiency by 40%", "Implemented NLP solutions for automated text analysis and processing", "Created custom AI solutions for client-specific requirements", - "Optimized existing ML pipelines reducing processing time by 30%" + "Optimized existing ML pipelines reducing processing time by 30%", ], responsibilities: [ "Design and implement ML models for various business applications", "Develop and maintain AI-powered software solutions", "Collaborate with cross-functional teams for project delivery", - "Research and implement new AI/ML technologies" + "Research and implement new AI/ML technologies", ], education: { degree: "B.Tech in Computer Science", institution: "Marwadi University", duration: "2019-2023", - gpa: "8.9/10" - } + gpa: "8.9/10", + }, }; export default function About() { @@ -44,13 +45,17 @@ export default function About() { -

Current Role

+

+ Current Role +

-

{experienceData.company}

+

+ {experienceData.company} +

{experienceData.role}

{experienceData.duration}

{experienceData.description}

@@ -61,16 +66,26 @@ export default function About() { -

Education

+

+ Education +

-

{experienceData.education.degree}

-

{experienceData.education.institution}

-

{experienceData.education.duration}

-

GPA: {experienceData.education.gpa}

+

+ {experienceData.education.degree} +

+

+ {experienceData.education.institution} +

+

+ {experienceData.education.duration} +

+

+ GPA: {experienceData.education.gpa} +

@@ -78,14 +93,18 @@ export default function About() { -

Key Achievements

+

+ Key Achievements +

    {experienceData.achievements.map((achievement, index) => ( -
  • {achievement}
  • +
  • + {achievement} +
  • ))}
@@ -94,14 +113,18 @@ export default function About() { -

Responsibilities

+

+ Responsibilities +

    {experienceData.responsibilities.map((responsibility, index) => ( -
  • {responsibility}
  • +
  • + {responsibility} +
  • ))}
diff --git a/src/components/Contact.jsx b/src/components/Contact.jsx index ee75d78..893ac9d 100644 --- a/src/components/Contact.jsx +++ b/src/components/Contact.jsx @@ -1,6 +1,6 @@ import { motion } from "framer-motion"; import { Mail, Phone, Linkedin, Github } from "lucide-react"; -import { SectionWrapper } from './ui/section-wrapper'; +import { SectionWrapper } from "../ui/section-wrapper"; const contactInfo = [ { @@ -59,8 +59,16 @@ export default function Contact() { s.length)) - 3; +const maxLength = Math.max(...solutions.map((s) => s.length)); const placeholderText = "\u00A0".repeat(maxLength); // Memoized TypeWriter component to prevent unnecessary re-renders @@ -121,7 +121,7 @@ export default function Hero() { initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 1.5, delay: 0.6 }} - className="text-5xl md:text-6xl font-bold text-center mb-6 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500" + className="text-5xl md:text-6xl font-bold text-center mb-3 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500" > Rushi M Goswami @@ -139,7 +139,7 @@ export default function Hero() { initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 1.5, delay: 0.6 }} - className="mt-4 w-full max-w-1xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold" + className="mt-3 w-full max-w-1xl text-base sm:text-xl md:text-3xl lg:text-4xl font-bold" > Engineering excellence through{" "} diff --git a/src/components/Projects.jsx b/src/components/Projects.jsx index 0ed5e3d..51700d0 100644 --- a/src/components/Projects.jsx +++ b/src/components/Projects.jsx @@ -1,23 +1,50 @@ -import { Box, Container, Grid, Stack, Chip } from '@mui/material'; +import { Container, Grid, Stack, Chip } from "@mui/material"; import { motion } from "framer-motion"; -import { SectionWrapper } from './ui/section-wrapper'; +import { SectionWrapper } from "../ui/section-wrapper"; const Projects = () => { const projects = [ { title: "AI based large construction project analyser", - description: "Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.", - tools: ["Python FastAPI", "Azure functions", "Azure OpenAI", "Langchain", "Unstructured", "Neo4j"], + description: + "Developed a production level micro-services architecture with multiple servers and lambdas to build construction project's operation and maintenance analysis, task generators, tender requirement extractions, tender bidding analysis and many more AI features.", + tools: [ + "Python", + "FastAPI", + "Azure functions", + "Azure OpenAI", + "Langchain", + "Unstructured", + "Neo4j", + ], }, { title: "AI Legal Research Tool", - description: "Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.", - tools: ["Flask", "Elasticsearch", "OpenAI API", "RAG", "BiLSTM", "Selenium", "Azure machine learning"], + description: + "Developed an AI application for legal professionals with legal search engine, judgment summaries, research book generation and many more AI features. Engineered batch systems with 5 different ML pipeline running parallel on spot instances and built NER system to extract and classify legal entities from large legal document corpus.", + tools: [ + "Flask", + "Elasticsearch", + "OpenAI API", + "RAG", + "BiLSTM", + "Selenium", + "Azure machine learning", + ], }, { title: "AI Sales Agent", - description: "Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.", - tools: ["FastAPI", "Reactjs", "ChromaDB", "Agent Architectures", "OpenAI API", "Zapier", "Salesforce- Apex"], + description: + "Implemented an AI application that automates the entire sales process, from building rapport to converting leads. Utilized chat and instructive agents, reduced API calls by 60% through code refactoring resulting efficient and cost-effective way to manage CRMs and drive sales.", + tools: [ + "FastAPI", + "Reactjs", + "ChromaDB", + "Agent Architectures", + "OpenAI API", + "Zapier", + "Salesforce - Apex", + ], }, ]; @@ -48,11 +75,17 @@ const Projects = () => {

{project.description}

- + {project.tools.map((tool) => ( - ))} diff --git a/src/components/Skills.jsx b/src/components/Skills.jsx index 777aaa6..c808b9b 100644 --- a/src/components/Skills.jsx +++ b/src/components/Skills.jsx @@ -1,13 +1,13 @@ -import { Box, Typography, Container, Grid, Paper, Chip, useTheme, useMediaQuery } from '@mui/material'; -import CodeIcon from '@mui/icons-material/Code'; -import StorageIcon from '@mui/icons-material/Storage'; -import PsychologyIcon from '@mui/icons-material/Psychology'; -import CloudIcon from '@mui/icons-material/Cloud'; -import SmartToyIcon from '@mui/icons-material/SmartToy'; -import TerminalIcon from '@mui/icons-material/Terminal'; -import BiotechIcon from '@mui/icons-material/Biotech'; +import { Box, Typography, Grid, Paper, Chip, useTheme } from "@mui/material"; +import CodeIcon from "@mui/icons-material/Code"; +import StorageIcon from "@mui/icons-material/Storage"; +import PsychologyIcon from "@mui/icons-material/Psychology"; +import CloudIcon from "@mui/icons-material/Cloud"; +import SmartToyIcon from "@mui/icons-material/SmartToy"; +import TerminalIcon from "@mui/icons-material/Terminal"; +import BiotechIcon from "@mui/icons-material/Biotech"; import { motion } from "framer-motion"; -import { SectionWrapper } from './ui/section-wrapper'; +import { SectionWrapper } from "../ui/section-wrapper"; const skillCategories = [ { @@ -18,12 +18,12 @@ const skillCategories = [ { title: "Database", icon: , - skills: ["Postgres", "Azure Data Tables", "MySQL", "Neo4j- Graph DB"], + skills: ["Postgres", "Azure Data Tables", "MySQL", "Neo4j - Graph DB"], }, { title: "Web Technologies", icon: , - skills: ["React", "Django", "FastAPI", "Flask", "Git/GitHub", "VSCode"], + skills: ["React", "Django", "FastAPI", "Flask", "Git/GitHub"], }, { title: "Machine Learning", @@ -37,8 +37,7 @@ const skillCategories = [ "SVM", "Decision Tree", "Random Forest", - "Ada-Boost", - "XG-Boost", + "Ada-Boost & XG-Boost", "K-means Clustering", ], }, @@ -48,18 +47,12 @@ const skillCategories = [ skills: [ "NLTK", "Spacy", - "Stop-words", - "Stemming", - "Lemmatization", - "Tokenization", "TF-IDF", "Bag of Words", "Word2Vec", - "RNNs", "CNNs", "LSTM", "Yolo", - "Activation Functions", "Pytorch", "Tensorflow", ], @@ -73,16 +66,15 @@ const skillCategories = [ "Prompt Engineering", "RAG", "Tool Calling", - "Fine Tuning", - "PEFT", + "Fine Tuning + PEFT", "VectorDBs", "Agents", - "Langchain", - "LanGraph", + "Langchain + LangGraph", "LlamaIndex", "HuggingFace tools", "Langfuse", "Cursor", + "Windsurf", ], }, { @@ -97,14 +89,12 @@ const skillCategories = [ "Azure Machine Learning", "AWS bedrock", "AWS sagemaker", - "AWS SQS", ], }, ]; export default function Skills() { const theme = useTheme(); - const isSmallScreen = useMediaQuery(theme.breakpoints.down('sm')); return ( @@ -113,11 +103,11 @@ export default function Skills() { initial={{ opacity: 0, y: 20 }} whileInView={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }} - className="text-3xl md:text-4xl font-bold text-center mb-12 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500" + className="text-3xl md:text-4xl font-bold text-center mb-10 bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-purple-500" > Skills - + {skillCategories.map((category, index) => ( @@ -125,7 +115,7 @@ export default function Skills() { initial={{ opacity: 0, y: 20 }} whileInView={{ opacity: 1, y: 0 }} transition={{ duration: 0.5, delay: index * 0.1 }} - style={{ height: '100%' }} + style={{ height: "100%" }} > - + {category.icon} - {category.title} - {category.skills.map((skill, skillIndex) => ( @@ -164,13 +154,13 @@ export default function Skills() { key={skillIndex} label={skill} sx={{ - bgcolor: 'rgba(255, 255, 255, 0.05)', - color: 'text.primary', - '&:hover': { - bgcolor: 'rgba(255, 255, 255, 0.1)', + bgcolor: "rgba(255, 255, 255, 0.05)", + color: "text.primary", + "&:hover": { + bgcolor: "rgba(255, 255, 255, 0.1)", }, - fontSize: '0.85rem', - height: '28px' + fontSize: "0.85rem", + height: "28px", }} /> ))} @@ -183,4 +173,4 @@ export default function Skills() {
); -}; +} diff --git a/src/components/ThemeToggle.jsx b/src/components/ThemeToggle.jsx deleted file mode 100644 index 955b69e..0000000 --- a/src/components/ThemeToggle.jsx +++ /dev/null @@ -1,58 +0,0 @@ -import { useState, useEffect } from 'react'; -import { motion } from 'framer-motion'; -import { Sun, Moon } from 'lucide-react'; - -export const ThemeToggle = () => { - const [theme, setTheme] = useState(() => { - if (typeof window !== 'undefined') { - return localStorage.getItem('theme') || 'light'; - } - return 'light'; - }); - - useEffect(() => { - const root = window.document.documentElement; - root.classList.remove('light', 'dark'); - root.classList.add(theme); - localStorage.setItem('theme', theme); - }, [theme]); - - const toggleTheme = () => { - setTheme(prevTheme => prevTheme === 'light' ? 'dark' : 'light'); - }; - - return ( - - - - - - - -
- - ); -}; diff --git a/src/components/ui/background-beams.jsx b/src/components/ui/background-beams.jsx deleted file mode 100644 index 89391a3..0000000 --- a/src/components/ui/background-beams.jsx +++ /dev/null @@ -1,39 +0,0 @@ -import { useEffect, useRef } from "react"; -import { cn } from "../../utils/cn"; - -export const BackgroundBeams = ({ className }) => { - const containerRef = useRef(null); - - useEffect(() => { - const container = containerRef.current; - if (!container) return; - - const handleMouseMove = (event) => { - const { clientX, clientY } = event; - const { left, top, width, height } = container.getBoundingClientRect(); - const x = (clientX - left) / width; - const y = (clientY - top) / height; - - container.style.setProperty("--x", x.toFixed(2)); - container.style.setProperty("--y", y.toFixed(2)); - }; - - window.addEventListener("mousemove", handleMouseMove); - - return () => { - window.removeEventListener("mousemove", handleMouseMove); - }; - }, []); - - return ( -
-
-
- ); -}; diff --git a/src/components/ui/background-gradient.jsx b/src/components/ui/background-gradient.jsx deleted file mode 100644 index c95687e..0000000 --- a/src/components/ui/background-gradient.jsx +++ /dev/null @@ -1,23 +0,0 @@ -import { cn } from "../../utils/cn"; - -export const BackgroundGradient = ({ - children, - className, - containerClassName, - animate = true, -}) => { - return ( -
-
-
- {children} -
-
- ); -}; diff --git a/src/components/ui/card-hover-effect.jsx b/src/components/ui/card-hover-effect.jsx deleted file mode 100644 index 4ff130c..0000000 --- a/src/components/ui/card-hover-effect.jsx +++ /dev/null @@ -1,48 +0,0 @@ -import { motion } from "framer-motion"; -import { cn } from "../../utils/cn"; - -export const HoverEffect = ({ - items, - className, -}) => { - return ( -
- {items.map((item, idx) => ( - - - -
{item.title}
-

{item.description}

-
-
- ))} -
- ); -}; diff --git a/src/components/ui/floating-nav.jsx b/src/components/ui/floating-nav.jsx deleted file mode 100644 index 68e39b5..0000000 --- a/src/components/ui/floating-nav.jsx +++ /dev/null @@ -1,46 +0,0 @@ -import { motion } from "framer-motion"; -import { cn } from "../../utils/cn"; - -export const FloatingNav = ({ - navItems, - className, - children, -}) => { - return ( - - {children} - - - ); -}; diff --git a/src/components/ui/moving-cards.jsx b/src/components/ui/moving-cards.jsx deleted file mode 100644 index 2240ca7..0000000 --- a/src/components/ui/moving-cards.jsx +++ /dev/null @@ -1,59 +0,0 @@ -import { motion } from "framer-motion"; -import { useRef } from "react"; -import { cn } from "../../utils/cn"; - -export const MovingCards = ({ - items, - direction = "left", - speed = "fast", - className, -}) => { - const containerRef = useRef(null); - const scrollerRef = useRef(null); - - const speedValue = { - slow: 50, - fast: 30, - }; - - return ( -
- - {items.map((item) => ( - -
- {item.content} -
-
-

- {item.content} -

-
-
- ))} -
-
- ); -}; diff --git a/src/components/ui/sparkles.jsx b/src/components/ui/sparkles.jsx deleted file mode 100644 index aed970a..0000000 --- a/src/components/ui/sparkles.jsx +++ /dev/null @@ -1,120 +0,0 @@ -import { useEffect, useRef, useState } from "react"; -import { cn } from "../../utils/cn"; - -export const SparklesCore = ({ - id, - className, - background, - minSize, - maxSize, - particleDensity, - particleColor, - particleSpeed, -}) => { - const [size, setSize] = useState({ width: 0, height: 0 }); - const canvasRef = useRef(null); - const context = useRef(null); - const particles = useRef([]); - const animationFrame = useRef(null); - const density = particleDensity || 100; - const speed = particleSpeed || 1; - - useEffect(() => { - if (canvasRef.current) { - const canvas = canvasRef.current; - const ctx = canvas.getContext("2d"); - context.current = ctx; - - const handleResize = () => { - if (canvas.parentNode) { - setSize({ - width: canvas.parentNode.offsetWidth, - height: canvas.parentNode.offsetHeight, - }); - } - }; - - handleResize(); - window.addEventListener("resize", handleResize); - - return () => { - window.removeEventListener("resize", handleResize); - }; - } - }, []); - - useEffect(() => { - const canvas = canvasRef.current; - if (!canvas) return; - - const ctx = context.current; - if (!ctx) return; - - canvas.width = size.width; - canvas.height = size.height; - - particles.current = []; - - const createParticles = () => { - const numParticles = (size.width * size.height) / (10000 / density); - - for (let i = 0; i < numParticles; i++) { - particles.current.push({ - x: Math.random() * size.width, - y: Math.random() * size.height, - size: Math.random() * (maxSize - minSize) + minSize, - speedX: (Math.random() - 0.5) * speed, - speedY: (Math.random() - 0.5) * speed, - }); - } - }; - - createParticles(); - - const animate = () => { - ctx.clearRect(0, 0, size.width, size.height); - ctx.fillStyle = background; - ctx.fillRect(0, 0, size.width, size.height); - - particles.current.forEach((particle) => { - ctx.fillStyle = particleColor; - ctx.beginPath(); - ctx.arc(particle.x, particle.y, particle.size, 0, Math.PI * 2); - ctx.fill(); - - particle.x += particle.speedX; - particle.y += particle.speedY; - - if (particle.x < 0) particle.x = size.width; - if (particle.x > size.width) particle.x = 0; - if (particle.y < 0) particle.y = size.height; - if (particle.y > size.height) particle.y = 0; - }); - - animationFrame.current = requestAnimationFrame(animate); - }; - - animate(); - - return () => { - if (animationFrame.current) { - cancelAnimationFrame(animationFrame.current); - } - }; - }, [size, minSize, maxSize, particleColor, background, density, speed]); - - return ( - - ); -}; diff --git a/src/components/ui/typewriter-effect.jsx b/src/components/ui/typewriter-effect.jsx deleted file mode 100644 index 249872e..0000000 --- a/src/components/ui/typewriter-effect.jsx +++ /dev/null @@ -1,84 +0,0 @@ -import { useEffect, useState } from "react"; -import { motion, useAnimation } from "framer-motion"; -import { cn } from "../../utils/cn"; - -export const TypewriterEffect = ({ - words, - className, - cursorClassName, -}) => { - const [currentWordIndex, setCurrentWordIndex] = useState(0); - const [currentText, setCurrentText] = useState(""); - const controls = useAnimation(); - const [isDeleting, setIsDeleting] = useState(false); - - useEffect(() => { - let timeout; - const currentWord = words[currentWordIndex].text; - const typeSpeed = 150; - const deleteSpeed = 100; - const wordPause = 1000; - - const updateText = () => { - if (!isDeleting) { - if (currentText.length < currentWord.length) { - setCurrentText(currentWord.slice(0, currentText.length + 1)); - timeout = setTimeout(updateText, typeSpeed); - } else { - timeout = setTimeout(() => setIsDeleting(true), wordPause); - } - } else { - if (currentText.length > 0) { - setCurrentText(currentText.slice(0, -1)); - timeout = setTimeout(updateText, deleteSpeed); - } else { - setIsDeleting(false); - setCurrentWordIndex((prev) => (prev + 1) % words.length); - } - } - }; - - timeout = setTimeout(updateText, typeSpeed); - - return () => clearTimeout(timeout); - }, [currentText, currentWordIndex, isDeleting, words]); - - return ( -
- - - {currentText} - - -   - - -
- ); -}; diff --git a/src/components/ui/section-wrapper.jsx b/src/ui/section-wrapper.jsx similarity index 86% rename from src/components/ui/section-wrapper.jsx rename to src/ui/section-wrapper.jsx index 826fa36..2bbcf0a 100644 --- a/src/components/ui/section-wrapper.jsx +++ b/src/ui/section-wrapper.jsx @@ -1,4 +1,4 @@ -import { SparklesCore } from "../../ui/sparkles"; +import { SparklesCore } from "./sparkles"; export const SectionWrapper = ({ children, id, className = "" }) => { return ( @@ -22,9 +22,7 @@ export const SectionWrapper = ({ children, id, className = "" }) => {
{/* Content */} -
- {children} -
+
{children}
); }; diff --git a/src/ui/sparkles.tsx b/src/ui/sparkles.tsx index 6dc8889..5c3c56e 100644 --- a/src/ui/sparkles.tsx +++ b/src/ui/sparkles.tsx @@ -1,5 +1,5 @@ "use client"; -import { useEffect, useState } from "react"; +import React, { useEffect, useState } from "react"; import Particles, { initParticlesEngine } from "@tsparticles/react"; import { loadSlim } from "@tsparticles/slim"; import { cn } from "../utils/cn"; diff --git a/src/ui/typewriter-effect.tsx b/src/ui/typewriter-effect.tsx deleted file mode 100644 index daeade9..0000000 --- a/src/ui/typewriter-effect.tsx +++ /dev/null @@ -1,83 +0,0 @@ -"use client"; -import { cn } from "../utils/cn"; -import { motion, stagger, useAnimate, useInView } from "framer-motion"; -import { useEffect } from "react"; - -export const TypewriterEffect = ({ - words, - className, - cursorClassName, -}: { - words: { - text: string; - className?: string; - }[]; - className?: string; - cursorClassName?: string; -}) => { - const [scope, animate] = useAnimate(); - const isInView = useInView(scope); - - useEffect(() => { - if (isInView) { - animate( - "span", - { - opacity: 1, - }, - { - duration: 0.3, - delay: stagger(0.1), - } - ); - } - }, [isInView, animate]); - - const renderWords = () => { - return ( - - {words.map((word, idx) => { - return ( -
- {word.text.split("").map((char, index) => ( - - {char} - - ))} -   -
- ); - })} -
- ); - }; - - return ( -
- {renderWords()} - -
- ); -};