1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[238],{67401:(t,e,i)=>{i.d(e,{A:()=>l});var s=i(12115);let n=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim()};var r={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"};let a=(0,s.forwardRef)((t,e)=>{let{color:i="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:h="",children:c,iconNode:u,...d}=t;return(0,s.createElement)("svg",{ref:e,...r,width:n,height:n,stroke:i,strokeWidth:l?24*Number(a)/Number(n):a,className:o("lucide",h),...d},[...u.map(t=>{let[e,i]=t;return(0,s.createElement)(e,i)}),...Array.isArray(c)?c:[c]])}),l=(t,e)=>{let i=(0,s.forwardRef)((i,r)=>{let{className:l,...h}=i;return(0,s.createElement)(a,{ref:r,iconNode:e,className:o("lucide-".concat(n(t)),l),...h})});return i.displayName="".concat(t),i}},32423:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(67401).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},51719:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(67401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},91902:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(67401).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},66889:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(67401).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},86122:(t,e,i)=>{i.d(e,{A:()=>s});let s=(0,i(67401).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},88068:(t,e,i)=>{i.d(e,{s:()=>o,t:()=>n});var s=i(12115);function n(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function o(...t){return s.useCallback(n(...t),t)}},12317:(t,e,i)=>{i.d(e,{DX:()=>r});var s=i(12115),n=i(88068),o=i(95155),r=s.forwardRef((t,e)=>{let{children:i,...n}=t,r=s.Children.toArray(i),l=r.find(h);if(l){let t=l.props.children,i=r.map(e=>e!==l?e:s.Children.count(t)>1?s.Children.only(null):s.isValidElement(t)?t.props.children:null);return(0,o.jsx)(a,{...n,ref:e,children:s.isValidElement(t)?s.cloneElement(t,void 0,i):null})}return(0,o.jsx)(a,{...n,ref:e,children:i})});r.displayName="Slot";var a=s.forwardRef((t,e)=>{let{children:i,...o}=t;if(s.isValidElement(i)){let t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,i=e&&"isReactWarning"in e&&e.isReactWarning;return i?t.ref:(i=(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?t.props.ref:t.props.ref||t.ref}(i);return s.cloneElement(i,{...function(t,e){let i={...e};for(let s in e){let n=t[s],o=e[s];/^on[A-Z]/.test(s)?n&&o?i[s]=(...t)=>{o(...t),n(...t)}:n&&(i[s]=n):"style"===s?i[s]={...n,...o}:"className"===s&&(i[s]=[n,o].filter(Boolean).join(" "))}return{...t,...i}}(o,i.props),ref:e?(0,n.t)(e,t):t})}return s.Children.count(i)>1?s.Children.only(null):null});a.displayName="SlotClone";var l=({children:t})=>(0,o.jsx)(o.Fragment,{children:t});function h(t){return s.isValidElement(t)&&t.type===l}},22665:(t,e,i)=>{var s,n,o,r,a,l,h,c,u,d,p,f,m,v,g,y,b,w,x,k,P,_;i.d(e,{H_P:()=>o,jlt:()=>eJ,_or:()=>v,VKE:()=>r,Q5V:()=>p,mgy:()=>_,sJd:()=>is,Oit:()=>t1,Yzx:()=>g,v5k:()=>a,x_I:()=>w,U4p:()=>io,M_G:()=>eQ,pTR:()=>k,PVU:()=>em,Miz:()=>N,AEc:()=>ty,pEn:()=>t_,Tgl:()=>tP,qE8:()=>Z,EYT:()=>tU,puj:()=>tr,NVT:()=>tk,U6C:()=>tx,V6E:()=>tX,dIx:()=>E,wJ2:()=>tS,YfF:()=>to,vrU:()=>tn,pzy:()=>t$,_hh:()=>tG,PGG:()=>tW,tZQ:()=>tc,G0i:()=>K,W9e:()=>ti,VGA:()=>tt,LCf:()=>tj,xxz:()=>tB,YLU:()=>tI,ayx:()=>tL,XsS:()=>tE,cyL:()=>q,iKf:()=>tw,hnD:()=>tf,kZJ:()=>$,Gvm:()=>W,Tj8:()=>tg,B90:()=>td,Vh1:()=>tv,TA3:()=>tM,AlN:()=>tm,XuV:()=>R,Z04:()=>S,RbF:()=>M,M3Y:()=>tl,a56:()=>A,U43:()=>
1Q,R5R:()=>tO,BN0:()=>tz,jon:()=>tT,K6u:()=>tV,DT4:()=>ts,$k3:()=>ir,UC0:()=>tR,JvX:()=>tY});let T="generated",S="pointerleave",M="pointermove",C="touchend",E="tsParticles - Error",A=100,R=1e3,D={x:0,y:0,z:0},z={a:1,b:0,c:0,d:1},O="random",V=2*Math.PI,I="true",L="false",F="canvas",B=0;function j(t){return"boolean"==typeof t}function U(t){return"string"==typeof t}function G(t){return"number"==typeof t}function W(t){return"object"==typeof t&&null!==t}function q(t){return Array.isArray(t)}function $(t){return null==t}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(s||(s={}));class H{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!G(t)&&t)this.x=t.x,this.y=t.y,this.z=t.z?t.z:D.z;else if(void 0!==t&&void 0!==e)this.x=t,this.y=e,this.z=i??D.z;else throw Error(`${E} Vector3d not initialized correctly`)}static get origin(){return H.create(D.x,D.y,D.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 H.create(t.x,t.y,t.z)}static create(t,e,i){return new H(t,e,i)}add(t){return H.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 H.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return H.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return H.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){let t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return H.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),D.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=t.z?t.z:D.z}sub(t){return H.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 N extends H{constructor(t,e){super(t,e,D.z)}static get origin(){return N.create(D.x,D.y)}static clone(t){return N.create(t.x,t.y)}static create(t,e){return new N(t,e)}}let Y=Math.random,X={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)};function K(){return Z(Y(),0,1-Number.EPSILON)}function Z(t,e,i){return Math.min(Math.max(t,e),i)}function J(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function Q(t){let e=ti(t),i=te(t);return e===i&&(i=0),K()*(e-i)+i}function tt(t){return G(t)?t:Q(t)}function te(t){return G(t)?t:t.min}function ti(t){return G(t)?t:t.max}function ts(t,e){if(t===e||void 0===e&&G(t))return t;let i=te(t),s=ti(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:ts(i,s)}function tn(t,e){let i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function to(t,e){return tn(t,e).distance}function tr(t){return t*Math.PI/180}function ta(t,e,i,s){return N.create(t.x*(i-s)/(i+s)+2*e.x*s/(i+s),t.y)}function tl(t){return t?t.endsWith("%")?parseFloat(t)/A:parseFloat(t):1}!function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(n||(n={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(o||(o={})),function(t){t.none="none",t.max="max",t.min="min"}(r||(r={})),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(a||(a={})),function(t){t.precise="precise",t.percent="percent"}(l||(l={})),function(t){t.max="max",t.min="min",t.random="random"}(h||(h={}));let th={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function tc(){return th}function tu(t){let e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:o,velocity:r,factor:a}=t;return s.min<o.min||s.min>o.max||s.max<o.min||s.max>o.max||(i.max>=n.min&&i.max<=(n.max+n.min)*.5&&r>0||i.min<=n.max&&i.min>(n.max+n.min)*.5&&r<0)&&(e.velocity=-(r*a),e.bounced=!0),e}function td(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function tp(t){if(!td()&&"undefined"!=typeof matchMedia)return matchMedia(t)}function tf(t,e){return t===e||q(e)&&e.indexOf(t)>-1}async function tm(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function tv(t,e,i=!0){return t[void 0!==e&&i?e%t.length:Math.floor(K()*t.length)]}function tg(t,e,i,s,n){var o;let r;return o=ty(t,s??0),r=!0,n&&n!==a.bottom||(r=o.top<e.height+i.x),r&&(!n||n===a.left)&&(r=o.right>i.x),r&&(!n||n===a.right)&&(r=o.left<e.width+i.y),r&&(!n||n===a.top)&&(r=o.bottom>i.y),r}function ty(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function tb(t,...e){for(let i of e){if(null==i)continue;if(!W(i)){t=i;continue}let e=Array.isArray(i);for(let s in e&&(W(t)||!t||!Array.isArray(t))?t=[]:!e&&(W(t)||!t||Array.isArray(t))&&(t={}),i){if("__proto__"===s)continue;let e=i[s],n=t;n[s]=W(e)&&Array.isArray(e)?e.map(t=>tb(n[s],t)):tb(n[s],e)}}return t}function tw(t,e){return!!tC(e,e=>e.enable&&tf(t,e.mode))}function tx(t,e,i){tS(e,e=>{let s=e.mode;e.enable&&tf(t,s)&&tS(e.selectors,t=>{i(t,e)})})}function tk(t,e){if(e&&t)return tC(t,t=>(function(t,e){let i=tS(e,e=>t.matches(e));return q(i)?i.some(t=>t):i})(e,t.selectors))}function tP(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:N.create(tt(t.options.bounce.horizontal.value),tt(t.options.bounce.vertical.value))}}function t_(t,e){let{x:i,y:s}=t.velocity.sub(e.velocity),[n,o]=[t.position,e.position],{dx:r,dy:a}=tn(o,n);if(i*r+s*a<0)return;let l=-Math.atan2(a,r),h=t.mass,c=e.mass,u=t.velocity.rotate(l),d=e.velocity.rotate(l),p=ta(u,d,h,c),f=ta(d,u,h,c),m=p.rotate(-l),v=f.rotate(-l);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=v.x*e.factor.x,e.velocity.y=v.y*e.factor.y}function tT(t,e){let i=ty(t.getPosition(),t.getRadius()),s=t.options.bounce,n=tu({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:tt(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));let o=tu({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:tt(s.vertical.value)});o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function tS(t,e){return q(t)?t.map((t,i)=>e(t,i)):e(t,0)}function tM(t,e,i){return q(t)?tv(t,e,i):t}function tC(t,e){return q(t)?t.find((t,i)=>e(t,i)):e(t,0)?t:void 0}function tE(t,e){let i=t.value,s=t.animation,r={delayTime:tt(s.delay)*R,enable:s.enable,value:tt(t.value)*e,max:ti(i)*e,min:te(i)*e,loops:0,maxLoops:tt(s.count),time:0};if(s.enable){switch(r.decay=1-tt(s.decay),s.mode){case n.increase:r.status=o.increasing;break;case n.decrease:r.status=o.decreasing;break;case n.random:r.status=K()>=.5?o.increasing:o.decreasing}let t=s.mode===n.auto;switch(s.startValue){case h.min:r.value=r.min,t&&(r.status=o.increasing);break;case h.max:r.value=r.max,t&&(r.status=o.decreasing);break;case h.random:default:r.value=Q(r),t&&(r.status=K()>=.5?o.increasing:o.decreasing)}}return r.initialValue=r.value,r}function tA(t,e){if(t.mode!==l.percent){let{mode:e,...i}=t;return i}return"x"in t?{x:t.x/A*e.width,y:t.y/A*e.height}:{width:t.width/A*e.width,height:t.height/A*e.height}}function tR(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let a=(e.velocity??0)*n.factor,l=e.min,h=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>
10)||!(e.time<(e.delayTime??0))){switch(e.status){case o.increasing:e.value>=h?(i?e.status=o.decreasing:e.value-=h,e.loops||(e.loops=0),e.loops++):e.value+=a;break;case o.decreasing:e.value<=l?(i?e.status=o.increasing:e.value+=h,e.loops||(e.loops=0),e.loops++):e.value-=a}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,s,n){switch(e){case r.max:i>=n&&t.destroy();break;case r.min:i<=s&&t.destroy()}}(t,s,e.value,l,h),t.destroyed||(e.value=Z(e.value,l,h))}}let tD=function(t){let e=new Map;return(...i)=>{let s=JSON.stringify(i);if(e.has(s))return e.get(s);let n=t(...i);return e.set(s,n),n}}(function(t){let e=document.createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(let t in i){let s=i[t];e.setProperty(t,s)}return e});function tz(t,e,i,s=!0){if(!e)return;let n=U(e)?{value:e}:e;if(U(n.value))return function t(e,i,s,n=!0){if(!i)return;let o=U(i)?{value:i}:i;if(U(o.value))return o.value===O?tF():function(t,e){if(e){for(let i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}}(e,o.value);if(q(o.value))return t(e,{value:tv(o.value,s,n)});for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}(t,n.value,i,s);if(q(n.value))return tz(t,{value:tv(n.value,i,s)});for(let e of t.colorManagers.values()){let t=e.handleRangeColor(n);if(t)return t}}function tO(t,e,i,s=!0){let n=tz(t,e,i,s);return n?tV(n):void 0}function tV(t){let e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),r={h:0,l:(n+o)*.5,s:0};return n!==o&&(r.s=r.l<.5?(n-o)/(n+o):(n-o)/(2-n-o),r.h=e===n?(i-s)/(n-o):r.h=i===n?2+(s-e)/(n-o):4+(e-i)/(n-o)),r.l*=100,r.s*=100,r.h*=60,r.h<0&&(r.h+=360),r.h>=360&&(r.h-=360),r}function tI(t){let e=(t.h%360+360)%360,i=Math.max(0,Math.min(100,t.s)),s=Math.max(0,Math.min(100,t.l)),n=e/360,o=i/100,r=s/100;if(0===i){let t=Math.round(255*r);return{r:t,g:t,b:t}}let a=(t,e,i)=>(i<0&&i++,i>1&&i--,6*i<1)?t+(e-t)*6*i:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t,l=r<.5?r*(1+o):r+o-r*o,h=2*r-l;return{r:Math.round(Math.min(255,255*a(h,l,n+.3333333333333333))),g:Math.round(Math.min(255,255*a(h,l,n))),b:Math.round(Math.min(255,255*a(h,l,n-.3333333333333333)))}}function tL(t){let e=tI(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function tF(t){let e=t??0;return{b:Math.floor(Q(ts(e,256))),g:Math.floor(Q(ts(e,256))),r:Math.floor(Q(ts(e,256)))}}function tB(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function tj(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function tU(t,e,i,s){let n=t,o=e;return void 0===n.r&&(n=tI(t)),void 0===o.r&&(o=tI(e)),{b:J(n.b,o.b,i,s),g:J(n.g,o.g,i,s),r:J(n.r,o.r,i,s)}}function tG(t,e,i){if(i===O)return tF();if("mid"!==i)return i;{let i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return tU(i,s,t.getRadius(),e.getRadius());{let t=i??s;if(t)return tI(t)}}}function tW(t,e,i,s){let n=U(e)?e:e.value;return n===O?s?tz(t,{value:n}):i?O:"mid":"mid"===n?"mid":tz(t,{value:n})}function tq(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function t$(t,e,i){let s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(tH(s.h,e.h,i),tH(s.s,e.s,i),tH(s.l,e.l,i)),s}function tH(t,e,i){t.enable=e.enable,t.enable?(t.velocity=tt(e.speed)/A*i,t.decay=1-tt(e.decay),t.status=o.increasing,t.loops=0,t.maxLoops=tt(e.count),t.time=0,t.delayTime=tt(e.delay)*R,e.sync||(t.velocity
1*=K(),t.value*=K()),t.initialValue=t.value,t.offset=ts(e.offset)):t.velocity=0}function tN(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;let n=t.offset?Q(t.offset):0,r=(t.velocity??0)*s.factor+3.6*n,a=t.decay??1,l=ti(e),h=te(e);i&&t.status!==o.increasing?(t.value-=r,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=o.increasing)):(t.value+=r,t.value>l&&(t.loops||(t.loops=0),t.loops++,i?t.status=o.decreasing:t.value-=l)),t.velocity&&1!==a&&(t.velocity*=a),t.value=Z(t.value,h,l)}function tY(t,e){if(!t)return;let{h:i,s,l:n}=t,o={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};i&&tN(i,o.h,!1,e),s&&tN(s,o.s,!0,e),n&&tN(n,o.l,!0,e)}function tX(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function tK(t,e){t.clearRect(D.x,D.y,e.width,e.height)}function tZ(t,e,i=!1){if(!e||!t)return;let s=t.style;if(!s)return;let n=new Set;for(let t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.add(s[t]);for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.add(e[t]);for(let t of n){let n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}!function(t){t.darken="darken",t.enlighten="enlighten"}(c||(c={}));class tJ{constructor(t,e){this.container=t,this._applyPostDrawUpdaters=t=>{for(let e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,n,o)=>{for(let r of this._preDrawUpdaters){if(r.getColorStyles){let{fill:o,stroke:a}=r.getColorStyles(e,t,i,s);o&&(n.fill=o),a&&(n.stroke=a)}if(r.getTransformValues){let t=r.getTransformValues(e);for(let e in t)!function(t,e,i){let s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}(o,t,e)}r.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(let s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=tO(this._engine,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=tO(this._engine,s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{let t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){let i=tz(this._engine,e);if(i){let e={...i,a:t.opacity};this._coverColorStyle=tB(e,e.a)}}else await new Promise((e,i)=>{if(!t.image)return;let s=document.createElement("img");s.addEventListener("load",()=>{this._coverImage={image:s,opacity:t.opacity},e()}),s.addEventListener("error",t=>{i(t.error)}),s.src=t.image})},this._initStyle=()=>{let t=this.element,e=this.container.actualOptions;if(t)for(let i in this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle(),e.style){if(!i||!e.style||!Object.prototype.hasOwnProperty.call(e.style,i))continue;let s=e.style[i];s&&t.style.setProperty(i,s,"important")}},this._initTrail=async()=>{let t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;let i=1/t.length;if(e.color){let t=tz(this._engine,e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise((t,s)=>{if(!e.image)return;let n=document.createElement("img");n.addEventListener("load",()=>{this._trailFill={image:n,opacity:i},t()}),n.addEventListener("error",t=>{s(t.error)}),n.src=e.image})},this._paintBase=t=>{this.draw(e=>(function(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(D.x,D.y,e.width,e.height)})(e,this.size,t))},this._paintImage=(t,e)=>{this.draw(i=>(function(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,D.x,D.y,e.width,e.height),t.globalAlpha=1)})(i,this.size,t,e))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(t=>
1t.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})}))},this._resetOriginalStyle=()=>{let t=this.element,e=this._originalStyle;t&&e&&tZ(t,e,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;t&&tZ(t,tD(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=e,this._standardSize={height:0,width:0};let i=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*i,width:s.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&i?i.color?this._paintBase(tB(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw(t=>{tK(t,this.size)})}destroy(){if(this.stop(),this._generated){let t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){let e=this._context;if(e)return t(e)}drawAsync(t){let e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;let i=t.getRadius();if(i<=0)return;let s=t.getFillColor(),n=t.getStrokeColor()??s,[o,r]=this._getPluginParticleColors(t);o||(o=s),r||(r=n),(o||r)&&this.draw(s=>{let n=this.container,a=n.actualOptions,l=t.options.zIndex,h=1-t.zIndexFactor,c=h**l.opacityRate,u=t.bubble.opacity??t.opacity?.value??1,d=t.strokeOpacity??u,p=u*c,f={},m={fill:o?tj(o,p):void 0};m.stroke=r?tj(r,d*c):m.fill,this._applyPreDrawUpdaters(s,t,i,p,m,f),function(t){let{container:e,context:i,particle:s,delta:n,colorStyles:o,backgroundMask:r,composite:a,radius:l,opacity:h,shadow:c,transform:u}=t,d=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:0),f={sin:Math.sin(p),cos:Math.cos(p)},m=!!p,v={a:f.cos*(u.a??z.a),b:m?f.sin*(u.b??1):u.b??z.b,c:m?-f.sin*(u.c??1):u.c??z.c,d:f.cos*(u.d??z.d)};i.setTransform(v.a,v.b,v.c,v.d,d.x,d.y),r&&(i.globalCompositeOperation=a);let g=s.shadowColor;c.enable&&g&&(i.shadowBlur=c.blur,i.shadowColor=tB(g),i.shadowOffsetX=c.offset.x,i.shadowOffsetY=c.offset.y),o.fill&&(i.fillStyle=o.fill);let y=s.strokeWidth??0;i.lineWidth=y,o.stroke&&(i.strokeStyle=o.stroke);let b={container:e,context:i,particle:s,radius:l,opacity:h,delta:n,transformData:v,strokeWidth:y};(function(t){let{container:e,context:i,particle:s,radius:n,opacity:o,delta:r,strokeWidth:a,transformData:l}=t;if(!s.shape)return;let h=e.shapeDrawers.get(s.shape);h&&(i.beginPath(),h.draw({context:i,particle:s,radius:n,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),s.shapeClose&&i.closePath(),a>0&&i.stroke(),s.shapeFill&&i.fill())})(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:o,delta:r,transformData:a}=t;if(!s.shape)return;let l=e.shapeDrawers.get(s.shape);l?.afterDraw&&l.afterDraw({context:i,particle:s,radius:n,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}(b),function(t){let{container:e,context:i,particle:s,radius:n,opacity:o,delta:r,transformData:a}=t;if(!s.effect)return;let l=e.effectDrawers.get(s.effect);l&&l.draw({context:i,particle:s,radius:n,opacity:o,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}(b),i.globalCompositeOperation="source-over",i.resetTransform()}({container:n,context:s,particle:t,delta:e,colorStyles:m,backgroundMask:a.backgroundMask.enable,composite:a.backgroundMask.composite,radius:i*h**l.sizeRate,opacity:p,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)})}drawParticlePlugin(t,e,i){this.draw(s=>{t.drawParticle&&t.drawParticle(s,e,i)})}drawPlugin(t,e){this.draw(i=>{t.draw&&t.draw(i,e)})}
1async init(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=function(t){if(!td()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(let e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){th.error(t)}this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let t=this.container.actualOptions.background,e=this.element;if(!e)return;let i=e.style;if(i){if(t.color){let e=tz(this._engine,t.color);i.backgroundColor=e?tB(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){for(let t of(this._resizePlugins=[],this.container.plugins.values()))t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){for(let t of(this._preDrawUpdaters=[],this._postDrawUpdaters=[],this.container.particles.updaters))t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&T in t.dataset?"true"===t.dataset[T]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=function(t){let e=document.createElement("div").style;if(!t)return e;for(let i in t){let s=t[i];if(!Object.prototype.hasOwnProperty.call(t,i)||$(s))continue;let n=t.getPropertyValue?.(s);if(!n)continue;let o=t.getPropertyPriority?.(s);o?e.setProperty?.(s,n,o):e.setProperty?.(s,n)}return e}(this.element.style);let e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;let i=this.container.retina.pixelRatio,s=this.size;t.height=s.height=e.height*i,t.width=s.width=e.width*i,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>
1t.disconnect()),this.container.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}paint(){let t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(tK(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let t=this.container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:i.width*s,height:i.height*s};if(i.height===e.height&&i.width===e.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let o={...e};e.height=i.height,e.width=i.width;let r=this.size;return this.element.width=r.width=n.width,this.element.height=r.height=n.height,this.container.started&&t.particles.setResizeFactor({width:e.width/o.width,height:e.height/o.height}),!0}stop(){this._safeMutationObserver(t=>t.disconnect()),this._mutationObserver=void 0,this.draw(t=>tK(t,this.size))}async windowResize(){if(!this.element||!this.resize())return;let t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function tQ(t,e,i,s,n){if(s){let s={passive:!0};j(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else t.removeEventListener(e,i,n)}!function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(u||(u={}));class t0{constructor(t){this.container=t,this._doMouseTouchClick=t=>{let e=this.container,i=e.actualOptions;if(this._canPush){let t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=new Date().getTime(),tS(i.interactivity.events.onClick.mode,t=>this.container.handleClickMode(t))}"touchend"===t.type&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let e=this.container,i=e.options,s=i.defaultThemes,n=t.matches?s.dark:s.light,o=i.themes.find(t=>t.name===n);o?.default.auto&&e.loadTheme(n)},this._handleVisibilityChange=()=>{let t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{let t=this.container.canvas;await t?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*R)},this._manageInteractivityListeners=(t,e)=>{let i=this._handlers,s=this.container,n=s.actualOptions,o=s.interactivity.element;if(!o)return;let r=s.canvas.element;r&&(r.style.pointerEvents=o===r?"initial":"none"),(n.interactivity.events.onHover.enable||n.interactivity.events.onClick.enable)&&(tQ(o,M,i.mouseMove,e),tQ(o,"touchstart",i.touchStart,e),tQ(o,"touchmove",i.touchMove,e),n.interactivity.events.onClick.enable?(tQ(o,C,i.touchEndClick,e),tQ(o,"pointerup",i.mouseUp,e),tQ(o,"pointerdown",i.mouseDown,e)):tQ(o,C,i.touchEnd,e),tQ(o,t,i.mouseLeave,e),tQ(o,"touchcancel",i.touchCancel,e))},this._manageListeners=t=>{let e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element,o=S;s===u.window?(i.interactivity.element=window,o="pointerout"):s===u.parent&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(o,t),document&&tQ(document,"visibilitychange",e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let e=this._handlers,i=tp("(prefers-color-scheme: dark)");if(i){if(void 0!==i.addEventListener){tQ(i,"change",e.themeChange,t);return}void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange))}},this._manageResize=t=>{let e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver){tQ(window,"resize",e.resize,t);return}let s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{let e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1,o=s.position;if(o&&i.interactivity.events.onClick.enable){for(let t of e.plugins.values())if(t.clickPositionValid&&
1(n=t.clickPositionValid(o)))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=S,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{let e;let i=this.container,s=i.actualOptions,n=i.interactivity,o=i.canvas.element;if(!n?.element)return;if(n.mouse.inside=!0,t.type.startsWith("pointer")){if(this._canPush=!0,n.element===window){if(o){let i=o.getBoundingClientRect();e={x:t.clientX-i.left,y:t.clientY-i.top}}}else if(s.interactivity.detectsOn===u.parent){let i=t.target,s=t.currentTarget;if(i&&s&&o){let n=i.getBoundingClientRect(),r=s.getBoundingClientRect(),a=o.getBoundingClientRect();e={x:t.offsetX+2*n.left-(r.left+a.left),y:t.offsetY+2*n.top-(r.top+a.top)}}else e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY}}else t.target===o&&(e={x:t.offsetX??t.clientX,y:t.offsetY??t.clientY})}else if(this._canPush="touchmove"!==t.type,o){let i=t.touches[t.touches.length-1],s=o.getBoundingClientRect();e={x:i.clientX-(s.left??0),y:i.clientY-(s.top??0)}}let r=i.retina.pixelRatio;e&&(e.x*=r,e.y*=r),n.mouse.position=e,n.status=M},this._touchEnd=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{for(let e of Array.from(t.changedTouches))this._touches.delete(e.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{for(let e of Array.from(t.changedTouches))this._touches.set(e.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(d||(d={}));class t1{constructor(){this.value=""}static create(t,e){let i=new t1;return i.load(t),void 0!==e&&(U(e)||q(e)?i.load({value:e}):i.load(e)),i}load(t){!$(t)&&($(t.value)||(this.value=t.value))}}class t2{constructor(){this.color=new t1,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){$(t)||(void 0!==t.color&&(this.color=t1.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0===t.opacity||(this.opacity=t.opacity))}}class t3{constructor(){this.opacity=1}load(t){$(t)||(void 0!==t.color&&(this.color=t1.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0===t.opacity||(this.opacity=t.opacity))}}class t5{constructor(){this.composite="destination-out",this.cover=new t3,this.enable=!1}load(t){if(!$(t)){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){let e=t.cover,i=U(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class t4{constructor(){this.enable=!0,this.zIndex=0}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.zIndex||(this.zIndex=t.zIndex))}}class t9{constructor(){this.enable=!1,this.mode=[]}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.mode||(this.mode=t.mode))}}!function(t){t.circle="circle",t.rectangle="rectangle"}(p||(p={}));class t6{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=p.circle}load(t){$(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0===t.type||(this.t
1ype=t.type))}}class t8{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0===t.smooth||(this.smooth=t.smooth))}}class t7{constructor(){this.enable=!1,this.mode=[],this.parallax=new t8}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class et{constructor(){this.delay=.5,this.enable=!0}load(t){$(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0===t.enable||(this.enable=t.enable))}}class ee{constructor(){this.onClick=new t9,this.onDiv=new t6,this.onHover=new t7,this.resize=new et}load(t){if($(t))return;this.onClick.load(t.onClick);let e=t.onDiv;void 0!==e&&(this.onDiv=tS(e,t=>{let e=new t6;return e.load(t),e})),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class ei{constructor(t,e){this._engine=t,this._container=e}load(t){if($(t)||!this._container)return;let e=this._engine.interactors.get(this._container);if(e)for(let i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class es{constructor(t,e){this.detectsOn=u.window,this.events=new ee,this.modes=new ei(t,e)}load(t){if($(t))return;let e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class en{load(t){!$(t)&&(t.position&&(this.position={x:t.position.x??50,y:t.position.y??50,mode:t.position.mode??l.percent}),t.options&&(this.options=tb({},t.options)))}}!function(t){t.screen="screen",t.canvas="canvas"}(f||(f={}));class eo{constructor(){this.maxWidth=1/0,this.options={},this.mode=f.canvas}load(t){!$(t)&&($(t.maxWidth)||(this.maxWidth=t.maxWidth),$(t.mode)||(t.mode===f.screen?this.mode=f.screen:this.mode=f.canvas),$(t.options)||(this.options=tb({},t.options)))}}!function(t){t.any="any",t.dark="dark",t.light="light"}(m||(m={}));class er{constructor(){this.auto=!1,this.mode=m.any,this.value=!1}load(t){$(t)||(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0===t.value||(this.value=t.value))}}class ea{constructor(){this.name="",this.default=new er}load(t){$(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=tb({},t.options)))}}class el{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){$(t)||(void 0!==t.count&&(this.count=ts(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=ts(t.speed)),void 0!==t.decay&&(this.decay=ts(t.decay)),void 0!==t.delay&&(this.delay=ts(t.delay)),void 0===t.sync||(this.sync=t.sync))}}class eh extends el{constructor(){super(),this.mode=n.auto,this.startValue=h.random}load(t){super.load(t),$(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.startValue||(this.startValue=t.startValue))}}class ec extends el{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),$(t)||void 0===t.offset||(this.offset=ts(t.offset))}}class eu{constructor(){this.h=new ec,this.s=new ec,this.l=new ec}load(t){$(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ed extends t1{constructor(){super(),this.animation=new eu}static create(t,e){let i=new ed;return i.load(t),void 0!==e&&(U(e)||q(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),$(t))return;let e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}!function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"}(v||(v={}));class ep{constructor(){this.speed=2}load(t){$(t)||void 0===t.speed||(this.speed=t.speed)}}class ef{constructor(){this.enable=!0,this.retries=0}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0===t.retries||(this.retries=t.retries))}}class em{constructor(){this.value=0}load(t){!$(t)&&($(t.value)||(this.value=ts(t.value)))}}class ev extends em{constructor(){super(),this.animation=new el}load(t){if(super.load(t),$(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class eg extends ev{constructor(){super(),this.animation=new eh}load(t){super.load(t)}}class ey extends em{constructor(){super(),this.value=1}}class eb{constructor(){this.horizontal=new ey,this.vertical=new ey}load(t){$(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class ew{constructor(){this.absorb=new ep,this.bounce=new eb,this.enable=!1,this.maxSpeed=50,this.mode=v.bounce,this.overlap=new ef}load(t){$(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=ts(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class ex{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if($(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tb(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
1ype=t.type)}}class ek{constructor(){this.offset=0,this.value=90}load(t){$(t)||(void 0!==t.offset&&(this.offset=ts(t.offset)),void 0!==t.value&&(this.value=ts(t.value)))}}class eP{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!$(t)&&(void 0!==t.distance&&(this.distance=ts(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){let e=t.rotate.x;void 0!==e&&(this.rotate.x=e);let i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class e_{constructor(){this.x=50,this.y=50,this.mode=l.percent,this.radius=0}load(t){$(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0===t.radius||(this.radius=t.radius))}}class eT{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){$(t)||(void 0!==t.acceleration&&(this.acceleration=ts(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=ts(t.maxSpeed)))}}class eS{constructor(){this.clamp=!0,this.delay=new em,this.enable=!1,this.options={}}load(t){!$(t)&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=tb(this.options,t.options)))}}class eM{load(t){$(t)||(void 0!==t.color&&(this.color=t1.create(this.color,t.color)),void 0===t.image||(this.image=t.image))}}class eC{constructor(){this.enable=!1,this.length=10,this.fill=new eM}load(t){$(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0===t.length||(this.length=t.length))}}!function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(g||(g={}));class eE{constructor(){this.default=g.out}load(t){$(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class eA{constructor(){this.acceleration=0,this.enable=!1}load(t){!$(t)&&(void 0!==t.acceleration&&(this.acceleration=ts(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=tb({},t.position)))}}class eR{constructor(){this.angle=new ek,this.attract=new eP,this.center=new e_,this.decay=0,this.distance={},this.direction=s.none,this.drift=0,this.enable=!1,this.gravity=new eT,this.path=new eS,this.outModes=new eE,this.random=!1,this.size=!1,this.speed=2,this.spin=new eA,this.straight=!1,this.trail=new eC,this.vibrate=!1,this.warp=!1}load(t){if($(t))return;this.angle.load(G(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=ts(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=G(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=ts(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);let e=t.outModes;void 0!==e&&(W(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=ts(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class eD extends eh{constructor(){super(),this.destroy=r.none,this.speed=2}load(t){super.load(t),$(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class ez extends eg{constructor(){super(),this.animation=new eD,this.value=1}load(t){if($(t))return;super.load(t);let e=t.animation;void 0!==e&&this.animation.load(e)}}class eO{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if($(t))return;void 0!==t.enable&&(this.enable=t.enable);let e=t.width;void 0!==e&&(this.width=e);let i=t.height;void 0!==i&&(this.height=i)}}!function(t){t.delete="delete",t.wait="wait"}(y||(y={}));class eV{constructor(){this.mode=y.delete,this.value=0}load(t){$(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0===t.value||(this.value=t.value))}}class eI{constructor(){this.density=new eO,this.limit=new eV,this.value=0}load(t){$(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0===t.value||(this.value=t.value))}}class eL{constructor(){this.blur=0,this.color=new t1,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){!$(t)&&(void 0!==t.blur&&(this.blur=t.blur),this.color=t1.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class eF{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if($(t))return;let e=t.options;if(void 0!==e)for(let t in e){let i=e[t];i&&(this.options[t]=tb(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.t
1ype=t.type)}}class eB extends eh{constructor(){super(),this.destroy=r.none,this.speed=5}load(t){super.load(t),$(t)||void 0===t.destroy||(this.destroy=t.destroy)}}class ej extends eg{constructor(){super(),this.animation=new eB,this.value=3}load(t){if(super.load(t),$(t))return;let e=t.animation;void 0!==e&&this.animation.load(e)}}class eU{constructor(){this.width=0}load(t){$(t)||(void 0!==t.color&&(this.color=ed.create(this.color,t.color)),void 0!==t.width&&(this.width=ts(t.width)),void 0!==t.opacity&&(this.opacity=ts(t.opacity)))}}class eG extends em{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),$(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0===t.velocityRate||(this.velocityRate=t.velocityRate))}}class eW{constructor(t,e){this._engine=t,this._container=e,this.bounce=new eb,this.collisions=new ew,this.color=new ed,this.color.value="#fff",this.effect=new ex,this.groups={},this.move=new eR,this.number=new eI,this.opacity=new ez,this.reduceDuplicates=!1,this.shadow=new eL,this.shape=new eF,this.size=new ej,this.stroke=new eU,this.zIndex=new eG}load(t){if($(t))return;if(void 0!==t.groups)for(let e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;let i=t.groups[e];void 0!==i&&(this.groups[e]=tb(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(ed.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=tb({},t.interactivity));let e=t.stroke;if(e&&(this.stroke=tS(e,t=>{let e=new eU;return e.load(t),e})),this._container){let e=this._engine.updaters.get(this._container);if(e)for(let i of e)i.loadOptions&&i.loadOptions(this,t);let i=this._engine.interactors.get(this._container);if(i)for(let e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function eq(t,...e){for(let i of e)t.load(i)}function e$(t,e,...i){let s=new eW(t,e);return eq(s,...i),s}class eH{constructor(t,e){this._findDefaultTheme=t=>this.themes.find(e=>e.default.value&&e.default.mode===t)??this.themes.find(t=>t.default.value&&t.default.mode===m.any),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new t2,this.backgroundMask=new t5,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new t4,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new es(t,e),this.manualParticles=[],this.particles=e$(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if($(t))return;void 0!==t.preset&&tS(t.preset,t=>this._importPreset(t)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=ts(t.delay));let e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=ts(t.duration));let i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);let s=t.fullScreen;j(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{let e=new en;return e.load(t),e})),this.particles.load(t.particles),this.style=tb(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);let n=this._engine.interactors.get(this._container);if(n)for(let e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(let e of t.responsive){let t=new eo;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(let e of t.themes){let t=this.themes.find(t=>t.name===e.name);if(t)t.load(e);else{let t=new ea;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(m.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(m.light)?.name}setResponsive(t,e,i){this.load(i);let s=this.responsive.find(i=>i.mode===f.screen&&screen?i.maxWidth>
1screen.availWidth:i.maxWidth*e>t);return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){let e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{let t=tp("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?m.dark:m.light);i&&this.load(i.options)}}}!function(t){t.external="external",t.particles="particles"}(b||(b={}));class eN{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(let e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(let e of this._externalInteractors)e.handleClickMode?.(t)}async init(){for(let t of(this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[],this._interactors)){switch(t.type){case b.external:this._externalInteractors.push(t);break;case b.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(let i of this._externalInteractors)i.clear(t,e);for(let i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(let e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(let e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}function eY(t){if(!tf(t.outMode,t.checkModes))return;let e=2*t.radius;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}!function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(w||(w={}));class eX{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,s=B)=>{for(let s of t.plugins.values()){let t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return H.create(t.x,t.y,i)}let n=function(t){return{x:t.position?.x??K()*t.size.width,y:t.position?.y??K()*t.size.height}}({size:t.canvas.size,position:e}),o=H.create(n.x,n.y,i),r=this.getRadius(),a=this.options.move.outModes,l=e=>{eY({outMode:e,checkModes:[g.bounce],coord:o.x,maxCoord:t.canvas.size.width,setCb:t=>o.x+=t,radius:r})},h=e=>{eY({outMode:e,checkModes:[g.bounce],coord:o.y,maxCoord:t.canvas.size.height,setCb:t=>o.y+=t,radius:r})};return(l(a.left??a.default),l(a.right??a.default),h(a.top??a.default),h(a.bottom??a.default),this._checkOverlap(o,s))?this._calcPosition(t,void 0,i,s+1):o},this._calculateVelocity=()=>{let t=(function(t){let e=N.origin;return e.length=1,e.angle=t,e})(this.direction).copy(),e=this.options.move;if(e.direction===s.inside||e.direction===s.outside)return t;let i=tr(tt(e.angle.value)),n=tr(tt(e.angle.offset)),o={left:n-.5*i,right:n+.5*i};return e.straight||(t.angle+=Q(ts(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=K()),t},this._checkOverlap=(t,e=B)=>{let i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;let n=i.overlap;if(n.enable)return!1;let o=n.retries;if(o>=0&&e>o)throw Error(`${E} particle is overlapping and can't be placed`);return!!this.container.particles.find(e=>to(t,e.position)<s+e.getRadius())},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;let e=this.roll.horizontal&&this.roll.vertical?2:1,i=this.roll.horizontal?.5*Math.PI:0;return Math.floor(((this.roll.angle??0)+i)/(Math.PI/e))%2?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===c.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{let e=this.container,i=tt(this.options.zIndex.value);this.position=this._calcPosition(e,t,Z(i,0,e.zLayers)),this.initialPosition=this.position.copy();let n=e.canvas.size;switch(this.moveCenter={...tA(this.options.move.center,n),radius:this.options.move.center.radius??0,mode:this.options.move.center.mode??l.percent},this.direction=function(t,e,i){if(G(t))return tr(t);switch(t){case s.top:return-(.5*Math.PI);case s.topRight:return-(.25*Math.PI);case s.right:return 0;case s.bottomRight:return .25*Math.PI;case s.bottom:return .5*Math.PI;case s.bottomLeft:return .75*Math.PI;case s.left:return Math.PI;case s.topLeft:return-(.75*Math.PI);case s.inside:return Math.atan2(i.y-e.y,i.x-e.x);case s.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return K()*V}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case s.inside:this.outType=w.inside;break;case s.outside:this.outType=w.outside}this.offset=N.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);
1for(let i of(s?.particleDestroy?.(this),e.plugins.values()))i.particleDestroyed?.(this,t);for(let i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(d.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){let e=this.container,i=e.canvas;for(let s of e.plugins.values())i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??tq(this.color))}getMass(){return this.getRadius()**2*Math.PI*.5}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??tq(this.strokeColor))}init(t,e,i,s){let n=this.container,o=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=w.normal,this.ignoresResizeRatio=!0;let r=n.retina.pixelRatio,a=n.actualOptions,l=e$(this._engine,n,a.particles),{reduceDuplicates:h}=l,c=l.effect.type,u=l.shape.type;this.effect=tM(c,this.id,h),this.shape=tM(u,this.id,h);let d=l.effect,p=l.shape;if(i){if(i.effect?.type){let t=tM(i.effect.type,this.id,h);t&&(this.effect=t,d.load(i.effect))}if(i.shape?.type){let t=tM(i.shape.type,this.id,h);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===O){let t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(Math.random()*t.length)]}if(this.shape===O){let t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(Math.random()*t.length)]}this.effectData=function(t,e,i,s){let n=e.options[t];if(n)return tb({close:e.close,fill:e.fill},tM(n,i,s))}(this.effect,d,this.id,h),this.shapeData=function(t,e,i,s){let n=e.options[t];if(n)return tb({close:e.close,fill:e.fill},tM(n,i,s))}(this.shape,p,this.id,h),l.load(i);let f=this.effectData;f&&l.load(f.particles);let m=this.shapeData;m&&l.load(m.particles);let v=new es(o,n);v.load(n.actualOptions.interactivity),v.load(l.interactivity),this.interactivity=v,this.effectFill=f?.fill??l.effect.fill,this.effectClose=f?.close??l.effect.close,this.shapeFill=m?.fill??l.shape.fill,this.shapeClose=m?.close??l.shape.close,this.options=l;let g=this.options.move.path;this.pathDelay=tt(g.delay.value)*R,g.generator&&(this.pathGenerator=this._engine.getPathGenerator(g.generator),this.pathGenerator&&n.addPath(g.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=tE(this.options.size,r),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-tt(this.options.move.decay);let y=n.particles;y.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let b=n.effectDrawers.get(this.effect);!b&&(b=this._engine.getEffectDrawer(this.effect))&&n.effectDrawers.set(this.effect,b),b?.loadEffect&&b.loadEffect(this);let x=n.shapeDrawers.get(this.shape);!x&&(x=this._engine.getShapeDrawer(this.shape))&&n.shapeDrawers.set(this.shape,x),x?.loadShape&&x.loadShape(this);let k=x?.getSidesCount;for(let t of(k&&(this.sides=k(this)),this.spawning=!1,this.shadowColor=tz(this._engine,this.options.shadow.color),y.updaters))t.init(this);for(let t of y.movers)t.init?.(this);for(let t of(b?.particleInit?.(n,this),x?.particleInit?.(n,this),n.plugins.values()))t.particleCreated?.(this)}isInsideCanvas(){let t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let t of this.container.particles.updaters)t.reset?.(this)}}class eK{constructor(t,e){this.position=t,this.particle=e}}!function(t){t.circle="circle",t.rectangle="rectangle"}(x||(x={}));class eZ{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class eJ extends eZ{constructor(t,e,i){super(t,e,x.circle),this.radius=i}contains(t){return to(t,this.position)<=this.radius}intersects(t){let e=this.position,i=t.position,s={x:Math.abs(i.x-e.x),y:Math.abs(i.y-e.y)},n=this.radius;if(t instanceof eJ||t.type===x.circle)return n+t.radius>Math.sqrt(s.x**2+s.y**2);if(t instanceof eQ||t.type===x.rectangle){let{width:e,height:i}=t.size;return Math.pow(s.x-e,2)+Math.pow(s.y-i,2)<=n**2||s.x<=n+e&&s.y<=n+i||s.x<=e||s.y<=i}return!1}}class eQ extends eZ{constructor(t,e,i,s){super(t,e,x.rectangle),this.size={height:s,width:i}}contains(t){let e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof eJ)return t.intersects(this);let e=this.size.width,i=this.size.height,s=this.position,n=t.position,o=t instanceof eQ?t.size:{width:0,height:0},r=o.width,a=o.height;return n.x<s.x+e&&n.x+r>s.x&&n.y<s.y+i&&n.y+a>s.y}}class e0{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{let{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let o=0;o<4;o++){let r=o%2;this._subs.push(new e0(new eQ(t+.5*i*r,e+.5*s*(Math.round(.5*o)-r),.5*i,.5*s),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some(e=>e.insert(t))))}query(t,e){let i=[];if(!t.intersects(this.rectangle))return[];for(let s of this._points)!t.contains(s.position)&&to(t.position,s.position)>s.particle.getRadius()&&(!e||e(s.particle))||i.push(s.particle);if(this._divided)for(let s of this._subs)i.push(...s.query(t,e));return i}queryCircle(t,e,i){return this.query(new eJ(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new eQ(t.x,t.y,e.width,e.height),i)}}let e1=t=>{let{height:e,width:i}=t;return new eQ(-.25*i,-.25*e,1.5*i,1.5*e)};class e2{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i)=>{let s=t.number;if(!t.number.density?.enable){void 0===i?this._limit=s.limit.value:s.limit&&this._groupLimits.set(i,s.limit.value);return}let n=this._initDensityFactor(s.density),o=s.value,r=s.limit.value>0?s.limit.value:o,a=Math.min(o,r)*n+e,l=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this._limit=s.limit.value*n:this._groupLimits.set(i,s.limit.value*n),l<a?this.push(Math.abs(a-l),void 0,t,i):l>a&&this.removeQuantity(l-a,i)},this._initDensityFactor=t=>{let e=this._container;if(!e.canvas.element||!t.enable)return 1;let i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)},this._pushParticle=(t,e,i,s)=>{try{let n=this._pool.pop();n||(n=new eX(this._engine,this._container)),n.init(this._nextId,t,e,i);let o=!0;if(s&&(o=s(n)),!o)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(d.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){th.warning(`${E} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{let s=this._array[t];if(!s||s.group!==e)return!1;let n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(i),this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new eN(t,e),this._pluginsInitialized=!1;let i=e.canvas.size;this.quadTree=new e0(e1(i),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}
1addManualParticles(){let t=this._container;t.actualOptions.manualParticles.forEach(e=>this.addParticle(e.position?tA(e.position,t.canvas.size):void 0,e.options))}addParticle(t,e,i,s){let n=this._container.actualOptions.particles.number.limit.mode,o=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,r=this.count;if(o>0)switch(n){case y.delete:{let t=r+1-o;t>0&&this.removeQuantity(t);break}case y.wait:if(r>=o)return}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){let e=this._container,i=e.canvas;for(let s of(i.clear(),this.update(t),e.plugins.values()))i.drawPlugin(s,t);for(let e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){let t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(let e of t.plugins.values())if(i=e.particlesInitialization?.()??i)break;if(this.addManualParticles(),!i){let t=e.particles,i=t.groups;for(let e in i){let s=i[e];for(let i=this.count,n=0;n<s.number?.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let t=this._container;for(let e of(this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init(),t.pathGenerators.values()))e.init(t)}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let o=t;n<e&&o<this.count;o++)this._removeParticle(o,i,s)&&(o--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){let t=this._container.actualOptions,e=t.particles.groups;for(let t in e)this._applyDensity(e[t],0,t);this._applyDensity(t.particles,t.manualParticles.length)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){let e=this._container,i=new Set;for(let t of(this.quadTree=new e0(e1(e.canvas.size),4),e.pathGenerators.values()))t.update();for(let i of e.plugins.values())i.update?.(t);let s=this._resizeFactor;for(let e of this._array){for(let i of(s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e),this._container.plugins.values())){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(let i of this.movers)i.isEnabled(e)&&i.move(e,t);if(e.destroyed){i.add(e);continue}this.quadTree.insert(new eK(e.getPosition(),e))}if(i.size){let t=t=>!i.has(t);for(let e of(this._array=this.filter(t),this._zArray=this._zArray.filter(t),i))this._engine.dispatchEvent(d.particleRemoved,{container:this._container,data:{particle:e}});this._addToPool(...i)}for(let e of(this._interactionManager.externalInteract(t),this._array)){for(let i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){let t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id),this._lastZIndex=t[t.length-1].position.z,this._needsSort=!1}}}class e3{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){let t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||td()?1:window.devicePixelRatio,this.reduceFactor=1;let i=this.pixelRatio,s=t.canvas;if(s.element){let t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}let n=e.particles,o=n.move;this.maxSpeed=tt(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=tt(n.size.animation.speed)*i}initParticle(t){let e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,o=t.retina;o.moveDrift=tt(s.drift)*i,o.moveSpeed=tt(s.speed)*i,o.sizeAnimationSpeed=tt(e.size.animation.speed)*i;let r=o.maxDistance;r.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,r.vertical=void 0!==n.vertical?n.vertical*i:void 0,o.maxSpeed=tt(s.gravity.maxSpeed)*i}}function e5(t){return t&&!t.destroyed}function e4(t,e,...i){let s=new eH(t,e);return eq(s,...i),s}class e9{constructor(t,e,i){this._intersectionManager=t=>{if(e5(this)&&this.actualOptions.pauseOnOutsideViewport)for(let e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+R/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=t;let e=function(t,e=60,i=!1){return{value:t,factor:i?60/e:60*t/R}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>R){this.draw(!1);return}if(this.particles.draw(e),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(t){th.error(`${E} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new e3(this),this.canvas=new tJ(this,this._engine),this.particles=new e2(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=e4(this._engine,this),this.actualOptions=e4(this._engine,this),this._eventListeners=new t0(this),this._intersectionObserver=function(t){if(!td()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}(t=>this._intersectionManager(t)),this._engine.dispatchEvent(d.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&e5(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!e5(this))return;let e=this.interactivity.element;if(!e)return;let i=(e,i,s)=>{if(!e5(this))return;let n=this.retina.pixelRatio,o={x:i.x*n,y:i.y*n};t(e,this.particles.quadTree.queryCircle(o,s*n))},s=!1,n=!1;for(let[t,o]of(this._clickHandlers.set("click",t=>{if(!e5(this))return;let e={x:t.offsetX||t.clientX,y:t.offsetY||t.clientY};i(t,e,1)}),this._clickHandlers.set("touchstart",()=>{e5(this)&&(s=!0,n=!1)}),this._clickHandlers.set("touchmove",()=>{e5(this)&&(n=!0)}),this._clickHandlers.set("touchend",t=>{if(e5(this)){if(s&&!n){let e=t.touches[t.touches.length-1];if(!e&&!(e=t.changedTouches[t.changedTouches.length-1]))return;let s=this.canvas.element,n=s?s.getBoundingClientRect():void 0;i(t,{x:e.clientX-(n?n.left:0),y:e.clientY-(n?n.top:0)},Math.max(e.radiusX,e.radiusY))}s=!1,n=!1}}),this._clickHandlers.set("touchcancel",()=>{e5(this)&&(s=!1,n=!1)}),this._clickHandlers))e.addEventListener(t,o)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!e5(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(e5(this)){for(let[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(e5(this)){for(let t of(this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy(),this.effectDrawers.values())
1)t.destroy?.(this);for(let t of this.shapeDrawers.values())t.destroy?.(this);for(let t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(let t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){let t=this._engine.items,e=t.findIndex(t=>t===this);e>=0&&t.splice(e,1)}this._engine.dispatchEvent(d.containerDestroyed,{container:this})}}draw(t){var e;if(!e5(this))return;let i=t,s=t=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(t)};this._drawAnimationFrame=(e=t=>s(t),X.nextFrame(e))}async export(t,e={}){for(let i of this.plugins.values()){if(!i.export)continue;let s=await i.export(t,e);if(s.supported)return s.blob}th.error(`${E} - Export plugin with type ${t} not found`)}handleClickMode(t){if(e5(this))for(let e of(this.particles.handleClickMode(t),this.plugins.values()))e.handleClickMode?.(t)}async init(){if(!e5(this))return;for(let t of this._engine.getSupportedEffects()){let e=this._engine.getEffectDrawer(t);e&&this.effectDrawers.set(t,e)}
1for(let t of this._engine.getSupportedShapes()){let e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}for(let[t,e]of(await this.particles.initPlugins(),this._options=e4(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=e4(this._engine,this,this._options),await this._engine.getAvailablePlugins(this)))this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:t,duration:e,delay:i,fpsLimit:s,smooth:n}=this.actualOptions;for(let o of(this.zLayers=t,this._duration=tt(e)*R,this._delay=tt(i)*R,this._lifeTime=0,this.fpsLimit=s>0?s:120,this._smooth=n,this.effectDrawers.values()))await o.init?.(this);for(let t of this.shapeDrawers.values())await t.init?.(this);for(let t of this.plugins.values())await t.init?.();for(let t of(this._engine.dispatchEvent(d.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity(),this.plugins.values()))t.particlesSetup?.();this._engine.dispatchEvent(d.particlesSetup,{container:this})}async loadTheme(t){e5(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(e5(this)){if(void 0!==this._drawAnimationFrame){var t;t=this._drawAnimationFrame,X.cancel(t),delete this._drawAnimationFrame}if(!this._paused){for(let t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(d.containerPaused,{container:this})}}}play(t){if(!e5(this))return;let e=this._paused||t;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),e)for(let t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(d.containerPlay,{container:this}),this.draw(e??!1)}async refresh(){if(e5(this))return this.stop(),this.start()}async reset(t){if(e5(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=e4(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=e4(this._engine,this,this._options),this.refresh()}async start(){e5(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{let e=async()=>{for(let t of(this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element),this.plugins.values()))await t.start?.();this._engine.dispatchEvent(d.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout(()=>void e(),this._delay)}))}stop(){if(e5(this)&&this.started){for(let t of(this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element),this.plugins.values()))t.stop?.();for(let t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(d.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class e6{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){let i=this._listeners.get(t);i?.forEach(t=>t(e))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){let i=this._listeners.get(t);if(!i)return;let s=i.length,n=i.indexOf(e);n<0||(1===s?this._listeners.delete(t):i.splice(n,1))}}async function e8(t,e,i,s=!1){let n=e.get(t);return(!n||s)&&(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}async function e7(t){let e=tM(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?await i.json():(th.error(`${E} ${i.status} while retrieving config file`),t.fallback)}let it=t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===F)(e=t).dataset[T]||(e.dataset[T]=L);else{let i=t.getElementsByTagName(F);i.length?(e=i[0]).dataset[T]=L:((e=document.createElement(F)).dataset[T]=I,t.appendChild(e))}let i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e},ie=(t,e)=>{let i=e??document.getElementById(t);
1return i||((i=document.createElement("div")).id=t,i.dataset[T]=I,document.body.append(i)),i};class ii{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new e6,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){let t={};for(let[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.8.1"}async addColorManager(t,e=!0){this.colorManagers.set(t.key,t),await this.refresh(e)}addConfig(t){let e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(d.configAdded,{data:{name:e,config:t}})}async addEasing(t,e,i=!0){this.getEasing(t)||(this.easingFunctions.set(t,e),await this.refresh(i))}async addEffect(t,e,i=!0){tS(t,t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){(i||!this.getPreset(t))&&this.presets.set(t,e),await this.refresh(s)}async addShape(t,e=!0){for(let e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}checkVersion(t){if(this.version!==t)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){let e=new Map;for(let i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return e8(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return e8(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return e8(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){let{items:e}=this,i=e[t];if(!i||i.destroyed){e.splice(t,1);return}return i}async load(t){let e=t.id??t.element?.id??`tsparticles${Math.floor(1e4*K())}`,{index:i,url:s}=t,n=tM(s?await e7({fallback:t.options,url:s,index:i}):t.options,i),{items:o}=this,r=o.findIndex(t=>t.id.description===e),a=new e9(this,e,n);if(r>=0){let t=this.item(r),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),o.splice(r,e,a)}else o.push(a);let l=it(ie(e,t.element));return a.canvas.loadCanvas(l),await a.start(),a}loadOptions(t,e){this.plugins.forEach(i=>i.loadOptions?.(t,e))}loadParticlesOptions(t,e,...i){let s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){let{items:e}=this;if(!e.length)throw Error(`${E} can only set click handlers after calling tsParticles.load()`);e.forEach(e=>e.addClickHandler(t))}}class is{constructor(t){this.type=b.external,this.container=t}}class io{constructor(t){this.type=b.particles,this.container=t}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(k||(k={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(P||(P={})),function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-
1out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"}(_||(_={}));let ir=function(){let t=new ii;return t.init(),t}();td()||(window.tsParticles=ir)},98975:(t,e,i)=>{i.d(e,{Ay:()=>r,iC:()=>a});var s=i(22665),n=i(95155),o=i(12115);let r=t=>{let e=t.id??"tsparticles";return(0,o.useEffect)(()=>{let i;return s.$k3.load({id:e,url:t.url,options:t.options}).then(e=>{var s;i=e,null==(s=t.particlesLoaded)||s.call(t,e)}),()=>{null==i||i.destroy()}},[e,t,t.url,t.options]),(0,n.jsx)("div",{id:e,className:t.className})};async function a(t){await t(s.$k3)}},26737:(t,e,i)=>{i.d(e,{m:()=>eD});var s,n,o,r,a,l,h=i(22665);let c=2*Math.PI;class u{init(t){let e=t.options.move.gravity;t.gravity={enable:e.enable,acceleration:(0,h.VGA)(e.acceleration),inverse:e.inverse},function(t){let e=t.container,i=t.options.move.spin;if(!i.enable)return;let s=i.position??{x:50,y:50},n={x:.01*s.x*e.canvas.size.width,y:.01*s.y*e.canvas.size.height},o=t.getPosition(),r=(0,h.YfF)(o,n),a=(0,h.VGA)(i.acceleration);t.retina.spinAcceleration=a*e.retina.pixelRatio,t.spin={center:n,direction:t.velocity.x>=0?h.pTR.clockwise:h.pTR.counterClockwise,angle:(0,h.G0i)()*c,radius:r,acceleration:t.retina.spinAcceleration}}(t)}isEnabled(t){return!t.destroyed&&t.options.move.enable}move(t,e){let i=t.options,s=i.move;if(!s.enable)return;let n=t.container,o=n.retina.pixelRatio;t.retina.moveSpeed??=(0,h.VGA)(s.speed)*o,t.retina.moveDrift??=(0,h.VGA)(t.options.move.drift)*o;let r=t.slow.inRange?t.slow.factor:1,a=t.retina.moveSpeed*n.retina.reduceFactor,l=t.retina.moveDrift,c=(0,h.W9e)(i.size.value)*o,u=a*(s.size?t.getRadius()/c:1)*r*(e.factor||1)/2,d=t.retina.maxSpeed??n.retina.maxSpeed;s.spin.enable?function(t,e){let i=t.container;if(!t.spin)return;let s=t.spin.direction===h.pTR.clockwise,n={x:s?Math.cos:Math.sin,y:s?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*n.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*n.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;let o=Math.max(i.canvas.size.width,i.canvas.size.height),r=.5*o;t.spin.radius>r?(t.spin.radius=r,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=.01*e*(1-t.spin.radius/o)}(t,u):function(t,e,i,s,n,o){(function(t,e){let i=t.options.move.path;if(!i.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),i.clamp&&(t.velocity.x=(0,h.qE8)(t.velocity.x,-1,1),t.velocity.y=(0,h.qE8)(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay})(t,o);let r=t.gravity,a=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=a*(r.acceleration*o.factor)/(60*i));let l=t.moveDecay;t.velocity.multTo(l);let c=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&c.y>=0&&c.y>=s||r.inverse&&c.y<=0&&c.y<=-s)&&(c.y=a*s,i&&(t.velocity.y=c.y/i));let u=t.options.zIndex,d=(1-t.zIndexFactor)**u.velocityRate;c.multTo(d);let{position:p}=t;p.addTo(c),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y)),p.y+=Math.cos(p.y*Math.sin(p.x)))}(t,s,u,d,l,e),function(t){let e=t.initialPosition,{dx:i,dy:s}=(0,h.vrU)(e,t.position),n=Math.abs(i),o=Math.abs(s),{maxDistance:r}=t.retina,a=r.horizontal,l=r.vertical;if(a||l){if((a&&n>=a||l&&o>=l)&&!t.misplaced)t.misplaced=!!a&&n>a||!!l&&o>l,a&&(t.velocity.x=.5*t.velocity.y-t.velocity.x),l&&(t.velocity.y=.5*t.velocity.x-t.velocity.y);else if((!a||n<a)&&(!l||o<l)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let i=t.position,s=t.velocity;a&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-(0,h.G0i)()),l&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-(0,h.G0i)())}}}(t)}}async function d(t,e=!0){t.checkVersion("3.8.1"),await t.addMover("base",()=>Promise.resolve(new u),e)}let p=2*Math.PI,f={x:0,y:0};class m{constructor(){this.validTypes=["circle"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t;i.circleRange||(i.circleRange={min:0,max:p});let n=i.circleRange;e.arc(f.x,f.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){let i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=(0,h.Gvm)(s)?{min:(0,h.puj)(s.min),max:(0,h.puj)(s.max)}:{min:0,max:(0,h.puj)(s)}}}async function v(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new m,e)}class g{constructor(t,e){this._container=t,this._engine=e}init(t){let e=(0,h.R5R)(this._engine,t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=(0,h.pzy)(e,t.options.color.animation,this._container.retina.reduceFactor))}isEnabled(t){let{h:e,s:i,l:s}=t.options.color.animation,{color:n}=t;return!t.destroyed&&!t.spawning&&(n?.h.value!==void 0&&e.enable||n?.s.value!==void 0&&i.enable||n?.l.value!==void 0&&s.enable)}update(t,e){(0,h.JvX)(t.color,e)}}async function y(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("color",e=>Promise.resolve(new g(e,t)),e)}!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(s||(s={}));let b=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,w=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class x{constructor(){this.key="hex",this.stringPrefix="#"}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!t?.startsWith(this.stringPrefix))return;let e=t.replace(b,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0!==n?n+n:"")),i=w.exec(e);return i?{a:void 0!==i[s.a]?parseInt(i[s.a],16)/255:1,b:parseInt(i[s.b],16),g:parseInt(i[s.g],16),r:parseInt(i[s.r],16)}:void 0}}async function k(t,e=!0){t.checkVersion("3.8.1"),await t.addColorManager(new x,e)}!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(n||(n={}));class P{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.s&&void 0!==e.l)return(0,h.YLU)(e)}handleRangeColor(t){let e=t.value.hsl??t.value;if(void 0!==e.h&&void 0!==e.l)return(0,h.YLU)({h:(0,h.VGA)(e.h),l:(0,h.VGA)(e.l),s:(0,h.VGA)(e.s)})}parseString(t){if(!t.startsWith("hsl"))return;let e=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?(0,h.ayx)({a:e.length>4?(0,h.M3Y)(e[n.a]):1,h:parseInt(e[n.h],10),l:parseInt(e[n.l],10),s:parseInt(e[n.s],10)}):void 0}}async function _(t,e=!0){t.checkVersion("3.8.1"),await t.addColorManager(new P,e)}class T{constructor(t){this.container=t}init(t){let e=t.options.opacity;t.opacity=(0,h.XsS)(e,1);let i=e.animation;i.enable&&(t.opacity.velocity=(0,h.VGA)(i.speed)/h.a56*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity
1*=(0,h.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&(0,h.UC0)(t,t.opacity,!0,t.options.opacity.animation.destroy,e)}}async function S(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("opacity",t=>Promise.resolve(new T(t)),e)}class M{constructor(t){this.container=t,this.modes=[h.Yzx.bounce,h.Yzx.split]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container,o=!1;for(let s of n.plugins.values())if(void 0!==s.particleBounce&&(o=s.particleBounce(t,i,e)),o)break;if(o)return;let r=t.getPosition(),a=t.offset,l=t.getRadius(),c=(0,h.AEc)(r,l),u=n.canvas.size;!function(t){if(t.outMode!==h.Yzx.bounce&&t.outMode!==h.Yzx.split||t.direction!==h.v5k.left&&t.direction!==h.v5k.right)return;t.bounds.right<0&&t.direction===h.v5k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===h.v5k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if(t.direction===h.v5k.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===h.v5k.left&&t.bounds.left<=0&&e<0){let e=(0,h.VGA)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;let s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===h.v5k.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===h.v5k.left&&(t.particle.position.x=s),t.outMode===h.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:u,offset:a,size:l}),function(t){if(t.outMode!==h.Yzx.bounce&&t.outMode!==h.Yzx.split||t.direction!==h.v5k.bottom&&t.direction!==h.v5k.top)return;t.bounds.bottom<0&&t.direction===h.v5k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===h.v5k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if(t.direction===h.v5k.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===h.v5k.top&&t.bounds.top<=0&&e<0){let e=(0,h.VGA)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;let s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===h.v5k.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===h.v5k.top&&(t.particle.position.y=s),t.outMode===h.Yzx.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:u,offset:a,size:l})}}class C{constructor(t){this.container=t,this.modes=[h.Yzx.destroy]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;switch(t.outType){case h.x_I.normal:case h.x_I.outside:if((0,h.Tj8)(t.position,n.canvas.size,h.Miz.origin,t.getRadius(),e))return;break;case h.x_I.inside:{let{dx:e,dy:i}=(0,h.vrU)(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return}}n.particles.remove(t,t.group,!0)}}class E{constructor(t){this.container=t,this.modes=[h.Yzx.none]}update(t,e,i,s){if(!this.modes.includes(s)||((t.options.move.distance.horizontal&&(e===h.v5k.left||e===h.v5k.right))??(t.options.move.distance.vertical&&(e===h.v5k.top||e===h.v5k.bottom))))return;let n=t.options.move.gravity,o=this.container,r=o.canvas.size,a=t.getRadius();if(n.enable){let i=t.position;(!n.inverse&&i.y>r.height+a&&e===h.v5k.bottom||n.inverse&&i.y<-a&&e===h.v5k.top)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=r.height+a||t.velocity.y<0&&t.position.y>=-a||t.velocity.x>0&&t.position.x<=r.width+a||t.velocity.x<0&&t.position.x>=-a)return;(0,h.Tj8)(t.position,o.canvas.size,h.Miz.origin,a,e)||o.particles.remove(t)}}}class A{constructor(t){this.container=t,this.modes=[h.Yzx.out]}update(t,e,i,s){if(!this.modes.includes(s))return;let n=this.container;if(t.outType===h.x_I.inside){let{x:e,y:i}=t.velocity,s=h.Miz.origin;s.length=t.moveCenter.radius,s.angle=t.velocity.angle+Math.PI,s.addTo(h.Miz.create(t.moveCenter));let{dx:o,dy:r}=(0,h.vrU)(t.position,s);if(e<=0&&o>=0||i<=0&&r>=0||e>=0&&o<=0||i>=0&&r<=0)return;t.position.x=Math.floor((0,h.U43)({min:0,max:n.canvas.size.width})),t.position.y=Math.floor((0,h.U43)({min:0,max:n.canvas.size.height}));let{dx:a,dy:l}=(0,h.vrU)(t.position,t.moveCenter);t.direction=Math.atan2(-l,-a),t.velocity.angle=t.direction}else{if((0,h.Tj8)(t.position,n.canvas.size,h.Miz.origin,t.getRadius(),e))return;switch(t.outType){case h.x_I.outside:{t.position.x=Math.floor((0,h.U43)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor((0,h.U43)({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;let{dx:e,dy:i}=(0,h.vrU)(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction);break}case h.x_I.normal:{let i=t.options.move.warp,s=n.canvas.size,o={bottom:s.height+t.getRadius()+t.offset.y,left
1:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},r=t.getRadius(),a=(0,h.AEc)(t.position,r);e===h.v5k.right&&a.left>s.width+t.offset.x?(t.position.x=o.left,t.initialPosition.x=t.position.x,i||(t.position.y=(0,h.G0i)()*s.height,t.initialPosition.y=t.position.y)):e===h.v5k.left&&a.right<-t.offset.x&&(t.position.x=o.right,t.initialPosition.x=t.position.x,i||(t.position.y=(0,h.G0i)()*s.height,t.initialPosition.y=t.position.y)),e===h.v5k.bottom&&a.top>s.height+t.offset.y?(i||(t.position.x=(0,h.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=o.top,t.initialPosition.y=t.position.y):e===h.v5k.top&&a.bottom<-t.offset.y&&(i||(t.position.x=(0,h.G0i)()*s.width,t.initialPosition.x=t.position.x),t.position.y=o.bottom,t.initialPosition.y=t.position.y)}}}}}let R=(t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e;class D{constructor(t){this._addUpdaterIfMissing=(t,e,i)=>{let s=t.options.move.outModes;!this.updaters.has(e)&&R(s,e)&&this.updaters.set(e,i(this.container))},this._updateOutMode=(t,e,i,s)=>{for(let n of this.updaters.values())n.update(t,s,e,i)},this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,h.Yzx.bounce,t=>new M(t)),this._addUpdaterIfMissing(t,h.Yzx.out,t=>new A(t)),this._addUpdaterIfMissing(t,h.Yzx.destroy,t=>new C(t)),this._addUpdaterIfMissing(t,h.Yzx.none,t=>new E(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){let i=t.options.move.outModes;this._updateOutMode(t,e,i.bottom??i.default,h.v5k.bottom),this._updateOutMode(t,e,i.left??i.default,h.v5k.left),this._updateOutMode(t,e,i.right??i.default,h.v5k.right),this._updateOutMode(t,e,i.top??i.default,h.v5k.top)}}async function z(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("outModes",t=>Promise.resolve(new D(t)),e)}!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(o||(o={}));class O{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return e}handleRangeColor(t){let e=t.value.rgb??t.value;if(void 0!==e.r)return{r:(0,h.VGA)(e.r),g:(0,h.VGA)(e.g),b:(0,h.VGA)(e.b)}}parseString(t){if(!t.startsWith(this.stringPrefix))return;let e=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i.exec(t);return e?{a:e.length>4?(0,h.M3Y)(e[o.a]):1,b:parseInt(e[o.b],10),g:parseInt(e[o.g],10),r:parseInt(e[o.r],10)}:void 0}}async function V(t,e=!0){t.checkVersion("3.8.1"),await t.addColorManager(new O,e)}class I{init(t){let e=t.container,i=t.options.size.animation;i.enable&&(t.size.velocity=(t.retina.sizeAnimationSpeed??e.retina.sizeAnimationSpeed)/h.a56*e.retina.reduceFactor,i.sync||(t.size.velocity*=(0,h.G0i)()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.loops=0}update(t,e){this.isEnabled(t)&&(0,h.UC0)(t,t.size,!0,t.options.size.animation.destroy,e)}}async function L(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("size",()=>Promise.resolve(new I),e)}async function F(t,e=!0){t.checkVersion("3.8.1"),await k(t,!1),await _(t,!1),await V(t,!1),await d(t,!1),await v(t,!1),await y(t,!1),await S(t,!1),await z(t,!1),await L(t,!1),await t.refresh(e)}async function B(t,e=!0){t.checkVersion("3.8.1"),await t.addEasing(h.mgy.easeInQuad,t=>t**2,!1),await t.addEasing(h.mgy.easeOutQuad,t=>1-(1-t)**2,!1),await t.addEasing(h.mgy.easeInOutQuad,t=>t<.5?2*t**2:1-(-2*t+2)**2/2,!1),await t.refresh(e)}let j='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"';class U{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[t,e]of this._emojiShapeDict)e instanceof ImageBitmap&&e?.close(),this._emojiShapeDict.delete(t)}draw(t){let e=t.particle.emojiDataKey;if(!e)return;let i=this._emojiShapeDict.get(e);i&&function(t,e){let{context:i,opacity:s}=t,n=i.globalAlpha;if(!e)return;let o=e.width,r=.5*o;i.globalAlpha=s,i.drawImage(e,-r,-r,o,o),i.globalAlpha=n}(t,i)}async init(t){let e=t.actualOptions,{validTypes:i}=this;if(!i.find(t=>(0,h.hnD)(t,e.particles.shape.type)))return;let s=[(0,h.AlN)(j)],n=i.map(t=>e.particles.shape.options[t]).find(t=>!!t);
1n&&(0,h.wJ2)(n,t=>{t.font&&s.push((0,h.AlN)(t.font))}),await Promise.all(s)}particleDestroy(t){t.emojiDataKey=void 0}particleInit(t,e){let i;let s=e.shapeData;if(!s?.value)return;let n=(0,h.TA3)(s.value,e.randomIndexData);if(!n)return;let o="string"==typeof n?{font:s.font??j,padding:s.padding??0,value:n}:{font:j,padding:0,...s,...n},r=o.font,a=o.value,l=`${a}_${r}`;if(this._emojiShapeDict.has(l)){e.emojiDataKey=l;return}let c=2*o.padding,u=(0,h.W9e)(e.size.value),d=u+c,p=2*d;if("undefined"!=typeof OffscreenCanvas){let t=new OffscreenCanvas(p,p),e=t.getContext("2d");if(!e)return;e.font=`400 ${2*u}px ${r}`,e.textBaseline="middle",e.textAlign="center",e.fillText(a,d,d),i=t.transferToImageBitmap()}else{let t=document.createElement("canvas");t.width=p,t.height=p;let e=t.getContext("2d");if(!e)return;e.font=`400 ${2*u}px ${r}`,e.textBaseline="middle",e.textAlign="center",e.fillText(a,d,d),i=t}this._emojiShapeDict.set(l,i),e.emojiDataKey=l}}async function G(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new U,e)}function W(t,e,i,s,n,o){let r=e.actualOptions.interactivity.modes.attract;if(r)for(let a of e.particles.quadTree.query(n,o)){let{dx:e,dy:n,distance:o}=(0,h.vrU)(a.position,i),l=r.speed*r.factor,c=(0,h.qE8)(t.getEasing(r.easing)(1-o/s)*l,1,r.maxSpeed),u=h.Miz.create(o?e/o*c:l,o?n/o*c:l);a.position.subFrom(u)}}class q{constructor(){this.distance=200,this.duration=.4,this.easing=h.mgy.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(t){(0,h.kZJ)(t)||(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0===t.speed||(this.speed=t.speed))}}let $="attract";class H extends h.sJd{constructor(t,e){super(e),this._engine=t,e.attract||(e.attract={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.attract;if(i&&t===$){for(let t of(e.attract||(e.attract={particles:[]}),e.attract.clicking=!0,e.attract.count=0,e.attract.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract||(e.attract={particles:[]}),e.attract.clicking=!1)},i.duration*h.XuV)}}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.attract;e&&(t.retina.attractModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===h.RbF,s=e.interactivity.events,{enable:n,mode:o}=s.onHover,{enable:r,mode:a}=s.onClick;i&&n&&(0,h.hnD)($,o)?function(t,e,i){let s=e.interactivity.mouse.position,n=e.retina.attractModeDistance;n&&!(n<0)&&s&&W(t,e,s,n,new h.jlt(s.x,s.y,n),t=>i(t))}(this._engine,this.container,t=>this.isEnabled(t)):r&&(0,h.hnD)($,a)&&function(t,e,i){e.attract||(e.attract={particles:[]});let{attract:s}=e;if(s.finish||(s.count||(s.count=0),s.count++,s.count!==e.particles.count||(s.finish=!0)),s.clicking){let s=e.interactivity.mouse.clickPosition,n=e.retina.attractModeDistance;if(!n||n<0||!s)return;W(t,e,s,n,new h.jlt(s.x,s.y,n),t=>i(t))}else!1===s.clicking&&(s.particles=[])}(this._engine,this.container,t=>this.isEnabled(t))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events;if((!s.position||!n.onHover.enable)&&(!s.clickPosition||!n.onClick.enable))return!1;let o=n.onHover.mode,r=n.onClick.mode;return(0,h.hnD)($,o)||(0,h.hnD)($,r)}loadModeOptions(t,...e){for(let i of(t.attract||(t.attract=new q),e))t.attract.load(i?.attract)}reset(){}}async function N(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalAttract",e=>Promise.resolve(new H(t,e)),e)}let Y=.5*Math.PI;function X(t,e,i,s,n){for(let o of t.particles.quadTree.query(s,n))s instanceof h.jlt?(0,h.pEn)((0,h.Tgl)(o),{position:e,radius:i,mass:i**2*Y,velocity:h.Miz.origin,factor:h.Miz.origin}):s instanceof h.M_G&&(0,h.jon)(o,(0,h.AEc)(e,i))}class K{constructor(){this.distance=200}load(t){(0,h.kZJ)(t)||void 0===t.distance||(this.distance=t.distance)}}let Z="bounce";class J extends h.sJd{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bounce;e&&(t.retina.bounceModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===h.RbF,s=e.onHover.enable,n=e.onHover.mode,o=e.onDiv;if(i&&s&&(0,h.hnD)(Z,n))!function(t,e){let i=t.retina.pixelRatio,s=t.interactivity.mouse.position,n=t.retina.bounceModeDistance;n&&!(n<0)&&s&&X(t,s,n,new h.jlt(s.x,s.y,n+10*i),e)}(this.container,t=>this.isEnabled(t));else{var r,a;r=this.container,a=t=>this.isEnabled(t),(0,h.U6C)(Z,o,(t,e)=>
1(function(t,e,i,s){let n=document.querySelectorAll(e);n.length&&n.forEach(e=>{let n=t.retina.pixelRatio,o={x:(e.offsetLeft+.5*e.offsetWidth)*n,y:(e.offsetTop+.5*e.offsetHeight)*n},r=.5*e.offsetWidth*n,a=10*n,l=i.type===h.Q5V.circle?new h.jlt(o.x,o.y,r+a):new h.M_G(e.offsetLeft*n-a,e.offsetTop*n-a,e.offsetWidth*n+2*a,e.offsetHeight*n+2*a);s(o,r,l)})})(r,t,e,(t,e,i)=>X(r,t,e,i,a)))}}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,o=n.onDiv;return!!s.position&&n.onHover.enable&&(0,h.hnD)(Z,n.onHover.mode)||(0,h.iKf)(Z,o)}loadModeOptions(t,...e){for(let i of(t.bounce||(t.bounce=new K),e))t.bounce.load(i?.bounce)}reset(){}}async function Q(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalBounce",t=>Promise.resolve(new J(t)),e)}class tt{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){if(!(0,h.kZJ)(t)){if(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color){let e=(0,h.cyL)(this.color)?void 0:this.color;this.color=(0,h.wJ2)(t.color,t=>h.Oit.create(e,t))}void 0!==t.size&&(this.size=t.size)}}}class te extends tt{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,h.kZJ)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class ti extends tt{load(t){super.load(t),(0,h.kZJ)(t)||(this.divs=(0,h.wJ2)(t.divs,t=>{let e=new te;return e.load(t),e}))}}function ts(t,e,i,s){return e>=i?(0,h.qE8)(t+(e-i)*s,t,e):e<i?(0,h.qE8)(t-(i-e)*s,e,t):void 0}!function(t){t.color="color",t.opacity="opacity",t.size="size"}(r||(r={}));let tn="bubble";class to extends h.sJd{constructor(t,e){super(t),this._clickBubble=()=>{let t=this.container,e=t.actualOptions,i=t.interactivity.mouse.clickPosition,s=e.interactivity.modes.bubble;if(!s||!i)return;t.bubble||(t.bubble={});let n=t.retina.bubbleModeDistance;if(!n||n<0)return;let o=t.particles.quadTree.queryCircle(i,n,t=>this.isEnabled(t)),{bubble:a}=t;for(let e of o){if(!a.clicking)continue;e.bubble.inRange=!a.durationEnd;let o=e.getPosition(),l=(0,h.YfF)(o,i),c=(new Date().getTime()-(t.interactivity.mouse.clickTime??0))/h.XuV;c>s.duration&&(a.durationEnd=!0),c>2*s.duration&&(a.clicking=!1,a.durationEnd=!1);let u={bubbleObj:{optValue:t.retina.bubbleModeSize,value:e.bubble.radius},particlesObj:{optValue:(0,h.W9e)(e.options.size.value)*t.retina.pixelRatio,value:e.size.value},type:r.size};this._process(e,l,c,u);let d={bubbleObj:{optValue:s.opacity,value:e.bubble.opacity},particlesObj:{optValue:(0,h.W9e)(e.options.opacity.value),value:e.opacity?.value??1},type:r.opacity};this._process(e,l,c,d),!a.durationEnd&&l<=n?this._hoverBubbleColor(e,l):delete e.bubble.color}},this._hoverBubble=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.bubbleModeDistance;if(i&&!(i<0)&&e)for(let s of t.particles.quadTree.queryCircle(e,i,t=>this.isEnabled(t))){s.bubble.inRange=!0;let n=s.getPosition(),o=(0,h.YfF)(n,e),r=1-o/i;o<=i?r>=0&&t.interactivity.status===h.RbF&&(this._hoverBubbleSize(s,r),this._hoverBubbleOpacity(s,r),this._hoverBubbleColor(s,r)):this.reset(s),t.interactivity.status===h.Z04&&this.reset(s)}},this._hoverBubbleColor=(t,e,i)=>{let s=this.container.actualOptions,n=i??s.interactivity.modes.bubble;if(n){if(!t.bubble.finalColor){let e=n.color;if(!e)return;let i=(0,h.TA3)(e);t.bubble.finalColor=(0,h.R5R)(this._engine,i)}if(t.bubble.finalColor){if(n.mix){t.bubble.color=void 0;let i=t.getFillColor();t.bubble.color=i?(0,h.K6u)((0,h.EYT)(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}},this._hoverBubbleOpacity=(t,e,i)=>{let s=this.container.actualOptions,n=i?.opacity??s.interactivity.modes.bubble?.opacity;if(!n)return;let o=t.options.opacity.value,r=ts(t.opacity?.value??1,n,(0,h.W9e)(o),e);void 0!==r&&(t.bubble.opacity=r)},this._hoverBubbleSize=(t,e,i)=>{let s=this.container,n=i?.size?i.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(void 0===n)return;let o=(0,h.W9e)(t.options.size.value)*s.retina.pixelRatio,r=ts(t.size.value,n,o,e);void 0!==r&&(t.bubble.radius=r)},this._process=(t,e,i,s)=>{let n=this.container,o=s.bubbleObj.optValue,a=n.actualOptions.interactivity.modes.bubble;if(!a||void 0===o)return;let l=a.duration,h=n.retina.bubbleModeDistance,c=s.particlesObj.optValue,u=s.bubbleObj.value,d=s.particlesObj.value??0,p=s.type;if(h&&!(h<0)&&o!==c){if(n.bubble||(n.bubble={}),n.bubble.durationEnd)u&&(p===r.size&&delete t.bubble.radius,p===r.opacity&&delete t.bubble.opacity);else if(e<=h){if((u??d)!==o){let e=d-i*(d-o)/l;p===r.size&&(t.bubble.radius=e),p===r.opacity&&(t.bubble.opacity=e)}}else p===r.size&&delete t.bubble.radius,p===r.opacity&&delete t.bubble.opacity}},this._singleSelectorHover=(t,e,i)=>{let s=this.container,n=document.querySelectorAll(e),o=s.actualOptions.interactivity.modes.bubble;
1o&&n.length&&n.forEach(e=>{let n=s.retina.pixelRatio,r={x:(e.offsetLeft+.5*e.offsetWidth)*n,y:(e.offsetTop+.5*e.offsetHeight)*n},a=.5*e.offsetWidth*n,l=i.type===h.Q5V.circle?new h.jlt(r.x,r.y,a):new h.M_G(e.offsetLeft*n,e.offsetTop*n,e.offsetWidth*n,e.offsetHeight*n);for(let i of s.particles.quadTree.query(l,t=>this.isEnabled(t))){if(!l.contains(i.getPosition()))continue;i.bubble.inRange=!0;let s=o.divs,n=(0,h.NVT)(s,e);i.bubble.div&&i.bubble.div===e||(this.clear(i,t,!0),i.bubble.div=e),this._hoverBubbleSize(i,1,n),this._hoverBubbleOpacity(i,1,n),this._hoverBubbleColor(i,1,n)}})},this._engine=e,t.bubble||(t.bubble={}),this.handleClickMode=e=>{e===tn&&(t.bubble||(t.bubble={}),t.bubble.clicking=!0)}}clear(t,e,i){(!t.bubble.inRange||i)&&(delete t.bubble.div,delete t.bubble.opacity,delete t.bubble.radius,delete t.bubble.color)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.bubble;e&&(t.retina.bubbleModeDistance=e.distance*t.retina.pixelRatio,void 0!==e.size&&(t.retina.bubbleModeSize=e.size*t.retina.pixelRatio))}interact(t){let e=this.container.actualOptions.interactivity.events,i=e.onHover,s=e.onClick,n=i.enable,o=i.mode,r=s.enable,a=s.mode,l=e.onDiv;n&&(0,h.hnD)(tn,o)?this._hoverBubble():r&&(0,h.hnD)(tn,a)?this._clickBubble():(0,h.U6C)(tn,l,(e,i)=>this._singleSelectorHover(t,e,i))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,{onClick:n,onDiv:o,onHover:r}=(t?.interactivity??i.interactivity).events,a=(0,h.iKf)(tn,o);return(!!a||!!r.enable&&!!s.position||!!n.enable&&!!s.clickPosition)&&((0,h.hnD)(tn,r.mode)||(0,h.hnD)(tn,n.mode)||a)}loadModeOptions(t,...e){for(let i of(t.bubble||(t.bubble=new ti),e))t.bubble.load(i?.bubble)}reset(t){t.bubble.inRange=!1}}async function tr(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalBubble",e=>Promise.resolve(new to(e,t)),e)}class ta{constructor(){this.opacity=.5}load(t){(0,h.kZJ)(t)||void 0===t.opacity||(this.opacity=t.opacity)}}class tl{constructor(){this.distance=80,this.links=new ta,this.radius=60}load(t){(0,h.kZJ)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links),void 0===t.radius||(this.radius=t.radius))}}class th extends h.sJd{constructor(t){super(t)}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.connect;e&&(t.retina.connectModeDistance=e.distance*t.retina.pixelRatio,t.retina.connectModeRadius=e.radius*t.retina.pixelRatio)}interact(){let t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"pointermove"===t.interactivity.status){let e=t.interactivity.mouse.position,{connectModeDistance:i,connectModeRadius:s}=t.retina;if(!i||i<0||!s||s<0||!e)return;let n=Math.abs(s),o=t.particles.quadTree.queryCircle(e,n,t=>this.isEnabled(t));o.forEach((e,s)=>{let n=e.getPosition();for(let r of o.slice(s+1)){let s=r.getPosition(),o=Math.abs(i),a=Math.abs(n.x-s.x),l=Math.abs(n.y-s.y);a<o&&l<o&&function(t,e,i){t.canvas.draw(s=>{var n;let o=function(t,e,i,s){let n=t.actualOptions.interactivity.modes.connect;if(n)return function(t,e,i,s){let n=Math.floor(i.getRadius()/e.getRadius()),o=e.getFillColor(),r=i.getFillColor();if(!o||!r)return;let a=e.getPosition(),l=i.getPosition(),c=(0,h.EYT)(o,r,e.getRadius(),i.getRadius()),u=t.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(0,(0,h.LCf)(o,s)),u.addColorStop((0,h.qE8)(n,0,1),(0,h.xxz)(c,s)),u.addColorStop(1,(0,h.LCf)(r,s)),u}(e,i,s,n.links.opacity)}(t,s,e,i);if(!o)return;let r=e.getPosition(),a=i.getPosition();n=e.retina.linksWidth??0,(0,h.V6E)(s,r,a),s.lineWidth=n,s.strokeStyle=o,s.stroke()})}(t,e,r)}})}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return!!s.onHover.enable&&!!i.position&&(0,h.hnD)("connect",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.connect||(t.connect=new tl),e))t.connect.load(i?.connect)}reset(){}}async function tc(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalConnect",t=>Promise.resolve(new th(t)),e)}class tu{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){(0,h.kZJ)(t)||(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=h.Oit.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0===t.opacity||(this.opacity=t.opacity))}}class td{constructor(){this.distance=100,this.links=new tu}load(t){(0,h.kZJ)(t)||(void 0!==t.distance&&(this.distance=t.distance),this.links.load(t.links))}}class tp extends h.sJd{constructor(t,e){super(t),this._engine=e}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.grab;e&&(t.retina.grabModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions.interactivity;if(!e.modes.grab||!e.events.onHover.enable||t.interactivity.status!==
1h.RbF)return;let i=t.interactivity.mouse.position;if(!i)return;let s=t.retina.grabModeDistance;if(s&&!(s<0))for(let n of t.particles.quadTree.queryCircle(i,s,t=>this.isEnabled(t))){let o=n.getPosition(),r=(0,h.YfF)(o,i);if(r>s)continue;let a=e.modes.grab.links,l=a.opacity,c=l-r*l/s;if(c<=0)continue;let u=a.color??n.options.links?.color;if(!t.particles.grabLineColor&&u){let i=e.modes.grab.links;t.particles.grabLineColor=(0,h.PGG)(this._engine,u,i.blink,i.consent)}let d=(0,h._hh)(n,void 0,t.particles.grabLineColor);d&&function(t,e,i,s,n){t.canvas.draw(t=>{var o;let r=e.getPosition();o=e.retina.linksWidth??0,(0,h.V6E)(t,r,n),t.strokeStyle=(0,h.xxz)(i,s),t.lineWidth=o,t.stroke()})}(t,n,d,c,i)}}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&(0,h.hnD)("grab",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.grab||(t.grab=new td),e))t.grab.load(i?.grab)}reset(){}}async function tf(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalGrab",e=>Promise.resolve(new tp(e,t)),e)}class tm extends h.sJd{constructor(t){super(t),this.handleClickMode=t=>{if("pause"!==t)return;let e=this.container;e.animationStatus?e.pause():e.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}async function tv(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalPause",t=>Promise.resolve(new tm(t)),e)}class tg{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(t){if((0,h.kZJ)(t))return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map(t=>t)),this.groups.length||(this.default=!0);let e=t.quantity;void 0!==e&&(this.quantity=(0,h.DT4)(e))}}class ty extends h.sJd{constructor(t){super(t),this.handleClickMode=t=>{if("push"!==t)return;let e=this.container,i=e.actualOptions.interactivity.modes.push;if(!i)return;let s=(0,h.VGA)(i.quantity);if(s<=0)return;let n=(0,h.Vh1)([void 0,...i.groups]),o=void 0!==n?e.actualOptions.particles.groups[n]:void 0;e.particles.push(s,e.interactivity.mouse,o,n)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.push||(t.push=new tg),e))t.push.load(i?.push)}reset(){}}async function tb(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalPush",t=>Promise.resolve(new ty(t)),e)}class tw{constructor(){this.quantity=2}load(t){if((0,h.kZJ)(t))return;let e=t.quantity;void 0!==e&&(this.quantity=(0,h.DT4)(e))}}class tx extends h.sJd{constructor(t){super(t),this.handleClickMode=t=>{let e=this.container,i=e.actualOptions;if(!i.interactivity.modes.remove||"remove"!==t)return;let s=(0,h.VGA)(i.interactivity.modes.remove.quantity);e.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(t,...e){for(let i of(t.remove||(t.remove=new tw),e))t.remove.load(i?.remove)}reset(){}}async function tk(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalRemove",t=>Promise.resolve(new tx(t)),e)}class tP{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=h.mgy.easeOutQuad}load(t){(0,h.kZJ)(t)||(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0===t.maxSpeed||(this.maxSpeed=t.maxSpeed))}}class t_ extends tP{constructor(){super(),this.selectors=[]}load(t){super.load(t),(0,h.kZJ)(t)||void 0===t.selectors||(this.selectors=t.selectors)}}class tT extends tP{load(t){super.load(t),(0,h.kZJ)(t)||(this.divs=(0,h.wJ2)(t.divs,t=>{let e=new t_;return e.load(t),e}))}}let tS="repulse";class tM extends h.sJd{constructor(t,e){super(e),this._clickRepulse=()=>{let t=this.container,e=t.actualOptions.interactivity.modes.repulse;if(!e)return;let i=t.repulse??{particles:[]};if(i.finish||(i.count||(i.count=0),i.count++,i.count!==t.particles.count||(i.finish=!0)),i.clicking){let s=t.retina.repulseModeDistance;if(!s||s<0)return;let n=Math.pow(s/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;let r=new h.jlt(o.x,o.y,n);for(let s of t.particles.quadTree.query(r,t=>this.isEnabled(t))){let{dx:t,dy:r,distance:a}=(0,h.vrU)(o,s.position),l=a**2,c=-n*e.speed/l;if(l<=n){i.particles.push(s);let e=h.Miz.create(t,r);e.length=c,s.velocity.setTo(e)}}}else if(!1===i.clicking){for(let t of i.particles)t.velocity.setTo(t.
1initialVelocity);i.particles=[]}},this._hoverRepulse=()=>{let t=this.container,e=t.interactivity.mouse.position,i=t.retina.repulseModeDistance;i&&!(i<0)&&e&&this._processRepulse(e,i,new h.jlt(e.x,e.y,i))},this._processRepulse=(t,e,i,s)=>{let n=this.container,o=n.particles.quadTree.query(i,t=>this.isEnabled(t)),r=n.actualOptions.interactivity.modes.repulse;if(!r)return;let{easing:a,speed:l,factor:c,maxSpeed:u}=r,d=this._engine.getEasing(a),p=(s?.speed??l)*c;for(let i of o){let{dx:s,dy:n,distance:o}=(0,h.vrU)(i.position,t),r=(0,h.qE8)(d(1-o/e)*p,0,u),a=h.Miz.create(o?s/o*r:p,o?n/o*r:p);i.position.addTo(a)}},this._singleSelectorRepulse=(t,e)=>{let i=this.container,s=i.actualOptions.interactivity.modes.repulse;if(!s)return;let n=document.querySelectorAll(t);n.length&&n.forEach(t=>{let n=i.retina.pixelRatio,o={x:(t.offsetLeft+.5*t.offsetWidth)*n,y:(t.offsetTop+.5*t.offsetHeight)*n},r=.5*t.offsetWidth*n,a=e.type===h.Q5V.circle?new h.jlt(o.x,o.y,r):new h.M_G(t.offsetLeft*n,t.offsetTop*n,t.offsetWidth*n,t.offsetHeight*n),l=s.divs,c=(0,h.NVT)(l,t);this._processRepulse(o,r,a,c)})},this._engine=t,e.repulse||(e.repulse={particles:[]}),this.handleClickMode=t=>{let i=this.container.actualOptions.interactivity.modes.repulse;if(!i||t!==tS)return;e.repulse||(e.repulse={particles:[]});let s=e.repulse;for(let t of(s.clicking=!0,s.count=0,e.repulse.particles))this.isEnabled(t)&&t.velocity.setTo(t.initialVelocity);s.particles=[],s.finish=!1,setTimeout(()=>{e.destroyed||(s.clicking=!1)},i.duration*h.XuV)}}clear(){}init(){let t=this.container,e=t.actualOptions.interactivity.modes.repulse;e&&(t.retina.repulseModeDistance=e.distance*t.retina.pixelRatio)}interact(){let t=this.container,e=t.actualOptions,i=t.interactivity.status===h.RbF,s=e.interactivity.events,n=s.onHover,o=n.enable,r=n.mode,a=s.onClick,l=a.enable,c=a.mode,u=s.onDiv;i&&o&&(0,h.hnD)(tS,r)?this._hoverRepulse():l&&(0,h.hnD)(tS,c)?this._clickRepulse():(0,h.U6C)(tS,u,(t,e)=>this._singleSelectorRepulse(t,e))}isEnabled(t){let e=this.container,i=e.actualOptions,s=e.interactivity.mouse,n=(t?.interactivity??i.interactivity).events,o=n.onDiv,r=n.on
1Hover,a=n.onClick,l=(0,h.iKf)(tS,o);if(!(l||r.enable&&s.position||a.enable&&s.clickPosition))return!1;let c=r.mode,u=a.mode;return(0,h.hnD)(tS,c)||(0,h.hnD)(tS,u)||l}loadModeOptions(t,...e){for(let i of(t.repulse||(t.repulse=new tT),e))t.repulse.load(i?.repulse)}reset(){}}async function tC(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalRepulse",e=>Promise.resolve(new tM(t,e)),e)}class tE{constructor(){this.factor=3,this.radius=200}load(t){(0,h.kZJ)(t)||(void 0!==t.factor&&(this.factor=t.factor),void 0===t.radius||(this.radius=t.radius))}}class tA extends h.sJd{constructor(t){super(t)}clear(t,e,i){(!t.slow.inRange||i)&&(t.slow.factor=1)}init(){let t=this.container,e=t.actualOptions.interactivity.modes.slow;e&&(t.retina.slowModeRadius=e.radius*t.retina.pixelRatio)}interact(){}isEnabled(t){let e=this.container,i=e.interactivity.mouse,s=(t?.interactivity??e.actualOptions.interactivity).events;return s.onHover.enable&&!!i.position&&(0,h.hnD)("slow",s.onHover.mode)}loadModeOptions(t,...e){for(let i of(t.slow||(t.slow=new tE),e))t.slow.load(i?.slow)}reset(t){t.slow.inRange=!1;let e=this.container,i=e.actualOptions,s=e.interactivity.mouse.position,n=e.retina.slowModeRadius,o=i.interactivity.modes.slow;if(!o||!n||n<0||!s)return;let r=t.getPosition(),a=(0,h.YfF)(s,r),l=o.factor,{slow:c}=t;a>n||(c.inRange=!0,c.factor=a/n/l)}}async function tR(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("externalSlow",t=>Promise.resolve(new tA(t)),e)}let tD=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function tz(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,(0,h.tZQ)().error(`${h.dIx} loading image: ${t.source}`),e()}),i.src=t.source})}async function tO(t){if("svg"!==t.type){await tz(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():((0,h.tZQ)().error(`${h.dIx} Image not found`),t.error=!0),t.loading=!1}let tV=[0,4,2,1],tI=[8,8,4,2];class tL{constructor(t){this.pos=0,this.data=new Uint8ClampedArray(t)}getString(t){let e=this.data.slice(this.pos,this.pos+t);return this.pos+=e.length,e.reduce((t,e)=>t+String.fromCharCode(e),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let t="",e=0;do{e=this.data[this.pos++];for(let i=e;--i>=0;t+=String.fromCharCode(this.data[this.pos++]));}while(0!==e);return t}readSubBlocksBin(){let t=this.data[this.pos],e=0;for(let i=0;0!==t;i+=t+1,t=this.data[this.pos+i])e+=t;let i=new Uint8Array(e);t=this.data[this.pos++];for(let e=0;0!==t;t=this.data[this.pos++])for(let s=t;--s>=0;i[e++]=this.data[this.pos++]);return i}skipSubBlocks(){for(;0!==this.data[this.pos];this.pos+=this.data[this.pos]+1);this.pos++}}!function(t){t[t.Replace=0]="Replace",t[t.Combine=1]="Combine",t[t.RestoreBackgroun
1d=2]="RestoreBackground",t[t.RestorePrevious=3]="RestorePrevious",t[t.UndefinedA=4]="UndefinedA",t[t.UndefinedB=5]="UndefinedB",t[t.UndefinedC=6]="UndefinedC",t[t.UndefinedD=7]="UndefinedD"}(a||(a={})),function(t){t[t.Extension=33]="Extension",t[t.ApplicationExtension=255]="ApplicationExtension",t[t.GraphicsControlExtension=249]="GraphicsControlExtension",t[t.PlainTextExtension=1]="PlainTextExtension",t[t.CommentExtension=254]="CommentExtension",t[t.Image=44]="Image",t[t.EndOfFile=59]="EndOfFile"}(l||(l={}));let tF={x:0,y:0};function tB(t,e){let i=[];for(let s=0;s<e;s++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}async function tj(t,e,i,s,n,o){let r=e.frames[s(!0)];r.left=t.nextTwoBytes(),r.top=t.nextTwoBytes(),r.width=t.nextTwoBytes(),r.height=t.nextTwoBytes();let a=t.nextByte(),l=(128&a)==128;r.sortFlag=(32&a)==32,r.reserved=(24&a)>>>3,l&&(r.localColorTable=tB(t,1<<(7&a)+1));let h=t=>{let{r:s,g:o,b:a}=(l?r.localColorTable:e.globalColorTable)[t];return t!==n(null)?{r:s,g:o,b:a,a:255}:{r:s,g:o,b:a,a:i?~~((s+o+a)/3):0}},c=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==c)throw EvalError("GIF frame size is to large");let u=t.nextByte(),d=t.readSubBlocksBin(),p=1<<u,f=(t,e)=>{let i=t>>>3,s=7&t;return(d[i]+(d[i+1]<<8)+(d[i+2]<<16)&(1<<e)-1<<s)>>>s};if((64&a)==64){for(let i=0,n=u+1,a=0,l=[[0]],d=0;d<4;d++){if(tV[d]<r.height){let t=0,e=0,s=!1;for(;!s;){let o=i;if(i=f(a,n),a+=n+1,i===p){n=u+1,l.length=p+2;for(let t=0;t<l.length;t++)l[t]=t<p?[t]:[]}else{for(let s of(i>=l.length?l.push(l[o].concat(l[o][0])):o!==p&&l.push(l[o].concat(l[i][0])),l[i])){let{r:i,g:n,b:o,a}=h(s);c.data.set([i,n,o,a],tV[d]*r.width+tI[d]*e+t%(4*r.width)),t+=4}l.length===1<<n&&n<12&&n++}t===4*r.width*(e+1)&&(e++,tV[d]+tI[d]*e>=r.height&&(s=!0))}}o?.(t.pos/(t.data.length-1),s(!1)+1,c,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=c,r.bitmap=await createImageBitmap(c)}else{let i=0,n=u+1,a=0,l=-4,d=!1,m=[[0]];for(;!d;){let t=i;if(i=f(a,n),a+=n,i===p){n=u+1,m.length=p+2;for(let t=0;t<m.length;t++)m[t]=t<p?[t]:[]}else{if(i===p+1){d=!0;break}for(let e of(i>=m.length?m.push(m[t].concat(m[t][0])):t!==p&&m.push(m[t].concat(m[i][0])),m[i])){let{r:t,g:i,b:s,a:n}=h(e);c.data.set([t,i,s,n],l+=4)}m.length>=1<<n&&n<12&&n++}}r.image=c,r.bitmap=await createImageBitmap(c),o?.((t.pos+1)/t.data.length,s(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function tU(t,e,i,s,n,o){switch(t.nextByte()){case l.EndOfFile:return!0;case l.Image:await tj(t,e,i,s,n,o);break;case l.Extension:!function(t,e,i,s){switch(t.nextByte()){case l.GraphicsControlExtension:{let n=e.frames[i(!1)];t.pos++;let o=t.nextByte();n.GCreserved=(224&o)>>>5,n.disposalMethod=(28&o)>>>2,n.userInputDelayFlag=(2&o)==2,n.delayTime=10*t.nextTwoBytes();let r=t.nextByte();(1&o)==1&&s(r),t.pos++;break}case l.ApplicationExtension:{t.pos++;let i={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(i);break}case l.CommentExtension:e.comments.push([i(!1),t.readSubBlocks()]);break;case l.PlainTextExtension:if(0===e.globalColorTable.length)throw EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break;default:t.skipSubBlocks()}}(t,e,s,n);break;default:throw EvalError("undefined block found")}return!1}async function tG(t,e,i){i||(i=!1);let s=await fetch(t);if(!s.ok&&404===s.status)throw EvalError("file not found");let n=await s.arrayBuffer(),o={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new tL(new Uint8ClampedArray(n));if("GIF89a"!==r.getString(6))throw Error("not a supported GIF file");o.width=r.nextTwoBytes(),o.height=r.nextTwoBytes();let l=r.nextByte(),h=(128&l)==128;o.colorRes=(112&l)>>>4,o.sortFlag=(8&l)==8;let c=r.nextByte();o.pixelAspectRatio=r.nextByte(),0!==o.pixelAspectRatio&&(o.pixelAspectRatio=(o.pixelAspectRatio+15)/64),h&&(o.globalColorTable=tB(r,1<<(7&l)+1));let u=(()=>{try{return new ImageData(o.width,o.height,{colorSpace:"srgb"})}catch(t){if(t instanceof DOMException&&"IndexSizeError"===t.name)return null;throw t}})();if(null==u)throw Error("GIF frame size is to large");let{r:d,g:p,b:f}=o.globalColorTable[c];u.data.set(h?[d,p,f,255]:[0,0,0,0]);for(let t=4;t<u.data.length;t*=2)u.data.copyWithin(t,0,t);o.backgroundImage=u;let m=-1,v=!0,g=-1,y=t=>(t&&(v=!0),m),b=t=>(null!=t&&(g=t),g);try{do v&&(o.frames.push({left:0,top:0,width:0,height:0,disposalMethod:a.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}
1),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,g=-1,v=!1);while(!await tU(r,o,i,y,b,e));for(let t of(o.frames.length--,o.frames)){if(t.userInputDelayFlag&&0===t.delayTime){o.totalTime=1/0;break}o.totalTime+=t.delayTime}return o}catch(t){if(t instanceof EvalError)throw Error(`error while parsing frame ${m} "${t.message}"`);throw t}}async function tW(t){if("gif"!==t.type){await tz(t);return}t.loading=!0;try{t.gifData=await tG(t.source),t.gifLoopCount=function(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}(t.gifData)??0,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}class tq{constructor(t){this.validTypes=["image","images"],this.loadImageShape=async t=>{if(!this._engine.loadImage)throw Error(`${h.dIx} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=t}addImage(t){this._engine.images||(this._engine.images=[]),this._engine.images.push(t)}draw(t){let{context:e,radius:i,particle:s,opacity:n}=t,o=s.image,r=o?.element;if(o){if(e.globalAlpha=n,o.gif&&o.gifData)!function(t){let{context:e,radius:i,particle:s,delta:n}=t,o=s.image;if(!o?.gifData||!o.gif)return;let r=new OffscreenCanvas(o.gifData.width,o.gifData.height),l=r.getContext("2d");if(!l)throw Error("could not create offscreen canvas context");l.imageSmoothingQuality="low",l.imageSmoothingEnabled=!1,l.clearRect(tF.x,tF.y,r.width,r.height),void 0===s.gifLoopCount&&(s.gifLoopCount=o.gifLoopCount??0);let h=s.gifFrame??0,c={x:-(.5*o.gifData.width),y:-(.5*o.gifData.height)},u=o.gifData.frames[h];if(void 0===s.gifTime&&(s.gifTime=0),u.bitmap){switch(e.scale(i/o.gifData.width,i/o.gifData.height),u.disposalMethod){case a.UndefinedA:case a.UndefinedB:case a.UndefinedC:case a.UndefinedD:case a.Replace:l.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,c.x,c.y),l.clearRect(tF.x,tF.y,r.width,r.height);break;case a.Combine:l.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,c.x,c.y);break;
1case a.RestoreBackground:l.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,c.x,c.y),l.clearRect(tF.x,tF.y,r.width,r.height),o.gifData.globalColorTable.length?l.putImageData(o.gifData.backgroundImage,c.x,c.y):l.putImageData(o.gifData.frames[0].image,c.x+u.left,c.y+u.top);break;case a.RestorePrevious:{let t=l.getImageData(tF.x,tF.y,r.width,r.height);l.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,c.x,c.y),l.clearRect(tF.x,tF.y,r.width,r.height),l.putImageData(t,tF.x,tF.y)}}if(s.gifTime+=n.value,s.gifTime>u.delayTime){if(s.gifTime-=u.delayTime,++h>=o.gifData.frames.length){if(--s.gifLoopCount<=0)return;h=0,l.clearRect(tF.x,tF.y,r.width,r.height)}s.gifFrame=h}e.scale(o.gifData.width/i,o.gifData.height/i)}}(t);else if(r){let t=o.ratio,s={x:-i,y:-i},n=2*i;e.drawImage(r,s.x,s.y,n,n/t)}e.globalAlpha=1}}getSidesCount(){return 12}async init(t){let e=t.actualOptions;if(e.preload&&this._engine.loadImage)for(let t of e.preload)await this._engine.loadImage(t)}loadShape(t){if("image"!==t.shape&&"images"!==t.shape)return;this._engine.images||(this._engine.images=[]);let e=t.shapeData;e&&(this._engine.images.find(t=>t.name===e.name||t.source===e.src)||this.loadImageShape(e).then(()=>{this.loadShape(t)}))}particleInit(t,e){if("image"!==e.shape&&"images"!==e.shape)return;this._engine.images||(this._engine.images=[]);let i=this._engine.images,s=e.shapeData;if(!s)return;let n=e.getFillColor(),o=i.find(t=>t.name===s.name||t.source===s.src);if(!o)return;let r=s.replaceColor??o.replaceColor;if(o.loading){setTimeout(()=>{this.particleInit(t,e)});return}(async()=>{let t;(t=o.svgData&&n?await function(t,e,i,s){let n=function(t,e,i){let{svgData:s}=t;if(!s)return"";let n=(0,h.LCf)(e,i);if(s.includes("fill"))return s.replace(tD,()=>n);let o=s.indexOf(">");return`${s.substring(0,o)} fill="${n}"${s.substring(o)}`}(t,i,s.opacity?.value??1),o={color:i,gif:e.gif,data:{...t,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(e=>{let i=new Blob([n],{type:"image/svg+xml"}),s=URL||window.URL||window.webkitURL||window,r=s.createObjectURL(i),a=new Image;a.addEventListener("load",()=>{o.loaded=!0,o.element=a,e(o),s.revokeObjectURL(r)});let l=async()=>{s.revokeObjectURL(r);let i={...t,error:!1,loading:!0};await tz(i),o.loaded=!0,o.element=i.element,e(o)};a.addEventListener("error",()=>void l()),a.src=r})}(o,s,n,e):{color:n,data:o,element:o.element,gif:o.gif,gifData:o.gifData,gifLoopCount:o.gifLoopCount,loaded:!0,ratio:s.width&&s.height?s.width/s.height:o.ratio??1,replaceColor:r,source:s.src}).ratio||(t.ratio=1);let i=s.fill??e.shapeFill,a=s.close??e.shapeClose;e.image=t,e.shapeFill=i,e.shapeClose=a})()}}class t${constructor(){this.src="",this.gif=!1}load(t){(0,h.kZJ)(t)||(void 0!==t.gif&&(this.gif=t.gif),void 0!==t.height&&(this.height=t.height),void 0!==t.name&&(this.name=t.name),void 0!==t.replaceColor&&(this.replaceColor=t.replaceColor),void 0!==t.src&&(this.src=t.src),void 0===t.width||(this.width=t.width))}}class tH{constructor(t){this.id="imagePreloader",this._engine=t}async getPlugin(){return await Promise.resolve(),{}}loadOptions(t,e){if(!e?.preload)return;t.preload||(t.preload=[]);let i=t.preload;for(let t of e.preload){let e=i.find(e=>e.name===t.name||e.src===t.src);if(e)e.load(t);else{let e=new t$;e.load(t),i.push(e)}}}needsPlugin(){return!0}}async function tN(t,e=!0){t.checkVersion("3.8.1"),t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw Error(`${h.dIx} no image source provided`);if(t.images||(t.images=[]),!t.images.find(t=>t.name===e.name||t.source===e.src))try{let i;let s={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-3),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(s),i=e.gif?tW:e.replaceColor?tO:tz,await i(s)}catch{throw Error(`${h.dIx} ${e.name??e.src} not found`)}});let i=new tH(t);await t.addPlugin(i,e),await t.addShape(new tq(t),e)}class tY extends h.PVU{constructor(){super(),this.sync=!1}load(t){(0,h.kZJ)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class tX extends h.PVU{constructor(){super(),this.sync=!1}load(t){(0,h.kZJ)(t)||(super.load(t),void 0===t.sync||(this.sync=t.sync))}}class tK{constructor(){this.count=0,this.delay=new tY,this.duration=new tX}load(t){(0,h.kZJ)(t)||(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class tZ{constructor(t){this.container=t}init(t){let e=this.container,i=t.options.life;i&&(t.life={delay:e.retina.reduceFactor?(0,h.VGA)(i.delay.value)*(i.delay.sync?1:(0,h.G0i)())/e.retina.reduceFactor*h.XuV:0,delayTime:0,duration:e.retina.reduceFactor?(0,h.VGA)(i.duration.value)*(i.duration.sync?1:(0,h.G0i)())/e.retina.reduceFactor*h.XuV:0,time:0,count:i.count},t.life.duration<=0&&(t.life.duration=-1),t.life.count<=0&&(t.life.count=-1),t.life&&(t.spawning=t.life.delay>0))}isEnabled(t){return!t.destroyed}loadOptions(t,...e){for(let i of(t.life||(t.life=new tK),e))t.life.load(i?.life)}
1update(t,e){this.isEnabled(t)&&t.life&&function(t,e,i){if(!t.life)return;let s=t.life,n=!1;if(t.spawning){if(s.delayTime+=e.value,!(s.delayTime>=t.life.delay))return;n=!0,t.spawning=!1,s.delayTime=0,s.time=0}if(-1===s.duration||t.spawning||(n?s.time=0:s.time+=e.value,s.time<s.duration))return;if(s.time=0,t.life.count>0&&t.life.count--,0===t.life.count){t.destroy();return}let o=(0,h.DT4)(0,i.width),r=(0,h.DT4)(0,i.width);t.position.x=(0,h.U43)(o),t.position.y=(0,h.U43)(r),t.spawning=!0,s.delayTime=0,s.time=0,t.reset();let a=t.options.life;a&&(s.delay=(0,h.VGA)(a.delay.value)*h.XuV,s.duration=(0,h.VGA)(a.duration.value)*h.XuV)}(t,e,this.container.canvas.size)}}async function tJ(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("life",async t=>Promise.resolve(new tZ(t)),e)}class tQ{constructor(){this.validTypes=["line"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.shapeData;e.moveTo(-s,0),e.lineTo(s,0),e.lineCap=n?.cap??"butt"}(t)}getSidesCount(){return 1}}async function t0(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new tQ,e)}class t1{init(){}isEnabled(t){return!(0,h.B90)()&&!t.destroyed&&t.container.actualOptions.interactivity.events.onHover.parallax.enable}move(t){let e=t.container,i=e.actualOptions.interactivity.events.onHover.parallax;if((0,h.B90)()||!i.enable)return;let s=i.force,n=e.interactivity.mouse.position;if(!n)return;let o=e.canvas.size,r={x:.5*o.width,y:.5*o.height},a=i.smooth,l=t.getRadius()/s,c={x:(n.x-r.x)*l,y:(n.y-r.y)*l},{offset:u}=t;u.x+=(c.x-u.x)/a,u.y+=(c.y-u.y)/a}}async function t2(t,e=!0){t.checkVersion("3.8.1"),await t.addMover("parallax",()=>Promise.resolve(new t1),e)}class t3 extends h.U4p{constructor(t){super(t)}clear(){}init(){}interact(t){let e=this.container;void 0===t.attractDistance&&(t.attractDistance=(0,h.VGA)(t.options.move.attract.distance)*e.retina.pixelRatio);let i=t.attractDistance,s=t.getPosition();for(let n of e.particles.quadTree.queryCircle(s,i)){if(t===n||!n.options.move.attract.enable||n.destroyed||n.spawning)continue;let e=n.getPosition(),{dx:i,dy:o}=(0,h.vrU)(s,e),r=t.options.move.attract.rotate,a=i/(1e3*r.x),l=o/(1e3*r.y),c=n.size.value/t.size.value,u=1/c;t.velocity.x-=a*c,t.velocity.y-=l*c,n.velocity.x+=a*u,n.velocity.y+=l*u}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function t5(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("particlesAttract",t=>Promise.resolve(new t3(t)),e)}function t4(t,e,i,s,n,o){let r=(0,h.qE8)(t.options.collisions.absorb.speed*n.factor/10,0,s);t.size.value+=.5*r,i.size.value-=r,s<=o&&(i.size.value=0,i.destroy())}let t9=t=>{void 0===t.collisionMaxSpeed&&(t.collisionMaxSpeed=(0,h.VGA)(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function t6(t,e){(0,h.pEn)((0,h.Tgl)(t),(0,h.Tgl)(e)),t9(t),t9(e)}class t8 extends h.U4p{constructor(t){super(t)}clear(){}init(){}interact(t,e){if(t.destroyed||t.spawning)return;let i=this.container,s=t.getPosition(),n=t.getRadius();for(let o of i.particles.quadTree.queryCircle(s,2*n)){if(t===o||!o.options.collisions.enable||t.options.collisions.mode!==o.options.collisions.mode||o.destroyed||o.spawning)continue;let r=o.getPosition(),a=o.getRadius();!(Math.abs(Math.round(s.z)-Math.round(r.z))>n+a)&&((0,h.YfF)(s,r)>n+a||function(t,e,i,s){switch(t.options.collisions.mode){case h._or.absorb:!function(t,e,i,s){let n=t.getRadius(),o=e.getRadius();void 0===n&&void 0!==o?t.destroy():void 0!==n&&void 0===o?e.destroy():void 0!==n&&void 0!==o&&(n>=o?t4(t,n,e,o,i,s):t4(e,o,t,n,i,s))}(t,e,i,s);break;case h._or.bounce:t6(t,e);break;case h._or.destroy:t.unbreakable||e.unbreakable||t6(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e:t).destroy()}}(t,o,e,i.retina.pixelRatio))}}isEnabled(t){return t.options.collisions.enable}reset(){}}async function t7(t,e=!0){t.checkVersion("3.8.1"),await t.addInteractor("particlesCollisions",t=>Promise.resolve(new t8(t)),e)}class et extends h.jlt{constructor(t,e,i,s){super(t,e,i),this.canvasSize=s,this.canvasSize={...s}}contains(t){let{width:e,height:i}=this.canvasSize,{x:s,y:n}=t;return super.contains(t)||super.contains({x:s-e,y:n})||super.contains({x:s-e,y:n-i})||super.contains({x:s,y:n-i})}intersects(t){if(super.intersects(t))return!0;let e={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==t.radius){let i=new h.jlt(e.x,e.y,2*t.radius);return super.intersects(i)}if(void 0!==t.size){let i=new h.M_G(e.x,e.y,2*t.size.width,2*t.size.height);return super.intersects(i)}return!1}}class ee{constructor(){this.blur=5,this.color=new h.Oit,this.color.value="#000",this.enable=!1}load(t){(0,h.kZJ)(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=h.Oit.create(this.color,t.color),void 0===t.enable||(this.enable=t.enable))}}class ei{constructor(){this.enable=!1,this.frequency=1}load(t){(0,h.kZJ)(t)||(void 0!==t.color&&(this.color=h.Oit.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0===t.opacity||(this.opacity=t.opacity))}}class es{constructor(){this.blink=!1,this.color=new h.Oit,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new ee,this.triangles=new ei,this.width=1,this.warp=!1}load(t){(0,h.kZJ)(t)||(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=h.Oit.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0===t.warp||(this.warp=t.warp))}}let en={x:0,y:0};class eo extends h.U4p{constructor(t,e){super(t),this._setColor=t=>{if(!t.options.links)return;let e=this._linkContainer,i=t.options.links,s=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(s)return;let n=i.color;s=(0,h.PGG)(this._engine,n,i.blink,i.consent),void 0===i.id?e.particles.linksColor=s:e.particles.linksColors.set(i.id,s)},this._linkContainer=t,this._engine=e}clear(){}init(){this._linkContainer.particles.linksColor=void 0,this._linkContainer.particles.linksColors=new Map}interact(t){let e;if(!t.options.links)return;t.links=[];let i=t.getPosition(),s=this.container,n=s.canvas.size;if(i.x<en.x||i.y<en.y||i.x>n.width||i.y>n.height)return;let o=t.options.links,r=o.opacity,a=t.retina.linksDistance??0,l=o.warp;for(let c of(e=l?new et(i.x,i.y,a,n):new h.jlt(i.x,i.y,a),s.particles.quadTree.query(e))){let e=c.options.links;
1if(t===c||!e?.enable||o.id!==e.id||c.spawning||c.destroyed||!c.links||t.links.some(t=>t.destination===c)||c.links.some(e=>e.destination===t))continue;let s=c.getPosition();if(s.x<en.x||s.y<en.y||s.x>n.width||s.y>n.height)continue;let u=function(t,e,i,s,n){let{dx:o,dy:r,distance:a}=(0,h.vrU)(t,e);if(!n||a<=i)return a;let l={x:Math.abs(o),y:Math.abs(r)},c={x:Math.min(l.x,s.width-l.x),y:Math.min(l.y,s.height-l.y)};return Math.sqrt(c.x**2+c.y**2)}(i,s,a,n,l&&e.warp);if(u>a)continue;let d=(1-u/a)*r;this._setColor(t),t.links.push({destination:c,opacity:d})}}isEnabled(t){return!!t.options.links?.enable}loadParticlesOptions(t,...e){for(let i of(t.links||(t.links=new es),e))t.links.load(i?.links)}reset(){}}async function er(t,e=!0){await t.addInteractor("particlesLinks",async e=>Promise.resolve(new eo(e,t)),e)}function ea(t,e){var i;let s=((i=t.map(t=>t.id)).sort((t,e)=>t-e),i.join("_")),n=e.get(s);return void 0===n&&(n=(0,h.G0i)(),e.set(s,n)),n}class el{constructor(t,e){this._drawLinkLine=(t,e)=>{let i=t.options.links;if(!i?.enable)return;let s=this._container,n=s.actualOptions,o=e.destination,r=t.getPosition(),a=o.getPosition(),l=e.opacity;s.canvas.draw(e=>{let c;let u=t.options.twinkle?.lines;if(u?.enable){let t=u.frequency,e=(0,h.BN0)(this._engine,u.color);(0,h.G0i)()<t&&e&&(c=e,l=(0,h.VGA)(u.opacity))}if(!c){let e=void 0!==i.id?s.particles.linksColors.get(i.id):s.particles.linksColor;c=(0,h._hh)(t,o,e)}if(!c)return;let d=t.retina.linksWidth??0,p=t.retina.linksDistance??0,{backgroundMask:f}=n;!function(t){let e=!1,{begin:i,end:s,engine:n,maxDistance:o,context:r,canvasSize:a,width:l,backgroundMask:c,colorLine:u,opacity:d,links:p}=t;if((0,h.YfF)(i,s)<=o)(0,h.V6E)(r,i,s),e=!0;else if(p.warp){let t,n;let l={x:s.x-a.width,y:s.y},c=(0,h.vrU)(i,l);if(c.distance<=o){let e=i.y-c.dy/c.dx*i.x;t={x:0,y:e},n={x:a.width,y:e}}else{let e={x:s.x,y:s.y-a.height},r=(0,h.vrU)(i,e);if(r.distance<=o){let e=-(i.y-r.dy/r.dx*i.x)/(r.dy/r.dx);t={x:e,y:0},n={x:e,y:a.height}}else{let e={x:s.x-a.width,y:s.y-a.height},r=(0,h.vrU)(i,e);if(r.distance<=o){let e=i.y-r.dy/r.dx*i.x;n={x:(t={x:-e/(r.dy/r.dx),y:e}).x+a.width,y:t.y+a.height}}}}t&&n&&((0,h.V6E)(r,i,t),(0,h.V6E)(r,s,n),e=!0)}if(!e)return;r.lineWidth=l,c.enable&&(r.globalCompositeOperation=c.composite),r.strokeStyle=(0,h.xxz)(u,d);let{shadow:f}=p;if(f.enable){let t=(0,h.BN0)(n,f.color);t&&(r.shadowBlur=f.blur,r.shadowColor=(0,h.xxz)(t))}r.stroke()}({context:e,width:d,begin:r,end:a,engine:this._engine,maxDistance:p,canvasSize:s.canvas.size,links:i,backgroundMask:f,colorLine:c,opacity:l})})},this._drawLinkTriangle=(t,e,i)=>{let s=t.options.links;if(!s?.enable)return;let n=s.triangles;if(!n.enable)return;let o=this._container,r=o.actualOptions,a=e.destination,l=i.destination,c=n.opacity??(e.opacity+i.opacity)*.5;c<=0||o.canvas.draw(e=>{let i=t.getPosition(),u=a.getPosition(),d=l.getPosition(),p=t.retina.linksDistance??0;if((0,h.YfF)(i,u)>p||(0,h.YfF)(d,u)>p||(0,h.YfF)(d,i)>p)return;let f=(0,h.BN0)(this._engine,n.color);if(!f){let e=void 0!==s.id?o.particles.linksColors.get(s.id):o.particles.linksColor;f=(0,h._hh)(t,a,e)}f&&function(t){let{context:e,pos1:i,pos2:s,pos3:n,backgroundMask:o,colorTriangle:r,opacityTriangle:a}=t;e.beginPath(),e.moveTo(i.x,i.y),e.lineTo(s.x,s.y),e.lineTo(n.x,n.y),e.closePath(),o.enable&&(e.globalCompositeOperation=o.composite),e.fillStyle=(0,h.xxz)(r,a),e.fill()}({context:e,pos1:i,pos2:u,pos3:d,backgroundMask:r.backgroundMask,colorTriangle:f,opacityTriangle:c})})},this._drawTriangles=(t,e,i,s)=>{let n=i.destination;if(!(t.links?.triangles.enable&&n.options.links?.triangles.enable))return;let o=n.links?.filter(t=>{let e=this._getLinkFrequency(n,t.destination);return n.options.links&&e<=n.options.links.frequency&&s.findIndex(e=>e.destination===t.destination)>=0});if(o?.length)for(let s of o){let o=s.destination;this._getTriangleFrequency(e,n,o)>t.links.triangles.frequency||this._drawLinkTriangle(e,i,s)}},this._getLinkFrequency=(t,e)=>ea([t,e],this._freqs.links),this._getTriangleFrequency=(t,e,i)=>ea([t,e,i],this._freqs.triangles),this._container=t,this._engine=e,this._freqs={links:new Map,triangles:new Map}}
1drawParticle(t,e){let{links:i,options:s}=e;if(!i?.length)return;let n=i.filter(t=>s.links&&(s.links.frequency>=1||this._getLinkFrequency(e,t.destination)<=s.links.frequency));for(let t of n)this._drawTriangles(s,e,t,n),t.opacity>0&&(e.retina.linksWidth??0)>0&&this._drawLinkLine(e,t)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(t){if(t.links=[],!t.options.links)return;let e=this._container.retina.pixelRatio,{retina:i}=t,{distance:s,width:n}=t.options.links;i.linksDistance=s*e,i.linksWidth=n*e}particleDestroyed(t){t.links=[]}}class eh{constructor(t){this.id="links",this._engine=t}getPlugin(t){return Promise.resolve(new el(t,this._engine))}loadOptions(){}needsPlugin(){return!0}}async function ec(t,e=!0){let i=new eh(t);await t.addPlugin(i,e)}async function eu(t,e=!0){t.checkVersion("3.8.1"),await er(t,e),await ec(t,e)}let ed={x:0,y:0};class ep{draw(t){let{particle:e,radius:i}=t;!function(t,e,i){let{context:s}=t,n=i.count.numerator*i.count.denominator,o=i.count.numerator/i.count.denominator,r=Math.PI-(0,h.puj)(180*(o-2)/o);if(s){s.beginPath(),s.translate(e.x,e.y),s.moveTo(ed.x,ed.y);for(let t=0;t<n;t++)s.lineTo(i.length,ed.y),s.translate(i.length,ed.y),s.rotate(r)}}(t,this.getCenter(e,i),this.getSidesData(e,i))}getSidesCount(t){let e=t.shapeData;return Math.round((0,h.VGA)(e?.sides??5))}}class ef extends ep{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(t,e){return{x:-e/(t.sides/3.5),y:-e/.76}}getSidesData(t,e){let i=t.sides;return{count:{denominator:1,numerator:i},length:2.66*e/(i/3)}}}class em extends ep{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(t,e){return{x:-e,y:e/1.66}}getSidesCount(){return 3}getSidesData(t,e){return{count:{denominator:2,numerator:3},length:2*e}}}async function ev(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new ef,e)}async function eg(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new em,e)}async function ey(t,e=!0){t.checkVersion("3.8.1"),await ev(t,e),await eg(t,e)}class eb{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){(0,h.kZJ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,h.DT4)(t.speed)),void 0!==t.decay&&(this.decay=(0,h.DT4)(t.decay)),void 0===t.sync||(this.sync=t.sync))}}class ew extends h.PVU{constructor(){super(),this.animation=new eb,this.direction=h.pTR.clockwise,this.path=!1,this.value=0}load(t){(0,h.kZJ)(t)||(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0===t.path||(this.path=t.path))}}let ex=2*Math.PI;class ek{constructor(t){this.container=t}init(t){let e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,h.puj)((0,h.VGA)(e.value)),min:0,max:ex},t.pathRotation=e.path;let i=e.direction;switch(i===h.pTR.random&&(i=Math.floor(2*(0,h.G0i)())>0?h.pTR.counterClockwise:h.pTR.clockwise),i){case h.pTR.counterClockwise:case"counterClockwise":t.rotate.status=h.H_P.decreasing;break;case h.pTR.clockwise:t.rotate.status=h.H_P.increasing}let s=e.animation;s.enable&&(t.rotate.decay=1-(0,h.VGA)(s.decay),t.rotate.velocity=(0,h.VGA)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,h.G0i)())),t.rotation=t.rotate.value}isEnabled(t){let e=t.options.rotate;return!!e&&!t.destroyed&&!t.spawning&&(!!e.value||e.animation.enable||e.path)}loadOptions(t,...e){for(let i of(t.rotate||(t.rotate=new ew),e))t.rotate.load(i?.rotate)}update(t,e){this.isEnabled(t)&&(t.isRotating=!!t.rotate,t.rotate&&((0,h.UC0)(t,t.rotate,!1,h.VKE.none,e),t.rotation=t.rotate.value))}}async function eP(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("rotate",t=>Promise.resolve(new ek(t)),e)}let e_=Math.sqrt(2);class eT{constructor(){this.validTypes=["edge","square"]}draw(t){!function(t){let{context:e,radius:i}=t,s=i/e_,n=2*s;e.rect(-s,-s,n,n)}(t)}getSidesCount(){return 4}}async function eS(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new eT,e)}let eM={x:0,y:0};class eC{constructor(){this.validTypes=["star"]}draw(t){!function(t){let{context:e,particle:i,radius:s}=t,n=i.sides,o=i.starInset??2;e.moveTo(eM.x,eM.y-s);for(let t=0;t<n;t++)e.rotate(Math.PI/n),e.lineTo(eM.x,eM.y-s*o),e.rotate(Math.PI/n),e.lineTo(eM.x,eM.y-s)}(t)}getSidesCount(t){let e=t.shapeData;return Math.round((0,h.VGA)(e?.sides??5))}particleInit(t,e){let i=e.shapeData;e.starInset=(0,h.VGA)(i?.inset??2)}}async function eE(t,e=!0){t.checkVersion("3.8.1"),await t.addShape(new eC,e)}class eA{constructor(t,e){this._container=t,this._engine=e}init(t){let e=this._container,i=t.options,s=(0,h.TA3)(i.stroke,t.id,i.reduceDuplicates);t.strokeWidth=(0,h.VGA)(s.width)*e.retina.pixelRatio,t.strokeOpacity=(0,h.VGA)(s.opacity??1),t.strokeAnimation=s.color?.animation;let n=(0,h.R5R)(this._engine,s.color)??t.getFillColor();n&&(t.strokeColor=(0,h.pzy)(n,t.strokeAnimation,e.retina.reduceFactor))}isEnabled(t){let e=t.strokeAnimation,{strokeColor:i}=t;return!t.destroyed&&!t.spawning&&!!e&&(i?.h.value!==void 0&&i.h.enable||i?.s.value!==void 0&&i.s.enable||i?.l.value!==void 0&&i.l.enable)}update(t,e){this.isEnabled(t)&&(0,h.JvX)(t.strokeColor,e)}}async function eR(t,e=!0){t.checkVersion("3.8.1"),await t.addParticleUpdater("strokeColor",e=>Promise.resolve(new eA(e,t)),e)}async function eD(t,e=!0){t.checkVersion("3.8.1"),await t2(t,!1),await N(t,!1),await Q(t,!1),await tr(t,!1),await tc(t,!1),await tf(t,!1),await tv(t,!1),await tb(t,!1),await tk(t,!1),await tC(t,!1),await tR(t,!1),await t5(t,!1),await t7(t,!1),await eu(t,!1),await B(t,!1),await G(t,!1),await tN(t,!1),await t0(t,!1),await ey(t,!1),await eS(t,!1),await eE(t,!1),await tJ(t,!1),await eP(t,!1),await eR(t,!1),await F(t,e)}},31027:(t,e,i)=>{i.d(e,{F:()=>r});var s=i(43463);let n=t=>"boolean"==typeof t?`${t}`:0===t?"0":t,o=s.$,r=(t,e)=>i=>{var s;if((null==e?void 0:e.variants)==null)return o(t,null==i?void 0:i.class,null==i?void 0:i.className);let{variants:r,defaultVariants:a}=e,l=Object.keys(r).map(t=>{let e=null==i?void 0:i[t],s=null==a?void 0:a[t];if(null===e)return null;let o=n(e)||n(s);return r[t][o]}),h=i&&Object.entries(i).reduce((t,e)=>{let[i,s]=e;return void 0===s||(t[i]=s),t},{});return o(t,l,null==e?void 0:null===(s=e.compoundVariants)||void 0===s?void 0:s.reduce((t,e)=>{let{class:i,className:s,...n}=e;return Object.entries(n).every(t=>{let[e,i]=t;return Array.isArray(i)?i.includes({...a,...h}[e]):({...a,...h})[e]===i})?[...t,i,s]:t},[]),null==i?void 0:i.class,null==i?void 0:i.className)}},39445:(t,e,i)=>{i.d(e,{s:()=>c});var s=i(39426),n=i(86678),o=i(90822);
1function r(t,e){[...e].reverse().forEach(i=>{let s=t.getVariant(i);s&&(0,n.U)(t,s),t.variantChildren&&t.variantChildren.forEach(t=>{r(t,e)})})}function a(){let t=!1,e=new Set,i={subscribe:t=>(e.add(t),()=>void e.delete(t)),start(i,n){(0,s.V)(t,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let r=[];return e.forEach(t=>{r.push((0,o._)(t,i,{transitionOverride:n}))}),Promise.all(r)},set:i=>((0,s.V)(t,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),e.forEach(t=>{Array.isArray(i)?r(t,i):"string"==typeof i?r(t,[i]):(0,n.U)(t,i)})),stop(){e.forEach(t=>{!function(t){t.values.forEach(t=>t.stop())}(t)})},mount:()=>(t=!0,()=>{t=!1,i.stop()})};return i}var l=i(72321),h=i(17530);let c=function(){let t=(0,l.M)(a);return(0,h.E)(t.mount,[]),t}},30343:(t,e,i)=>{i.d(e,{f:()=>tx});var s=i(25995),n=i(86498);let o={type:"spring",stiffness:500,damping:25,restSpeed:10},r=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),a={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h=(t,{keyframes:e})=>e.length>2?a:n.f.has(t)?t.startsWith("scale")?r(e[1]):o:l;var c=i(38282),u=i(93976);let d={current:!1},p=t=>null!==t;function f(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(p),o=e&&"loop"!==i&&e%2==1?0:n.length-1;return o&&void 0!==s?s:n[o]}var m=i(58206),v=i(99903);let g=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function y(t,e,i,s){if(t===e&&i===s)return v.l;let n=e=>(function(t,e,i,s,n){let o,r;let a=0;do(o=g(r=e+(i-e)/2,s,n)-t)>0?i=r:e=r;while(Math.abs(o)>1e-7&&++a<12);return r})(e,0,1,t,i);return t=>0===t||1===t?t:g(n(t),e,s)}var b=i(52331),w=i(42254);let x=y(.33,1.53,.69,.99),k=(0,w.G)(x),P=(0,b.V)(k),_=t=>(t*=2)<1?.5*k(t):.5*(2-Math.pow(2,-10*(t-1)));var T=i(73702),S=i(3639);function M(t){return"function"==typeof t}var C=i(50672),E=i(12471),A=i(39426),R=i(11127);let D=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(R.f.test(t)||"0"===t)&&!t.startsWith("url("));class z{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:o="loop",...r}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=C.k.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:o,...r},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,E.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=C.k.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:n,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],r=D(n,e),a=D(o,e);return(0,A.$)(r===a,`You are trying to animate ${e} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!!r&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||M(i))&&s)}(t,i,s,n)){if(d.current||!o){null==a||a(f(t,this.options,e)),null==r||r(),this.resolveFinishedPromise();return}this.options.duration=0}let h=this.initPlayback(t,e);!1!==h&&(this._resolved={keyframes:t,finalKeyframe:e,...h},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}var O=i(3078);let V=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=t((0,O.q)(0,n-1,e))+", ";return`linear(${s.substring(0,s.length-2)})`};var I=i(39575);function L(t,e,i){let s=Math.max(e-5,0);return(0,I.f)(i-t(s),e-s)}var F=i(15178);let B={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function j(t,e){return t*Math.sqrt(1-e*e)}function U(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let G=["duration","bounce"],W=["stiffness","damping","mass"];function q(t,e){return e.some(e=>void 0!==t[e])}
1function $(t=B.visualDuration,e=B.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:o,restDelta:r}=n,a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],h={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=function(t){let e={velocity:B.velocity,stiffness:B.stiffness,damping:B.damping,mass:B.mass,isResolvedFromDuration:!1,...t};if(!q(t,W)&&q(t,G)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,F.q)(.05,1,1-t.bounce)*Math.sqrt(s);e={...e,mass:B.mass,stiffness:s,damping:n}}else{let i=function({duration:t=B.duration,bounce:e=B.bounce,velocity:i=B.velocity,mass:n=B.mass}){let o,r;(0,A.$)(t<=(0,s.f)(B.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=(0,F.q)(B.minDamping,B.maxDamping,a),t=(0,F.q)(B.minDuration,B.maxDuration,(0,s.X)(t)),a<1?(o=e=>{let s=e*a,n=s*t;return .001-(s-i)/j(e,a)*Math.exp(-n)},r=e=>{let s=e*a*t,n=Math.pow(a,2)*Math.pow(e,2)*t,r=Math.exp(-s),l=j(Math.pow(e,2),a);return(s*i+i-n)*r*(-o(e)+.001>0?-1:1)/l}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(o,r,5/t);if(t=(0,s.f)(t),isNaN(l))return{stiffness:B.stiffness,damping:B.damping,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:B.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-(0,s.X)(n.velocity||0)}),v=f||0,g=u/(2*Math.sqrt(c*d)),y=l-a,b=(0,s.X)(Math.sqrt(c/d)),w=5>Math.abs(y);if(o||(o=w?B.restSpeed.granular:B.restSpeed.default),r||(r=w?B.restDelta.granular:B.restDelta.default),g<1){let t=j(b,g);i=e=>l-Math.exp(-g*b*e)*((v+g*b*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>l-Math.exp(-b*t)*(y+(v+b*y)*t);else{let t=b*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*b*e),s=Math.min(t*e,300);return l-i*((v+g*b*y)*Math.sinh(s)+t*y*Math.cosh(s))/t}}let x={calculatedDuration:m&&p||null,next:t=>{let e=i(t);if(m)h.done=t>=p;else{let n=0;g<1&&(n=0===t?(0,s.f)(v):L(i,t,e));let a=Math.abs(n)<=o,c=Math.abs(l-e)<=r;h.done=a&&c}return h.value=h.done?l:e,h},toString:()=>{let t=Math.min(U(x),2e4),e=V(e=>x.next(t*e).value,t,30);return t+"ms "+e}};return x}function H({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:h=.5,restSpeed:c}){let u,d;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,b=void 0===r?y:r(y);b!==y&&(g=b-p);let w=t=>-g*Math.exp(-t/s),x=t=>b+w(t),k=t=>{let e=w(t),i=x(t);f.done=Math.abs(e)<=h,f.value=f.done?b:i},P=t=>{m(f.value)&&(u=t,d=$({keyframes:[f.value,v(f.value)],velocity:L(x,t,f.value),damping:n,stiffness:o,restDelta:h,restSpeed:c}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==u||(e=!0,k(t),P(t)),void 0!==u&&t>=u)?d.next(t-u):(e||k(t),f)}}}let N=y(.42,0,1,1),Y=y(0,0,.58,1),X=y(.42,0,.58,1),K=t=>Array.isArray(t)&&"number"!=typeof t[0],Z=t=>Array.isArray(t)&&"number"==typeof t[0],J={linear:v.l,easeIn:N,easeInOut:X,easeOut:Y,circIn:T.po,circInOut:T.tn,circOut:T.yT,backIn:k,backInOut:P,backOut:x,anticipate:_},Q=t=>{if(Z(t)){(0,A.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,n]=t;return y(e,i,s,n)}return"string"==typeof t?((0,A.V)(void 0!==J[t],`Invalid easing type '${t}'`),J[t]):t};var tt=i(6578),te=i(27539);function ti({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){let n=K(s)?s.map(Q):Q(s),o={done:!1,value:e[0]},r=(i&&i.length===e.length?i:(0,te.Z)(e)).map(e=>e*t),a=(0,tt.G)(r,e,{ease:Array.isArray(n)?n:e.map(()=>n||X).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}var ts=i(36515),tn=i(3423);let to=t=>{let e=({timestamp:e})=>t(e);return{start:()=>m.Gt.update(e,!0),stop:()=>(0,m.WG)(e),now:()=>m.uv.isProcessing?m.uv.timestamp:C.k.now()}},tr={decay:H,inertia:H,tween:ti,keyframes:ti,spring:$},ta=t=>t/100;class tl extends z{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=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:s,keyframes:n}=this.options,o=(null==s?void 0:s.KeyframeResolver)||E.h;this.resolver=new o(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i;let{type:s="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:a=0}=this.options,l=M(s)?s:tr[s]||ti;l!==ti&&"number"!=typeof t[0]&&(e=(0,ts.F)(ta,(0,tn.j)(t[0],t[1])),t=[0,100]);let h=l({...this.options,keyframes:t});"mirror"===r&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=U(h));let{calculatedDuration:c}=h,u=c+o;return{generator:h,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:u,totalDuration:u*(n+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:n,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:h,resolvedDuration:c}=i;if(null===this.startTime)return n.next(0);let{delay:u,repeat:d,repeatType:p,repeatDelay:m,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-u*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>h;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=h);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,h)/c,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/c)):"mirror"===p&&(w=o)),b=(0,F.q)(0,1,i)*c}let x=y?{done:!1,value:a[0]}:w.next(b);r&&(x.value=r(x.value));let{done:k}=x;y||null===l||(k=this.speed>=0?this.currentTime>=h:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return P&&void 0!==s&&(x.value=f(a,this.options,s)),v&&v(x.value),P&&this.finish(),x}get duration(){let{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=to,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&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=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let th=new Set(["opacity","clipPath","filter","transform"]);var tc=i(57937);let tu={linearEasing:void 0},td=function(t,e){let i=(0,tc.p)(t);return()=>{var t;return null!==(t=tu[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),tp=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,tf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tp([0,.65,.55,1]),circOut:tp([.55,0,1,.45]),backIn:tp([.31,.01,.66,-.59]),backOut:tp([.33,1.53,.69,.99])};function tm(t,e){t.timeline=e,t.onfinish=null}let tv=(0,tc.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),tg={anticipate:_,backInOut:P,circInOut:T.tn};class ty extends z{constructor(t){super(t);let{name:e,motionValue:i,element:s,keyframes:n}=this.options;this.resolver=new S.K(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i,s;let{duration:n=300,times:o,ease:r,type:a,motionValue:l,name:h,startTime:c}=this.options;if(!(null===(i=l.owner)||void 0===i?void 0:i.current))return!1;if("string"==typeof r&&td()&&r in tg&&(r=tg[r]),M((s=this.options).type)||"spring"===s.type||!function t(e){return!!("function"==typeof e&&td()||!e||"string"==typeof e&&(e in tf||td())||Z(e)||Array.isArray(e)&&e.every(t))}(s.ease)){let{onComplete:e,onUpdate:i,motionValue:s,element:l,...h}=this.options,c=function(t,e){let i=new tl({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},n=[],o=0;for(;!s.done&&o<2e4;)n.push((s=i.sample(o)).value),o+=10;return{times:void 0,keyframes:n,duration:o-10,ease:"linear"}}(t,h);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,o=c.times,r=c.ease,a="keyframes"}let u=function(t,e,i,{delay:s=0,duration:n=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e&&td()?V(e,i):Z(e)?tp(e):Array.isArray(e)?e.map(e=>t(e,i)||tf.easeOut):tf[e]}(a,n);return Array.isArray(c)&&(h.easing=c),t.animate(h,{delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(l.owner.current,h,t,{...this.options,duration:n,times:o,ease:r});return u.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(tm(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:i}=this.options;l.set(f(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:o,type:a,ease:r,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,s.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,s.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v.l;let{animation:i}=e;tm(i,t)}else this.pendingTimeline=t;return v.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:o,ease:r,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:l,element:h,...c}=this.options,u=new tl({...c,keyframes:i,duration:n,type:o,ease:r,times:a,isGenerator:!0}),d=(0,s.f)(this.time);t.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:o,type:r}=t;return tv()&&i&&th.has(i)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
1date&&!s&&"mirror"!==n&&0!==o&&"inertia"!==r}}var tb=i(75487);class tw{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>(0,tb.J)()&&i.attachTimeline?i.attachTimeline(t):e(i));return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].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 e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let tx=(t,e,i,n={},o,r)=>a=>{let l=(0,c.r)(n,t)||{},p=l.delay||n.delay||0,{elapsed:v=0}=n;v-=(0,s.f)(p);let g={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-v,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:o};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:h,...c}){return!!Object.keys(c).length}(l)&&(g={...g,...h(t,g)}),g.duration&&(g.duration=(0,s.f)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,s.f)(g.repeatDelay)),void 0!==g.from&&(g.keyframes[0]=g.from);let y=!1;if(!1!==g.type&&(0!==g.duration||g.repeatDelay)||(g.duration=0,0!==g.delay||(y=!0)),(d.current||u.W.skipAnimations)&&(y=!0,g.duration=0,g.delay=0),y&&!r&&void 0!==e.get()){let t=f(g.keyframes,l);if(void 0!==t)return m.Gt.update(()=>{g.onUpdate(t),g.onComplete()}),new tw([])}return!r&&ty.supports(g)?new ty(g):new tl(g)}},90822:(t,e,i)=>{i.d(e,{_:()=>f});var s=i(51447),n=i(86498),o=i(30343),r=i(86678),a=i(38282),l=i(64370),h=i(43929),c=i(58206);function u(t,e,{delay:i=0,transitionOverride:s,type:d}={}){var p;let{transition:f=t.getDefaultTransition(),transitionEnd:m,...v}=e;s&&(f=s);let g=[],y=d&&t.animationState&&t.animationState.getState()[d];for(let e in v){let s=t.getValue(e,null!==(p=t.latestValues[e])&&void 0!==p?p:null),r=v[e];if(void 0===r||y&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(y,e))continue;let u={delay:i,...(0,a.r)(f||{},e)},d=!1;if(window.MotionHandoffAnimation){let i=(0,l.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,c.Gt);null!==t&&(u.startTime=t,d=!0)}}(0,h.g)(t,e),s.start((0,o.f)(e,s,r,t.shouldReduceMotion&&n.f.has(e)?{type:!1}:u,t,d));let m=s.animation;m&&g.push(m)}return m&&Promise.all(g).then(()=>{c.Gt.update(()=>{m&&(0,r.U)(t,m)})}),g}function d(t,e,i={}){var n;let o=(0,s.K)(t,e,"exit"===i.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=o||{};i.transitionOverride&&(r=i.transitionOverride);let a=o?()=>Promise.all(u(t,o,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,s=0,n=1,o){let r=[],a=(t.variantChildren.size-1)*s,l=1===n?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(p).forEach((t,s)=>{t.notify("AnimationStart",e),r.push(d(t,e,{...o,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(r)}(t,e,n+s,o,a,i)}:()=>Promise.resolve(),{when:h}=r;if(!h)return Promise.all([a(),l(i.delay)]);{let[t,e]="beforeChildren"===h?[a,l]:[l,a];return t().then(()=>e())}}function p(t,e){return t.sortNodePosition(e)}function f(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>d(t,e,i)));else if("string"==typeof e)n=d(t,e,i);else{let o="function"==typeof e?(0,s.K)(t,e,i.custom):e;n=Promise.all(u(t,o,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}},80200:(t,e,i)=>{i.d(e,{n:()=>s});let s="data-"+(0,i(4454).I)("framerAppearId")},64370:(t,e,i)=>{i.d(e,{P:()=>n});var s=i(80200);function n(t){return t.props[s.n]}},38282:(t,e,i)=>{i.d(e,{r:()=>s});function s(t,e){return t?t[e]||t.default||t:void 0}},89402:(t,e,i)=>{i.d(e,{p:()=>s});let s=t=>Array.isArray(t)},66494:(t,e,i)=>{i.d(e,{N:()=>g});var s=i(95155),n=i(12115),o=i(98041),r=i(72321),a=i(44712);class l extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i}=t,o=(0,n.useId)(),r=(0,n.useRef)(null),h=(0,n.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,n.useContext)(a.Q);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:s,left:n}=h.current;if(i||!r.current||!t||!e)return;r.current.dataset.motionPopId=o;let a=document.createElement("style");return c&&(a.nonce=c),document.head.appendChild(a),a.sheet&&a.sheet.insertRule('\n [data-motion-pop-id="'.concat(o,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(e,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(n,"px !important;\n }\n ")),()=>{document.head.removeChild(a)}},[i]),(0,s.jsx)(l,{isPresent:i,childRef:r,sizeRef:h,children:n.cloneElement(e,{ref:r})})}let c=t=>{let{children:e,initial:i,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:d,mode:p}=t,f=(0,r.M)(u),m=(0,n.useId)(),v=(0,n.useCallback)(t=>
1{for(let e of(f.set(t,!0),f.values()))if(!e)return;l&&l()},[f,l]),g=(0,n.useMemo)(()=>({id:m,initial:i,isPresent:a,custom:c,onExitComplete:v,register:t=>(f.set(t,!1),()=>f.delete(t))}),d?[Math.random(),v]:[a,v]);return(0,n.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[a]),n.useEffect(()=>{a||f.size||!l||l()},[a]),"popLayout"===p&&(e=(0,s.jsx)(h,{isPresent:a,children:e})),(0,s.jsx)(o.t.Provider,{value:g,children:e})};function u(){return new Map}var d=i(91921),p=i(39426);let f=t=>t.key||"";function m(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}var v=i(17530);let g=t=>{let{children:e,exitBeforeEnter:i,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:h=!0,mode:u="sync"}=t;(0,p.V)(!i,"Replace exitBeforeEnter with mode='wait'");let g=(0,n.useMemo)(()=>m(e),[e]),y=g.map(f),b=(0,n.useRef)(!0),w=(0,n.useRef)(g),x=(0,r.M)(()=>new Map),[k,P]=(0,n.useState)(g),[_,T]=(0,n.useState)(g);(0,v.E)(()=>{b.current=!1,w.current=g;for(let t=0;t<_.length;t++){let e=f(_[t]);y.includes(e)?x.delete(e):!0!==x.get(e)&&x.set(e,!1)}},[_,y.length,y.join("-")]);let S=[];if(g!==k){let t=[...g];for(let e=0;e<_.length;e++){let i=_[e],s=f(i);y.includes(s)||(t.splice(e,0,i),S.push(i))}"wait"===u&&S.length&&(t=S),T(m(t)),P(g);return}let{forceRender:M}=(0,n.useContext)(d.L);return(0,s.jsx)(s.Fragment,{children:_.map(t=>{let e=f(t),i=g===_||y.includes(e);return(0,s.jsx)(c,{isPresent:i,initial:(!b.current||!!a)&&void 0,custom:i?void 0:o,presenceAffectsLayout:h,mode:u,onExitComplete:i?void 0:()=>{if(!x.has(e))return;x.set(e,!0);let t=!0;x.forEach(e=>{e||(t=!1)}),t&&(null==M||M(),T(w.current),l&&l())},children:t},e)})})}},91921:(t,e,i)=>{i.d(e,{L:()=>s});let s=(0,i(12115).createContext)({})},44712:(t,e,i)=>{i.d(e,{Q:()=>s});let s=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},98041:(t,e,i)=>{i.d(e,{t:()=>s});let s=(0,i(12115).createContext)(null)},73702:(t,e,i)=>{i.d(e,{po:()=>o,tn:()=>a,yT:()=>r});var s=i(52331),n=i(42254);let o=t=>1-Math.sin(Math.acos(t)),r=(0,n.G)(o),a=(0,s.V)(o)},52331:(t,e,i)=>{i.d(e,{V:()=>s});let s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},42254:(t,e,i)=>{i.d(e,{G:()=>s});let s=t=>e=>1-t(1-e)},21456:(t,e,i)=>{i.d(e,{I:()=>o});var s=i(93976);let n=["read","resolveKeyframes","update","preRender","render","postRender"];function o(t,e){let i=!1,o=!0,r={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=n.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,n=!1,o=new WeakSet,r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}let l={schedule:(t,n=!1,r=!1)=>{let a=r&&s?e:i;return n&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),o.delete(t)},process:t=>{if(r=t,s){n=!0;return}s=!0,[e,i]=[i,e],i.clear(),e.forEach(a),s=!1,n&&(n=!1,l.process(t))}};return l}(a),t),{}),{read:h,resolveKeyframes:c,update:u,preRender:d,render:p,postRender:f}=l,m=()=>{let n=s.W.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=o?1e3/60:Math.max(Math.min(n-r.timestamp,40),1),r.timestamp=n,r.isProcessing=!0,h.process(r),c.process(r),u.process(r),d.process(r),p.process(r),f.process(r),r.isProcessing=!1,i&&e&&(o=!1,t(m))},v=()=>{i=!0,o=!0,r.isProcessing||t(m)};return{schedule:n.reduce((t,e)=>{let s=l[e];return t[e]=(t,e=!1,n=!1)=>(i||v(),s.schedule(t,e,n)),t},{}),cancel:t=>{for(let e=0;e<n.length;e++)l[n[e]].cancel(t)},state:r,steps:l}}},58206:(t,e,i)=>{i.d(e,{Gt:()=>n,PP:()=>a,WG:()=>o,uv:()=>r});var s=i(99903);let{schedule:n,cancel:o,state:r,steps:a}=(0,i(21456).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},50672:(t,e,i)=>{let s;i.d(e,{k:()=>a});var n=i(93976),o=i(58206);function r(){s=void 0}let a={now:()=>(void 0===s&&a.set(o.uv.isProcessing||n.W.useManualTiming?o.uv.timestamp:performance.now()),s),set:t=>{s=t,queueMicrotask(r)}}},50847:(t,e,i)=>{function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>i8});var n,o,r=i(89402);function a(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}function l(t){return"string"==typeof t||Array.isArray(t)}var h=i(51447);let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],u=["initial",...c];var d=i(90822);let p=u.length,f=[...c].reverse(),m=c.length;function v(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function g(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}class y{constructor(t){this.isMounted=!1,this.node=t}update(){}}class b extends y{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,d._)(t,e,i))),i=g(),n=!0,o=e=>(i,s)=>{var n;let o=(0,h.K)(t,s,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(o){let{transition:t,transitionEnd:e,...s}=o;i={...i,...s,...e}}return i};function c(h){let{props:c}=t,d=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<p;t++){let s=u[t],n=e.props[s];(l(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},v=[],g=new Set,y={},b=1/0;for(let e=0;e<m;e++){var w;let u=f[e],p=i[u],m=void 0!==c[u]?c[u]:d[u],x=l(m),k=u===h?p.isActive:null;!1===k&&(b=e);let P=m===d[u]&&m!==c[u]&&x;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),p.protectedKeys={...y},!p.isActive&&null===k||!m&&!p.prevProp||s(m)||"boolean"==typeof m)continue;let _=(w=p.prevProp,"string"==typeof m?m!==w:!!Array.isArray(m)&&!a(m,w)),T=_||u===h&&p.isActive&&!P&&x||e>b&&x,S=!1,M=Array.isArray(m)?m:[m],C=M.reduce(o(u),{});!1===k&&(C={});let{prevResolvedValues:E={}}=p,A={...E,...C},R=e=>{T=!0,g.has(e)&&(S=!0,g.delete(e)),p.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in A){let e=C[t],i=E[t];if(!y.hasOwnProperty(t))((0,r.p)(e)&&(0,r.p)(i)?a(e,i):e===i)?void 0!==e&&g.has(t)?R(t):p.protectedKeys[t]=!0:null!=e?R(t):g.add(t)}p.prevProp=m,p.prevResolvedValues=C,p.isActive&&(y={...y,...C}),n&&t.blockInitialAnimation&&(T=!1);let D=!(P&&_)||S;T&&D&&v.push(...M.map(t=>({animation:t,options:{type:u}})))}if(g.size){let e={};g.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=s?s:null}),v.push({animation:e})}let x=!!v.length;return n&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(x=!1),n=!1,x?e(v):Promise.resolve()}return{animateChanges:c,setActive:function(e,s){var n;if(i[e].isActive===s)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,s)}),i[e].isActive=s;let o=c(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=g(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();s(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let w=0;class x extends y{constructor(){super(...arguments),this.id=w++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}var k=i(99903),P=i(39426);let _=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function T(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let S=t=>e=>_(e)&&t(e,T(e));var M=i(25995);function C(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function E(t,e,i,s){return C(t,e,S(i),s)}var A=i(36515);let R=(t,e)=>Math.abs(t-e);var D=i(58206);class z{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=I(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(R(t.x,e.x)**2+R(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:s}=t,{timestamp:n}=D.uv;this.history.push({...s,timestamp:n});let{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=O(e,this.transformPagePoint),D.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=I("pointercancel"===t.type?this.lastMoveEventInfo:O(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,o),s&&s(t,o)},!_(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;let o=O(T(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=D.uv;this.history=[{...r,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,I(o,this.history)),this.removeListeners=(0,A.F)(E(this.contextWindow,"pointermove",this.handlePointerMove),E(this.contextWindow,"pointerup",this.handlePointerUp),E(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,D.WG)(this.updatePoint)}}function O(t,e){return e?{point:e(t.point)}:t}function V(t,e){return{x:t.x-e.x,y:t.y-e.y}}function I({point:t},e){return{point:t,delta:V(t,L(e)),offset:V(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=L(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>(0,M.f)(.1)));)i--;if(!s)return{x:0,y:0};let o=(0,M.X)(n.timestamp-s.timestamp);if(0===o)return{x:0,y:0};let r={x:(n.x-s.x)/o,y:(n.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e,0)}}function L(t){return t[t.length-1]}function F(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let B=F("dragHorizontal"),j=F("dragVertical");function U(t){let e=!1;if("y"===t)e=j();else if("x"===t)e=B();else{let t=B(),i=j();t&&i?e=()=>{t(),i()}:(t&&t(),i&&i())}return e}function G(){let t=U(!0);return!t||(t(),!1)}function W(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var q=i(3078),$=i(93233);function H(t){return t.max-t.min}function N(t,e,i,s=.5){t.origin=s,t.originPoint=(0,$.k)(e.min,e.max,t.origin),t.scale=H(i)/H(e),t.translate=(0,$.k)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Y(t,e,i,s){N(t.x,e.x,i.x,s?s.originX:void 0),N(t.y,e.y,i.y,s?s.originY:void 0)}function X(t,e,i){t.min=i.min+e.min,t.max=t.min+H(e)}function K(t,e,i){t.min=e.min-i.min,t.max=t.min+H(e)}
1function Z(t,e,i){K(t.x,e.x,i.x),K(t.y,e.y,i.y)}var J=i(15178);function Q(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tt(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function te(t,e,i){return{min:ti(t,e),max:ti(t,i)}}function ti(t,e){return"number"==typeof t?t:t[e]||0}let ts=()=>({translate:0,scale:1,origin:0,originPoint:0}),tn=()=>({x:ts(),y:ts()}),to=()=>({min:0,max:0}),tr=()=>({x:to(),y:to()});function ta(t){return[t("x"),t("y")]}function tl({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function th(t){return void 0===t||1===t}function tc({scale:t,scaleX:e,scaleY:i}){return!th(t)||!th(e)||!th(i)}function tu(t){return tc(t)||td(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function td(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function tp(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function tf(t,e=0,i=1,s,n){t.min=tp(t.min,e,i,s,n),t.max=tp(t.max,e,i,s,n)}function tm(t,{x:e,y:i}){tf(t.x,e.translate,e.scale,e.originPoint),tf(t.y,i.translate,i.scale,i.originPoint)}function tv(t,e){t.min=t.min+e,t.max=t.max+e}function tg(t,e,i,s,n=.5){let o=(0,$.k)(t.min,t.max,n);tf(t,e,i,o,s)}function ty(t,e){tg(t.x,e.x,e.scaleX,e.scale,e.originX),tg(t.y,e.y,e.scaleY,e.scale,e.originY)}function tb(t,e){return tl(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}var tw=i(62867),tx=i(30343);let tk=({current:t})=>t?t.ownerDocument.defaultView:null;var tP=i(43929);let t_=new WeakMap;class tT{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=tr(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:s}=this.getProps();this.panSession=new z(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(T(t,"page").point)},onStart:(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=U(i),!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),ta(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tw.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=H(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&D.Gt.postRender(()=>n(t,e)),(0,tP.g)(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:o}=this.getProps();if(!i&&!this.openGlobalLock)return;let{offset:r}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(r),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ta(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:tk(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:n}=this.getProps();n&&D.Gt.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tS(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,$.k)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,$.k)(i,t,s.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),n.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&W(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:Q(t.x,i,n),y:Q(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:te(t,"left","right"),y:te(t,"top","bottom")}}(i),n!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ta(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!W(e))return!1;let s=e.current;(0,P.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let o=function(t,e,i){let s=tb(t,i),{scroll:n}=e;return n&&(tv(s.x,n.offset.x),tv(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),r={x:tt((t=n.layout.layoutBox).x,o.x),y:tt(t.y,o.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=tl(t))}return r}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{};return Promise.all(ta(r=>{if(!tS(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[r]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(r,h)})).then(r)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,tP.g)(this.visualElement,t),i.start((0,tx.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){ta(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ta(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){ta(e=>{let{drag:i}=this.getProps();if(!tS(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:o}=s.layout.layoutBox[e];n.set(t[e]-(0,$.k)(i,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!W(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};ta(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();s[t]=function(t,e){let i=.5,s=H(t),n=H(e);return n>s?i=(0,q.q)(e.min,e.max-s,t.min):s>n&&(i=(0,q.q)(t.min,t.max-n,e.min)),(0,J.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ta(e=>{if(!tS(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:o}=this.constraints[e];i.set((0,$.k)(n,o,s[e]))})}addListeners(){if(!this.visualElement.current)return;t_.set(this.visualElement,this);let t=E(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();W(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.Gt.read(e);let n=C(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ta(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:o=.35,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:o,dragMomentum:r}}}function tS(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tM extends y{constructor(t){super(t),this.removeGroupControls=k.l,this.removeListeners=k.l,this.controls=new tT(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let tC=t=>(e,i)=>{t&&D.Gt.postRender(()=>t(e,i))};class tE extends y{constructor(){super(...arguments),this.removePointerDownListener=k.l}onPointerDown(t){this.session=new z(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tk(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tC(t),onStart:tC(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&D.Gt.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=E(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var tA=i(95155),tR=i(12115),tD=i(98041),tz=i(91921);let tO=(0,tR.createContext)({}),tV={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tI(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tL={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tw.px.test(t))return t;t=parseFloat(t)}let i=tI(t,e.target.x),s=tI(t,e.target.y);return`${i}% ${s}%`}};var tF=i(11127);let tB={},{schedule:tj,cancel:tU}=(0,i(21456).I)(queueMicrotask,!1);class tG extends tR.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;Object.assign(tB,tq),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),tV.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,o=i.projection;return o&&(o.isPresent=n,s||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===n||(n?o.promote():o.relegate()||D.Gt.postRender(()=>
1{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tj.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tW(t){let[e,i]=function(){let t=(0,tR.useContext)(tD.t);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:i,register:s}=t,n=(0,tR.useId)();(0,tR.useEffect)(()=>s(n),[]);let o=(0,tR.useCallback)(()=>i&&i(n),[n,i]);return!e&&i?[!1,o]:[!0]}(),s=(0,tR.useContext)(tz.L);return(0,tA.jsx)(tG,{...t,layoutGroup:s,switchLayoutGroup:(0,tR.useContext)(tO),isPresent:e,safeToRemove:i})}let tq={borderRadius:{...tL,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tL,borderTopRightRadius:tL,borderBottomLeftRadius:tL,borderBottomRightRadius:tL,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tF.f.parse(t);if(s.length>5)return t;let n=tF.f.createTransformer(t),o="number"!=typeof s[0]?1:0,r=i.x.scale*e.x,a=i.y.scale*e.y;s[0+o]/=r,s[1+o]/=a;let l=(0,$.k)(r,a,.5);return"number"==typeof s[2+o]&&(s[2+o]/=l),"number"==typeof s[3+o]&&(s[3+o]/=l),n(s)}}};var t$=i(27318),tH=i(73702);let tN=["TopLeft","TopRight","BottomLeft","BottomRight"],tY=tN.length,tX=t=>"string"==typeof t?parseFloat(t):t,tK=t=>"number"==typeof t||tw.px.test(t);function tZ(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tJ=t0(0,.5,tH.yT),tQ=t0(.5,.95,k.l);function t0(t,e,i){return s=>s<t?0:s>e?1:i((0,q.q)(t,e,s))}function t1(t,e){t.min=e.min,t.max=e.max}function t2(t,e){t1(t.x,e.x),t1(t.y,e.y)}function t3(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function t5(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function t4(t,e,[i,s,n],o,r){!function(t,e=0,i=1,s=.5,n,o=t,r=t){if(tw.KN.test(e)&&(e=parseFloat(e),e=(0,$.k)(r.min,r.max,e/100)-r.min),"number"!=typeof e)return;let a=(0,$.k)(o.min,o.max,s);t===o&&(a-=e),t.min=t5(t.min,e,i,a,n),t.max=t5(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,o,r)}let t9=["x","scaleX","originX"],t6=["y","scaleY","originY"];function t8(t,e,i,s){t4(t.x,e,t9,i?i.x:void 0,s?s.x:void 0),t4(t.y,e,t6,i?i.y:void 0,s?s.y:void 0)}var t7=i(38282);function et(t){return 0===t.translate&&1===t.scale}function ee(t){return et(t.x)&&et(t.y)}function ei(t,e){return t.min===e.min&&t.max===e.max}function es(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function en(t,e){return es(t.x,e.x)&&es(t.y,e.y)}function eo(t){return H(t.x)/H(t.y)}function er(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ea=i(97720);class el{constructor(){this.members=[]}add(t){(0,ea.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,ea.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(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);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.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)}}let eh=(t,e)=>t.depth-e.depth;class ec{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ea.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,ea.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eh),this.isDirty=!1,this.children.forEac
1h(t)}}var eu=i(63903),ed=i(92910);function ep(t){let e=(0,ed.S)(t)?t.get():t;return(0,eu.B)(e)?e.toValue():e}var ef=i(50672),em=i(40007),ev=i(64370);let eg={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ey="undefined"!=typeof window&&void 0!==window.MotionDebug,eb=["","X","Y","Z"],ew={visibility:"hidden"},ex=0;function ek(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function eP({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=ex++,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,ey&&(eg.totalNodes=eg.resolvedTargetDeltas=eg.recalculatedProjection=0),this.nodes.forEach(eS),this.nodes.forEach(ez),this.nodes.forEach(eO),this.nodes.forEach(eM),ey&&window.MotionDebug.record(eg)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ec)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t$.v),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||s)&&(this.isLayoutDirty=!0),t){let i;let s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=ef.k.now(),s=({timestamp:e})=>{let n=e-i;n>=250&&((0,D.WG)(s),t(n-250))};return D.Gt.read(s,!0),()=>(0,D.WG)(s)}(s,250),tV.hasAnimatedSinceResize&&(tV.hasAnimatedSinceResize=!1,this.nodes.forEach(eD))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||o.getDefaultTransition()||ej,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!en(this.targetLayout,s)||i,h=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...(0,t7.r)(n,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||eD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,D.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(eV),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,ev.P)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",D.Gt,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eE);return}this.isUpdating||this.nodes.forEach(eA),this.isUpdating=!1,this.nodes.forEach(eR),this.nodes.forEach(e_),this.nodes.forEach(eT),this.clearAllSnapshots();let t=ef.k.now();D.uv.delta=(0,J.q)(0,1e3/60,t-D.uv.timestamp),D.uv.timestamp=t,D.uv.isProcessing=!0,D.PP.update.process(D.uv),D.PP.preRender.process(D.uv),D.PP.render.process(D.uv),D.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tj.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eC),this.sharedNodes.forEach(eI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.Gt.postRender(()=>{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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ee(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||tu(this.latestValues)||o)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),eW((e=s).x),eW(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return tr();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(e$))){let{scroll:t}=this.root;t&&(tv(i.x,t.offset.x),tv(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=tr();if(t2(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:n,options:o}=s;s!==this.root&&n&&o.layoutScroll&&(n.wasRoot&&t2(i,t),tv(i.x,n.offset.x),tv(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=tr();t2(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ty(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),tu(s.latestValues)&&ty(i,s.latestValues)}return tu(this.latestValues)&&ty(i,this.latestValues),i}removeTransform(t){let e=tr();t2(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!tu(i.latestValues))continue;tc(i.latestValues)&&i.updateSnapshot();let s=tr();t2(s,i.measurePageBox()),t8(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return tu(this.latestValues)&&t8(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==D.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,n;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==o;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=D.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tr(),this.relativeTargetOrigin=tr(),Z(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),t2(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=tr(),this.targetWithTransforms=tr()
1),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,n=this.relativeParent.target,X(i.x,s.x,n.x),X(i.y,s.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):t2(this.target,this.layout.layoutBox),tm(this.target,this.targetDelta)):t2(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tr(),this.relativeTargetOrigin=tr(),Z(this.relativeTargetOrigin,this.target,t.target),t2(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ey&&eg.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||tc(this.parent.latestValues)||td(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===D.uv.timestamp&&(s=!1),s)return;let{layout:n,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||o))return;t2(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,o;let r=i.length;if(r){e.x=e.y=1;for(let a=0;a<r;a++){o=(n=i[a]).projectionDelta;let{visualElement:r}=n.options;(!r||!r.props.style||"contents"!==r.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ty(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,tm(t,o)),s&&tu(n.latestValues)&&ty(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tr());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(t3(this.prevProjectionDelta.x,this.projectionDelta.x),t3(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Y(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&er(this.projectionDelta.x,this.prevProjectionDelta.x)&&er(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ey&&eg.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tn(),this.projectionDelta=tn(),this.projectionDeltaWithTransform=tn()}setAnimationOrigin(t,e=!1){let i;let s=this.snapshot,n=s?s.latestValues:{},o={...this.latestValues},r=tn();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=tr(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,u=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(eB));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eL(r.x,t.x,s),eL(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,p,f;Z(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,eF(p.x,f.x,a.x,s),eF(p.y,f.y,a.y,s),i&&(h=this.relativeTarget,d=i,ei(h.x,d.x)&&ei(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=tr()),t2(i,this.relativeTarget)}
1l&&(this.animationValues=o,function(t,e,i,s,n,o){n?(t.opacity=(0,$.k)(0,void 0!==i.opacity?i.opacity:1,tJ(s)),t.opacityExit=(0,$.k)(void 0!==e.opacity?e.opacity:1,0,tQ(s))):o&&(t.opacity=(0,$.k)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let n=0;n<tY;n++){let o=`border${tN[n]}Radius`,r=tZ(e,o),a=tZ(i,o);(void 0!==r||void 0!==a)&&(r||(r=0),a||(a=0),0===r||0===a||tK(r)===tK(a)?(t[o]=Math.max((0,$.k)(tX(r),tX(a),s),0),(tw.KN.test(a)||tw.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,$.k)(e.rotate||0,i.rotate||0,s))}(o,n,this.latestValues,s,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,D.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.Gt.update(()=>{tV.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let s=(0,ed.S)(0)?0:(0,em.OQ)(0);return s.start((0,tx.f)("",s,1e3,i)),s.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eq(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tr();let e=H(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=H(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}t2(e,i),ty(e,n),Y(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new el),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&ek("z",t,s,this.animationValues);for(let e=0;e<eb.length;e++)ek(`rotate${eb[e]}`,t,s,this.animationValues),ek(`skew${eb[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ew;let s={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ep(null==t?void 0:t.pointerEvents)||"",s.transform=n?n(this.latestValues,""):"none",s;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ep(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!tu(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let r=o.animationValues||o.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",n=t.x.translate/e.x,o=t.y.translate/e.y,r=(null==i?void 0:i.z)||0;if((n||o||r)&&(s=`translate3d(${n}px, ${o}px, ${r}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:o,skewX:r,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),o&&(s+=`rotateY(${o}deg) `),r&&(s+=`skewX(${r}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),n&&(s.transform=n(r,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(i=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tB){if(void 0===r[t])continue;let{correct:e,applyTo:i}=tB[t],n="none"===s.transform?r[t]:e(r[t],o);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=n}else s[t]=n}return this.options.layoutId&&(s.pointerEvents=o===this?ep(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(eE),this.root.sharedNodes.clear()}}}function e_(t){t.updateLayout()}function eT(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:n}=t.options,o=i.source!==t.layout.source;"size"===n?ta(t=>{let s=o?i.measuredBox[t]:i.layoutBox[t],n=H(s);s.min=e[t].min,s.max=s.min+n}):eq(n,i.layoutBox,e)&&ta(s=>{let n=o?i.measuredBox[s]:i.layoutBox[s],r=H(e[s]);n.max=n.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+r)});let r=tn();Y(r,e,i.layoutBox);let a=tn();o?Y(a,t.applyTransform(s,!0),i.measuredBox):Y(a,e,i.layoutBox);let l=!ee(r),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:o}=s;if(n&&o){let r=tr();Z(r,i.layoutBox,n.layoutBox);let a=tr();Z(a,e,o.layoutBox),en(r,a)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function eS(t){ey&&eg.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eM(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eC(t){t.clearSnapshot()}function eE(t){t.clearMeasurements()}function eA(t){t.isLayoutDirty=!1}function eR(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ez(t){t.resolveTargetDelta()}function eO(t){t.calcProjection()}function eV(t){t.resetSkewAndRotation()}function eI(t){t.removeLeadSnapshot()}function eL(t,e,i){t.translate=(0,$.k)(e.translate,0,i),t.scale=(0,$.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eF(t,e,i,s){t.min=(0,$.k)(e.min,i.min,s),t.max=(0,$.k)(e.max,i.max,s)}function eB(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ej={duration:.45,ease:[.4,0,.1,1]},eU=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eG=eU("applewebkit/")&&!e
1U("chrome/")?Math.round:k.l;function eW(t){t.min=eG(t.min),t.max=eG(t.max)}function eq(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(eo(e)-eo(i)))}function e$(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let eH=eP({attachResizeListener:(t,e)=>C(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eN={current:void 0},eY=eP({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eN.current){let t=new eH({});t.mount(window),t.setOptions({layoutScroll:!0}),eN.current=t}return eN.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function eX(t,e){let i=e?"onHoverStart":"onHoverEnd";return E(t.current,e?"pointerenter":"pointerleave",(s,n)=>{if("touch"===s.pointerType||G())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);let r=o[i];r&&D.Gt.postRender(()=>r(s,n))},{passive:!t.getProps()[i]})}class eK extends y{mount(){this.unmount=(0,A.F)(eX(this.node,!0),eX(this.node,!1))}unmount(){}}class eZ extends y{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=(0,A.F)(C(this.node.current,"focus",()=>this.onFocus()),C(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eJ=(t,e)=>!!e&&(t===e||eJ(t,e.parentElement));function eQ(t,e){if(!e)return;let i=new PointerEvent("pointer"+t);e(i,T(i))}class e0 extends y{constructor(){super(...arguments),this.removeStartListeners=k.l,this.removeEndListeners=k.l,this.removeAccessibleListeners=k.l,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let i=this.node.getProps(),s=E(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:i,onTapCancel:s,globalTapTarget:n}=this.node.getProps(),o=n||eJ(this.node.current,t.target)?i:s;o&&D.Gt.update(()=>o(t,e))},{passive:!(i.onTap||i.onPointerUp)}),n=E(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=(0,A.F)(s,n),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=C(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=C(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&eQ("up",(t,e)=>{let{onTap:i}=this.node.getProps();i&&D.Gt.postRender(()=>i(t,e))})}),eQ("down",(t,e)=>{this.startPress(t,e)}))}),e=C(this.node.current,"blur",()=>{this.isPressing&&eQ("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,A.F)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&D.Gt.postRender(()=>i(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!G()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:i}=this.node.getProps();i&&D.Gt.postRender(()=>i(t,e))}mount(){let t=this.node.getProps(),e=E(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=C(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,A.F)(e,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let e1=new WeakMap,e2=new WeakMap,e3=t=>{let e=e1.get(t.target);e&&e(t)},e5=t=>{t.forEach(e3)},e4={some:0,all:1};class e9 extends y{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:n}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof s?s:e4[s]};
1return function(t,e,i){let s=function({root:t,...e}){let i=t||document;e2.has(i)||e2.set(i,{});let s=e2.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(e5,{root:t,...e})),s[n]}(e);return e1.set(t,i),s.observe(t),()=>{e1.delete(t),s.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),o=e?i:s;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}var e6=i(44712);let e8=(0,tR.createContext)({});var e7=i(17530);let it=(0,tR.createContext)({strict:!1});var ie=i(80200);function ii(t){return s(t.animate)||u.some(e=>l(t[e]))}function is(t){return!!(ii(t)||t.variants)}function io(t){return Array.isArray(t)?t.join(" "):t}let ir={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"]},ia={};for(let t in ir)ia[t]={isEnabled:e=>ir[t].some(t=>!!e[t])};var il=i(42504);let ih=Symbol.for("motionComponentSymbol"),ic=["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 iu(t){if("string"!=typeof t||t.includes("-"));else if(ic.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var id=i(4454);function ip(t,{style:e,vars:i},s,n){for(let o in Object.assign(t.style,e,n&&n.getProjectionStyles(s)),i)t.style.setProperty(o,i[o])}let im=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 iv(t,e,i,s){for(let i in ip(t,e,void 0,s),e.attrs)t.setAttribute(im.has(i)?i:(0,id.I)(i),e.attrs[i])}var ig=i(86498);function iy(t,{layout:e,layoutId:i}){return ig.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!tB[t]||"opacity"===t)}function ib(t,e,i){var s;let{style:n}=t,o={};for(let r in n)((0,ed.S)(n[r])||e.style&&(0,ed.S)(e.style[r])||iy(r,t)||(null===(s=null==i?void 0:i.getValue(r))||void 0===s?void 0:s.liveStyle)!==void 0)&&(o[r]=n[r]);return o}function iw(t,e,i){let s=ib(t,e,i);for(let i in t)((0,ed.S)(t[i])||(0,ed.S)(e[i]))&&(s[-1!==ig.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}var ix=i(23443),ik=i(72321);let iP=t=>(e,i)=>{let n=(0,tR.useContext)(e8),o=(0,tR.useContext)(tD.t),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:i},n,o,r){let a={latestValues:function(t,e,i,n){let o={},r=n(t,{});for(let t in r)o[t]=ep(r[t]);let{initial:a,animate:l}=t,h=ii(t),c=is(t);e&&c&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?l:a;if(d&&"boolean"!=typeof d&&!s(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=(0,ix.a)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(n,o,r,t),renderState:e()};return i&&(a.mount=t=>i(n,t,a)),a})(t,e,n,o);return i?r():(0,ik.M)(r)},i_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),iT=()=>({...i_(),attrs:{}}),iS=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var iM=i(26395);let iC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iE=ig.U.length;var iA=i(56920);function iR(t,e,i){let{style:s,vars:n,transformOrigin:o}=t,r=!1,a=!1;for(let t in e){let i=e[t];if(ig.f.has(t)){r=!0;continue}if((0,iA.j)(t)){n[t]=i;continue}{let e=iS(i,iM.W[t]);t.startsWith("origin")?(a=!0,o[t]=e):s[t]=e}}
1if(!e.transform&&(r||i?s.transform=function(t,e,i){let s="",n=!0;for(let o=0;o<iE;o++){let r=ig.U[o],a=t[r];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(r.startsWith("scale")?1:0):0===parseFloat(a))||i){let t=iS(a,iM.W[r]);if(!l){n=!1;let e=iC[r]||r;s+=`${e}(${t}) `}i&&(e[r]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;s.transformOrigin=`${t} ${e} ${i}`}}function iD(t,e,i){return"string"==typeof t?t:tw.px.transform(e+i*t)}let iz={offset:"stroke-dashoffset",array:"stroke-dasharray"},iO={offset:"strokeDashoffset",array:"strokeDasharray"};function iV(t,{attrX:e,attrY:i,attrScale:s,originX:n,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...h},c,u){if(iR(t,h,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==n||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,i){let s=iD(e,t.x,t.width),n=iD(i,t.y,t.height);return`${s} ${n}`}(f,void 0!==n?n:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==r&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let o=n?iz:iO;t[o.offset]=tw.px.transform(-s);let r=tw.px.transform(e),a=tw.px.transform(i);t[o.array]=`${r} ${a}`}(d,r,a,l,!1)}let iI=t=>"string"==typeof t&&"svg"===t.toLowerCase(),iL={useVisualState:iP({scrapeMotionValuesFromProps:iw,createRenderState:iT,onMount:(t,e,{renderState:i,latestValues:s})=>{D.Gt.read(()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}}),D.Gt.render(()=>{iV(i,s,iI(e.tagName),t.transformTemplate),iv(e,i)})}})},iF={useVisualState:iP({scrapeMotionValuesFromProps:ib,createRenderState:i_})};function iB(t,e,i){for(let s in e)(0,ed.S)(e[s])||iy(s,i)||(t[s]=e[s])}let ij=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 iU(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ij.has(t)}let iG=t=>!iU(t);try{!function(t){t&&(iG=e=>e.startsWith("on")?!iU(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}var iW=i(33205);let iq={current:null},i$={current:!1},iH=new WeakMap;var iN=i(12471),iY=i(54994),iX=i(53156),iK=i(36973),iZ=i(99138),iJ=i(57975);let iQ=[...iZ.T,iK.y,tF.f],i0=t=>iQ.find((0,iJ.w)(t));var i1=i(38616);let i2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class i3{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iN.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=ef.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,D.Gt.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.blockInitialAnimation=!!n,this.isControllingVariants=ii(e),this.isVariantNode=is(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&(0,ed.S)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,iH.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),i$.current||function(){if(i$.current=!0,il.B){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iq.current=t.matches;t.addListener(e),e()}else iq.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iq.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iH.delete(this.current),this.projection&&this.projection.unmount(),(0,D.WG)(this.notifyUpdate),(0,D.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=ig.f.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&D.Gt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),o(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ia){let e=ia[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<i2.length;e++){let i=i2[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],o=i[s];if((0,ed.S)(n))t.addValue(s,n);else if((0,ed.S)(o))t.addValue(s,(0,em.OQ)(n,{owner:t}));else if(o!==n){if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,(0,em.OQ)(void 0!==e?e:n,{owner:t}))}}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,em.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&((0,iY.i)(s)||(0,iX.$)(s))?s=parseFloat(s):!i0(s)&&tF.f.test(e)&&(s=(0,i1.J)(t,e)),this.setBaseTarget(t,(0,ed.S)(s)?s.get():s)),(0,ed.S)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i;let{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let n=(0,ix.a)(this.props,s,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(s&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,ed.S)(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t$.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}var i5=i(3639);class i4 extends i3{constructor(){super(...arguments),this.KeyframeResolver=i5.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}}class i9 extends i4{constructor(){super(...arguments),this.type="html",this.renderInstance=ip}readValueFromInstance(t,e){if(ig.f.has(e)){let t=(0,iW.D)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,iA.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return tb(t,e)}build(t,e,i){iR(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ib(t,e,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,ed.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class i6 extends i4{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tr}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(ig.f.has(e)){let t=(0,iW.D)(e);return t&&t.default||0}return e=im.has(e)?e:(0,id.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return iw(t,e,i)}build(t,e,i){iV(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){iv(t,e,i,s)}mount(t){this.isSVGTag=iI(t.tagName),super.mount(t)}}let i8=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}((n={animation:{Feature:b},exit:{Feature:x},inView:{Feature:e9},tap:{Feature:e0},focus:{Feature:eZ},hover:{Feature:eK},pan:{Feature:tE},drag:{Feature:tM,ProjectionNode:eY,MeasureLayout:tW},layout:{ProjectionNode:eY,MeasureLayout:tW}},o=(t,e)=>iu(t)?new i6(e):new i9(e,{allowProjection:t!==tR.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){let{preloadedFeatures:e,createVisualElement:i,useRender:s,useVisualState:n,Component:o}=t;e&&function(t){for(let e in t)ia[e]={...ia[e],...t[e]}}(e);let r=(0,tR.forwardRef)(function(t,e){var r;let a;let h={...(0,tR.useContext)(e6.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tR.useContext)(tz.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:c}=h,u=function(t){let{initial:e,animate:i}=function(t,e){if(ii(t)){let{initial:e,animate:i}=t;return{initial:!1===e||l(e)?e:void 0,animate:l(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tR.useContext)(e8));return(0,tR.useMemo)(()=>({initial:e,animate:i}),[io(e),io(i)])}(t),d=n(t,c);if(!c&&il.B){(0,tR.useContext)(it).strict;let t=function(t){let{drag:e,layout:i}=ia;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(h);a=t.MeasureLayout,u.visualElement=function(t,e,i,s,n){var o,r;let{visualElement:a}=(0,tR.useContext)(e8),l=(0,tR.useContext)(it),h=(0,tR.useContext)(tD.t),c=(0,tR.useContext)(e6.Q).reducedMotion,u=(0,tR.useRef)();s=s||l.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c}));let d=u.current,p=(0,tR.useContext)(tO);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(t,e,i,s){let{layoutId:n,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||a&&W(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:h})}(u.current,i,n,p);let f=(0,tR.useRef)(!1);(0,tR.useInsertionEffect)(()=>{d&&f.current&&d.update(i,h)});let m=i[ie.n],v=(0,tR.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(r=window.MotionHasOptimisedAnimation)||void 0===r?void 0:r.call(window,m)));return(0,e7.E)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tj.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,tR.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),d}(o,d,h,i,t.ProjectionNode)}return(0,tA.jsxs)(e8.Provider,{value:u,children:[a&&u.visualElement?(0,tA.jsx)(a,{visualElement:u.visualElement,...h}):null,s(o,t,(r=u.visualElement,(0,tR.useCallback)(t=>{t&&d.mount&&d.mount(t),r&&(t?r.mount(t):r.unmount()),e&&("function"==typeof e?e(t):W(e)&&(e.current=t))},[r])),d,c,u.visualElement)]})});return r[ih]=o,r}({...iu(t)?iL:iF,preloadedFeatures:n,useRender:function(t=!1){return(e,i,s,{latestValues:n},o)=>
1{let r=(iu(e)?function(t,e,i,s){let n=(0,tR.useMemo)(()=>{let i=iT();return iV(i,e,iI(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};iB(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},s=function(t,e){let i=t.style||{},s={};return iB(s,i,t),Object.assign(s,function({transformTemplate:t},e){return(0,tR.useMemo)(()=>{let i=i_();return iR(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i})(i,n,o,e),a=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(iG(n)||!0===i&&iU(n)||!e&&!iU(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(i,"string"==typeof e,t),l=e!==tR.Fragment?{...a,...r,ref:s}:{},{children:h}=i,c=(0,tR.useMemo)(()=>(0,ed.S)(h)?h.get():h,[h]);return(0,tR.createElement)(e,{...l,children:c})}}(e),createVisualElement:o,Component:t})}))},3639:(t,e,i)=>{i.d(e,{K:()=>f});var s=i(53156),n=i(39426),o=i(54994),r=i(56920);let a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=i(91732),h=i(99138),c=i(12471),u=i(11127),d=i(38616);let p=new Set(["auto","none","0"]);class f extends c.h{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&(s=s.trim(),(0,r.p)(s))){let l=function t(e,i,s=1){(0,n.V)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[l,h]=function(t){let e=a.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${null!=i?i:s}`,n]}(e);if(!l)return;let c=window.getComputedStyle(i).getPropertyValue(l);if(c){let t=c.trim();return(0,o.i)(t)?parseFloat(t):t}return(0,r.p)(h)?t(h,i,s+1):h}(s,e.current);void 0!==l&&(t[i]=l),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!l.$y.has(i)||2!==t.length)return;let[s,c]=t,u=(0,h.n)(s),d=(0,h.n)(c);if(u!==d){if((0,l.E4)(u)&&(0,l.E4)(d))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||(0,s.$)(n))&&i.push(e)}i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!p.has(e)&&(0,u.V)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=(0,d.J)(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let o=s.length-1,r=s[o];s[o]=l.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}},75487:(t,e,i)=>{i.d(e,{J:()=>s});let s=(0,i(57937).p)(()=>void 0!==window.ScrollTimeline)},4454:(t,e,i)=>{i.d(e,{I:()=>s});let s=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},56920:(t,e,i)=>{i.d(e,{j:()=>n,p:()=>r});let s=t=>e=>"string"==typeof e&&e.startsWith(t),n=s("--"),o=s("var(--"),r=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},91732:(t,e,i)=>{i.d(e,{$y:()=>r,E4:()=>a,Hr:()=>p,W9:()=>d});var s=i(86498),n=i(82510),o=i(62867);let r=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===n.ai||t===o.px,l=(t,e)=>parseFloat(t.split(", ")[e]),h=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let n=s.match(/^matrix3d\((.+)\)$/u);if(n)return l(n[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},c=new Set(["x","y","z"]),u=s.U.filter(t=>!c.has(t));function d(t){let e=[];return u.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:h(4,13),y:h(5,14)};p.translateX=p.x,p.translateY=p.y},38616:(t,e,i)=>{i.d(e,{J:()=>r});var s=i(11127),n=i(70520),o=i(33205);function r(t,e){let i=(0,o.D)(t);return i!==n.p&&(i=s.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},33205:(t,e,i)=>{i.d(e,{D:()=>r});var s=i(36973),n=i(70520);let o={...i(26395).W,color:s.y,backgroundColor:s.y,outlineColor:s.y,fill:s.y,stroke:s.y,borderColor:s.y,borderTopColor:s.y,borderRightColor:s.y,borderBottomColor:s.y,borderLeftColor:s.y,filter:n.p,WebkitFilter:n.p},r=t=>o[t]},99138:(t,e,i)=>{i.d(e,{T:()=>r,n:()=>a});var s=i(82510),n=i(62867),o=i(57975);let r=[s.ai,n.px,n.KN,n.uj,n.vw,n.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find((0,o.w)(t))},26395:(t,e,i)=>{i.d(e,{W:()=>l});var s=i(82510),n=i(62867);let o={borderWidth:n.px,borderTopWidth:n.px,borderRightWidth:n.px,borderBottomWidth:n.px,borderLeftWidth:n.px,borderRadius:n.px,radius:n.px,borderTopLeftRadius:n.px,borderTopRightRadius:n.px,borderBottomRightRadius:n.px,borderBottomLeftRadius:n.px,width:n.px,maxWidth:n.px,height:n.px,maxHeight:n.px,top:n.px,right:n.px,bottom:n.px,left:n.px,padding:n.px,paddingTop:n.px,paddingRight:n.px,paddingBottom:n.px,paddingLeft:n.px,margin:n.px,marginTop:n.px,marginRight:n.px,marginBottom:n.px,marginLeft:n.px,backgroundPositionX:n.px,backgroundPositionY:n.px},r={rotate:n.uj,rotateX:n.uj,rotateY:n.uj,rotateZ:n.uj,scale:s.hs,scaleX:s.hs,scaleY:s.hs,scaleZ:s.hs,skew:n.uj,skewX:n.uj,skewY:n.uj,distance:n.px,translateX:n.px,translateY:n.px,translateZ:n.px,x:n.px,y:n.px,z:n.px,perspective:n.px,transformPerspective:n.px,opacity:s.X4,originX:n.gQ,originY:n.gQ,originZ:n.px},a={...s.ai,transform:Math.round},l={...o,...r,zIndex:a,size:n.px,fillOpacity:s.X4,strokeOpacity:s.X4,numOctaves:a}},57975:(t,e,i)=>{i.d(e,{w:()=>s});let s=t=>e=>e.test(t)},86498:(t,e,i)=>{i.d(e,{U:()=>s,f:()=>n});let s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],n=new Set(s)},12471:(t,e,i)=>{i.d(e,{h:()=>u,q:()=>c});var s=i(91732),n=i(58206);let o=new Set,r=!1,a=!1;function l(){if(a){let t=Array.from(o).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,s.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null===(s=t.getValue(e))||void 0===s||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,r=!1,o.forEach(t=>t.complete()),o.clear()}function h(){o.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){h(),l()}class u{constructor(t,e,i,s,n,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),r||(r=!0,n.Gt.read(h),n.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let n=0;n<t.length;n++)if(null===t[n]){if(0===n){let n=null==s?void 0:s.get(),o=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,o);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=o),s&&void 0===n&&s.set(t[0])}else t[n]=t[n-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),o.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,o.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},51447:(t,e,i)=>{i.d(e,{K:()=>n});var s=i(23443);function n(t,e,i){let n=t.getProps();return(0,s.a)(n,e,void 0!==i?i:n.custom,t)}},23443:(t,e,i)=>{function s(t,e,i,s){if("function"==typeof e||("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e)){let[n,o]=function(t){let e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}(s);e=e(void 0!==i?i:t.custom,n,o)}return e}i.d(e,{a:()=>s})},86678:(t,e,i)=>{i.d(e,{U:()=>r});var s=i(63903),n=i(40007),o=i(51447);function r(t,e){let{transitionEnd:i={},transition:r={},...a}=(0,o.K)(t,e)||{};for(let e in a={...a,...i}){let i=(0,s.K)(a[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},93976:(t,e,i)=>{i.d(e,{W:()=>s});let s={skipAnimations:!1,useManualTiming:!1}},97720:(t,e,i)=>{function s(t,e){-1===t.indexOf(e)&&t.push(e)}function n(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>n,Kq:()=>s})},15178:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>i>e?e:i<t?t:i},39426:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>o});var s=i(99903);let n=s.l,o=s.l},6578:(t,e,i)=>{i.d(e,{G:()=>h});var s=i(39426),n=i(15178),o=i(36515),r=i(3078),a=i(99903),l=i(3423);function h(t,e,{clamp:i=!0,ease:c,mixer:u}={}){let d=t.length;if((0,s.V)(d===e.length,"Both input and output ranges must be the same length"),1===d)return()=>e[0];if(2===d&&t[0]===t[1])return()=>e[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,i){let s=[],n=i||l.j,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||a.l:e;r=(0,o.F)(t,r)}s.push(r)}return s}(e,c,u),f=p.length,m=e=>{let i=0;if(f>1)for(;i<t.length-2&&!(e<t[i+1]);i++);let s=(0,r.q)(t[i],t[i+1],e);return p[i](s)};return i?e=>m((0,n.q)(t[0],t[d-1],e)):m}},42504:(t,e,i)=>{i.d(e,{B:()=>s});let s="undefined"!=typeof window},54994:(t,e,i)=>{i.d(e,{i:()=>s});let s=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},53156:(t,e,i)=>{i.d(e,{$:()=>s});let s=t=>/^0[^.\s]+$/u.test(t)},57937:(t,e,i)=>{i.d(e,{p:()=>s});function s(t){let e;return()=>(void 0===e&&(e=t()),e)}},3423:(t,e,i)=>{i.d(e,{j:()=>T});var s=i(93233),n=i(39426);function o(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var r=i(68430),a=i(97643),l=i(89495);function h(t,e){return i=>i>0?e:t}let c=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},u=[r.u,a.B,l.V],d=t=>u.find(e=>e.test(t));function p(t){let e=d(t);if((0,n.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===l.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,l=2*i-s;n=o(l,s,t+1/3),r=o(l,s,t),a=o(l,s,t-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let f=(t,e)=>{let i=p(t),n=p(e);if(!i||!n)return h(t,e);let o={...i};return t=>(o.red=c(i.red,n.red,t),o.green=c(i.green,n.green,t),o.blue=c(i.blue,n.blue,t),o.alpha=(0,s.k)(i.alpha,n.alpha,t),a.B.transform(o))};var m=i(36515),v=i(36973),g=i(11127),y=i(56920);let b=new Set(["none","hidden"]);function w(t,e){return i=>(0,s.k)(t,e,i)}function x(t){return"number"==typeof t?w:"string"==typeof t?(0,y.p)(t)?h:v.y.test(t)?f:_:Array.isArray(t)?k:"object"==typeof t?v.y.test(t)?f:P:h}function k(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>x(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function P(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=x(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let _=(t,e)=>{let i=g.f.createTransformer(e),s=(0,g.V)(t),o=(0,g.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?b.has(t)&&!o.values.length||b.has(e)&&!s.values.length?function(t,e){return b.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,m.F)(k(function(t,e){var i;let s=[],n={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){let r=e.types[o],a=t.indexes[r][n[r]],l=null!==(i=t.values[a])&&void 0!==i?i:0;s[o]=l,n[r]++}return s}(s,o),o.values),i):((0,n.$)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),h(t,e))};function T(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,s.k)(t,e,i):x(t)(t,e)}},93233:(t,e,i)=>{i.d(e,{k:()=>s});let s=(t,e,i)=>t+(e-t)*i},99903:(t,e,i)=>{i.d(e,{l:()=>s});let s=t=>t}
1,27539:(t,e,i)=>{i.d(e,{Z:()=>o});var s=i(93233),n=i(3078);function o(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let o=1;o<=e;o++){let r=(0,n.q)(0,e,o);t.push((0,s.k)(i,1,r))}}(e,t.length-1),e}},36515:(t,e,i)=>{i.d(e,{F:()=>n});let s=(t,e)=>i=>e(t(i)),n=(...t)=>t.reduce(s)},3078:(t,e,i)=>{i.d(e,{q:()=>s});let s=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s}},63903:(t,e,i)=>{i.d(e,{B:()=>n,K:()=>o});var s=i(89402);let n=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,s.p)(t)?t[t.length-1]||0:t},27318:(t,e,i)=>{i.d(e,{v:()=>n});var s=i(97720);class n{constructor(){this.subscriptions=[]}add(t){return(0,s.Kq)(this.subscriptions,t),()=>(0,s.Ai)(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s){if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},25995:(t,e,i)=>{i.d(e,{X:()=>n,f:()=>s});let s=t=>1e3*t,n=t=>t/1e3},72321:(t,e,i)=>{i.d(e,{M:()=>n});var s=i(12115);function n(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}},17530:(t,e,i)=>{i.d(e,{E:()=>n});var s=i(12115);let n=i(42504).B?s.useLayoutEffect:s.useEffect},39575:(t,e,i)=>{i.d(e,{f:()=>s});function s(t,e){return e?1e3/e*t:0}},40007:(t,e,i)=>{i.d(e,{OQ:()=>c,bt:()=>l});var s=i(27318),n=i(39575),o=i(50672),r=i(58206);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class h{constructor(t,e={}){this.version="11.12.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=o.k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),r.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 c(t,e){return new h(t,e)}},68430:(t,e,i)=>{i.d(e,{u:()=>n});var s=i(97643);let n={test:(0,i(93203).$)("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alph
1a:n?parseInt(n,16)/255:1}},transform:s.B.transform}},89495:(t,e,i)=>{i.d(e,{V:()=>a});var s=i(82510),n=i(62867),o=i(3022),r=i(93203);let a={test:(0,r.$)("hsl","hue"),parse:(0,r.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+n.KN.transform((0,o.a)(e))+", "+n.KN.transform((0,o.a)(i))+", "+(0,o.a)(s.X4.transform(r))+")"}},36973:(t,e,i)=>{i.d(e,{y:()=>r});var s=i(68430),n=i(89495),o=i(97643);let r={test:t=>o.B.test(t)||s.u.test(t)||n.V.test(t),parse:t=>o.B.test(t)?o.B.parse(t):n.V.test(t)?n.V.parse(t):s.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?o.B.transform(t):n.V.transform(t)}},97643:(t,e,i)=>{i.d(e,{B:()=>h});var s=i(15178),n=i(82510),o=i(3022),r=i(93203);let a=t=>(0,s.q)(0,255,t),l={...n.ai,transform:t=>Math.round(a(t))},h={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,o.a)(n.X4.transform(s))+")"}},93203:(t,e,i)=>{i.d(e,{$:()=>o,q:()=>r});var s=i(46371);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>i=>!!("string"==typeof i&&n.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),r=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[o,r,a,l]=n.match(s.S);return{[t]:parseFloat(o),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},70520:(t,e,i)=>{i.d(e,{p:()=>l});var s=i(11127),n=i(46371);let o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(n.S)||[];if(!s)return t;let r=i.replace(s,""),a=o.has(e)?1:0;return s!==i&&(a*=100),e+"("+a+r+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...s.f,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(r).join(" "):t}}},11127:(t,e,i)=>{i.d(e,{V:()=>c,f:()=>f});var s=i(36973);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=i(46371),r=i(3022);let a="number",l="color",h=/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 c(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},o=[],r=0,c=e.replace(h,t=>(s.y.test(t)?(n.color.push(r),o.push(l),i.push(s.y.parse(t))):t.startsWith("var(")?(n.var.push(r),o.push("var"),i.push(t)):(n.number.push(r),o.push(a),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:c,indexes:n,types:o}}function u(t){return c(t).values}function d(t){let{split:e,types:i}=c(t),n=e.length;return t=>{let o="";for(let h=0;h<n;h++)if(o+=e[h],void 0!==t[h]){let e=i[h];e===a?o+=(0,r.a)(t[h]):e===l?o+=s.y.transform(t[h]):o+=t[h]}return o}}let p=t=>"number"==typeof t?0:t,f={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(o.S))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(n))||void 0===i?void 0:i.length)||0)>0},parse:u,createTransformer:d,getAnimatableNone:function(t){let e=u(t);return d(t)(e.map(p))}}},82510:(t,e,i)=>{i.d(e,{X4:()=>o,ai:()=>n,hs:()=>r});var s=i(15178);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...n,transform:t=>(0,s.q)(0,1,t)},r={...n,default:1}},62867:(t,e,i)=>{i.d(e,{KN:()=>o,gQ:()=>h,px:()=>r,uj:()=>n,vh:()=>a,vw:()=>l});let s=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),n=s("deg"),o=s("%"),r=s("px"),a=s("vh"),l=s("vw"),h={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},46371:(t,e,i)=>{i.d(e,{S:()=>s});let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},3022:(t,e,i)=>{i.d(e,{a:()=>s});let s=t=>Math.round(1e5*t)/1e5},42995:(t,e,i)=>{let s,n;i.d(e,{L:()=>U});var o=i(40007),r=i(72321),a=i(12115),l=i(39426);let h=new WeakMap;function c({target:t,contentRect:e,borderBoxSize:i}){var s;
1null===(s=h.get(t))||void 0===s||s.forEach(s=>{s({target:t,contentSize:e,get size(){return function(t,e){if(e){let{inlineSize:t,blockSize:i}=e[0];return{width:t,height:i}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,i)}})})}function u(t){t.forEach(c)}let d=new Set;var p=i(3078),f=i(39575);let m=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),v=()=>({time:0,x:m(),y:m()}),g={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function y(t,e,i,s){let n=i[e],{length:o,position:r}=g[e],a=n.current,l=i.time;n.current=t[`scroll${r}`],n.scrollLength=t[`scroll${o}`]-t[`client${o}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=(0,p.q)(0,n.scrollLength,n.current);let h=s-l;n.velocity=h>50?0:(0,f.f)(n.current-a,h)}let b={All:[[0,0],[1,1]]},w={start:0,center:.5,end:1};function x(t,e,i=0){let s=0;if(t in w&&(t=w[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?s=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?s=e/100*document.documentElement.clientWidth:t.endsWith("vh")?s=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(s=e*t),i+s}let k=[0,0];var P=i(6578),_=i(27539);let T={x:0,y:0};var S=i(58206);let M=new WeakMap,C=new WeakMap,E=new WeakMap,A=t=>t===document.documentElement?window:t;function R(t,{container:e=document.documentElement,...i}={}){let o=E.get(e);o||(o=new Set,E.set(e,o));let r=function(t,e,i,s={}){return{measure:()=>(function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)i.x.targetOffset+=s.offsetLeft,i.y.targetOffset+=s.offsetTop,s=s.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight})(t,s.target,i),update:e=>{y(t,"x",i,e),y(t,"y",i,e),i.time=e,(s.offset||s.target)&&function(t,e,i){let{offset:s=b.All}=i,{target:n=t,axis:o="y"}=i,r="y"===o?"height":"width",a=n!==t?function(t,e){let i={x:0,y:0},s=t;for(;s&&s!==e;)if(s instanceof HTMLElement)i.x+=s.offsetLeft,i.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){let t=s.getBoundingClientRect(),e=(s=s.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(s instanceof SVGGraphicsElement){let{x:t,y:e}=s.getBBox();i.x+=t,i.y+=e;let n=null,o=s.parentNode;for(;!n;)"svg"===o.tagName&&(n=o),o=s.parentNode;s=n}else break;return i}(n,t):T,l=n===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in n&&"svg"!==n.tagName?n.getBBox():{width:n.clientWidth,height:n.clientHeight},h={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let c=!e[o].interpolate,u=s.length;for(let t=0;t<u;t++){let i=function(t,e,i,s){let n=Array.isArray(t)?t:k,o=0;return"number"==typeof t?n=[t,t]:"string"==typeof t&&(n=(t=t.trim()).includes(" ")?t.split(" "):[t,w[t]?t:"0"]),x(n[0],i,s)-x(n[1],e)}(s[t],h[r],l[r],a[o]);c||i===e[o].interpolatorOffsets[t]||(c=!0),e[o].offset[t]=i}c&&(e[o].interpolate=(0,P.G)(e[o].offset,(0,_.Z)(s)),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=e[o].interpolate(e[o].current)}(t,i,s)},notify:()=>e(i)}}(e,t,v(),i);if(o.add(r),!M.has(e)){let t=()=>{for(let t of o)t.measure()},i=()=>{for(let t of o)t.update(S.uv.timestamp)},r=()=>{for(let t of o)t.notify()},a=()=>
1{S.Gt.read(t,!1,!0),S.Gt.read(i,!1,!0),S.Gt.update(r,!1,!0)};M.set(e,a);let l=A(e);window.addEventListener("resize",a,{passive:!0}),e!==document.documentElement&&C.set(e,"function"==typeof e?(d.add(e),n||(n=()=>{let t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};d.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{d.delete(e),!d.size&&n&&(n=void 0)}):function(t,e){var i;s||"undefined"==typeof ResizeObserver||(s=new ResizeObserver(u));let n=("string"==typeof(i=t)?i=document.querySelectorAll(i):i instanceof Element&&(i=[i]),Array.from(i||[]));return n.forEach(t=>{let i=h.get(t);i||(i=new Set,h.set(t,i)),i.add(e),null==s||s.observe(t)}),()=>{n.forEach(t=>{let i=h.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==s||s.unobserve(t)})}}(e,a)),l.addEventListener("scroll",a,{passive:!0})}let a=M.get(e);return S.Gt.read(a,!1,!0),()=>{var t;(0,S.WG)(a);let i=E.get(e);if(!i||(i.delete(r),i.size))return;let s=M.get(e);M.delete(e),s&&(A(e).removeEventListener("scroll",s),null===(t=C.get(e))||void 0===t||t(),window.removeEventListener("resize",s))}}function D(t,e){let i;let s=()=>{let{currentTime:s}=e,n=(null===s?0:s.value)/100;i!==n&&t(n),i=n};return S.Gt.update(s,!0),()=>(0,S.WG)(s)}var z=i(75487),O=i(99903);let V=new Map;function I({source:t,container:e=document.documentElement,axis:i="y"}={}){t&&(e=t),V.has(e)||V.set(e,{});let s=V.get(e);return s[i]||(s[i]=(0,z.J)()?new ScrollTimeline({source:e,axis:i}):function({source:t,container:e,axis:i="y"}){t&&(e=t);let s={value:0},n=R(t=>{s.value=100*t[i].progress},{container:e,axis:i});return{currentTime:s,cancel:n}}({source:e,axis:i})),s[i]}function L(t){return t&&(t.target||t.offset)}var F=i(17530);function B(t,e){(0,l.$)(!!(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let j=()=>({scrollX:(0,o.OQ)(0),scrollY:(0,o.OQ)(0),scrollXProgress:(0,o.OQ)(0),scrollYProgress:(0,o.OQ)(0)});function U({container:t,target:e,layoutEffect:i=!0,...s}={}){let n=(0,r.M)(j);return(i?F.E:a.useEffect)(()=>(B("target",e),B("container",t),function(t,{axis:e="y",...i}={}){let s={axis:e,...i};return"function"==typeof t?2===t.length||L(s)?R(e=>{t(e[s.axis].progress,e)},s):D(t,I(s)):function(t,e){if(t.flatten(),L(e))return t.pause(),R(i=>{t.time=t.duration*i[e.axis].progress},e);{let i=I(e);return t.attachTimeline?t.attachTimeline(i,t=>(t.pause(),D(e=>{t.time=t.duration*e},i))):O.l}}(t,s)}((t,{x:e,y:i})=>{n.scrollX.set(e.current),n.scrollXProgress.set(e.progress),n.scrollY.set(i.current),n.scrollYProgress.set(i.progress)},{...s,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0})),[t,e,JSON.stringify(s.offset)]),n}},85203:(t,e,i)=>{i.d(e,{G:()=>p});var s=i(6578);let n=t=>t&&"object"==typeof t&&t.mix,o=t=>n(t)?t.mix:void 0;var r=i(12115),a=i(40007),l=i(44712),h=i(72321),c=i(17530),u=i(58206);function d(t,e){let i=function(t){let e=(0,h.M)(()=>(0,a.OQ)(t)),{isStatic:i}=(0,r.useContext)(l.Q);if(i){let[,i]=(0,r.useState)(t);(0,r.useEffect)(()=>e.on("change",i),[])}return e}(e()),s=()=>i.set(e());return s(),(0,c.E)(()=>{let e=()=>u.Gt.preRender(s,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,u.WG)(s)}}),i}function p(t,e,i,n){if("function"==typeof t)return function(t){a.bt.current=[],t();let e=d(a.bt.current,t);return a.bt.current=void 0,e}(t);let r="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],a=t[2+i],l=t[3+i],h=(0,s.G)(r,a,{mixer:o(a[0]),...l});return e?h(n):h}(e,i,n);return Array.isArray(t)?f(t,r):f([t],([t])=>r(t))}function f(t,e){let i=(0,h.M)(()=>[]);return d(t,()=>{i.length=0;let s=t.length;for(let e=0;e<s;e++)i[e]=t[e].get();return e(i)})}},43929:(t,e,i)=>{i.d(e,{g:()=>n});var s=i(92910);function n(t,e){let i=t.getValue("willChange");if((0,s.S)(i)&&i.add)return i.add(e)}},92910:(t,e,i)=>{i.d(e,{S:()=>s});let s=t=>!!(t&&t.getVelocity)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.