1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74647,t=>{"use strict";let e,i,n;var s,r=t.i(43476),a=t.i(932),o=t.i(71645);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set([...l,"pathRotation"]),c=(t,e,i)=>i>e?e:i<t?t:i,u={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},d={...u,transform:t=>c(0,1,t)},m={...u,default:1},p=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,g=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,y=(t,e)=>i=>!!("string"==typeof i&&g.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),x=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(f);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},v={...u,transform:t=>Math.round(c(0,255,t))},b={test:y("rgb","red"),parse:x("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+v.transform(t)+", "+v.transform(e)+", "+v.transform(i)+", "+p(d.transform(n))+")"},w={test:y("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:b.transform},S=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),j=S("deg"),T=S("%"),k=S("px"),P=S("vh"),M=S("vw"),E={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},A={test:y("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+T.transform(p(e))+", "+T.transform(p(i))+", "+p(d.transform(n))+")"},N={test:t=>b.test(t)||w.test(t)||A.test(t),parse:t=>b.test(t)?b.parse(t):A.test(t)?A.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?b.transform(t):A.transform(t),getAnimatableNone:t=>{let e=N.parse(t);return e.alpha=0,N.transform(e)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_="number",V="color",D=/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 R(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(D,t=>(N.test(t)?(n.color.push(r),s.push(V),i.push(N.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(_),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function L({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===_?s+=p(n[r]):t===V?s+=N.transform(n[r]):s+=n[r]}return s}}let F={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(f)?.length||0)+(t.match(C)?.length||0)>0},parse:function(t){return R(t).values},createTransformer:function(t){return L(R(t))},getAnimatableNone:function(t){let e=R(t);return L(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:N.test(t)?N.getAnimatableNone(t):t)(t,e.split[i])))}},B=new Set(["brightness","contrast","saturate","opacity"]);function O(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(f)||[];if(!n)return t;let s=i.replace(n,""),r=+!!B.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let I=/\b([a-z-]*)\(.*?\)/gu,W={...F,getAnimatableNone:t=>{let e=t.match(I);return e?e.map(O).join(" "):t}},U={...F,getAnimatableNone:t=>{let e=F.parse(t);return F.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},$={...u,transform:Math.round},z={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,inset:k,insetBlock:k,insetBlockStart:k,insetBlockEnd:k,insetInline:k,insetInlineStart:k,insetInlineEnd:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,paddingBlock:k,paddingBlockStart:k,paddingBlockEnd:k,paddingInline:k,paddingInlineStart:k,paddingInlineEnd:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,marginBlock:k,marginBlockStart:k,marginBlockEnd:k,marginInline:k,marginInlineStart:k,marginInlineEnd:k,fontSize:k,backgroundPositionX:k,backgroundPositionY:k,rotate:j,pathRotation:j,rotateX:j,rotateY:j,rotateZ:j,scale:m,scaleX:m,scaleY:m,scaleZ:m,skew:j,skewX:j,skewY:j,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:d,originX:E,originY:E,originZ:k,zIndex:$,fillOpacity:d,strokeOpacity:d,numOctaves:$},H={...z,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:W,WebkitFilter:W,mask:U,WebkitMask:U},Y=t=>H[t],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:X(),y:X()}),q=()=>({min:0,max:0}),K=()=>({x:q(),y:q()}),Z=t=>!!(t&&t.getVelocity),J=new Set(["width","height","top","left","right","bottom",...l]),Q=t=>e=>e.test(t),tt=[u,k,T,j,M,P,{test:t=>"auto"===t,parse:t=>t}],te=t=>tt.find(Q(t));var ti=t.i(47167);let tn=()=>{},ts=()=>{};
1ti.default;let tr=t=>e=>"string"==typeof e&&e.startsWith(t),ta=tr("--"),to=tr("var(--"),tl=t=>!!to(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tc(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,td=t=>180*t/Math.PI,tm=t=>tf(td(Math.atan2(t[1],t[0]))),tp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tm,rotateZ:tm,skewX:t=>td(Math.atan(t[1])),skewY:t=>td(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tf=t=>((t%=360)<0&&(t+=360),t),tg=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ty=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tx={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tg,scaleY:ty,scale:t=>(tg(t)+ty(t))/2,rotateX:t=>tf(td(Math.atan2(t[6],t[5]))),rotateY:t=>tf(td(Math.atan2(-t[2],t[0]))),rotateZ:tm,rotate:tm,skewX:t=>td(Math.atan(t[4])),skewY:t=>td(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tv(t){return+!!t.includes("scale")}function tb(t,e){let i,n;if(!t||"none"===t)return tv(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tx,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tp,n=e}if(!n)return tv(e);let r=i[e],a=n[1].split(",").map(tw);return"function"==typeof r?r(a):a[r]}function tw(t){return parseFloat(t.trim())}let tS=t=>t===u||t===k,tj=new Set(["x","y","z"]),tT=l.filter(t=>!tj.has(t)),tk={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-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:(t,{transform:e})=>tb(e,"x"),y:(t,{transform:e})=>tb(e,"y")};tk.translateX=tk.x,tk.translateY=tk.y;let tP=t=>t,tM={},tE=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tA(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tE.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(e){r.has(e)&&(l.schedule(e),t()),e(a)}let l={schedule:(t,s=!1,a=!1)=>{let o=a&&n?e:i;return s&&r.add(t),o.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(o),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:c,update:u,preRender:d,render:m,postRender:p}=a,f=()=>{let r=tM.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),h.process(s),c.process(s),u.process(s),d.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tE.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tE.length;e++)a[tE[e]].cancel(t)},state:s,steps:a}}let{schedule:tN,cancel:tC,state:t_,steps:tV}=tA("u">typeof requestAnimationFrame?requestAnimationFrame:tP,!0),tD=new Set,tR=!1,tL=!1,tF=!1;function tB(){if(tL){let t=Array.from(tD).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tT.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tL=!1,tR=!1,tD.forEach(t=>t.complete(tF)),tD.clear()}function tO(){tD.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tL=!0)})}class tI{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tD.add(this),tR||(tR=!0,tN.read(tO),tN.resolveKeyframes(tB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;
1if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tD.delete(this)}cancel(){"scheduled"===this.state&&(tD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tW=new Set([W,U]);function tU(t,e){let i=Y(t);return tW.has(i)||(i=F),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t$=new Set(["auto","none","0"]);class tz extends tI{constructor(t,e,i,n,s){super(t,e,i,n,s,!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 n=t[i];if("string"==typeof n&&tl(n=n.trim())){let s=function t(e,i,n=1){ts(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tl(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!J.has(i)||2!==t.length)return;let[n,s]=t,r=te(n),a=te(s);if(tc(n)!==tc(s)&&tk[i]){this.needsMeasurement=!0;return}if(r!==a)if(tS(r)&&tS(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tk[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!t$.has(e)&&R(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tU(i,n)}(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=tk[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tk[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tH=t=>1e3*t;function tY(t,e){-1===t.indexOf(e)&&t.push(e)}function tX(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tG{constructor(){this.subscriptions=[]}add(t){return tY(this.subscriptions,t),()=>tX(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tq(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let tZ={};function tJ(t,e){let i=tK(t);return()=>tZ[e]??i()}let tQ=tJ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t0=tJ(()=>void 0!==window.ViewTimeline,"viewTimeline"),t1=t=>null!==t;function t2(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(t1),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}class t5{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let t3=t=>Array.isArray(t)&&"number"==typeof t[0],t4=tJ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t6=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t7=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t7([0,.65,.55,1]),circOut:t7([.55,0,1,.45]),backIn:t7([.31,.01,.66,-.59]),backOut:t7([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class et extends t5{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,ts("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t9(t)&&t4()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let c={[e]:i};l&&(c.offset=l);let u=function t(e,i){if(e)return"function"==typeof e?t4()?t6(e,i):"ease-out":t3(e)?t7(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(o,s);Array.isArray(u)&&(c.easing=u);let d={delay:n,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return h&&(d.pseudoElement=h),t.animate(c,d)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=t2(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tq(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tH(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tQ())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tP):n(this)}}let ee=new Set(["opacity","clipPath","filter","transform"]),{schedule:ei,cancel:en}=tA(queueMicrotask,!1);function es(){e=void 0}let er={now:()=>(void 0===e&&er.set(t_.isProcessing||tM.useManualTiming?t_.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(es)}},ea=(t,e)=>e?1e3/e*t:0,eo={current:void 0};class el{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=er.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=er.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 tG);let i=this.events[t].add(e);return"change"===t?()=>{i(),tN.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eo.current&&eo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=er.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ea(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eh(t,e){return new el(t,e)}let ec=[...tt,N,F],eu=new WeakMap;function ed(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function em(t){return"string"==typeof t||Array.isArray(t)}let ep=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ef=["initial",...ep];function eg(t){return ed(t.animate)||ef.some(e=>em(t[e]))}function ey(t){return!!(eg(t)||t.variants)}let ex={current:null},ev={current:!1},eb="u">typeof window;function ew(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eS(t,e,i,n){if("function"==typeof e){let[s,r]=ew(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ew(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let ej=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eT={};class ek{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tI,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=er.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tN.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=eg(e),this.isVariantNode=ey(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in u){const e=u[t];void 0!==l[t]&&Z(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eu.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.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ev.current||function(){if(ev.current=!0,eb)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ex.current=t.matches;t.addEventListener("change",e),e()}else ex.current=!1}(),this.shouldReduceMotion=ex.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tC(this.notifyUpdate),tC(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ee.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new et({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tH(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tN.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 eT){let e=eT[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.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):K()}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<ej.length;e++){let i=ej[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(Z(s))t.addValue(n,s);else if(Z(r))t.addValue(n,eh(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,eh(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);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=eh(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!ec.find(Q(n))&&F.test(e)&&(i=tU(t,e))}this.setBaseTarget(t,Z(i)?i.get():i)}return Z(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eS(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||Z(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new tG),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ei.render(this.render)}}class eP extends ek{constructor(){super(...arguments),this.KeyframeResolver=tz}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Z(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eM(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eE=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eN=l.length;function eC(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(h.has(t)){a=!0;continue}if(ta(t)){s[t]=i;continue}{let e=eE(i,z[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}
1if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<eN;r++){let a=l[r],o=t[a];if(void 0===o)continue;let h=!0;if("number"==typeof o)h=o===+!!a.startsWith("scale");else{let t=parseFloat(o);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=eE(o,z[a]);if(!h){s=!1;let e=eA[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let r=t.pathRotation;return r&&(s=!1,n+=`rotate(${eE(r,z.pathRotation)}) `),n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}let e_={offset:"stroke-dashoffset",array:"stroke-dasharray"},eV={offset:"strokeDashoffset",array:"strokeDasharray"},eD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eR(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,h,c){if(eC(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:u,style:d}=t;for(let t of(u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete u.transformBox),eD))void 0!==u[t]&&(d[t]=u[t],delete u[t]);void 0!==e&&(u.x=e),void 0!==i&&(u.y=i),void 0!==n&&(u.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?e_:eV;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(u,s,r,a,!1)}let eL=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"]),eF=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eB(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function eO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!k.test(t))return t;else t=parseFloat(t);let i=eO(t,e.target.x),n=eO(t,e.target.y);return`${i}% ${n}%`}},eW=(t,e,i)=>t+(e-t)*i,eU={borderRadius:{...eI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=F.parse(t);if(n.length>5)return t;let s=F.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=eW(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function e$(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eU[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(Z(n[e])||s&&Z(s[e])||e$(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eH(t,e,i){let n=ez(t,e,i);for(let i in t)(Z(t[i])||Z(e[i]))&&(n[-1!==l.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eY extends eP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=Y(e);return t&&t.default||0}return e=eL.has(e)?e:eM(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eH(t,e,i)}build(t,e,i){eR(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eB(t,e,void 0,n),e.attrs)t.setAttribute(eL.has(i)?i:eM(i),e.attrs[i])}mount(t){this.isSVGTag=eF(t.tagName),super.mount(t)}}function eX({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eG(t){return void 0===t||1===t}function eq({scale:t,scaleX:e,scaleY:i}){return!eG(t)||!eG(e)||!eG(i)}function eK(t){return eq(t)||eZ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eZ(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eJ(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eQ(t,e=0,i=1,n,s){t.min=eJ(t.min,e,i,n,s),t.max=eJ(t.max,e,i,n,s)}function e0(t,{x:e,y:i}){eQ(t.x,e.translate,e.scale,e.originPoint),eQ(t.y,i.translate,i.scale,i.originPoint)}function e1(t,e){t.min+=e,t.max+=e}function e2(t,e,i,n,s=.5){let r=eW(t.min,t.max,s);eQ(t,e,i,r,n)}function e5(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e3(t,e,i){let n=i??t;e2(t.x,e5(e.x,n.x),e.scaleX,e.scale,e.originX),e2(t.y,e5(e.y,n.y),e.scaleY,e.scale,e.originY)}function e4(t,e){return eX(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e6 extends eP{constructor(){super(...arguments),this.type="html",this.renderInstance=eB}readValueFromInstance(t,e){if(h.has(e))return this.projection?.isProjecting?tv(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tb(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ta(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e4(t,e)}build(t,e,i){eC(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}let e7=["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 e8(t){if("string"!=typeof t||t.includes("-"));else if(e7.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let e9=(0,o.createContext)({}),it=(0,o.createContext)({strict:!1}),ie=(0,o.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ii=(0,o.createContext)({});function is(t){return Array.isArray(t)?t.join(" "):t}let ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,i){for(let n in e)Z(e[n])||e$(n,i)||(t[n]=e[n])}let io=()=>({...ir(),attrs:{}}),il=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","propagate","ignoreStrict","viewport"]);function ih(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||il.has(t)}let ic=t=>!ih(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(ic=t=>t.startsWith("on")?!ih(t):s(t))}catch{}function iu(t){return Z(t)?t.get():t}let id=(0,o.createContext)(null);function im(t){let e=(0,o.useRef)(null);return null===e.current&&(e.current=t()),e.current}let ip=t=>(e,i)=>{let n=(0,o.useContext)(ii),s=(0,o.useContext)(id),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=iu(r[t]);let{initial:a,animate:o}=t,l=eg(t),h=ey(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let c=!!i&&!1===i.initial,u=(c=c||!1===a)?o:a;if(u&&"boolean"!=typeof u&&!ed(u)){let e=Array.isArray(u)?u:[u];for(let i=0;i<e.length;i++){let n=eS(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():im(r)},ig=ip({scrapeMotionValuesFromProps:ez,createRenderState:ir}),iy=ip({scrapeMotionValuesFromProps:eH,createRenderState:io}),ix={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"]},iv=!1;function ib(){return!function(){if(iv)return;let t={};for(let e in ix)t[e]={isEnabled:t=>ix[e].some(e=>!!t[e])};eT=t,iv=!0}(),eT}let iw=Symbol.for("motionComponentSymbol"),iS="data-"+eM("framerAppearId"),ij=(0,o.createContext)({});function iT(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let ik="u">typeof window?o.useLayoutEffect:o.useEffect;function iP(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=ib();for(let i in t)e[i]={...e[i],...t[i]};eT=e}(n);let a=i?"svg"===i:e8(t),l=a?iy:ig;function h(i,n){var h;let c,u,d,m={...(0,o.useContext)(ie),...i,layoutId:function({layoutId:t}){let e=(0,o.useContext)(e9).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:p}=m,f=function(t){let{initial:e,animate:i}=function(t,e){if(eg(t)){let{initial:e,animate:i}=t;return{initial:!1===e||em(e)?e:void 0,animate:em(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,o.useContext)(ii));return(0,o.useMemo)(()=>({initial:e,animate:i}),[is(e),is(i)])}(i),g=l(i,p);if(!p&&"u">typeof window){(0,o.useContext)(it).strict;let e=function(t){let{drag:e,layout:i}=ib();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(m);c=e.MeasureLayout,f.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,o.useContext)(ii),l=(0,o.useContext)(it),h=(0,o.useContext)(id),c=(0,o.useContext)(ie),u=c.reducedMotion,d=c.skipAnimations,m=(0,o.useRef)(null),p=(0,o.useRef)(!1);n=n||l.renderer,!m.current&&n&&(m.current=n(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),p.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let f=m.current,g=(0,o.useContext)(ij);f&&!f.projection&&s&&("html"===f.type||"svg"===f.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutAnchor:c,layoutCrossfade:u}=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:s,layout:r,alwaysMeasureLayout:!!a||o&&iT(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h,layoutAnchor:c})}(m.current,i,s,g);let y=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{f&&y.current&&f.update(i,h)});let x=i[iS],v=(0,o.useRef)(!!x&&"u">typeof window&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return ik(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),(0,o.useEffect)(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),v.current=!1),f.enteringChildren=void 0)}),f}(t,g,m,s,e.ProjectionNode,a)}return(0,r.jsxs)(ii.Provider,{value:f,children:[c&&f.visualElement?(0,r.jsx)(c,{visualElement:f.visualElement,...m}):null,function(t,e,i,{latestValues:n},s,r=!1,a){let l=(a??e8(t)?function(t,e,i,n){let s=(0,o.useMemo)(()=>{let i=io();return eR(i,e,eF(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ia(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ia(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,o.useMemo)(()=>{let i=ir();return eC(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),h=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!Z(t[s])&&(ic(s)||!0===i&&ih(s)||!e&&!ih(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),c=t!==o.Fragment?{...h,...l,ref:i}:{},{children:u}=e,d=(0,o.useMemo)(()=>Z(u)?u.get():u,[u]);return(0,o.createElement)(t,{...c,children:d})}(t,i,(h=f.visualElement,u=(0,o.useRef)(n),(0,o.useInsertionEffect)(()=>{u.current=n}),d=(0,o.useRef)(null),(0,o.useCallback)(t=>{t&&g.onMount?.(t),h&&(t?h.mount(t):h.unmount());let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t)},[h])),g,p,e,a)]})}h.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let c=(0,o.forwardRef)(h);return c[iw]=t,c}class iM{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iE(t,e,i){let n=t.getProps();return eS(n,e,void 0!==i?i:n.custom,t)}function iA(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iN(t,e){let i=t?.[e]??t?.default??t;return i!==t?iA(i,t):i}let iC=t=>Array.isArray(t);function i_(t,e){let i=t.getValue("willChange");if(Z(i)&&i.add)return i.add(e);if(!i&&tM.WillChange){let i=new tM.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iV=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iD(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iR(t,e){return i=>i>0?e:t}let iL=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iF=[w,b,A];function iB(t){let e=iF.find(e=>e.test(t));if(tn(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===A&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=iD(o,n,t+1/3),r=iD(o,n,t),a=iD(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let iO=(t,e)=>{let i=iB(t),n=iB(e);if(!i||!n)return iR(t,e);let s={...i};return t=>(s.red=iL(i.red,n.red,t),s.green=iL(i.green,n.green,t),s.blue=iL(i.blue,n.blue,t),s.alpha=eW(i.alpha,n.alpha,t),b.transform(s))},iI=new Set(["none","hidden"]);function iW(t,e){return i=>eW(t,e,i)}function iU(t){return"number"==typeof t?iW:"string"==typeof t?tl(t)?iR:N.test(t)?iO:iH:Array.isArray(t)?i$:"object"==typeof t?N.test(t)?iO:iz:iR}function i$(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iU(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iz(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iU(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iH=(t,e)=>{let i=F.createTransformer(e),n=R(t),s=R(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return tn(!0,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iR(t,e);if(iI.has(t)&&!s.values.length||iI.has(e)&&!n.values.length)return iI.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iV(i$(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function iY(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eW(t,e,i):iU(t)(t,e)}let iX=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tN.update(e,t),stop:()=>tC(e),now:()=>t_.isProcessing?t_.timestamp:er.now()}};function iG(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 iq=.01,iK=2,iZ=.005,iJ=.5;function iQ(t,e){return t*Math.sqrt(1-e*e)}let i0=["duration","bounce"],i1=["stiffness","damping","mass"];function i2(t,e){return e.some(e=>void 0!==t[e])}function i5(t=.3,e=.3){let i,n,s,r,a,o,l="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:u}=l,d=l.keyframes[0],m=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:f,damping:g,mass:y,duration:x,velocity:v,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i2(t,i1)&&i2(t,i0))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*c(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;tn(t<=tH(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=c(.05,1,a),t=c(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/iQ(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=iQ(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=tH(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-((l.velocity||0)/1e3)}),w=v||0,S=g/(2*Math.sqrt(f*y)),j=m-d,T=Math.sqrt(f/y)/1e3,k=5>Math.abs(j);if(h||(h=k?iq:iK),u||(u=k?iZ:iJ),S<1)s=iQ(T,S),r=(w+S*T*j)/s,i=t=>m-Math.exp(-S*T*t)*(r*Math.sin(s*t)+j*Math.cos(s*t)),a=S*T*r+j*s,o=S*T*j-r*s,n=t=>Math.exp(-S*T*t)*(a*Math.sin(s*t)+o*Math.cos(s*t));else if(1===S){i=t=>m-Math.exp(-T*t)*(j+(w+T*j)*t);let t=w+T*j;n=e=>Math.exp(-T*e)*(T*t*e-w)}else{let t=T*Math.sqrt(S*S-1);i=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return m-i*((w+S*T*j)*Math.sinh(n)+t*j*Math.cosh(n))/t};let e=(w+S*T*j)/t,s=S*T*e-j*t,r=S*T*j-e*t;n=e=>{let i=Math.exp(-S*T*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let P={calculatedDuration:b&&x||null,velocity:t=>tH(n(t)),next:t=>{if(!b&&S<1){let e=Math.exp(-S*T*t),i=Math.sin(s*t),n=Math.cos(s*t),l=m-e*(r*i+j*n);return p.done=Math.abs(tH(e*(a*i+o*n)))<=h&&Math.abs(m-l)<=u,p.value=p.done?m:l,p}let e=i(t);return b?p.done=t>=x:p.done=Math.abs(tH(n(t)))<=h&&Math.abs(m-e)<=u,p.value=p.done?m:e,p},toString:()=>{let t=Math.min(iG(P),2e4),e=t6(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function i3(t,e,i){let n=Math.max(e-5,0);return ea(i-t(n),e-n)}function i4({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:c}){let u,d,m=t[0],p={done:!1,value:m},f=i*e,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let x=t=>-f*Math.exp(-t/n),v=t=>y+x(t),b=t=>{let e=x(t),i=v(t);p.done=Math.abs(e)<=h,p.value=p.done?y:i},w=t=>{let e;if(e=p.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;u=t,d=i5({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i3(v,t,p.value),damping:s,stiffness:r,restDelta:h,restSpeed:c})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==u||(e=!0,b(t),w(t)),void 0!==u&&t>=u)?d.next(t-u):(e||b(t),p)}}}i5.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iG(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i5);return t.ease=e.ease,t.duration=tH(e.duration),t.type="keyframes",t};let i6=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i7(t,e,i,n){return t===e&&i===n?tP:s=>
10===s||1===s?s:i6(function(t,e,i,n,s){let r,a,o=0;do(r=i6(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let i8=i7(.42,0,1,1),i9=i7(0,0,.58,1),nt=i7(.42,0,.58,1),ne=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ni=t=>e=>1-t(1-e),nn=i7(.33,1.53,.69,.99),ns=ni(nn),nr=ne(ns),na=t=>t>=1?1:(t*=2)<1?.5*ns(t):.5*(2-Math.pow(2,-10*(t-1))),no=t=>1-Math.sin(Math.acos(t)),nl=ni(no),nh=ne(no),nc={linear:tP,easeIn:i8,easeInOut:nt,easeOut:i9,circIn:no,circInOut:nh,circOut:nl,backIn:ns,backInOut:nr,backOut:nn,anticipate:na},nu=t=>{if(t3(t)){ts(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i7(e,i,n,s)}return"string"==typeof t?(ts(void 0!==nc[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nc[t]):t},nd=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nm(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(ts(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||tM.mix||iY,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=iV(Array.isArray(e)?e[i]||tP:e,r)),n.push(r)}return n}(e,n,s),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nd(t[n],t[n+1],i);return o[n](s)};return i?e=>h(c(t[0],t[r-1],e)):h}function np(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nd(0,e,n);t.push(eW(i,1,s))}}(e,t.length-1),e}function nf({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nu):nu(n),a={done:!1,value:e[0]},o=nm((s=i&&i.length===e.length?i:np(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||nt).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}let ng={decay:i4,inertia:i4,tween:nf,keyframes:nf,spring:i5};function ny(t){"string"==typeof t.type&&(t.type=ng[t.type])}let nx=t=>t/100;class nv extends t5{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==er.now()&&this.tick(er.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;ny(t);let{type:e=nf,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||nf;o!==nf&&"number"!=typeof a[0]&&(this.mixKeyframes=iV(nx,iY(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iG(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:u,repeat:d,repeatType:m,repeatDelay:p,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let x=this.currentTime-h*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>s;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,s)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/o)):"mirror"===m&&(w=a)),b=c(0,1,i)*o}v?(this.delayState.value=u[0],i=this.delayState):i=w.next(b),r&&!v&&(i.value=r(i.value));let{done:S}=i;v||null===l||(S=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return j&&f!==i4&&(i.value=t2(u,this.options,y,this.speed)),g&&g(i.value),j&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tH(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i3(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(er.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iX,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(er.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nb={anticipate:na,backInOut:nr,circInOut:nh};class nw extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nb&&(t.ease=nb[t.ease])}(t),ny(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nv({...r,autoplay:!1}),o=Math.max(10,er.now()-this.startTime),l=c(0,10,o-10),h=a.sample(o).value,{name:u}=this.options;s&&u&&tq(s,u,h),e.setWithVelocity(a.sample(Math.max(0,o-l)).value,h,l),a.stop()}}let nS=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(F.test(t)||"0"===t)&&!t.startsWith("url("));function nj(t){t.duration=0,t.type="keyframes"}let nT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nP=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nM extends t5{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=er.now();const u={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:h,...c},d=h?.KeyframeResolver||tI;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,u,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:c}=i;this.resolvedAt=er.now();let u=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=nS(s,e),o=nS(r,e);return tn(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||t9(i))&&n)}(t,r,a,o)&&(u=!1,(tM.instantAnimations||!l)&&c?.(t2(t,i,e)),t[0]=t[t.length-1],nj(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=u&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return nP()&&i&&(ee.has(i)||nk.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nT.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(d),p=d.motionValue?.owner?.current;if(m)try{s=new nw({...d,element:p})}catch{s=new nv(d)}else s=new nv(d);s.finished.then(()=>{this.notifyFinished()}).catch(tP),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tO(),tB(),tF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nE={type:"spring",stiffness:500,damping:25,restSpeed:10},nA={type:"keyframes",duration:.8},nN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nC=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),n_=(t,e,i,n={},s,r)=>a=>{let o=iN(n,t)||{},l=o.delay||n.delay||0,{elapsed:c=0}=n;c-=tH(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-c,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function(t){for(let e in t)if(!nC.has(e))return!0;return!1}(o)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?nA:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nE:nN)(t,u)),u.duration&&(u.duration=tH(u.duration)),u.repeatDelay&&(u.repeatDelay=tH(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(nj(u),0===u.delay&&(d=!0)),(tM.instantAnimations||tM.skipAnimations||s?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,nj(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=t2(u.keyframes,o);if(void 0!==t)return void tN.update(()=>{u.onUpdate(t),u.onComplete()})}return o.isSync?new nv(u):new nM(u)};function nV(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iA(r,l):l;let h=r?.reduceMotion,c=r?.skipAnimations;n&&(r=n);let u=[],d=s&&t.animationState&&t.animationState.getState()[s],m=r?.path;for(let e in m&&m.animateVisualElement(t,o,r,i,u),o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...iN(r||{},e)};c&&(a.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){tN.update(()=>n.set(s));continue}let m=!1;if(window.MotionHandoffAnimation){let i=t.props[iS];if(i){let t=window.MotionHandoffAnimation(i,e,tN);null!==t&&(a.startTime=t,m=!0)}}i_(t,e);let p=h??t.shouldReduceMotion;n.start(n_(e,n,s,p&&J.has(e)?{type:!1}:a,t,m));let f=n.animation;f&&u.push(f)}if(a){let e=()=>tN.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iE(t,e)||{};for(let e in s={...s,...i}){var r;let i=iC(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eh(i))}}(t,a)});u.length?Promise.all(u).then(e):e()}return u}function nD(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function nR(t,e,i={}){let n=iE(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nV(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;
1return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nR(l,e,{...a,delay:i+("function"==typeof n?0:n)+nD(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let nL=ef.length;function nF(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nB=[...ep].reverse(),nO=ep.length;function nI(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nW(){return{animate:nI(!0),whileInView:nI(),whileHover:nI(),whileTap:nI(),whileDrag:nI(),whileFocus:nI(),exit:nI()}}let nU=0;function n$(t){return[t("x"),t("y")]}function nz(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let nH={x:!1,y:!1};function nY(t){return t.max-t.min}function nX(t,e,i,n=.5){t.origin=n,t.originPoint=eW(e.min,e.max,t.origin),t.scale=nY(i)/nY(e),t.translate=eW(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 nG(t,e,i,n){nX(t.x,e.x,i.x,n?n.originX:void 0),nX(t.y,e.y,i.y,n?n.originY:void 0)}function nq(t,e,i,n=0){t.min=(n?eW(i.min,i.max,n):i.min)+e.min,t.max=t.min+nY(e)}function nK(t,e,i,n=0){let s=n?eW(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nY(e)}function nZ(t,e,i,n){nK(t.x,e.x,i.x,n?.x),nK(t.y,e.y,i.y,n?.y)}let nJ=t=>"object"==typeof t&&null!==t;function nQ(t){return nJ(t)&&"ownerSVGElement"in t}function n0(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let n1=new WeakMap,n2=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nQ(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n5=n2("inline","width","offsetWidth"),n3=n2("block","height","offsetHeight");function n4({target:t,borderBoxSize:e}){n1.get(t)?.forEach(i=>{i(t,{get width(){return n5(t,e)},get height(){return n3(t,e)}})})}function n6(t){t.forEach(n4)}let n7=new Set;function n8(t,e){let s;return"function"==typeof t?(n7.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n7.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n7.delete(t),n7.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n6)),(s=n0(t)).forEach(t=>{let n=n1.get(t);n||(n=new Set,n1.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=n1.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),st=new Set(["INPUT","SELECT","TEXTAREA"]),se=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function si(t){return{point:{x:t.pageX,y:t.pageY}}}function sn(t,e,i,n){return nz(t,e,t=>se(t)&&i(t,si(t)),n)}let ss=({current:t})=>t?t.ownerDocument.defaultView:null,sr=(t,e)=>Math.abs(t-e),sa=new Set(["auto","scroll"]);class so{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sl(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sc(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sr(t.x,e.x)**2+sr(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=t_;this.history.push({...r,timestamp:a});
1let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sl(e,this.transformPagePoint),tN.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sc("pointercancel"===t.type?this.lastMoveEventInfo:sl(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!se(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=sl(si(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=t_;this.history=[{...l,timestamp:h}];const{onSessionStart:c}=e;c&&c(t,sc(o,this.history));const u={passive:!0,capture:!0};this.removeListeners=iV(sn(this.contextWindow,"pointermove",this.handlePointerMove,u),sn(this.contextWindow,"pointerup",this.handlePointerUp,u),sn(this.contextWindow,"pointercancel",this.handlePointerUp,u)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sa.has(t.overflowX)||sa.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tN.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tC(this.updatePoint)}}function sl(t,e){return e?{point:e(t.point)}:t}function sh(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sc({point:t},e){return{point:t,delta:sh(t,su(e)),offset:sh(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=su(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>tH(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*tH(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function su(t){return t[t.length-1]}function sd(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 sm(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sp(t,e,i){return{min:sf(t,e),max:sf(t,i)}}function sf(t,e){return"number"==typeof t?t:t[e]||0}let sg=new WeakMap;class sy{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(si(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nH[t])return null;else return nH[t]=!0,()=>{nH[t]=!1};return nH.x||nH.y?null:(nH.x=nH.y=!0,()=>{nH.x=nH.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=nY(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tN.update(()=>s(t,e),!1,!0),i_(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&tN.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new so(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:ss(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tN.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sv(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eW(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eW(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iT(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sd(t.x,i,s),y:sd(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:sp(t,"left","right"),y:sp(t,"top","bottom")}}(e),n!==this.constraints&&!iT(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iT(e))return!1;let n=e.current;ts(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());let r=function(t,e,i){let n=e4(t,i),{scroll:s}=e;return s&&(e1(n.x,s.offset.x),e1(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:sm(t.x,r.x),y:sm(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eX(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(n$(a=>{if(!sv(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return i_(this.visualElement,t),i.start(n_(t,i,0,e,this.visualElement,!1))}stopAnimation(){n$(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){n$(e=>{let{drag:i}=this.getProps();if(!sv(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-eW(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iT(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=nY(i),(o=nY(s))>a?r=nd(s.min,s.max-a,i.min):a>o&&(r=nd(i.min,i.max-o,s.min)),c(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n$(e=>{if(!sv(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eW(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sg.set(this.visualElement,this);let e=this.visualElement.current,i=sn(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,r=s!==e&&(st.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();iT(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=n8(i,sx(s=()=>this.scalePositionWithinConstraints())),a=n8(n,sx(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tN.read(n);let a=nz(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function sx(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sv(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sb=t=>(e,i)=>{t&&tN.update(()=>t(e,i),!1,!0)},sw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sS=o;let sj=!1;class sT extends sS.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sj&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sj=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tN.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ei.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sj=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sk(t){let[e,i]=function(t=!0){let e=(0,o.useContext)(id);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,o.useId)();(0,o.useEffect)(()=>{if(t)return s(r)},[t]);let a=(0,o.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,sS.useContext)(e9);return(0,r.jsx)(sT,{...t,layoutGroup:n,switchLayoutGroup:(0,sS.useContext)(ij),isPresent:e,safeToRemove:i})}let sP=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sM=sP.length,sE=t=>"string"==typeof t?parseFloat(t):t,sA=t=>"number"==typeof t||k.test(t);function sN(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sC=sV(0,.5,nl),s_=sV(.5,.95,tP);function sV(t,e,i){return n=>n<t?0:n>e?1:i(nd(t,e,n))}function sD(t,e){t.min=e.min,t.max=e.max}function sR(t,e){sD(t.x,e.x),sD(t.y,e.y)}function sL(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sF(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sB(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(T.test(e)&&(e=parseFloat(e),e=eW(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=eW(r.min,r.max,n);t===r&&(o-=e),t.min=sF(t.min,e,i,o,s),t.max=sF(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sO=["x","scaleX","originX"],sI=["y","scaleY","originY"];function sW(t,e,i,n){sB(t.x,e,sO,i?i.x:void 0,n?n.x:void 0),sB(t.y,e,sI,i?i.y:void 0,n?n.y:void 0)}function sU(t){return 0===t.translate&&1===t.scale}function s$(t){return sU(t.x)&&sU(t.y)}function sz(t,e){return t.min===e.min&&t.max===e.max}function sH(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sY(t,e){return sH(t.x,e.x)&&sH(t.y,e.y)}function sX(t){return nY(t.x)/nY(t.y)}function sG(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sq{constructor(){this.members=[]}add(t){tY(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tX(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tX(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)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sK=(t,e)=>t.depth-e.depth;class sZ{constructor(){this.children=[],this.isDirty=!1}add(t){tY(this.children,t),this.isDirty=!0}remove(t){tX(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sK),this.isDirty=!1,this.children.forEach(t)}}let sJ=["","X","Y","Z"],sQ=0;function s0(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function s1({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sQ++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s3),this.nodes.forEach(rn),this.nodes.forEach(rs),this.nodes.forEach(s4)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 sZ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tG),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){if(this.instance)return;this.isSVG=nQ(e)&&!(nQ(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tN.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=er.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tC(r),s(i-250))},tN.setup(r,!0),i=()=>tC(r),sw.hasAnimatedSinceResize&&(sw.hasAnimatedSinceResize=!1,this.nodes.forEach(ri))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rc,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!sY(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iN(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||ri(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,this.eventHandlers.clear(),tC(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(rr),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 n=i.props[iS];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tN,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(s8),this.nodes.forEach(s7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s9);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rt),this.nodes.forEach(re),this.nodes.forEach(s2),this.nodes.forEach(s5)):this.nodes.forEach(s9),this.clearAllSnapshots();let t=er.now();t_.delta=c(0,1e3/60,t-t_.timestamp),t_.timestamp=t,t_.isProcessing=!0,tV.update.process(t_),tV.preRender.process(t_),tV.render.process(t_),t_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s6),this.sharedNodes.forEach(ra)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tN.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tN.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nY(this.snapshot.measuredBox.x)||nY(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=K()),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&&this.instance){let e=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!s$(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eK(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rm((e=n).x),rm(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return K();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rf))){let{scroll:t}=this.root;t&&(e1(e.x,t.offset.x),e1(e.y,t.offset.y))}return e}removeElementScroll(t){let e=K();if(sR(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sR(e,t),e1(e.x,s.offset.x),e1(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||K();sR(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e1(n.x,-i.scroll.offset.x),e1(n.y,-i.scroll.offset.y)),eK(i.latestValues)&&e3(n,i.latestValues,i.layout?.layoutBox)}return eK(this.latestValues)&&e3(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=K();sR(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eK(n.latestValues)&&(n.instance&&(eq(n.latestValues)&&n.updateSnapshot(),sR(i=K(),n.measurePageBox())),sW(e,n.latestValues,n.snapshot?.layoutBox,i))}return eK(this.latestValues)&&sW(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!==t_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=t_.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,h;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,nq(a.x,o.x,l.x,h?.x),nq(a.y,o.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sR(this.target,this.layout.layoutBox),e0(this.target,this.targetDelta)):sR(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eq(this.parent.latestValues)||eZ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),nZ(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sR(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===t_.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=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||s))return;sR(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(e1(t.x,-s.scroll.offset.x),e1(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,e0(t,r)),n&&eK(s.latestValues)&&e3(t,s.latestValues,s.layout?.layoutBox))}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,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=K());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sL(this.prevProjectionDelta.x,this.projectionDelta.x),sL(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nG(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sG(this.projectionDelta.x,this.prevProjectionDelta.x)&&sG(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=G(),this.projectionDelta=G(),this.projectionDeltaWithTransform=G()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},a={...this.latestValues},o=G();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=K(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=!!(h&&!u&&!0===this.options.crossfade&&!this.path.some(rh));this.animationProgress=0;let m=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=m?.(i);if(s?(o.x.translate=s.x,o.x.scale=eW(t.x.scale,1,i),o.x.origin=t.x.origin,o.x.originPoint=t.x.originPoint,o.y.translate=s.y,o.y.scale=eW(t.y.scale,1,i),o.y.origin=t.y.origin,o.y.originPoint=t.y.originPoint):(ro(o.x,t.x,i),ro(o.y,t.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,f,g,y,x;nZ(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,x=i,rl(f.x,g.x,y.x,x),rl(f.y,g.y,y.y,x),n&&(c=this.relativeTarget,p=n,sz(c.x,p.x)&&sz(c.y,p.y))&&(this.isProjectionDirty=!1),n||(n=K()),sR(n,this.relativeTarget)}h&&(this.animationValues=a,function(t,e,i,n,s,r){s?(t.opacity=eW(0,i.opacity??1,sC(n)),t.opacityExit=eW(e.opacity??1,0,s_(n))):r&&(t.opacity=eW(e.opacity??1,i.opacity??1,n));for(let s=0;s<sM;s++){let r=sP[s],a=sN(e,r),o=sN(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sA(a)===sA(o)?(t[r]=Math.max(eW(sE(a),sE(o),n),0),(T.test(o)||T.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=eW(e.rotate||0,i.rotate||0,n))}(a,r,this.latestValues,i,d,u)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tN.update(()=>{var e,i,n;let s;sw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=eh(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=Z(e)?e:eh(e)).start(n_("",s,i,n)),s.animation),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:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||K();let e=nY(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nY(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sR(e,i),e3(e,s),nG(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sq),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(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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 n=this.getStack();n&&n.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 n={};i.z&&s0("z",t,n,this.animationValues);for(let e=0;e<sJ.length;e++)s0(`rotate${sJ[e]}`,t,n,this.animationValues),s0(`skew${sJ[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=iu(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=iu(e?.pointerEvents)||""),this.hasProjected&&!eK(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),a&&(n+=`rotateY(${a}deg) `),o&&(n+=`skewX(${o}deg) `),l&&(n+=`skewY(${l}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eU){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eU[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?iu(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(s7),this.root.sharedNodes.clear()}}}function s2(t){t.updateLayout()}function s5(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)n$(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nY(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sD(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rp(s,e.layoutBox,i)&&n$(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=nY(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=G();nG(a,i,e.layoutBox);let o=G();r?nG(o,t.applyTransform(n,!0),e.measuredBox):nG(o,i,e.layoutBox);let l=!s$(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o=K();nZ(o,e.layoutBox,s.layoutBox,a);let l=K();nZ(l,i,r.layoutBox,a),sY(o,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s3(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function s4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s6(t){t.clearSnapshot()}function s7(t){t.clearMeasurements()}function s8(t){t.isLayoutDirty=!0,t.updateLayout()}function s9(t){t.isLayoutDirty=!1}function rt(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function re(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ri(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rn(t){t.resolveTargetDelta()}function rs(t){t.calcProjection()}function rr(t){t.resetSkewAndRotation()}function ra(t){t.removeLeadSnapshot()}function ro(t,e,i){t.translate=eW(e.translate,0,i),t.scale=eW(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rl(t,e,i,n){t.min=eW(e.min,i.min,n),t.max=eW(e.max,i.max,n)}function rh(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rc={duration:.45,ease:[.4,0,.1,1]},ru=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rd=ru("applewebkit/")&&!ru("chrome/")?Math.round:tP;function rm(t){t.min=rd(t.min),t.max=rd(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sX(e)-sX(i)))}function rf(t){return t!==t.root&&t.scroll?.wasRoot}let rg=s1({attachResizeListener:(t,e)=>nz(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ry={current:void 0},rx=s1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ry.current){let t=new rg({});t.mount(window),t.setOptions({layoutScroll:!0}),ry.current=t}return ry.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rv(t,e){let i=n0(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rb(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tN.postRender(()=>s(e,si(e)))}function rw(t){return nJ(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}let rS=(t,e)=>!!e&&(t===e||rS(t,e.parentElement)),rj=new WeakSet;function rT(t){return e=>{"Enter"===e.key&&t(e)}}function rk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rP(t){return se(t)&&!(nH.x||nH.y)}let rM=new WeakSet;function rE(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tN.postRender(()=>s(e,si(e)))}let rA=new WeakMap,rN=new WeakMap,rC=t=>{let e=rA.get(t.target);e&&e(t)},r_=t=>{t.forEach(rC)},rV={some:0,all:1},rD=function(t,e){if("u"<typeof Proxy)return iP;let i=new Map,n=(i,n)=>iP(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iP(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iM{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nR(t,e,i)));else if("string"==typeof e)n=nR(t,e,i);else{let s="function"==typeof e?iE(t,e,i.custom):e;n=Promise.all(nV(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nW(),n=!0,s=!1,r=e=>(i,n)=>{let s=iE(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=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<nL;t++){let n=ef[t],s=e.props[n];(em(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],c=new Set,u={},d=1/0;for(let e=0;e<nO;e++){var m,p;let f=nB[e],g=i[f],y=void 0!==o[f]?o[f]:l[f],x=em(y),v=f===a?g.isActive:null;!1===v&&(d=e);let b=y===l[f]&&y!==o[f]&&x;if(b&&(n||s)&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...u},!g.isActive&&null===v||!y&&!g.prevProp||ed(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==v){g.prevResolvedValues&&(u={...u,...g.prevResolvedValues});continue}let w=(m=g.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!nF(p,m)),S=w||f===a&&g.isActive&&!b&&x||e>d&&x,j=!1,T=Array.isArray(y)?y:[y],k=T.reduce(r(f),{});!1===v&&(k={});let{prevResolvedValues:P={}}=g,M={...P,...k},E=e=>{S=!0,c.has(e)&&(j=!0,c.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=k[t],i=P[t];if(!u.hasOwnProperty(t))(iC(e)&&iC(i)?!nF(e,i)||w:e!==i)?null!=e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=k,g.isActive&&(u={...u,...k}),(n||s)&&t.blockInitialAnimation&&(S=!1);let A=b&&w,N=!A||j;S&&N&&h.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!A&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iE(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nD(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(c.size){let e={};if("boolean"!=typeof o.initial){let i=iE(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}c.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nW(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ed(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(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iM{constructor(){super(...arguments),this.id=nU++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iE(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iM{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rV[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rN.has(i)||rN.set(i,{});let n=rN.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(r_,{root:t,...e})),n[s]}(o),rA.set(t,l),e.observe(t),()=>{rA.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iM{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rv(t,i),a=t=>{let n=t.currentTarget;if(!rP(t)||rM.has(t))return;rj.add(n),i.stopPropagation&&rM.add(t);let r=e(n,t),a={...s,capture:!0},o=(t,e)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",h,a),rj.has(n)&&rj.delete(n),rP(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{o(t,n===window||n===document||i.useGlobalTarget||rS(n,t.target))},h=t=>{o(t,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",h,a)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),rw(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rT(()=>{if(rj.has(i))return;rk(i,"down");let t=rT(()=>{rk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rk(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n9.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rE(this.node,e,"Start"),(t,{success:e})=>rE(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iM{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=iV(nz(this.node.current,"focus",()=>this.onFocus()),nz(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iM{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rv(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nH.x||nH.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(rb(this.node,e,"Start"),t=>rb(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iM{constructor(){super(...arguments),this.removePointerDownListener=tP}onPointerDown(t){this.session=new so(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ss(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sb(t),onStart:sb(e),onMove:sb(i),onEnd:(t,e)=>{delete this.session,n&&tN.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iM{constructor(t){super(t),this.removeGroupControls=tP,this.removeListeners=tP,this.controls=new sy(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rx,MeasureLayout:sk},layout:{ProjectionNode:rx,MeasureLayout:sk}},(t,e)=>e.isSVG??e8(t)?new eY(e):new e6(e,{allowProjection:t!==o.Fragment}));function rR(t,e){let i,n=()=>{let{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return tN.preUpdate(n,!0),()=>tC(n)}function rL(t){return!("u"<typeof window)&&(t?t0():tQ())}let rF=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),rB={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function rO(t,e,i,n){let s=i[e],{length:r,position:a}=rB[e],o=s.current,l=i.time;s.current=Math.abs(t[`scroll${a}`]),s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=nd(0,s.scrollLength,s.current);let h=n-l;s.velocity=h>50?0:ea(s.current-o,h)}let rI={start:0,center:.5,end:1};function rW(t,e,i=0){let n=0;if(t in rI&&(t=rI[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let rU=[0,0],r$=[[0,0],[1,1]],rz={x:0,y:0},rH=new WeakMap,rY=new WeakMap,rX=new WeakMap,rG=new WeakMap,rq=new WeakMap,rK=t=>t===document.scrollingElement?window:t;function rZ(t,{container:e=document.scrollingElement,trackContentSize:i=!1,...n}={}){if(!e)return tP;let s=rX.get(e);s||(s=new Set,rX.set(e,s));
1let r=function(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.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,n.target,i),rO(t,"x",i,e),rO(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=r$}=i,{target:s=t,axis:r="y"}=i,a="y"===r?"height":"width",o=s!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if(rw(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let s=null,r=n.parentNode;for(;!s;)"svg"===r.tagName&&(s=r),r=n.parentNode;n=s}else break;return i}(s,t):rz,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in s&&"svg"!==s.tagName?s.getBBox():{width:s.clientWidth,height:s.clientHeight},h={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let u=!e[r].interpolate,d=n.length;for(let t=0;t<d;t++){let i=function(t,e,i,n){let s=Array.isArray(t)?t:rU,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,rI[t]?t:"0"]),(r=rW(s[0],i,n))-rW(s[1],e)}(n[t],h[a],l[a],o[r]);u||i===e[r].interpolatorOffsets[t]||(u=!0),e[r].offset[t]=i}u&&(e[r].interpolate=nm(e[r].offset,np(n),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=c(0,1,e[r].interpolate(e[r].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:rF(),y:rF()},n);if(s.add(r),!rH.has(e)){let t=()=>{for(let t of s)t.measure(t_.timestamp);tN.preUpdate(i)},i=()=>{for(let t of s)t.notify()},n=()=>tN.read(t);rH.set(e,n);let r=rK(e);window.addEventListener("resize",n),e!==document.documentElement&&rY.set(e,n8(e,n)),r.addEventListener("scroll",n),n()}if(i&&!rq.has(e)){let t=rH.get(e),i={width:e.scrollWidth,height:e.scrollHeight};rG.set(e,i);let n=tN.read(()=>{let n=e.scrollWidth,s=e.scrollHeight;(i.width!==n||i.height!==s)&&(t(),i.width=n,i.height=s)},!0);rq.set(e,n)}let a=rH.get(e);return tN.read(a,!1,!0),()=>{tC(a);let t=rX.get(e);if(!t||(t.delete(r),t.size))return;let i=rH.get(e);rH.delete(e),i&&(rK(e).removeEventListener("scroll",i),rY.get(e)?.(),window.removeEventListener("resize",i));let n=rq.get(e);n&&(tC(n),rq.delete(e)),rG.delete(e)}}let rJ=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[r$,"contain"]],rQ={start:0,end:1};function r0(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,i]of rJ)if(function(t,e){let i=function(t){if(2!==t.length)return;let e=[];for(let i of t)if(Array.isArray(i))e.push(i);else{if("string"!=typeof i)return;let t=function(t){let e=t.trim().split(/\s+/);if(2!==e.length)return;let i=rQ[e[0]],n=rQ[e[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!t)return;e.push(t)}return e}(t);if(!i)return!1;for(let t=0;t<2;t++){let n=i[t],s=e[t];if(n[0]!==s[0]||n[1]!==s[1])return!1}return!0}(t,e))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let r1=new Map;function r2(t){let e={value:0},i=rZ(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}function r5({source:t,container:e,...i}){let{axis:n}=i;t&&(e=t);let s=r1.get(e);s||(s=new Map,r1.set(e,s));let r=i.target??"self",a=s.get(r);a||(a={},s.set(r,a));let o=n+(i.offset??[]).join(",");return a[o]||(i.target&&rL(i.target)?r0(i.offset)?a[o]=new ViewTimeline({subject:i.target,axis:n}):a[o]=r2({container:e,...i}):rL()?a[o]=new ScrollTimeline({source:e,axis:n}):a[o]=r2({container:e,...i})),a[o]}function r3(t,{axis:e="y",container:i=document.scrollingElement,...n}={}){let s,r,a;if(!i)return tP;let o={axis:e,container:i,...n};return"function"==typeof t?function(t,e){return 2===t.length||e&&(e.target||e.offset)?rZ(i=>{t(i[e.axis].progress,i)},e):rR(t,r5(e))}(t,o):(s=r5(o),r=o.target?r0(o.offset):void 0,a=o.target?rL(o.target)&&!!r:rL(),t.attachTimeline({timeline:a?s:void 0,...r&&a&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:t=>(t.pause(),rR(e=>{t.time=t.iterationDuration*e},s))}))}let r4=()=>({scrollX:eh(0),scrollY:eh(0),scrollXProgress:eh(0),scrollYProgress:eh(0)}),r6=t=>!!t&&!t.current;function r7(t,e,i,n){return{factory:s=>{let r,a=()=>{r6(i)||r6(n)?ei.read(a):r=r3(s,{...e,axis:t,container:i?.current||void 0,target:n?.current||void 0})};return ei.read(a),()=>{en(a),r?.()}},times:[0,1],keyframes:[0,1],ease:t=>t,duration:1}}function r8({container:t,target:e,...i}={}){var n;let s=im(r4);n=i.offset,!("u"<typeof window)&&(e?t0()&&!!r0(n):tQ())&&(s.scrollXProgress.accelerate=r7("x",i,t,e),s.scrollYProgress.accelerate=r7("y",i,t,e));let r=(0,o.useRef)(null),a=(0,o.useRef)(!1),l=(0,o.useCallback)(()=>(r.current=r3((t,{x:e,y:i})=>{s.scrollX.set(e.current),s.scrollXProgress.set(e.progress),s.scrollY.set(i.current),s.scrollYProgress.set(i.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0}),()=>{r.current?.()}),[t,e,JSON.stringify(i.offset)]);return ik(()=>
1{if(a.current=!1,!(r6(t)||r6(e)))return l();a.current=!0},[l]),(0,o.useEffect)(()=>{let i;if(!a.current)return;let n=()=>{let n=r6(t),s=r6(e);ts(!n,"Container ref is defined but not hydrated","use-scroll-ref"),ts(!s,"Target ref is defined but not hydrated","use-scroll-ref"),n||s||(i=l())};return ei.read(n),()=>{en(n),i?.()}},[l]),s}function r9(t){return"number"==typeof t?t:parseFloat(t)}function at(t){let e=im(()=>eh(t)),{isStatic:i}=(0,o.useContext)(ie);if(i){let[,i]=(0,o.useState)(t);(0,o.useEffect)(()=>e.on("change",i),[])}return e}function ae(t,e){let i=at(e()),n=()=>i.set(e());return n(),ik(()=>{let e=()=>tN.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),tC(n)}}),i}function ai(t,e,i,n){if("function"==typeof t){let e;return eo.current=[],t(),e=ae(eo.current,t),eo.current=void 0,e}if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof e){var s=t,r=e,a=i,o=n;let l=im(()=>Object.keys(a)),h=im(()=>({}));for(let t of l)h[t]=ai(s,r,a[t],o);return h}let l="function"==typeof e?e:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],s=nm(t[1+i],t[2+i],t[3+i]);return e?s(n):s}(e,i,n),h=Array.isArray(t)?an(t,l):an([t],([t])=>l(t)),c=Array.isArray(t)?void 0:t.accelerate;return c&&!c.isTransformed&&"function"!=typeof e&&Array.isArray(i)&&n?.clamp!==!1&&(h.accelerate={...c,times:e,keyframes:i,isTransformed:!0,...n?.ease?{ease:n.ease}:{}}),h}function an(t,e){let i=im(()=>[]);return ae(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function as(t,e={}){return function(t,e={}){let{isStatic:i}=(0,o.useContext)(ie),n=()=>Z(t)?t.get():t;if(i)return ai(n);let s=at(n());return(0,o.useInsertionEffect)(()=>(function(t,e,i={}){let n,s=t.get(),r=null,a=s,o="string"==typeof s?s.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null),t.animation=void 0},h=()=>{(()=>{let e=r9(t.get()),s=r9(a);if(e===s)return l();let o=r?r.getGeneratorVelocity():t.getVelocity();l(),r=new nv({keyframes:[e,s],velocity:o,type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})})(),t.animation=r??void 0,t.events.animationStart?.notify(),r?.then(()=>{t.animation=void 0,t.events.animationComplete?.notify()})};if(t.attach((t,e)=>{a=t,n=t=>{var i,n;return e((i=t,(n=o)?i+n:i))},tN.postRender(h)},l),Z(e)){let n=!0===i.skipInitialAnimation,s=e.on("change",e=>{var i,s,r,a;n?(n=!1,t.jump((i=e,(s=o)?i+s:i),!1)):t.set((r=e,(a=o)?r+a:r))}),r=t.on("destroy",s);return()=>{s(),r()}}return l})(s,t,e),[s,JSON.stringify(e)]),s}(t,{type:"spring",...e})}var ar=t.i(56420);let aa=(0,ar.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);var ao=t.i(16327),al=t.i(89664);function ah(t){let e,i,n,s,l,h,c,u,d,m,p=(0,a.c)(23),{children:f,href:g,variant:y,className:x}=t,v=void 0===g?"#":g,b=(0,o.useRef)(null),w=at(0),S=at(0);p[0]===Symbol.for("react.memo_cache_sentinel")?(e={stiffness:220,damping:16,mass:.4},p[0]=e):e=p[0];let j=as(w,e);p[1]===Symbol.for("react.memo_cache_sentinel")?(i={stiffness:220,damping:16,mass:.4},p[1]=i):i=p[1];let T=as(S,i);p[2]!==w||p[3]!==S?(n=t=>{let e=b.current.getBoundingClientRect();w.set((t.clientX-e.left-e.width/2)*.3),S.set((t.clientY-e.top-e.height/2)*.4)},p[2]=w,p[3]=S,p[4]=n):n=p[4];let k=n;p[5]!==w||p[6]!==S?(s=()=>{w.set(0),S.set(0)},p[5]=w,p[6]=S,p[7]=s):s=p[7];let P=s;p[8]!==j||p[9]!==T?(l={x:j,y:T},p[8]=j,p[9]=T,p[10]=l):l=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(c={scale:1.05},h={scale:.97},p[11]=h,p[12]=c):(h=p[11],c=p[12]);let M=`group relative inline-flex items-center gap-2 overflow-hidden rounded-full px-8 py-4 text-sm font-semibold tracking-wide transition-shadow ${"gold"===(void 0===y?"gold":y)?"bg-gradient-to-br from-[#f2d675] via-[#d4af37] to-[#9e6f1d] text-black shadow-[0_10px_50px_-10px_rgba(212,175,55,0.75)]":"border border-white/20 bg-white/5 text-white backdrop-blur-xl hover:border-[#d4af37]/70 hover:shadow-[0_0_40px_-10px_rgba(212,175,55,0.6)]"} ${void 0===x?"":x}`;return p[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 -left-1/2 w-1/3 -translate-x-full skew-x-[-20deg] bg-white/40 blur-md transition-transform duration-700 group-hover:translate-x-[500%]"}),p[13]=u):u=p[13],p[14]!==f?(d=(0,r.jsx)("span",{className:"relative flex items-center gap-2",children:f}),p[14]=f,p[15]=d):d=p[15],p[16]!==v||p[17]!==P||p[18]!==k||p[19]!==M||p[20]!==d||p[21]!==l?(m=(0,r.jsxs)(rD.a,{ref:b,href:v,style:l,onMouseMove:k,onMouseLeave:P,whileHover:c,whileTap:h,className:M,children:[u,d]}),p[16]=v,p[17]=P,p[18]=k,p[19]=M,p[20]=d,p[21]=l,p[22]=m):m=p[22],m}function ac(){let t,e,i,n=(0,a.c)(3),s=(0,o.useRef)(null);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let t,e=s.current,i=e.getContext("2d"),n=Math.min(window.devicePixelRatio||1,2),r=0,a=0,o=()=>{r=e.clientWidth,a=e.clientHeight,e.width=r*n,e.height=a*n,i.setTransform(n,0,0,n,0,0)};o(),window.addEventListener("resize",o);let l=Array.from({length:90},()=>({x:Math.random()*r,y:Math.random()*a,r:1.7*Math.random()+.3,vx:(Math.random()-.5)*.18,vy:-(.35*Math.random())-.05,a:.6*Math.random()+.2,t:6*Math.random()})),h=()=>{for(let t of(i.clearRect(0,0,r,a),l)){t.x=t.x+t.vx,t.y=t.y+t.vy,t.t=t.t+.02,t.y<-6&&(t.y=a+6,t.x=Math.random()*r);let e=t.a*(.55+.45*Math.sin(t.t));i.beginPath(),i.arc(t.x,t.y,t.r,0,2*Math.PI),i.shadowBlur=12,i.shadowColor="#d4af37",i.fillStyle=`rgba(242,214,117,${e})`,i.fill()}t=requestAnimationFrame(h)};return h(),()=>{cancelAnimationFrame(t),window.removeEventListener("resize",o)}},e=[],n[0]=t,n[1]=e):(t=n[0],e=n[1]),(0,o.useEffect)(t,e),n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("canvas",{ref:s,className:"absolute inset-0 h-full w-full","aria-hidden":!0}),n[2]=i):i=n[2],i}let au={hidden:{},show:{transition:{staggerChildren:.14,delayChildren:.2}}},ad={hidden:{opacity:0,y:40,scale:.97,filter:"blur(14px)"},show:{opacity:1,y:0,scale:1,filter:"blur(0px)",transition:{duration:1.1,ease:[.16,1,.3,1]}}};function am(){let t,e,i,n,s,l,h,c,u,d,m,p,f,g,y,x,v,b,w,S,j,T,k,P,M,E,A,N,C,_,V,D,R,L,F=(0,a.c)(45),B=(0,o.useRef)(null);F[0]===Symbol.for("react.memo_cache_sentinel")?(t={target:B,offset:["start start","end start"]},F[0]=t):t=F[0];let{scrollYProgress:O}=r8(t);F[1]===Symbol.for("react.memo_cache_sentinel")?(e=[0,1],i=[0,140],F[1]=e,F[2]=i):(e=F[1],i=F[2]);let I=ai(O,e,i);F[3]===Symbol.for("react.memo_cache_sentinel")?(n=[0,1],s=[0,-90],F[3]=n,F[4]=s):(n=F[3],s=F[4]);let W=ai(O,n,s);F[5]===Symbol.for("react.memo_cache_sentinel")?(l=[0,.8],h=[1,0],F[5]=l,F[6]=h):(l=F[5],h=F[6]);let U=ai(O,l,h);return F[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{className:"absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_75%_30%,#1c1608_0%,#0a0805_45%,#050505_75%)]"}),F[7]=c):c=F[7],F[8]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)(rD.div,{"aria-hidden":!0,
1className:"absolute -top-1/4 right-[-10%] -z-10 h-[140%] w-[90%] origin-top-right opacity-70",style:{background:"conic-gradient(from 195deg at 80% 0%, transparent 0deg, rgba(242,214,117,0.16) 12deg, transparent 26deg, rgba(212,175,55,0.12) 48deg, transparent 64deg, rgba(242,214,117,0.1) 86deg, transparent 100deg)",filter:"blur(6px)"},animate:{rotate:[-3,3,-3],opacity:[.5,.85,.5]},transition:{duration:14,repeat:1/0,ease:"easeInOut"}}),F[8]=u):u=F[8],F[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(rD.div,{"aria-hidden":!0,className:"absolute right-[8%] top-[18%] -z-10 h-[520px] w-[520px] rounded-full bg-[#d4af37]/20 blur-[140px]",animate:{x:[0,50,-30,0],y:[0,-40,30,0],scale:[1,1.15,.95,1]},transition:{duration:18,repeat:1/0,ease:"easeInOut"}}),F[9]=d):d=F[9],F[10]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(rD.div,{"aria-hidden":!0,className:"absolute bottom-[-10%] left-[-8%] -z-10 h-[420px] w-[420px] rounded-full bg-[#9e6f1d]/20 blur-[130px]",animate:{x:[0,60,0],y:[0,-30,0]},transition:{duration:16,repeat:1/0,ease:"easeInOut"}}),p=(0,r.jsx)("div",{className:"absolute inset-0 -z-10 opacity-[0.07] [background-image:linear-gradient(#fff_1px,transparent_1px),linear-gradient(90deg,#fff_1px,transparent_1px)] [background-size:80px_80px] [mask-image:radial-gradient(ellipse_at_center,black,transparent_70%)]"}),F[10]=m,F[11]=p):(m=F[10],p=F[11]),F[12]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsx)("div",{className:"absolute inset-0 -z-10",children:(0,r.jsx)(ac,{})}),F[12]=f):f=F[12],F[13]!==U||F[14]!==I?(g={y:I,opacity:U},F[13]=U,F[14]=I,F[15]=g):g=F[15],F[16]===Symbol.for("react.memo_cache_sentinel")?(y=(0,r.jsxs)(rD.div,{variants:ad,className:"mb-8 inline-flex items-center gap-3 rounded-full border border-[#d4af37]/30 bg-white/[0.04] px-4 py-2 text-xs tracking-[0.2em] text-[#f2d675] backdrop-blur-xl",children:[(0,r.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,r.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-[#d4af37] opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-[#d4af37]"})]}),"DUBAI, UAE"]}),F[16]=y):y=F[16],F[17]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsxs)("h1",{className:"text-[clamp(3.25rem,7.4vw,7rem)] font-bold leading-[0.95] tracking-[-0.045em] text-white",children:[(0,r.jsx)(rD.span,{variants:ad,className:"block",children:"Global Markets."}),(0,r.jsx)(rD.span,{variants:ad,className:"block bg-gradient-to-r from-[#f2d675] via-[#d4af37] to-[#9e6f1d] bg-clip-text text-transparent [filter:drop-shadow(0_0_28px_rgba(212,175,55,0.35))]",children:"Modern Trading."}),(0,r.jsx)(rD.span,{variants:ad,className:"block",children:"Disciplined Approach."})]}),v=(0,r.jsx)(rD.p,{variants:ad,className:"mt-8 max-w-xl text-lg leading-relaxed text-white/65 md:text-xl",children:"Access cryptocurrency and gold ETF opportunities through technology-driven market participation and professional risk management."}),F[17]=x,F[18]=v):(x=F[17],v=F[18]),F[19]===Symbol.for("react.memo_cache_sentinel")?(b=(0,r.jsxs)(rD.div,{variants:ad,className:"mt-10 flex flex-wrap items-center gap-4",children:[(0,r.jsxs)(ah,{href:"#free-plan",children:["Start Free ",(0,r.jsx)(aa,{size:18})]}),(0,r.jsx)(ah,{href:"#performance",variant:"glass",children:"View Strategy"})]}),F[19]=b):b=F[19],F[20]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsxs)(rD.div,{variants:ad,className:"mt-14 flex flex-wrap gap-x-10 gap-y-3 text-sm text-white/45",children:[(0,r.jsx)("span",{children:"24/7 market access"}),(0,r.jsx)("span",{children:"Institutional risk controls"}),(0,r.jsx)("span",{children:"Reporting you can audit"})]}),F[20]=w):w=F[20],F[21]!==g?(S=(0,r.jsxs)(rD.div,{style:g,variants:au,initial:"hidden",animate:"show",children:[y,x,v,b,w]}),F[21]=g,F[22]=S):S=F[22],F[23]!==W?(j={y:W},F[23]=W,F[24]=j):j=F[24],F[25]===Symbol.for("react.memo_cache_sentinel")?(T={opacity:0,scale:.8,filter:"blur(20px)"},k={opacity:1,scale:1,filter:"blur(0px)"},F[25]=T,F[26]=k):(T=F[25],k=F[26]),F[27]===Symbol.for("react.memo_cache_sentinel")?(P={duration:1.6,delay:.4,ease:[.16,1,.3,1]},F[27]=P):P=F[27],F[28]===Symbol.for("react.memo_cache_sentinel")?(M=(0,r.jsx)("div",{"aria-hidden":!0,
1className:"absolute left-1/2 top-1/2 h-[70%] w-[70%] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#d4af37]/25 blur-[110px]"}),E=(0,r.jsx)("video",{src:"/FastMoney_3D.mp4",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 h-full w-full object-contain drop-shadow-[0_0_90px_rgba(212,175,55,0.35)]","aria-label":"FastMoney 3D animation"}),F[28]=M,F[29]=E):(M=F[28],E=F[29]),F[30]!==j?(A=(0,r.jsxs)(rD.div,{style:j,initial:T,animate:k,transition:P,className:"relative h-[440px] w-full sm:h-[560px] lg:h-[760px]",children:[M,E]}),F[30]=j,F[31]=A):A=F[31],F[32]!==S||F[33]!==A?(N=(0,r.jsxs)("div",{className:"mx-auto grid min-h-screen max-w-[1400px] items-center gap-6 px-6 pb-16 pt-32 lg:grid-cols-[1.1fr_0.9fr] lg:px-12",children:[S,A]}),F[32]=S,F[33]=A,F[34]=N):N=F[34],F[35]!==U?(C={opacity:U},F[35]=U,F[36]=C):C=F[36],F[37]===Symbol.for("react.memo_cache_sentinel")?(_={y:[0,10,0]},V={duration:2.2,repeat:1/0,ease:"easeInOut"},D=(0,r.jsx)(ao.ChevronDown,{size:28}),F[37]=_,F[38]=V,F[39]=D):(_=F[37],V=F[38],D=F[39]),F[40]!==C?(R=(0,r.jsx)(rD.a,{href:"#ticker","aria-label":"Scroll down",style:C,className:"absolute bottom-8 left-1/2 -translate-x-1/2 text-[#d4af37]/70",animate:_,transition:V,children:D}),F[40]=C,F[41]=R):R=F[41],F[42]!==N||F[43]!==R?(L=(0,r.jsxs)("section",{id:"hero",ref:B,className:"relative isolate min-h-screen overflow-hidden bg-[#050505]",children:[c,u,d,m,p,f,N,R]}),F[42]=N,F[43]=R,F[44]=L):L=F[44],L}let ap={bitcoin:"BTC",ethereum:"ETH",solana:"SOL"},af={GOLD:{n:"Gold",p:2684.1},SILVER:{n:"Silver",p:31.72}};function ag(t){let e,i,n,s,o,l,h,c=(0,a.c)(21),{s:u,n:d,p:m,c:p,ready:f,simulated:g}=t,y=p>=0;return c[0]!==u?(e=(0,r.jsx)("span",{className:"font-bold tracking-wider text-[#f2d675]",children:u}),c[0]=u,c[1]=e):e=c[1],c[2]!==d?(i=(0,r.jsx)("span",{className:"text-white/45",children:d}),c[2]=d,c[3]=i):i=c[3],c[4]!==m||c[5]!==f?(n=f?`$${m.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:"â",c[4]=m,c[5]=f,c[6]=n):n=c[6],c[7]!==n?(s=(0,r.jsx)("span",{className:"font-medium text-white tabular-nums",children:n}),c[7]=n,c[8]=s):s=c[8],c[9]!==p||c[10]!==y||c[11]!==f?(o=f&&(0,r.jsxs)("span",{className:`text-sm font-medium tabular-nums ${y?"text-emerald-400":"text-rose-400"}`,children:[y?"â²":"â¼"," ",Math.abs(p).toFixed(2),"%"]}),c[9]=p,c[10]=y,c[11]=f,c[12]=o):o=c[12],c[13]!==g?(l=g&&(0,r.jsx)("span",{className:"text-[10px] uppercase tracking-widest text-white/25",children:"simulated"}),c[13]=g,c[14]=l):l=c[14],c[15]!==e||c[16]!==i||c[17]!==s||c[18]!==o||c[19]!==l?(h=(0,r.jsxs)("div",{className:"flex items-center gap-4 border-r border-white/10 px-10",children:[e,i,s,o,l]}),c[15]=e,c[16]=i,c[17]=s,c[18]=o,c[19]=l,c[20]=h):h=c[20],h}function ay(){let t,e,i,n,s,l,h,c=(0,a.c)(14),{rows:u,status:d}=function(){let[t,e]=(0,o.useState)(()=>{let t={};return Object.values(ap).forEach(e=>{t[e]={s:e,n:e,p:0,anchor:0,base:0,ready:!1}}),Object.entries(af).forEach(([e,i])=>{t[e]={s:e,n:i.n,p:i.p,anchor:i.p,base:i.p,ready:!0,simulated:!0}}),t}),[i,n]=(0,o.useState)("loading");return(0,o.useRef)(t).current=t,(0,o.useEffect)(()=>{let t=!1,i=async()=>{try{let i=await fetch("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum,solana&vs_currencies=usd&include_24hr_change=true");if(!i.ok)throw Error("bad response");let s=await i.json();if(t)return;e(t=>{let e={...t};return Object.entries(ap).forEach(([t,i])=>{let n=s[t]?.usd,r=s[t]?.usd_24h_change;"number"==typeof n&&(e[i]={...e[i],anchor:n,base:e[i].base>0?e[i].base:n/(1+r/100),p:e[i].ready?e[i].p:n,ready:!0})}),e}),n("live")}catch{t||n(t=>"loading"===t?"stale":t)}};i();let s=setInterval(i,45e3),r=setInterval(()=>{e(t=>{let e={};for(let[i,n]of Object.entries(t)){if(!n.ready){e[i]=n;continue}let t=function(t,e){let i=(Math.random()-.5)*e*9e-4;return Math.max(t+(e-t)*.08+i,.5*e)}(n.p,n.anchor);e[i]={...n,p:t}}return e})},1e3);return()=>{t=!0,clearInterval(s),clearInterval(r)}},[]),{rows:Object.values(t).map(t=>({s:t.s,n:t.n,p:t.p,c:t.base>0?(t.p-t.base)/t.base*100:0,ready:t.ready,simulated:!!t.simulated})),status:i}}();c[0]!==u?(t=[...u,...u,...u,...u],c[0]=u,c[1]=t):t=c[1];let m=t;c[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-32 bg-gradient-to-r from-[#050505] to-transparent"}),i=(0,r.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-32 bg-gradient-to-l from-[#050505] to-transparent"}),c[2]=e,c[3]=i):(e=c[2],i=c[3]),c[4]!==m?(n=(0,r.jsxs)("div",{className:"fm-marquee-wrap relative overflow-hidden border-y border-white/10 bg-white/[0.04] py-5 backdrop-blur-xl",children:[e,i,(0,r.jsx)("div",{className:"fm-marquee flex w-max",children:m.map(ax)})]}),c[4]=m,c[5]=n):n=c[5];let p=`inline-block h-1.5 w-1.5 rounded-full ${"live"===d?"bg-emerald-400 animate-pulse":"bg-white/30"}`;c[6]!==p?(s=(0,r.jsx)("span",{className:p}),c[6]=p,c[7]=s):s=c[7];let f="live"===d?"Crypto prices update every second":"loading"===d?"Fetching live pricesâ¦":"Live feed unavailable â showing last known prices";return c[8]!==s||c[9]!==f?(l=(0,r.jsxs)("p",{className:"mt-3 flex items-center justify-center gap-2 text-center text-[11px] text-white/30",children:[s,f," · ","Gold & Silver are simulated for display."]}),c[8]=s,c[9]=f,c[10]=l):l=c[10],c[11]!==n||c[12]!==l?(h=(0,r.jsxs)("section",{id:"ticker",className:"relative bg-[#050505] py-6",children:[n,l]}),c[11]=n,c[12]=l,c[13]=h):h=c[13],h}function ax(t,e){return(0,r.jsx)(ag,{...t},e)}function av(t,...e){let i=t.length;return ae(e.filter(Z),function(){let n="";for(let s=0;s<i;s++){n+=t[s];let i=e[s];i&&(n+=Z(i)?i.get():i)}return n})}function ab({children:t}){let e=(0,o.useRef)(null),i=at(.5),n=at(.5),s=as(ai(n,[0,1],[9,-9]),{stiffness:160,damping:16}),a=as(ai(i,[0,1],[-9,9]),{stiffness:160,damping:16}),l=ai(i,t=>`${100*t}%`),h=ai(n,t=>`${100*t}%`),c=av`radial-gradient(480px circle at ${l} ${h}, rgba(242,214,117,0.22), transparent 62%)`;return(0,r.jsxs)(rD.div,{ref:e,onMouseMove:t=>{let s=e.current.getBoundingClientRect();i.set((t.clientX-s.left)/s.width),n.set((t.clientY-s.top)/s.height)},onMouseLeave:()=>{i.set(.5),n.set(.5)},whileHover:{y:-14,scale:1.015},transition:{type:"spring",stiffness:220,damping:20},style:{rotateX:s,rotateY:a,transformPerspective:1100,transformStyle:"preserve-3d"},className:"group relative h-full overflow-hidden rounded-[32px] border border-white/10 bg-gradient-to-br from-white/[0.07] to-white/[0.01] p-10 backdrop-blur-xl transition-[border-color,box-shadow] duration-500 hover:border-[#d4af37]/50 hover:shadow-[0_40px_120px_-30px_rgba(212,175,55,0.45)]",children:[(0,r.jsx)(rD.div,{"aria-hidden":!0,style:{background:c},className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100"}),(0,r.jsx)("div",{className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-[#f2d675] to-transparent"}),(0,r.jsx)("div",{style:{transform:"translateZ(50px)"},className:"relative",children:t})]})}let aw=[{icon:(0,ar.default)("bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]),title:"Cryptocurrency Trading",text:"Round-the-clock participation in digital asset markets, guided by quantitative models and hard risk limits.",features:["24/7 Markets","Digital Assets","Quantitative Analysis","Risk Controls"]},{icon:(0,ar.default)("gem",[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]]),title:"Gold ETF Trading",text:"Regulated, liquid exposure to precious metals, built to balance portfolios through inflation and volatility.",features:["Precious Metals Exposure","ETF Liquidity","Inflation Diversification","Market Stability"]}];function aS(){let t,e,i,n,s,o,l,h,c=(0,a.c)(8);return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute left-1/2 top-0 h-[500px] w-[900px] -translate-x-1/2 rounded-full bg-[#d4af37]/10 blur-[160px]"}),c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0,y:40,filter:"blur(10px)"},i={opacity:1,y:0,filter:"blur(0px)"},n={once:!0,margin:"-100px"},c[1]=e,c[2]=i,c[3]=n):(e=c[1],i=c[2],n=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(s={duration:1,ease:[.16,1,.3,1]},c[4]=s):s=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"MARKET EXPOSURE"}),c[5]=o):o=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsxs)(rD.div,{initial:e,whileInView:i,viewport:n,transition:s,className:"mb-16 max-w-3xl",children:[o,(0,r.jsxs)("h2",{className:"text-4xl font-semibold leading-[1.05] tracking-[-0.035em] text-white md:text-6xl",children:["Two markets. One ",(0,r.jsx)("span",{className:"bg-gradient-to-r from-[#f2d675] to-[#9e6f1d] bg-clip-text text-transparent",children:"disciplined"})," framework."]})]}),c[6]=l):l=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)("section",{id:"markets",className:"relative overflow-hidden bg-[#050505] px-6 py-32 lg:px-12",children:[t,(0,r.jsxs)("div",{className:"relative mx-auto max-w-[1400px]",children:[l,(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-2",children:aw.map(aj)})]})]}),c[7]=h):h=c[7],h}function aj(t,e){return(0,r.jsx)(rD.div,{initial:{opacity:0,y:70},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:1,delay:.18*e,ease:[.16,1,.3,1]},children:(0,r.jsxs)(ab,{children:[(0,r.jsx)("div",{className:"mb-8 flex h-16 w-16 items-center justify-center rounded-2xl border border-[#d4af37]/40 bg-gradient-to-br from-[#d4af37]/25 to-transparent text-[#f2d675] shadow-[0_0_40px_-8px_rgba(212,175,55,0.6)]",children:(0,r.jsx)(t.icon,{size:30,strokeWidth:1.5})}),(0,r.jsx)("h3",{className:"text-3xl font-semibold tracking-tight text-white md:text-4xl",children:t.title}),(0,r.jsx)("p",{className:"mt-4 max-w-md leading-relaxed text-white/60",children:t.text}),(0,r.jsx)("ul",{className:"mt-8 grid gap-4 sm:grid-cols-2",children:t.features.map(aT)}),(0,r.jsxs)("a",{href:"#contact",className:"mt-10 inline-flex items-center gap-2 text-sm font-medium text-[#f2d675] transition-all group-hover:gap-4",children:["Discuss exposure ",(0,r.jsx)(aa,{size:16})]})]})},t.title)}function aT(t){return(0,r.jsxs)("li",{className:"flex items-center gap-3 text-white/85",children:[(0,r.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[#d4af37]/20 text-[#f2d675]",children:(0,r.jsx)(al.Check,{size:14})}),t]},t)}let ak=(0,ar.default)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}
1],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var aP=t.i(72382);let aM=(0,ar.default)("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"}]]);var aE=t.i(13285),aA=t.i(84026),aN=t.i(82303);let aC=[{icon:ak,title:"Technology",text:"Low-latency execution and systematic models monitor markets around the clock."},{icon:aA.ShieldCheck,title:"Risk Management",text:"Position limits, stop frameworks and drawdown controls are set before any trade is placed."},{icon:aP.Eye,title:"Transparency",text:"Clear reporting on positions, fees and performance, so you always know where you stand."},{icon:aM,title:"Global Access",text:"One entry point to digital asset and precious metal markets, from Dubai to 27+ countries."},{icon:aE.Layers,title:"Diversification",text:"Crypto and gold ETF exposure combined to spread risk across uncorrelated drivers."},{icon:aN.Users,title:"Professional Team",text:"Traders, quants and risk officers with institutional backgrounds working as one desk."}],a_={hidden:{},show:{transition:{staggerChildren:.12}}},aV={hidden:{opacity:0,y:60,scale:.95,filter:"blur(12px)"},show:{opacity:1,y:0,scale:1,filter:"blur(0px)",transition:{duration:.9,ease:[.16,1,.3,1]}}};function aD(){let t,e,i,n,s,o,l,h,c=(0,a.c)(8);return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-[#d4af37]/60 to-transparent"}),c[0]=t):t=c[0],c[1]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0,y:40,filter:"blur(10px)"},i={opacity:1,y:0,filter:"blur(0px)"},n={once:!0,margin:"-100px"},c[1]=e,c[2]=i,c[3]=n):(e=c[1],i=c[2],n=c[3]),c[4]===Symbol.for("react.memo_cache_sentinel")?(s={duration:1,ease:[.16,1,.3,1]},c[4]=s):s=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsxs)(rD.div,{initial:e,whileInView:i,viewport:n,transition:s,className:"mb-16 max-w-3xl",children:[(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"WHY FAST MONEY"}),(0,r.jsx)("h2",{className:"text-4xl font-semibold leading-[1.05] tracking-[-0.035em] text-white md:text-6xl",children:"Built like an institution. Run with precision."})]}),c[5]=o):o=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l={once:!0,margin:"-100px"},c[6]=l):l=c[6],c[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)("section",{id:"why",className:"relative bg-[#0a0a0a] px-6 py-32 lg:px-12",children:[t,(0,r.jsxs)("div",{className:"mx-auto max-w-[1400px]",children:[o,(0,r.jsx)(rD.div,{variants:a_,initial:"hidden",whileInView:"show",viewport:l,className:"grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:aC.map(aR)})]})]}),c[7]=h):h=c[7],h}function aR(t){return(0,r.jsxs)(rD.div,{variants:aV,whileHover:{y:-10},transition:{type:"spring",stiffness:260,damping:20},className:"group relative overflow-hidden rounded-3xl border border-white/10 bg-gradient-to-b from-white/[0.05] to-transparent p-8 transition-[border-color,box-shadow] duration-500 hover:border-[#d4af37]/40 hover:shadow-[0_30px_90px_-30px_rgba(212,175,55,0.4)]",children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute -bottom-24 -right-24 h-56 w-56 rounded-full bg-[#d4af37]/0 blur-3xl transition-all duration-700 group-hover:bg-[#d4af37]/20"}),(0,r.jsx)("div",{className:"relative mb-6 flex h-14 w-14 items-center justify-center rounded-2xl border border-[#d4af37]/30 bg-[#d4af37]/10 text-[#f2d675] transition-transform duration-500 group-hover:scale-110 group-hover:rotate-[-6deg]",children:(0,r.jsx)(t.icon,{size:26,strokeWidth:1.5})}),(0,r.jsx)("h3",{className:"relative text-2xl font-semibold tracking-tight text-white",children:t.title}),(0,r.jsx)("p",{className:"relative mt-3 leading-relaxed text-white/55",children:t.text})]},t.title)}var aL=t.i(20865),aF=t.i(96315),aB=t.i(57688);let aO=[{label:"X",icon:(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"
1currentColor","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{label:"LinkedIn",icon:(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452z"})})},{label:"Instagram",icon:(0,r.jsxs)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,r.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,r.jsx)("circle",{cx:"17.5",cy:"6.5",r:"0.8",fill:"
1currentColor"})]})}],aI=[{title:"Markets",links:["Crypto Trading","Gold ETF Trading","Wealth Management"]},{title:"Company",links:["About","Process","Performance","Contact"]},{title:"Legal",links:["Risk Disclosure","Privacy Policy","Terms of Service"]}];function aW(){let t,e,i,n,s,o,l,h,c,u,d,m,p=(0,a.c)(12);return p[0]===Symbol.for("react.memo_cache_sentinel")?(t={scaleX:0},e={scaleX:1},i={once:!0},p[0]=t,p[1]=e,p[2]=i):(t=p[0],e=p[1],i=p[2]),p[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(rD.div,{initial:t,whileInView:e,viewport:i,transition:{duration:1.6,ease:[.16,1,.3,1]},className:"absolute inset-x-6 top-0 h-px origin-center bg-gradient-to-r from-transparent via-[#d4af37] to-transparent shadow-[0_0_20px_rgba(212,175,55,0.7)] lg:inset-x-12"}),p[3]=n):n=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(aB.default,{src:"/fastmoneybg.png",alt:"FastMoney",width:32,height:12,priority:!0}),(0,r.jsx)("span",{className:"text-xl font-bold tracking-[0.15em] text-white",children:"FAST MONEY"})]}),o=(0,r.jsx)("p",{className:"mt-6 max-w-sm leading-relaxed text-white/50",children:"Global Markets. Modern Trading. Disciplined Approach."}),p[4]=s,p[5]=o):(s=p[4],o=p[5]),p[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(aL.MapPin,{size:16,className:"text-[#d4af37]"})," Dubai, UAE"]}),p[6]=l):l=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsxs)("div",{className:"mt-6 space-y-3 text-sm text-white/60",children:[l,(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(aF.Mail,{size:16,className:"text-[#d4af37]"})," [email protected]"]})]}),p[7]=h):h=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsxs)("div",{children:[s,o,h,(0,r.jsx)("div",{className:"mt-8 flex gap-3",children:aO.map(az)})]}),p[8]=c):c=p[8],p[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsxs)("div",{className:"grid gap-14 lg:grid-cols-[1.4fr_2fr]",children:[c,(0,r.jsx)("div",{className:"grid gap-10 sm:grid-cols-3",children:aI.map(aU)})]}),p[9]=u):u=p[9],p[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)("p",{className:"text-xs leading-relaxed text-white/35",children:"Risk Disclosure: Trading cryptocurrencies and exchange-traded funds involves substantial risk and may result in the loss of some or all of your capital. Digital asset prices are highly volatile. Past performance is not indicative of future results. Nothing on this website constitutes investment advice or an offer to buy or sell any financial instrument. Consider your objectives and seek independent advice before investing."}),p[10]=d):d=p[10],p[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsxs)("footer",{id:"contact",className:"relative bg-[#050505] px-6 pb-10 pt-24 lg:px-12",children:[n,(0,r.jsxs)("div",{className:"mx-auto max-w-[1400px]",children:[u,(0,r.jsxs)("div",{className:"mt-16 border-t border-white/10 pt-8",children:[d,(0,r.jsxs)("p",{className:"mt-6 text-xs text-white/35",children:["© ",new Date().getFullYear()," Fast Money. All rights reserved."]})]})]})]}),p[11]=m):m=p[11],m}function aU(t){return(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"mb-5 text-sm font-semibold text-[#d4af37]",children:t.title}),(0,r.jsx)("ul",{className:"space-y-3",children:t.links.map(a$)})]},t.title)}function a$(t){return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#",className:"text-white/55 transition-colors hover:text-white",children:t})},t)}function az(t){return(0,r.jsx)(rD.a,{href:"#","aria-label":t.label,whileHover:{y:-4,scale:1.08},className:"flex h-11 w-11 items-center justify-center rounded-full border border-white/15 text-white/70 transition-colors hover:border-[#d4af37] hover:text-[#f2d675] hover:shadow-[0_0_25px_-4px_rgba(212,175,55,0.7)]",children:t.icon},t.label)}let aH="bg-gradient-to-r from-[#f2d675] via-[#d4af37] to-[#9e6f1d] bg-clip-text text-transparent",aY=[["Markets","#markets"],["Gold ETF","#gold"],["Why Us","#why"],["Process","#process"],["FAQ","#faq"]],aX=t=>{try{window.gtag?.("event",t),window.fbq?.("track","Lead"),window.dataLayer?.push({event:t})}catch{}},aG={hidden:{opacity:0,y:40,filter:"blur(10px)"},show:(t=0)=>({opacity:1,y:0,filter:"blur(0px)",transition:{duration:1,delay:.15*t,ease:[.16,1,.3,1]}})};function aq(t){let e,i,n=(0,a.c)(5),{children:s,i:o,className:l}=t,h=void 0===o?0:o;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={once:!0,margin:"-80px"},n[0]=e):e=n[0],n[1]!==s||n[2]!==l||n[3]!==h?(i=(0,r.jsx)(rD.div,{custom:h,variants:aG,initial:"hidden",
1whileInView:"show",viewport:e,className:l,children:s}),n[1]=s,n[2]=l,n[3]=h,n[4]=i):i=n[4],i}function aK(){let t,e,i,n,s,o=(0,a.c)(5);return o[0]===Symbol.for("react.memo_cache_sentinel")?(t={y:-80,opacity:0},e={y:0,opacity:1},o[0]=t,o[1]=e):(t=o[0],e=o[1]),o[2]===Symbol.for("react.memo_cache_sentinel")?(i={duration:1,delay:.1,ease:[.16,1,.3,1]},o[2]=i):i=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsxs)("a",{href:"#hero",className:"flex items-center gap-3",children:[(0,r.jsx)(aB.default,{src:"/fastmoneybg.png",alt:"FastMoney",width:32,height:12,priority:!0}),(0,r.jsx)("span",{className:"font-bold tracking-[0.15em] text-white",children:"FAST MONEY"})]}),o[3]=n):n=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(rD.header,{initial:t,animate:e,transition:i,className:"fixed inset-x-0 top-0 z-50 px-4 pt-4",children:(0,r.jsxs)("nav",{className:"mx-auto flex max-w-[1400px] items-center justify-between rounded-full border border-white/10 bg-black/40 px-5 py-3 backdrop-blur-2xl",children:[n,(0,r.jsx)("div",{className:"hidden items-center gap-8 lg:flex",children:aY.map(aJ)}),(0,r.jsx)("a",{href:"register",onClick:aZ,className:"rounded-full border border-[#d4af37]/50 px-5 py-2 text-sm font-medium text-[#f2d675] transition-all hover:bg-[#d4af37] hover:text-black hover:shadow-[0_0_30px_-5px_rgba(212,175,55,0.8)]",children:"Join Now"})]})}),o[4]=s):s=o[4],s}function aZ(){return aX("cta_nav")}function aJ(t){let[e,i]=t;return(0,r.jsx)("a",{href:i,className:"text-sm text-white/60 transition-colors hover:text-[#f2d675]",children:e},e)}function aQ(){let t,e,i,n,s,l,h,c,u,d,m,p,f,g,y=(0,a.c)(19),x=(0,o.useRef)(null);y[0]===Symbol.for("react.memo_cache_sentinel")?(t={target:x,offset:["start end","end start"]},y[0]=t):t=y[0];let{scrollYProgress:v}=r8(t);y[1]===Symbol.for("react.memo_cache_sentinel")?(e=[0,1],i=[90,-90],y[1]=e,y[2]=i):(e=y[1],i=y[2]);let b=ai(v,e,i);y[3]===Symbol.for("react.memo_cache_sentinel")?(n=[0,1],s=[-40,60],y[3]=n,y[4]=s):(n=y[3],s=y[4]);let w=ai(v,n,s);y[5]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1],h=[0,90],y[5]=l,y[6]=h):(l=y[5],h=y[6]);let S=ai(v,l,h);return y[7]!==S||y[8]!==b?(c=(0,r.jsx)(rD.div,{"aria-hidden":!0,style:{y:b,rotate:S},className:"absolute -left-40 top-20 h-[520px] w-[520px] rounded-full border border-[#d4af37]/15"}),y[7]=S,y[8]=b,y[9]=c):c=y[9],y[10]!==w?(u=(0,r.jsx)(rD.div,{"aria-hidden":!0,style:{y:w},className:"absolute -right-32 bottom-10 h-[420px] w-[420px] rounded-full bg-[#d4af37]/10 blur-[120px]"}),y[10]=w,y[11]=u):u=y[11],y[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"ABOUT FAST MONEY"}),y[12]=d):d=y[12],y[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsxs)(aq,{children:[d,(0,r.jsxs)("h2",{className:"text-5xl font-bold leading-[1.02] tracking-[-0.04em] text-white md:text-7xl",children:["Dubai's Gateway To ",(0,r.jsx)("span",{className:aH,children:"Modern Markets"})]})]}),y[13]=m):m=y[13],y[14]===Symbol.for("react.memo_cache_sentinel")?(p=["Fast Money is a Dubai-based global fund management and trading company focused on digital assets and gold-linked markets.","We combine modern financial technology, professional market analysis and a systematic trading approach, with risk management built into every decision.","You get clear information on products, costs, risks and transactions, so you always know what you are exposed to and why."].map(a0),y[14]=p):p=y[14],y[15]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsxs)("div",{className:"relative mx-auto grid max-w-[1400px] gap-16 lg:grid-cols-2 lg:gap-24",children:[m,(0,r.jsxs)("div",{className:"space-y-7 text-lg leading-relaxed text-white/60",children:[p,(0,r.jsx)(aq,{i:3,children:(0,r.jsxs)("a",{href:"#process",className:"inline-flex items-center gap-2 font-medium text-[#f2d675] transition-all hover:gap-4",children:["See how we work ",(0,r.jsx)(aa,{size:18})]})})]})]}),y[15]=f):f=y[15],y[16]!==c||y[17]!==u?(g=(0,r.jsxs)("section",{id:"about",ref:x,className:"relative overflow-hidden bg-[#050505] px-6 py-32 lg:px-12",children:[c,u,f]}),y[16]=c,y[17]=u,y[18]=g):g=y[18],g}function a0(t,e){return(0,r.jsx)(aq,{i:e,children:(0,r.jsx)("p",{children:t})},e)}let a1=[["Gold","Physical gold is held by a custodian according to the ETF structure."],["ETF units","The fund provider manages the structure and issues units that track the gold price."],["Exchange","Units are listed and traded on the exchange, like other securities."],["Your portfolio","You hold gold exposure through ETF units, with no bars to store."]],a2=[["Storage","You arrange vaulting or insurance","Held by a custodian"],["Selling","Slower, physical settlement","Sell like a share in market hours"],["Costs","Premiums, spreads and handling","Brokerage and management fees"],["Best for","Holding the metal long term","Flexible, liquid exposure"]];function a5(){let t,e,i,n,s,o,l=(0,a.c)(6);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"GOLD ETF TRADING"}),l[0]=t):t=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsxs)(aq,{children:[t,(0,r.jsxs)("h2",{className:"max-w-3xl text-4xl font-bold leading-[1.05] tracking-[-0.03em] md:text-6xl",children:["Gold exposure ",(0,r.jsx)("span",{className:aH,children:"without the vault"})]}),(0,r.jsx)("p",{className:"mt-6 max-w-2xl text-lg text-white/60",children:"A gold ETF is an exchange-traded product designed to follow the price of gold. Instead of buying and storing bars yourself, you own units that trade in the market."})]}),l[1]=e):e=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("ol",{className:"mt-14 grid gap-5 md:grid-cols-4",children:a1.map(a6)}),l[2]=i):i=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{className:"border-b border-[#d4af37]/40 text-white/50",children:[(0,r.jsx)("th",{className:"py-3 pr-4"}),(0,r.jsx)("th",{className:"py-3 pr-4",children:"Physical gold"}),(0,r.jsx)("th",{className:"py-3 text-[#f2d675]",children:"Gold ETF"})]})}),l[3]=n):n=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(s=(0,r.jsx)(aq,{className:"mt-14 overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full min-w-[600px] text-left text-sm",children:[n,(0,r.jsx)("tbody",{className:"divide-y divide-white/10",children:a2.map(a4)})]})}),l[4]=s):s=l[4],l[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("section",{id:"gold",className:"relative bg-[#050505] px-6 py-32 lg:px-12",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[1400px]",children:[e,i,s,(0,r.jsx)(aq,{className:"mt-10",children:(0,r.jsxs)(ah,{href:"#join",onClick:a3,children:["Join and invest in gold ETFs ",(0,r.jsx)(aa,{size:18})]})})]})}),l[5]=o):o=l[5],o}function a3(){return aX("cta_gold")}function a4(t){let[e,i,n]=t;return(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{scope:"row",className:"py-4 pr-4 font-medium",children:e}),(0,r.jsx)("td",{className:"py-4 pr-4 text-white/55",children:i}),(0,r.jsx)("td",{className:"py-4",children:n})]},e)}function a6(t,e){let[i,n]=t;return(0,r.jsx)(aq,{i:e,children:(0,r.jsxs)("li",{className:"h-full rounded-2xl border border-[#d4af37]/20 bg-white/[0.03] p-6",children:[(0,r.jsx)("span",{className:`text-3xl font-bold ${aH}`,children:e+1}),(0,r.jsx)("h3",{className:"mt-2 text-lg font-semibold",children:i}),(0,r.jsx)("p",{className:"mt-2 text-sm text-white/55",children:n})]})},i)}let a7=[["1986",368],["2000",279],["2010",1225],["2020",1770],["2025",3442]];function a8(){let t,e,i,n=(0,a.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"40 YEARS OF GOLD"}),n[0]=t):t=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsxs)(aq,{children:[t,(0,r.jsxs)("h2",{className:"text-4xl font-bold leading-tight tracking-[-0.03em] md:text-5xl",children:["About ",(0,r.jsx)("span",{className:aH,children:"9.3x"})," from 1986 to 2025"]}),(0,r.jsx)("p",{className:"mt-5 max-w-lg text-white/60",children:"The annual average gold price rose from about $368 to about $3,442 per troy ounce, roughly 5.9% a year (World Bank annual average, rounded). Gold has also had long flat and falling periods. Past performance does not guarantee future returns."})]}),n[1]=e):e=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("section",{className:"bg-[#080808] px-6 py-28 lg:px-12",children:(0,r.jsxs)("div",{className:"mx-auto grid max-w-[1400px] items-end gap-14 lg:grid-cols-2",children:[e,(0,r.jsx)(aq,{i:1,children:(0,r.jsx)("div",{role:"img","aria-label":"Gold annual average price in USD: 1986 $368, 2000 $279, 2010 $1,225, 2020 $1,770, 2025 $3,442",className:"flex h-64 items-end gap-4",children:a7.map(a9)})})]})}),n[2]=i):i=n[2],i}function a9(t){let[e,i]=t;return(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-end gap-2",children:[(0,r.jsxs)("span",{className:"text-xs text-white/60",children:["$",i.toLocaleStr
1ing()]}),(0,r.jsx)(rD.div,{initial:{height:0},whileInView:{height:`${i/3442*190}px`},viewport:{once:!0},transition:{duration:1.1,ease:[.16,1,.3,1]},className:"w-full rounded-t-md bg-gradient-to-t from-[#9e6f1d] to-[#f2d675]"}),(0,r.jsx)("span",{className:"text-xs text-white/50",children:e})]},e)}function ot(){let t,e,i,n=(0,a.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsxs)("h2",{className:"max-w-3xl text-4xl font-bold leading-tight tracking-[-0.03em] md:text-5xl",children:["Why ",(0,r.jsx)("span",{className:aH,children:"Dubai"}),"?"]}),e=(0,r.jsx)("p",{className:"mt-5 max-w-2xl text-white/60",children:"Dubai connects the Middle East, Asia and Europe, and is a major hub for finance, technology and precious metals. Fast Money builds an internationally focused trading platform from it."}),n[0]=t,n[1]=e):(t=n[0],e=n[1]),n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("section",{className:"bg-[#050505] px-6 py-28 lg:px-12",children:(0,r.jsx)("div",{className:"mx-auto max-w-[1400px]",children:(0,r.jsxs)(aq,{children:[t,e,(0,r.jsx)("div",{className:"mt-8 flex flex-wrap gap-3",children:["Middle East","Asia","Europe","Global markets"].map(oe)})]})})}),n[2]=i):i=n[2],i}function oe(t){return(0,r.jsx)("span",{className:"rounded-full border border-[#d4af37]/40 px-5 py-2 text-sm text-[#f2d675]",children:t},t)}let oi=[["How do I join Fast Money?","Submit the application form. A specialist contacts you, explains the products, costs and risks, and guides you through verification and investing."],["Can I place trades myself?","No. You join by investing, and Fast Money manages the trading."],["Is my capital guaranteed?","No. Crypto and gold prices move and you can lose some or all of your capital. Forecasts are estimates, not promises. We focus on research, systematic execution and risk limits."],["What markets does Fast Money trade?","Two: cryptocurrency, which trades 24/7, and gold ETFs, which trade during exchange hours."],["What is a gold ETF?","An exchange-traded product that tracks the gold price. You hold units rather than storing physical bars."]];function on(){let t,e,i=(0,a.c)(2);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(aq,{children:(0,r.jsx)("h2",{className:"text-4xl font-bold tracking-[-0.03em] md:text-5xl",children:"Questions, answered"})}),i[0]=t):t=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("section",{id:"faq",className:"bg-[#080808] px-6 py-28 lg:px-12",children:(0,r.jsxs)("div",{className:"mx-auto max-w-3xl",children:[t,(0,r.jsx)("div",{className:"mt-10 divide-y divide-white/10 border-y border-white/10",children:oi.map(os)})]})}),i[1]=e):e=i[1],e}function os(t){let[e,i]=t;return(0,r.jsxs)("details",{className:"group py-5",children:[(0,r.jsxs)("summary",{className:"flex cursor-pointer list-none items-center justify-between gap-4 text-lg font-medium focus-visible:outline-2 focus-visible:outline-[#d4af37]",children:[e,(0,r.jsx)(ao.ChevronDown,{className:"shrink-0 text-[#d4af37] transition group-open:rotate-180",size:20})]}),(0,r.jsx)("p",{className:"mt-3 text-white/60",children:i})]},e)}function or(){let t,e=(0,a.c)(1);return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("section",{className:"border-t border-white/10 bg-[#050505] px-6 py-10 lg:px-12",children:(0,r.jsxs)("p",{className:"mx-auto max-w-[1400px] text-xs leading-relaxed text-white/45",children:[(0,r.jsx)("strong",{className:"text-white/65",children:"Risk warning:"})," Trading cryptocurrencies and gold ETFs involves significant risk and may not be suitable for everyone. Prices are volatile and you may lose some or all of your capital. Past performance and forecasts are not reliable indicators of future results. Prices shown on this page may be simulated and are illustrative only. Nothing here is investment advice or a guarantee of profit. Only trade with money you can afford to lose. Service availability depends on your country of residence. [ADD LICENCE / REGULATOR AND NUMBER]"]})}),e[0]=t):t=e[0],t}let oa=[["Apply","Submit your details. It takes about 30 seconds."],["Speak with a specialist","We explain the markets, costs and risks, and answer your questions before you decide."],["Complete onboarding and invest","Finish account verification, then invest to join. Our team manages the trading."]];function oo(){let t,e,i,n,s=(0,a.c)(4);return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("p",{className:"mb-4 text-sm tracking-[0.25em] text-[#d4af37]",children:"HOW JOINING WORKS"}),s[0]=t):t=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsxs)(aq,{children:[t,(0,r.jsxs)("h2",{className:"max-w-3xl text-4xl font-bold leading-tight tracking-[-0.03em] md:text-5xl",children:["Three steps to ",(0,r.jsx)("span",{className:aH,children:"join Fast Money"})]})]}),s[1]=e):e=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)("ol",{className:"mt-12 grid gap-8 md:grid-cols-3",children:oa.map(oh)}),s[2]=i):i=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("section",{id:"process",className:"bg-[#050505] px-6 py-28 lg:px-12",children:(0,r.jsxs)("div",{className:"mx-auto max-w-[1400px]",children:[e,i,(0,r.jsx)(aq,{className:"mt-12",children:(0,r.jsxs)(ah,{href:"#join",onClick:ol,children:["Join Now ",(0,r.jsx)(aa,{size:18})]})})]})}),s[3]=n):n=s[3],n}function ol(){return aX("cta_process")}function oh(t,e){let[i,n]=t;return(0,r.jsx)(aq,{i:e,children:(0,r.jsxs)("li",{className:"border-l-2 border-[#d4af37] pl-5",children:[(0,r.jsx)("span",{className:`text-3xl font-bold ${aH}`,children:e+1}),(0,r.jsx)("h3",{className:"mt-1 text-xl font-semibold",children:i}),(0,r.jsx)("p",{className:"mt-2 text-white/60",children:n})]})},i)}function oc(){let t,e,i,n,s,l,h,c,u,d,m,p,f,g=(0,a.c)(16),y=(0,o.useRef)(null);g[0]===Symbol.for("react.memo_cache_sentinel")?(t={target:y,offset:["start end","end start"]},g[0]=t):t=g[0];let{scrollYProgress:x}=r8(t);g[1]===Symbol.for("react.memo_cache_sentinel")?(e=[0,.5,1],i=[.85,1,1.1],g[1]=e,g[2]=i):(e=g[1],i=g[2]);let v=ai(x,e,i);g[3]===Symbol.for("react.memo_cache_sentinel")?(n=[0,1],s=[120,-120],g[3]=n,g[4]=s):(n=g[3],s=g[4]);let b=ai(x,n,s);return g[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)("div",{"aria-hidden":!0,
1className:"absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_center,#1f1808_0%,#050505_70%)]"}),g[5]=l):l=g[5],g[6]!==b||g[7]!==v?(h=(0,r.jsx)(rD.div,{"aria-hidden":!0,style:{y:b,scale:v},className:"absolute left-1/2 top-1/2 -z-10 h-[520px] w-[900px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[#d4af37]/20 blur-[150px]"}),g[6]=b,g[7]=v,g[8]=h):h=g[8],g[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-[#d4af37] to-transparent"}),g[9]=c):c=g[9],g[10]===Symbol.for("react.memo_cache_sentinel")?(u={once:!0,margin:"-100px"},g[10]=u):u=g[10],g[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsxs)(rD.h2,{variants:aG,initial:"hidden",whileInView:"show",viewport:u,className:"text-[clamp(3rem,8vw,7.5rem)] font-bold leading-[0.95] tracking-[-0.045em] text-white",children:["Move Today. ",(0,r.jsx)("span",{className:`${aH} [filter:drop-shadow(0_0_30px_rgba(212,175,55,0.35))]`,children:"Grow Tomorrow."})]}),g[11]=d):d=g[11],g[12]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsx)(aq,{i:1,className:"mx-auto mt-8 max-w-xl text-lg text-white/55",children:(0,r.jsx)("p",{children:"Join Fast Money and invest in crypto and gold ETF markets, managed through professional research, systematic execution and disciplined risk control."})}),g[12]=m):m=g[12],g[13]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsxs)("div",{className:"mx-auto max-w-6xl text-center",children:[d,m,(0,r.jsxs)(aq,{i:2,className:"mt-12 flex flex-wrap items-center justify-center gap-5",children:[(0,r.jsxs)(ah,{href:"#join",onClick:ou,className:"!px-10 !py-5 !text-base",children:["Join Now ",(0,r.jsx)(aa,{size:18})]}),(0,r.jsx)(ah,{href:"#contact",variant:"glass",className:"!px-10 !py-5 !text-base",children:"Contact Team"})]})]}),g[13]=p):p=g[13],g[14]!==h?(f=(0,r.jsxs)("section",{ref:y,className:"relative isolate overflow-hidden bg-[#050505] px-6 py-40 lg:px-12",children:[l,h,c,p]}),g[14]=h,g[15]=f):f=g[15],f}function ou(){return aX("cta_final")}function od(){return aX("cta_sticky")}t.s(["default",0,function(){let t,e,i,n,s,o,l,h,c,u,d,m,p,f,g,y,x,v,b=(0,a.c)(20),{scrollYProgress:w}=r8();b[0]===Symbol.for("react.memo_cache_sentinel")?(t={stiffness:120,damping:30},b[0]=t):t=b[0];let S=as(w,t);return b[1]!==S?(e=(0,r.jsx)(rD.div,{"aria-hidden":!0,style:{scaleX:S},className:"fixed inset-x-0 top-0 z-[60] h-[2px] origin-left bg-gradient-to-r from-[#9e6f1d] via-[#f2d675] to-[#d4af37]"}),b[1]=S,b[2]=e):e=b[2],b[3]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)(aK,{}),u=(0,r.jsx)(am,{}),d=(0,r.jsx)(ay,{}),m=(0,r.jsx)(aQ,{}),p=(0,r.jsx)(aS,{}),f=(0,r.jsx)(a5,{}),g=(0,r.jsx)(a8,{}),y=(0,r.jsx)(aD,{}),i=(0,r.jsx)(ot,{}),n=(0,r.jsx)(oo,{}),s=(0,r.jsx)(on,{}),o=(0,r.jsx)(oc,{}),l=(0,r.jsx)(or,{}),h=(0,r.jsx)(aW,{}),b[3]=i,b[4]=n,b[5]=s,b[6]=o,b[7]=l,b[8]=h,b[9]=c,b[10]=u,b[11]=d,b[12]=m,b[13]=p,b[14]=f,b[15]=g,b[16]=y):(i=b[3],n=b[4],s=b[5],o=b[6],l=b[7],h=b[8],c=b[9],u=b[10],d=b[11],m=b[12],p=b[13],f=b[14],g=b[15],y=b[16]),b[17]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-white/10 bg-black/90 p-3 backdrop-blur md:hidden",children:(0,r.jsxs)("a",{href:"register",onClick:od,className:"flex w-full items-center justify-center gap-2 rounded-full bg-gradient-to-b from-[#f3db74] to-[#c79a23] py-3 font-semibold text-black",children:[(0,r.jsx)(al.Check,{size:16})," Join Now"]})}),b[17]=x):x=b[17],b[18]!==e?(v=(0,r.jsxs)("main",{className:"relative bg-[#050505] pb-20 text-white md:pb-0",children:[e,c,u,d,m,p,f,g,y,i,n,s,o,l,h,x]}),b[18]=e,b[19]=v):v=b[19],v}],74647)}]);
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.