1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46932,76959,65566,60830,87022,30551,25791,86427,31178,37806,98125,21476,47414,74008,53034,83920,44230,15923,49652,61327,64978,72846,e=>{"use strict";let t,i,n,r,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(s),o=(e,t,i)=>i>t?t:i<e?e:i;e.s(["clamp",0,o],76959);let l={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...l,transform:e=>o(0,1,e)},h={...l,default:1},c=e=>Math.round(1e5*e)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(e,t)=>i=>!!("string"==typeof i&&m.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),f=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(d);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},g={...l,transform:e=>Math.round(o(0,255,e))},y={test:p("rgb","red"),parse:f("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+g.transform(e)+", "+g.transform(t)+", "+g.transform(i)+", "+c(u.transform(n))+")"},v={test:p("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:y.transform},x=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),w=x("deg"),b=x("%"),S=x("px"),T=x("vh"),P=x("vw"),C={...b,parse:e=>b.parse(e)/100,transform:e=>b.transform(100*e)},E={test:p("hsl","hue"),parse:f("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+b.transform(c(t))+", "+b.transform(c(i))+", "+c(u.transform(n))+")"},j={test:e=>y.test(e)||v.test(e)||E.test(e),parse:e=>y.test(e)?y.parse(e):E.test(e)?E.parse(e):v.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?y.transform(e):E.transform(e),getAnimatableNone:e=>{let t=j.parse(e);return t.alpha=0,j.transform(t)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,A="number",V="color",k=/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 D(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=t.replace(k,e=>(j.test(e)?(n.color.push(s),r.push(V),i.push(j.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(A),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function R({split:e,types:t}){let i=e.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=e[s],void 0!==n[s]){let e=t[s];e===A?r+=c(n[s]):e===V?r+=j.transform(n[s]):r+=n[s]}return r}}let L={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(d)?.length||0)+(e.match(M)?.length||0)>0},parse:function(e){return D(e).values},createTransformer:function(e){return R(D(e))},getAnimatableNone:function(e){let t=D(e);return R(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:j.test(e)?j.getAnimatableNone(e):e)(e,t.split[i])))}},I=new Set(["brightness","contrast","saturate","opacity"]);function N(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(d)||[];if(!n)return e;let r=i.replace(n,""),s=+!!I.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let O=/\b([a-z-]*)\(.*?\)/gu,B={...L,getAnimatableNone:e=>{let t=e.match(O);return t?t.map(N).join(" "):e}},F={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...l,transform:Math.round},W={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:u,originX:C,originY:C,originZ:S,zIndex:$,fillOpacity:u,strokeOpacity:u,numOctaves:$},z={...W,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:B,WebkitFilter:B,mask:F,WebkitMask:F},U=e=>z[e],_=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:_(),y:_()}),K=()=>({min:0,max:0}),Y=()=>({x:K(),y:K()}),G=e=>!!(e&&e.getVelocity),X=new Set(["width","height","top","left","right","bottom",...s]),q=e=>t=>t.test(e),Z=[l,S,b,w,P,T,{test:e=>"auto"===e,parse:e=>e}],J=e=>Z.find(q(e));var Q=e.i(47167);let ee=()=>{},et=()=>{};Q.default,e.s(["invariant",0,et,"warning",0,ee],65566);let ei=e=>t=>"string"==typeof t&&t.startsWith(e),en=ei("--"),er=ei("var(--"),es=e=>!!er(e)&&ea.test(e.split("/*")[0].trim()),ea=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eo(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=e=>180*e/Math.PI,eh=e=>ed(eu(Math.atan2(e[1],e[0]))),ec={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eh,rotateZ:eh,skewX:e=>
1eu(Math.atan(e[1])),skewY:e=>eu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>((e%=360)<0&&(e+=360),e),em=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ep=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ef={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:em,scaleY:ep,scale:e=>(em(e)+ep(e))/2,rotateX:e=>ed(eu(Math.atan2(e[6],e[5]))),rotateY:e=>ed(eu(Math.atan2(-e[2],e[0]))),rotateZ:eh,rotate:eh,skewX:e=>eu(Math.atan(e[4])),skewY:e=>eu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eg(e){return+!!e.includes("scale")}function ey(e,t){let i,n;if(!e||"none"===e)return eg(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ef,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ec,n=t}if(!n)return eg(t);let s=i[t],a=n[1].split(",").map(ev);return"function"==typeof s?s(a):a[s]}function ev(e){return parseFloat(e.trim())}let ex=e=>e===l||e===S,ew=new Set(["x","y","z"]),eb=s.filter(e=>!ew.has(e)),eS={width:({x:e},{paddingLeft:t="0",paddingRight:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},height:({y:e},{paddingTop:t="0",paddingBottom:i="0",boxSizing:n})=>{let r=e.max-e.min;return"border-box"===n?r:r-parseFloat(t)-parseFloat(i)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ey(t,"x"),y:(e,{transform:t})=>ey(t,"y")};eS.translateX=eS.x,eS.translateY=eS.y;let eT=e=>e;e.s(["noop",0,eT],60830);let eP={},eC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eE(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=eC.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,r=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(h.schedule(t),e()),l++,t(o)}let h={schedule:(e,t=!1,s=!1)=>{let o=s&&r?i:n;return t&&a.add(e),o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){s=!0;return}r=!0;let a=i;i=n,n=a,i.forEach(u),t,l=0,i.clear(),r=!1,s&&(s=!1,h.process(e))}};return h}(s,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:m,postRender:p}=a,f=()=>{let s=eP.useManualTiming,a=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),m.process(r),p.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:eC.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<eC.length;t++)a[eC[t]].cancel(e)},state:r,steps:a}}let{schedule:ej,cancel:eM,state:eA,steps:eV}=eE("u">typeof requestAnimationFrame?requestAnimationFrame:eT,!0);e.s(["cancelFrame",0,eM,"frame",0,ej,"frameData",0,eA,"frameSteps",0,eV],87022);let ek=new Set,eD=!1,eR=!1,eL=!1;function eI(){if(eR){let e=Array.from(ek).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],eb.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eR=!1,eD=!1,ek.forEach(e=>e.complete(eL)),ek.clear()}function eN(){ek.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eR=!0)})}class eO{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ek.add(this),eD||(eD=!0,ej.read(eN),ej.resolveKeyframes(eI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ek.delete(this)}cancel(){"scheduled"===this.state&&(ek.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eB=new Set([B,F]);function eF(e,t){let i=U(e);return eB.has(i)||(i=L),i.getAnimatableNone?i.getAnimatableNone(t):void 0}
1let e$=new Set(["auto","none","0"]);class eW extends eO{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&es(n=n.trim())){let r=function e(t,i,n=1){et(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=el.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return es(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!X.has(i)||2!==e.length)return;let[n,r]=e,s=J(n),a=J(r);if(eo(n)!==eo(r)&&eS[i]){this.needsMeasurement=!0;return}if(s!==a)if(ex(s)&&ex(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eS[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!e$.has(t)&&D(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=eF(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eS[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=eS[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ez=e=>1e3*e;function eU(e,t){-1===e.indexOf(t)&&e.push(t)}function e_(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class eH{constructor(){this.subscriptions=[]}add(e){return eU(this.subscriptions,e),()=>e_(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eK(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function eY(e){let t;return()=>(void 0===t&&(t=e()),t)}let eG={};function eX(e,t){let i=eY(e);return()=>eG[t]??i()}let eq=eX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eZ=eX(()=>void 0!==window.ViewTimeline,"viewTimeline");e.s(["supportsScrollTimeline",0,eq,"supportsViewTimeline",0,eZ],30551);let eJ=e=>null!==e;function eQ(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(eJ),a=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}class e0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e1={layout:0,mainThread:0,waapi:0},e2=e=>Array.isArray(e)&&"number"==typeof e[0],e3=eX(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e6=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},e5=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,e4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e5([0,.65,.55,1]),circOut:e5([.55,0,1,.45]),backIn:e5([.31,.01,.66,-.59]),backOut:e5([.33,1.53,.69,.99])};function e8(e){return"function"==typeof e&&"applyToOptions"in e}class e9 extends e0{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,et("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e8(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[t]:i};l&&(h.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?e3()?e6(t,i):"ease-out":e2(t)?e5(t):Array.isArray(t)?t.map(t=>e(t,i)||e4.easeOut):e4[t]}(o,r);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let m=e.animate(h,d);return m}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=eQ(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eK(t,i,e),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(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ez(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eq())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eT):n(this)}}let e7=new Set(["opacity","clipPath","filter","transform"]),{schedule:te}=eE(queueMicrotask,!1);function tt(){i=void 0}let ti={now:()=>(void 0===i&&ti.set(eA.isProcessing||eP.useManualTiming?eA.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(tt)}};function tn(e,t){return t?1e3/t*e:0}e.s(["velocityPerSecond",0,tn],25791);class tr{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=ti.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=ti.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eH);let i=this.events[e].add(t);return"change"===e?()=>{i(),ej.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return t&&t.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=ti.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ts(e,t){return new tr(e,t)}e.s(["motionValue",0,ts],86427);let ta=[...Z,j,L],to=new WeakMap;function tl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}let th=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tc=["initial",...th];function td(e){return tl(e.animate)||tc.some(t=>tu(e[t]))}function tm(e){return!!(td(e)||e.variants)}let tp={current:null},tf={current:!1},tg="u">typeof window;function ty(e){let t=[{},{}];
1return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tv(e,t,i,n){if("function"==typeof t){let[r,s]=ty(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=ty(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let tx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tw={};class tb{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,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=eO,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 e=ti.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ej.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=td(t),this.isVariantNode=tm(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==l[e]&&G(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,to.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tf.current||function(){if(tf.current=!0,tg)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tp.current=e.matches;e.addEventListener("change",t),t()}else tp.current=!1}(),this.shouldReduceMotion=tp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eM(this.notifyUpdate),eM(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e7.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:a}=t.accelerate,o=new e9({element:this.current,name:e,keyframes:n,times:r,ease:s,duration:ez(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let n=a.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ej.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tw){let t=tw[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tx.length;t++){let i=tx[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(G(r))e.addValue(n,r);else if(G(s))e.addValue(n,ts(r,{owner:e}));else if(s!==r)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,ts(void 0!==t?t:r,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=ts(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!ta.find(q(n))&&L.test(t)&&(i=eF(e,t))}this.setBaseTarget(e,G(i)?i.get():i)}return G(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tv(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||G(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new eH),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){te.render(this.render)}}class tS extends tb{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tT(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tP=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tE=s.length;function tj(e,t,i){let{style:n,vars:r,transformOrigin:o}=e,l=!1,u=!1;for(let e in t){let i=t[e];if(a.has(e)){l=!0;continue}if(en(e)){r[e]=i;continue}{let t=tP(i,W[e]);e.startsWith("origin")?(u=!0,o[e]=t):n[e]=t}}if(!t.transform&&(l||i?n.transform=function(e,t,i){let n="",r=!0;for(let a=0;a<tE;a++){let o=s[a],l=e[o];if(void 0===l)continue;let u=!0;
1if("number"==typeof l)u=l===+!!o.startsWith("scale");else{let e=parseFloat(l);u=o.startsWith("scale")?1===e:0===e}if(!u||i){let e=tP(l,W[o]);if(!u){r=!1;let t=tC[o]||o;n+=`${t}(${e}) `}i&&(t[o]=e)}}return n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:i=0}=o;n.transformOrigin=`${e} ${t} ${i}`}}let tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tA={offset:"strokeDashoffset",array:"strokeDasharray"},tV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tk(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,h){if(tj(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;for(let e of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),tV))void 0!==c[e]&&(d[e]=c[e],delete c[e]);void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?tM:tA;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(c,r,s,a,!1)}let tD=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"]),tR=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tL(e,{style:t,vars:i},n,r){let s,a=e.style;for(s in t)a[s]=t[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function tI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tN={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!S.test(e))return e;else e=parseFloat(e);let i=tI(e,t.target.x),n=tI(e,t.target.y);return`${i}% ${n}%`}},tO=(e,t,i)=>e+(t-e)*i,tB={borderRadius:{...tN,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tN,borderTopRightRadius:tN,borderBottomLeftRadius:tN,borderBottomRightRadius:tN,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=L.parse(e);if(n.length>5)return e;let r=L.createTransformer(e),s=+("number"!=typeof n[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;n[0+s]/=a,n[1+s]/=o;let l=tO(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function tF(e,{layout:t,layoutId:i}){return a.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tB[e]||"opacity"===e)}function t$(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(G(n[t])||r&&G(r[t])||tF(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function tW(e,t,i){let n=t$(e,t,i);for(let i in e)(G(e[i])||G(t[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class tz extends tS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=U(t);return e&&e.default||0}return t=tD.has(t)?t:tT(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tW(e,t,i)}build(e,t,i){tk(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in tL(e,t,void 0,n),t.attrs)e.setAttribute(tD.has(i)?i:tT(i),t.attrs[i])}mount(e){this.isSVGTag=tR(e.tagName),super.mount(e)}}function tU({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function t_(e){return void 0===e||1===e}function tH({scale:e,scaleX:t,scaleY:i}){return!t_(e)||!t_(t)||!t_(i)}function tK(e){return tH(e)||tY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tY(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tG(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function tX(e,t=0,i=1,n,r){e.min=tG(e.min,t,i,n,r),e.max=tG(e.max,t,i,n,r)}function tq(e,{x:t,y:i}){tX(e.x,t.translate,t.scale,t.originPoint),tX(e.y,i.translate,i.scale,i.originPoint)}function tZ(e,t){e.min+=t,e.max+=t}function tJ(e,t,i,n,r=.5){let s=tO(e.min,e.max,r);tX(e,t,i,s,n)}function tQ(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t0(e,t,i){let n=i??e;tJ(e.x,tQ(t.x,n.x),t.scaleX,t.scale,t.originX),tJ(e.y,tQ(t.y,n.y),t.scaleY,t.scale,t.originY)}function t1(e,t){return tU(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class t2 extends tS{constructor(){super(...arguments),this.type="html",this.renderInstance=tL}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?eg(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return ey(i,t)})(e,t);
1{let i=window.getComputedStyle(e),n=(en(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t1(e,t)}build(e,t,i){tj(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return t$(e,t,i)}}var t3=e.i(71645);let t6=["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 t5(e){if("string"!=typeof e||e.includes("-"));else if(t6.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t4=e.i(43476);let t8=(0,t3.createContext)({});e.s(["LayoutGroupContext",0,t8],31178);let t9=(0,t3.createContext)({strict:!1}),t7=(0,t3.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,t7],37806);let ie=(0,t3.createContext)({});function it(e){return Array.isArray(e)?e.join(" "):e}let ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(e,t,i){for(let n in t)G(t[n])||tF(n,i)||(e[n]=t[n])}let is=()=>({...ii(),attrs:{}}),ia=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 io(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ia.has(e)}let il=e=>!io(e);function iu(e){"function"==typeof e&&(il=t=>t.startsWith("on")?!io(t):e(t))}try{iu((()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default)}catch{}function ih(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!G(e[r])&&(il(r)||!0===i&&io(r)||!t&&!io(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}function ic(e){return G(e)?e.get():e}e.s(["filterProps",0,ih,"loadExternalIsValidProp",0,iu],98125);let id=(0,t3.createContext)(null);function im(e){let t=(0,t3.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["PresenceContext",0,id],21476),e.s(["useConstant",0,im],47414);let ip=e=>(t,i)=>{let n=(0,t3.useContext)(ie),r=(0,t3.useContext)(id),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=ic(s[e]);let{initial:a,animate:o}=e,l=td(e),u=tm(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!tl(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let n=tv(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()}})(e,t,n,r);return i?s():im(s)},ig=ip({scrapeMotionValuesFromProps:t$,createRenderState:ii}),iy=ip({scrapeMotionValuesFromProps:tW,createRenderState:is}),iv={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"]},ix=!1;function iw(){return!function(){if(ix)return;let e={};for(let t in iv)e[t]={isEnabled:e=>iv[t].some(t=>!!e[t])};tw=e,ix=!0}(),tw}let ib=Symbol.for("motionComponentSymbol"),iS="data-"+tT("framerAppearId"),iT=(0,t3.createContext)({});function iP(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let iC="u">typeof window?t3.useLayoutEffect:t3.useEffect;function iE(e,{forwardMotionProps:t=!1,type:i}={},n,r){n&&function(e){let t=iw();for(let i in e)t[i]={...t[i],...e[i]};tw=t}(n);let s=i?"svg"===i:t5(e),a=s?iy:ig;function o(i,n){var o;let l,u,h,c={...(0,t3.useContext)(t7),...i,layoutId:function({layoutId:e}){let t=(0,t3.useContext)(t8).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:d}=c,m=function(e){let{initial:t,animate:i}=function(e,t){if(td(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,t3.useContext)(ie));return(0,t3.useMemo)(()=>({initial:t,animate:i}),[it(t),it(i)])}(i),p=a(i,d);if(!d&&"u">typeof window){(0,t3.useContext)(t9).strict;let t=function(e){let{drag:t,layout:i}=iw();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(c);l=t.MeasureLayout,m.visualElement=function(e,t,i,n,r,s){let{visualElement:a}=(0,t3.useContext)(ie),o=(0,t3.useContext)(t9),l=(0,t3.useContext)(id),u=(0,t3.useContext)(t7),h=u.reducedMotion,c=u.skipAnimations,d=(0,t3.useRef)(null),m=(0,t3.useRef)(!1);n=n||o.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:c,isSVG:s}),m.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let p=d.current,f=(0,t3.useContext)(iT);p&&!p.projection&&r&&("html"===p.type||"svg"===p.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:c}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&iP(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(d.current,i,r,f);let g=(0,t3.useRef)(!1);(0,t3.useInsertionEffect)(()=>{p&&g.current&&p.update(i,l)});let y=i[iS],v=(0,t3.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iC(()=>{m.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,t3.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(e,p,c,r,t.ProjectionNode,s)}return(0,t4.jsxs)(ie.Provider,{value:m,children:[l&&m.visualElement?(0,t4.jsx)(l,{visualElement:m.visualElement,...c}):null,function(e,t,i,{latestValues:n},r,s=!1,a){let o=(a??t5(e)?function(e,t,i,n){let r=(0,t3.useMemo)(()=>{let i=is();return tk(i,t,tR(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};ir(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,n,r={},s=(i=e.style||{},ir(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,t3.useMemo)(()=>{let i=ii();return tj(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(t,n,r,e),l=ih(t,"string"==typeof e,s),u=e!==t3.Fragment?{...l,...o,ref:i}:{},{children:h}=t,c=(0,t3.useMemo)(()=>G(h)?h.get():h,[h]);return(0,t3.createElement)(e,{...u,children:c})}(e,i,(o=m.visualElement,u=(0,t3.useRef)(n),(0,t3.useInsertionEffect)(()=>{u.current=n}),h=(0,t3.useRef)(null),(0,t3.useCallback)(e=>{e&&p.onMount?.(e);let t=u.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):t(e);else t&&(t.current=e);o&&(e?o.mount(e):o.unmount())}
1,[o])),p,d,t,s)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t3.forwardRef)(o);return l[ib]=e,l}e.s(["useIsomorphicLayoutEffect",0,iC],74008);class ij{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iM(e,t,i){let n=e.getProps();return tv(n,t,void 0!==i?i:n.custom,e)}function iA(e,t){if(e?.inherit&&t){let{inherit:i,...n}=e;return{...t,...n}}return e}function iV(e,t){let i=e?.[t]??e?.default??e;return i!==e?iA(i,e):i}e.s(["resolveTransition",0,iA],53034);let ik=e=>Array.isArray(e);function iD(e,t){let i=e.getValue("willChange");if(G(i)&&i.add)return i.add(t);if(!i&&eP.WillChange){let i=new eP.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let iR=(e,t)=>i=>t(e(i)),iL=(...e)=>e.reduce(iR);function iI(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iN(e,t){return i=>i>0?t:e}let iO=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},iB=[v,y,E];function iF(e){let t=iB.find(t=>t.test(e));if(ee(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===E&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;r=iI(o,n,e+1/3),s=iI(o,n,e),a=iI(o,n,e-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let i$=(e,t)=>{let i=iF(e),n=iF(t);if(!i||!n)return iN(e,t);let r={...i};return e=>(r.red=iO(i.red,n.red,e),r.green=iO(i.green,n.green,e),r.blue=iO(i.blue,n.blue,e),r.alpha=tO(i.alpha,n.alpha,e),y.transform(r))},iW=new Set(["none","hidden"]);function iz(e,t){return i=>tO(e,t,i)}function iU(e){return"number"==typeof e?iz:"string"==typeof e?es(e)?iN:j.test(e)?i$:iK:Array.isArray(e)?i_:"object"==typeof e?j.test(e)?i$:iH:iN}function i_(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>iU(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function iH(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=iU(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let iK=(e,t)=>{let i=L.createTransformer(t),n=D(e),r=D(t);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return ee(!0,`Complex values '${e}' and '${t}' 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"),iN(e,t);if(iW.has(e)&&!r.values.length||iW.has(t)&&!n.values.length)return iW.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iL(i_(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],a=e.indexes[s][n[s]],o=e.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i)};function iY(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tO(e,t,i):iU(e)(e,t)}let iG=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ej.update(t,e),stop:()=>eM(t),now:()=>eA.isProcessing?eA.timestamp:ti.now()}};function iX(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}let iq=.01,iZ=2,iJ=.005,iQ=.5;function i0(e,t){return e*Math.sqrt(1-t*t)}let i1=["duration","bounce"],i2=["stiffness","damping","mass"];function i3(e,t){return t.some(t=>void 0!==e[t])}function i6(e=.3,t=.3){let i,n,r,s,a,l,u="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:h,restDelta:c}=u,d=u.keyframes[0],m=u.keyframes[u.keyframes.length-1],p={done:!1,value:d},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:w}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!i3(e,i2)&&i3(e,i1))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*o(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;ee(e<=ez(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=o(.05,1,a),e=o(.01,10,e/1e3),a<1?(r=t=>{let n=t*a,r=n*e;return .001-(n-i)/i0(t,a)*Math.exp(-r)},s=t=>{let n=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=i0(Math.pow(t,2),a);return(n*i+i-s)*o*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let l=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=ez(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;
1return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...u,velocity:-((u.velocity||0)/1e3)}),b=x||0,S=g/(2*Math.sqrt(f*y)),T=m-d,P=Math.sqrt(f/y)/1e3,C=5>Math.abs(T);if(h||(h=C?iq:iZ),c||(c=C?iJ:iQ),S<1)r=i0(P,S),s=(b+S*P*T)/r,i=e=>m-Math.exp(-S*P*e)*(s*Math.sin(r*e)+T*Math.cos(r*e)),a=S*P*s+T*r,l=S*P*T-s*r,n=e=>Math.exp(-S*P*e)*(a*Math.sin(r*e)+l*Math.cos(r*e));else if(1===S){i=e=>m-Math.exp(-P*e)*(T+(b+P*T)*e);let e=b+P*T;n=t=>Math.exp(-P*t)*(P*e*t-b)}else{let e=P*Math.sqrt(S*S-1);i=t=>{let i=Math.exp(-S*P*t),n=Math.min(e*t,300);return m-i*((b+S*P*T)*Math.sinh(n)+e*T*Math.cosh(n))/e};let t=(b+S*P*T)/e,r=S*P*t-T*e,s=S*P*T-t*e;n=t=>{let i=Math.exp(-S*P*t),n=Math.min(e*t,300);return i*(r*Math.sinh(n)+s*Math.cosh(n))}}let E={calculatedDuration:w&&v||null,velocity:e=>ez(n(e)),next:e=>{if(!w&&S<1){let t=Math.exp(-S*P*e),i=Math.sin(r*e),n=Math.cos(r*e),o=m-t*(s*i+T*n);return p.done=Math.abs(ez(t*(a*i+l*n)))<=h&&Math.abs(m-o)<=c,p.value=p.done?m:o,p}let t=i(e);return w?p.done=e>=v:p.done=Math.abs(ez(n(e)))<=h&&Math.abs(m-t)<=c,p.value=p.done?m:t,p},toString:()=>{let e=Math.min(iX(E),2e4),t=e6(t=>E.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return E}function i5(e,t,i){let n=Math.max(t-5,0);return tn(i-e(n),t-n)}function i4({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let v=e=>-f*Math.exp(-e/n),x=e=>y+v(e),w=e=>{let t=v(e),i=x(e);p.done=Math.abs(t)<=u,p.value=p.done?y:i},b=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;c=e,d=i6({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i5(x,e,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,w(e),b(e)),void 0!==c&&e>=c)?d.next(e-c):(t||w(e),p)}}}i6.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(iX(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,i6);return e.ease=t.ease,e.duration=ez(t.duration),e.type="keyframes",e};let i8=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function i9(e,t,i,n){return e===t&&i===n?eT:r=>0===r||1===r?r:i8(function(e,t,i,n,r){let s,a,o=0;do(s=i8(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,e,i),t,n)}let i7=i9(.42,0,1,1),ne=i9(0,0,.58,1),nt=i9(.42,0,.58,1),ni=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nn=e=>t=>1-e(1-t),nr=i9(.33,1.53,.69,.99),ns=nn(nr),na=ni(ns),no=e=>e>=1?1:(e*=2)<1?.5*ns(e):.5*(2-Math.pow(2,-10*(e-1))),nl=e=>1-Math.sin(Math.acos(e)),nu=nn(nl),nh=ni(nl),nc={linear:eT,easeIn:i7,easeInOut:nt,easeOut:ne,circIn:nl,circInOut:nh,circOut:nu,backIn:ns,backInOut:na,backOut:nr,anticipate:no},nd=e=>{if(e2(e)){et(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return i9(t,i,n,r)}return"string"==typeof e?(et(void 0!==nc[e],`Invalid easing type '${e}'`,"invalid-easing-type"),nc[e]):e},nm=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function np(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(et(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,i){let n=[],r=i||eP.mix||iY,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=iL(Array.isArray(t)?t[i]||eT:t,s)),n.push(s)}return n}(t,n,r),u=l.length,h=i=>{if(a&&i<e[0])return t[0];let n=0;if(u>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=nm(e[n],e[n+1],i);return l[n](r)};return i?t=>h(o(e[0],e[s-1],t)):h}function nf(e){let t=[0];return!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=nm(0,t,n);e.push(tO(i,1,r))}}(t,e.length-1),t}function ng({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nd):nd(n),a={done:!1,value:t[0]}
1,o=np((r=i&&i.length===t.length?i:nf(t),r.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||nt).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}e.s(["progress",0,nm],83920),e.s(["interpolate",0,np],44230),e.s(["defaultOffset",0,nf],15923);let ny={decay:i4,inertia:i4,tween:ng,keyframes:ng,spring:i6};function nv(e){"string"==typeof e.type&&(e.type=ny[e.type])}let nx=e=>e/100;class nw extends e0{constructor(e){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:e}=this.options;e&&e.updatedAt!==ti.now()&&this.tick(ti.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e1.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nv(e);let{type:t=ng,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:a}=e,o=t||ng;o!==ng&&"number"!=typeof a[0]&&(this.mixKeyframes=iL(nx,iY(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iX(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:m,repeatDelay:p,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let w=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/l,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/l)):"mirror"===m&&(b=a)),w=o(0,1,i)*l}x?(this.delayState.value=c[0],i=this.delayState):i=b.next(w),s&&!x&&(i.value=s(i.value));let{done:S}=i;x||null===u||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return T&&f!==i4&&(i.value=eQ(c,this.options,y,this.speed)),g&&g(i.value),T&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ez(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return i5(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(ti.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iG,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),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=t??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(ti.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,e1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let nb={anticipate:no,backInOut:na,circInOut:nh};
1class nS extends e9{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nb&&(e.ease=nb[e.ease])}(e),nv(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new nw({...s,autoplay:!1}),l=Math.max(10,ti.now()-this.startTime),u=o(0,10,l-10),h=a.sample(l).value,{name:c}=this.options;r&&c&&eK(r,c,h),t.setWithVelocity(a.sample(Math.max(0,l-u)).value,h,u),a.stop()}}let nT=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(L.test(e)||"0"===e)&&!e.startsWith("url("));function nP(e){e.duration=0,e.type="keyframes"}let nC=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nE=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nj=eY(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nM extends e0{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ti.now();const c={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||eO;this.keyframeResolver=new d(a,(e,t,i)=>this.onKeyframesResolved(e,t,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ti.now();let c=!0;!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=nT(r,t),o=nT(s,t);return ee(a===o,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||e8(i))&&n)}(e,s,a,o)&&(c=!1,(eP.instantAnimations||!l)&&h?.(eQ(e,i,t)),e[0]=e[e.length-1],nP(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},m=c&&!u&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:a,keyframes:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return nj()&&i&&(e7.has(i)||nE.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&nC.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(d),p=d.motionValue?.owner?.current;if(m)try{r=new nS({...d,element:p})}catch{r=new nw(d)}else r=new nw(d);r.finished.then(()=>{this.notifyFinished()}).catch(eT),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eL=!0,eN(),eI(),eL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nA={type:"spring",stiffness:500,damping:25,restSpeed:10},nV={type:"keyframes",duration:.8},nk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nD=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nR=(e,t,i,n={},r,s)=>o=>{let l=iV(n,e)||{}
1,u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=ez(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-h,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function(e){for(let t in e)if(!nD.has(t))return!0;return!1}(l)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?nV:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nA:nk)(e,c)),c.duration&&(c.duration=ez(c.duration)),c.repeatDelay&&(c.repeatDelay=ez(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nP(c),0===c.delay&&(d=!0)),(eP.instantAnimations||eP.skipAnimations||r?.shouldSkipAnimations)&&(d=!0,nP(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!s&&void 0!==t.get()){let e=eQ(c.keyframes,l);if(void 0!==e)return void ej.update(()=>{c.onUpdate(e),c.onComplete()})}return l.isSync?new nw(c):new nM(c)};function nL(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:a,...o}=t,l=e.getDefaultTransition();s=s?iA(s,l):l;let u=s?.reduceMotion;n&&(s=n);let h=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let n=e.getValue(t,e.latestValues[t]??null),r=o[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(c,t))continue;let a={delay:i,...iV(s||{},t)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!a.velocity){ej.update(()=>n.set(r));continue}let d=!1;if(window.MotionHandoffAnimation){let i=e.props[iS];if(i){let e=window.MotionHandoffAnimation(i,t,ej);null!==e&&(a.startTime=e,d=!0)}}iD(e,t);let m=u??e.shouldReduceMotion;n.start(nR(t,n,r,m&&X.has(t)?{type:!1}:a,e,d));let p=n.animation;p&&h.push(p)}if(a){let t=()=>ej.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=iM(e,t)||{};for(let t in r={...r,...i}){var s;let i=ik(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,ts(i))}}(e,a)});h.length?Promise.all(h).then(t):t()}return h}function nI(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function nN(e,t,i={}){let n=iM(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nL(e,n,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,n=0,r=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(nN(l,t,{...a,delay:i+("function"==typeof n?0:n)+nI(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}let nO=tc.length;function nB(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let nF=[...th].reverse(),n$=th.length;function nW(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nz(){return{animate:nW(!0),whileInView:nW(),whileHover:nW(),whileTap:nW(),whileDrag:nW(),whileFocus:nW(),exit:nW()}}let nU=0;function n_(e){return[e("x"),e("y")]}function nH(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let nK={x:!1,y:!1};function nY(e){return e.max-e.min}function nG(e,t,i,n=.5){e.origin=n,e.originPoint=tO(t.min,t.max,e.origin),e.scale=nY(i)/nY(t),e.translate=tO(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nX(e,t,i,n){nG(e.x,t.x,i.x,n?n.originX:void 0),nG(e.y,t.y,i.y,n?n.originY:void 0)}function nq(e,t,i,n=0){e.min=(n?tO(i.min,i.max,n):i.min)+t.min,e.max=e.min+nY(t)}function nZ(e,t,i,n=0){let r=n?tO(i.min,i.max,n):i.min;e.min=t.min-r,e.max=e.min+nY(t)}function nJ(e,t,i,n){nZ(e.x,t.x,i.x,n?.x),nZ(e.y,t.y,i.y,n?.y)}function nQ(e){return"object"==typeof e&&null!==e}function n0(e){return nQ(e)&&"ownerSVGElement"in e}function n1(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}e.s(["resolveElements",0,n1],49652);let n2=new WeakMap,n3=(e,t,i)=>(n,r)=>r&&r[0]?r[0][e+"Size"]:n0(n)&&"getBBox"in n?n.getBBox()[t]:n[i],n6=n3("inline","width","offsetWidth"),n5=n3("block","height","offsetHeight");function n4({target:e,borderBoxSize:t}){n2.get(e)?.forEach(i=>
1{i(e,{get width(){return n6(e,t)},get height(){return n5(e,t)}})})}function n8(e){e.forEach(n4)}let n9=new Set;function n7(e,t){let i;return"function"==typeof e?(n9.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};n9.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{n9.delete(e),n9.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(n8)),(i=n1(e)).forEach(e=>{let i=n2.get(e);i||(i=new Set,n2.set(e,i)),i.add(t),n?.observe(e)}),()=>{i.forEach(e=>{let i=n2.get(e);i?.delete(t),i?.size||n?.unobserve(e)})})}e.s(["resize",0,n7],61327);let re=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rt=new Set(["INPUT","SELECT","TEXTAREA"]),ri=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rn(e){return{point:{x:e.pageX,y:e.pageY}}}function rr(e,t,i,n){return nH(e,t,e=>ri(e)&&i(e,rn(e)),n)}let rs=({current:e})=>e?e.ownerDocument.defaultView:null,ra=(e,t)=>Math.abs(e-t),ro=new Set(["auto","scroll"]);class rl{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=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=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ru(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rc(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(ra(e.x,t.x)**2+ra(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:a}=eA;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ru(t,this.transformPagePoint),ej.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rc("pointercancel"===e.type?this.lastMoveEventInfo:ru(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!ri(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=ru(rn(e),this.transformPagePoint),{point:l}=o,{timestamp:u}=eA;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=t;h&&h(e,rc(o,this.history)),this.removeListeners=iL(rr(this.contextWindow,"pointermove",this.handlePointerMove),rr(this.contextWindow,"pointerup",this.handlePointerUp),rr(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ro.has(e.overflowX)||ro.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.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(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:n.x-t.x,y:n.y-t.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,n),ej.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eM(this.updatePoint)}}function ru(e,t){return t?{point:t(e.point)}:e}function rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rc({point:e},t){return{point:e,delta:rh(e,rd(t)),offset:rh(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=rd(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>ez(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&n.timestamp-i.timestamp>2*ez(.1)&&(i=e[1]);let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t)}}function rd(e){return e[e.length-1]}function rm(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function rp(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function rf(e,t,i){return{min:rg(e,t),max:rg(e,i)}}function rg(e,t){return"number"==typeof e?e:e[t]||0}let ry=new WeakMap;class rv{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{t&&this.snapToCursor(rn(e).point),this.stopAnimation()},s=(e,t)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(nK[e])return null;else return nK[e]=!0,()=>{nK[e]=!1};return nK.x||nK.y?null:(nK.x=nK.y=!0,()=>{nK.x=nK.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n_(e=>{let t=this.getAxisMotionValue(e).get()||0;if(b.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=nY(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&ej.update(()=>r(e,t),!1,!0),iD(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&ej.update(()=>s(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new rl(e,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:rs(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,n=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&ej.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!rw(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?tO(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?tO(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&iP(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:rm(e.x,i,r),y:rm(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rf(e,"left","right"),y:rf(e,"top","bottom")}}(t),n!==this.constraints&&!iP(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&n_(e=>{var t,n;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iP(t))return!1;let n=t.current;et(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:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(e,t,i){let n=t1(e,i),{scroll:r}=t;return r&&(tZ(n.x,r.offset.x),tZ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:rp(e.x,s.x),y:rp(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tU(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(n_(a=>{if(!rw(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===s||s===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iD(this.visualElement,e),i.start(nR(e,i,0,t,this.visualElement,!1))}stopAnimation(){n_(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){n_(t=>{let{drag:i}=this.getProps();if(!rw(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-tO(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iP(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n_(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let s,a,l,u=t.get();n[e]=(i={min:u,max:u},r=this.constraints[e],s=.5,a=nY(i),(l=nY(r))>a?s=nm(r.min,r.max-a,i.min):a>l&&(s=nm(i.min,i.max-l,r.min)),o(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n_(t=>{if(!rw(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(tO(r,s,n[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ry.set(this.visualElement,this);let t=this.visualElement.current,i=rr(t,"pointerdown",e=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),r=e.target,s=r!==t&&(rt.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(e)}),n=()=>{var i,n,r;let s,a,{dragConstraints:o}=this.getProps();iP(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,n=o.current,s=n7(i,rx(r=()=>this.scalePositionWithinConstraints())),a=n7(n,rx(r)),e=()=>{s(),a()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ej.read(n);let a=nH(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(n_(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),s(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function rx(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function rw(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rb=e=>(t,i)=>{e&&ej.update(()=>e(t,i),!1,!0)},rS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rT=t3;function rP(e=!0){let t=(0,t3.useContext)(id);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,s=(0,t3.useId)();(0,t3.useEffect)(()=>{if(e)return r(s)},[e]);let a=(0,t3.useCallback)(()=>e&&n&&n(s),[s,n,e]);return!i&&n?[!1,a]:[!0]}e.s(["usePresence",0,rP],64978);let rC=!1;class rE extends rT.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),rC&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rS.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),rC=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||ej.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),te.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;rC=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function rj(e){let[t,i]=rP(),n=(0,rT.useContext)(t8);return(0,t4.jsx)(rE,{...e,layoutGroup:n,switchLayoutGroup:(0,rT.useContext)(iT),isPresent:t,safeToRemove:i})}let rM=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],rA=rM.length,rV=e=>"string"==typeof e?parseFloat(e):e,rk=e=>"number"==typeof e||S.test(e);function rD(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rR=rI(0,.5,nu),rL=rI(.5,.95,eT);function rI(e,t,i){return n=>n<e?0:n>t?1:i(nm(e,t,n))}function rN(e,t){e.min=t.min,e.max=t.max}function rO(e,t){rN(e.x,t.x),rN(e.y,t.y)}function rB(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rF(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function r$(e,t,[i,n,r],s,a){!function(e,t=0,i=1,n=.5,r,s=e,a=e){if(b.test(t)&&(t=parseFloat(t),t=tO(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tO(s.min,s.max,n);e===s&&(o-=t),e.min=rF(e.min,t,i,o,r),e.max=rF(e.max,t,i,o,r)}(e,t[i],t[n],t[r],t.scale,s,a)}let rW=["x","scaleX","originX"],rz=["y","scaleY","originY"];function rU(e,t,i,n){r$(e.x,t,rW,i?i.x:void 0,n?n.x:void 0),r$(e.y,t,rz,i?i.y:void 0,n?n.y:void 0)}function r_(e){return 0===e.translate&&1===e.scale}function rH(e){return r_(e.x)&&r_(e.y)}function rK(e,t){return e.min===t.min&&e.max===t.max}function rY(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rG(e,t){return rY(e.x,t.x)&&rY(e.y,t.y)}function rX(e){return nY(e.x)/nY(e.y)}function rq(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rZ{constructor(){this.members=[]}add(e){eU(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(e_(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(e_(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=e.options;(void 0===n||n!==r)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isU
1pdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rJ=(e,t)=>e.depth-t.depth;class rQ{constructor(){this.children=[],this.isDirty=!1}add(e){eU(this.children,e),this.isDirty=!0}remove(e){e_(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rJ),this.isDirty=!1,this.children.forEach(e)}}let r0=["","X","Y","Z"],r1=0;function r2(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function r3({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=r1++,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(r4),this.nodes.forEach(ss),this.nodes.forEach(sa),this.nodes.forEach(r8)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rQ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eH),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=n0(t)&&!(n0(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;ej.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,s;n=e,this.root.updateBlockedByResize=!0,i&&i(),t=ti.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eM(s),r(i-250))},ej.setup(s,!0),i=()=>eM(s),rS.hasAnimatedSinceResize&&(rS.hasAnimatedSinceResize=!1,this.nodes.forEach(sr))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sd,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!rG(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iV(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||sr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eM(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(so),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[iS];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ej,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(se),this.nodes.forEach(r7);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(st);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(si),this.nodes.forEach(sn),this.nodes.forEach(r6),this.nodes.forEach(r5)):this.nodes.forEach(st),this.clearAllSnapshots();let e=ti.now();eA.delta=o(0,1e3/60,e-eA.timestamp),eA.timestamp=e,eA.isProcessing=!0,eV.update.process(eA),eV.preRender.process(eA),eV.render.process(eA),eA.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,te.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r9),this.sharedNodes.forEach(sl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ej.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ej.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Y()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rH(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||tK(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),sf((t=n).x),sf(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sy))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(rO(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rO(t,e),tZ(t.x,r.offset.x),tZ(t.y,r.offset.y))}return t}applyTransform(e,t=!1,i){let n=i||Y();rO(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(tZ(n.x,-i.scroll.offset.x),tZ(n.y,-i.scroll.offset.y)),tK(i.latestValues)&&t0(n,i.latestValues,i.layout?.layoutBox)}return tK(this.latestValues)&&t0(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(e){let t=Y();rO(t,e);for(let e=0;e<this.path.length;e++){let i,n=this.path[e];tK(n.latestValues)&&(n.instance&&(tH(n.latestValues)&&n.updateSnapshot(),rO(i=Y(),n.measurePageBox())),rU(t,n.latestValues,n.snapshot?.layoutBox,i))}return tK(this.latestValues)&&rU(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eA.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=eA.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nq(a.x,o.x,l.x,u?.x),nq(a.y,o.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rO(this.target,this.layout.layoutBox),tq(this.target,this.targetDelta)):rO(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tH(this.parent.latestValues)||tY(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(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),nJ(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),rO(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eA.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rO(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,n=!1){let r,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(tZ(e.x,-r.scroll.offset.x),tZ(e.y,-r.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tq(e,s)),n&&tK(r.latestValues)&&t0(e,r.latestValues,r.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rB(this.prevProjectionDelta.x,this.projectionDelta.x),rB(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nX(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rq(this.projectionDelta.x,this.prevProjectionDelta.x)&&rq(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=H(),this.projectionDelta=H(),this.projectionDeltaWithTransform=H()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=H();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Y(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(sc));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(su(a.x,e.x,n),su(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,p,f,g;nJ(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=n,sh(m.x,p.x,f.x,g),sh(m.y,p.y,f.y,g),i&&(u=this.relativeTarget,d=i,rK(u.x,d.x)&&rK(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=Y()),rO(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,n,r,s){r?(e.opacity=tO(0,i.opacity??1,rR(n)),e.opacityExit=tO(t.opacity??1,0,rL(n))):s&&(e.opacity=tO(t.opacity??1,i.opacity??1,n));for(let r=0;r<rA;r++){let s=rM[r],a=rD(t,s),o=rD(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rk(a)===rk(o)?(e[s]=Math.max(tO(rV(a),rV(o),n),0),(b.test(o)||b.test(a))&&(e[s]+="%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=tO(t.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eM(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ej.update(()=>{var t,i,n;let r;rS.hasAnimatedSinceResize=!0,e1.layout++,this.motionValue||(this.motionValue=ts(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e1.layout--},onComplete:()=>{e1.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=G(t)?t:ts(t)).start(nR("",r,i,n)),r.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&sg(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Y();let t=nY(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=nY(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}rO(t,i),t0(t,r),nX(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rZ),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&r2("z",e,n,this.animationValues);for(let t=0;t<r0.length;t++)r2(`rotate${r0[t]}`,e,n,this.animationValues),r2(`skew${r0[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=ic(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ic(t?.pointerEvents)||""),this.hasProjected&&!tK(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
1i&&(s=i(r,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tB){if(void 0===r[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tB[t],l="none"===s?r[t]:i(r[t],n);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?ic(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}}function r6(e){e.updateLayout()}function r5(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if("size"===r)n_(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=nY(n);n.min=i[e].min,n.max=n.min+r});else if("x"===r||"y"===r){let e="x"===r?"y":"x";rN(s?t.measuredBox[e]:t.layoutBox[e],i[e])}else sg(r,t.layoutBox,i)&&n_(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],a=nY(i[n]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=H();nX(a,i,t.layoutBox);let o=H();s?nX(o,e.applyTransform(n,!0),t.measuredBox):nX(o,i,t.layoutBox);let l=!rH(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=e.options.layoutAnchor||void 0,o=Y();nJ(o,t.layoutBox,r.layoutBox,a);let l=Y();nJ(l,i,s.layoutBox,a),rG(o,l)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function r9(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function se(e){e.isLayoutDirty=!0,e.updateLayout()}function st(e){e.isLayoutDirty=!1}function si(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sn(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sr(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ss(e){e.resolveTargetDelta()}function sa(e){e.calcProjection()}function so(e){e.resetSkewAndRotation()}function sl(e){e.removeLeadSnapshot()}function su(e,t,i){e.translate=tO(t.translate,0,i),e.scale=tO(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function sh(e,t,i,n){e.min=tO(t.min,i.min,n),e.max=tO(t.max,i.max,n)}function sc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sd={duration:.45,ease:[.4,0,.1,1]},sm=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sp=sm("applewebkit/")&&!sm("chrome/")?Math.round:eT;function sf(e){e.min=sp(e.min),e.max=sp(e.max)}function sg(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rX(t)-rX(i)))}function sy(e){return e!==e.root&&e.scroll?.wasRoot}let sv=r3({attachResizeListener:(e,t)=>nH(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sx={current:void 0},sw=r3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sx.current){let e=new sv({});e.mount(window),e.setOptions({layoutScroll:!0}),sx.current=e}return sx.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function sb(e,t){let i=n1(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function sS(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&ej.postRender(()=>r(t,rn(t)))}function sT(e){return nQ(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}e.s(["isHTMLElement",0,sT],72846);let sP=(e,t)=>!!t&&(e===t||sP(e,t.parentElement)),sC=new WeakSet;function sE(e){return t=>{"Enter"===t.key&&e(t)}}function sj(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function sM(e){return ri(e)&&!(nK.x||nK.y)}let sA=new WeakSet;function sV(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&ej.postRender(()=>r(t,rn(t)))}let sk=new WeakMap,sD=new WeakMap,sR=e=>{let t=sk.get(e.target);t&&t(e)},sL=e=>{e.forEach(sR)},sI={some:0,all:1},sN=function(e,t){if("u"<typeof Proxy)return iE;let i=new Map,n=(i,n)=>iE(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iE(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends ij{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nN(e,t,i)));else if("string"==typeof t)n=nN(e,t,i);else{let r="function"==typeof t?iM(e,t,i.custom):t;n=Promise.all(nL(e,r,i))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=nz(),n=!0,r=!1,s=t=>(i,n)=>{let r=iM(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<nO;e++){let n=tc[e],r=t.props[n];(tu(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},u=[],h=new Set,c={},d=1/0;for(let t=0;t<n$;t++){var m,p;let f=nF[t],g=i[f],y=void 0!==o[f]?o[f]:l[f],v=tu(y),x=f===a?g.isActive:null;!1===x&&(d=t);let w=y===l[f]&&y!==o[f]&&v;if(w&&(n||r)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||tl(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let b=(m=g.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!nB(p,m)),S=b||f===a&&g.isActive&&!w&&v||t>d&&v,T=!1,P=Array.isArray(y)?y:[y],C=P.reduce(s(f),{});!1===x&&(C={});let{prevResolvedValues:E={}}=g,j={...E,...C},M=t=>{S=!0,h.has(t)&&(T=!0,h.delete(t)),g.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in j){let t=C[e],i=E[e];if(!c.hasOwnProperty(e))(ik(t)&&ik(i)?nB(t,i):t===i)?void 0!==t&&h.has(e)?M(e):g.protectedKeys[e]=!0:null!=t?M(e):h.add(e)}g.prevProp=y,g.prevResolvedValues=C,g.isActive&&(c={...c,...C}),(n||r)&&e.blockInitialAnimation&&(S=!1);let A=w&&b,V=!A||T;S&&V&&u.push(...P.map(t=>{let i={type:f};if("string"==typeof t&&(n||r)&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=iM(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=nI(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof o.initial){let i=iM(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),u.push({animation:t})}let f=!!u.length;return n&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=a(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=nz(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ij{constructor(){super(...arguments),this.id=nU++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){let i=iM(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...n}=i;for(let e in n)this.node.getValue(e)?.jump(n[e])}}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",!e);t&&!e&&n.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends ij{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sI[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;sD.has(i)||sD.set(i,{});let n=sD.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sL,{root:e,...t})),n[r]}(o),sk.set(e,l),t.observe(e),()=>{sk.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ij{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[n,r,s]=sb(e,i),a=e=>{let n=e.currentTarget;if(!sM(e)||sA.has(e))return;sC.add(n),i.stopPropagation&&sA.add(e);let s=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sC.has(n)&&sC.delete(n),sM(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,n===window||n===document||i.useGlobalTarget||sP(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};return n.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),sT(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=sE(()=>
1{if(sC.has(i))return;sj(i,"down");let e=sE(()=>{sj(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sj(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),re.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sV(this.node,t,"Start"),(e,{success:t})=>sV(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ij{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iL(nH(this.node.current,"focus",()=>this.onFocus()),nH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ij{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=sb(e,i);return n.forEach(e=>{let i,n=!1,s=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),s&&(s=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(n){s=!0;return}a(e)}};e.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nK.x||nK.y)return;s=!1;let a=t(e,n);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,r))},r),e.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",o,r)},r)}),s}(e,(e,t)=>(sS(this.node,t,"Start"),e=>sS(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends ij{constructor(){super(...arguments),this.removePointerDownListener=eT}onPointerDown(e){this.session=new rl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rs(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rb(e),onStart:rb(t),onMove:rb(i),onEnd:(e,t)=>{delete this.session,n&&ej.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=rr(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ij{constructor(e){super(e),this.removeGroupControls=eT,this.removeListeners=eT,this.controls=new rv(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eT}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:sw,MeasureLayout:rj},layout:{ProjectionNode:sw,MeasureLayout:rj}},(e,t)=>t.isSVG??t5(e)?new tz(t):new t2(t,{allowProjection:e!==t3.Fragment}));e.s(["motion",0,sN],46932)},55650,55600,e=>{"use strict";var t=e.i(43476),i=e.i(22016);e.s(["default",0,function(){return(0,t.jsxs)(i.default,{href:"/",className:"flex items-center gap-2 group",children:[(0,t.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-accent shrink-0","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M0 3.22225V5.88891C0 6.62225 0.6 7.22225 1.33333 7.22225H5.33333V21.8889C5.33333 22.6222 5.93333 23.2222 6.66667 23.2222H9.33333C10.0667 23.2222 10.6667 22.6222 10.6667 21.8889V7.22225V3.22225C10.6667 2.48892 10.0667 1.88892 9.33333 1.88892H5.33333H1.33333C0.6 1.88892 0 2.48892 0 3.22225Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M14.6663 9.88916C13.933 9.88916 13.333 10.4892 13.333 11.2225V15.2225V21.8892C13.333 22.6225 13.933 23.2225 14.6663 23.2225H17.333C18.0663 23.2225 18.6663 22.6225 18.6663 21.8892V15.2225H22.6663C23.3997 15.2225 23.9997 14.6225 23.9997 13.8892V11.2225C23.9997 10.4892 23.3997 9.88916 22.6663 9.88916H14.6663Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M18.667 3.22249V5.88916C18.667 6.62249 19.267 7.22249 20.0003 7.22249H22.667C23.4003 7.22249 24.0003 6.62249 24.0003 5.88916V3.22249C24.0003 2.48916 23.4003 1.88916 22.667 1.88916H20.0003C19.267 1.88916 18.667 2.48916 18.667 3.22249Z",fill:"currentColor"})]}),(0,t.jsx)("span",{className:"font-serif text-text text-lg tracking-tight",children:"Tiny Foundation"})]})}],55650),e.s(["navLinks",0,[{label:"Grants",href:"#grants"},{label:"Community",href:"#community"},{label:"About",href:"#commitment"}]],55600)},4209,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(46932),r=e.i(30551),s=e.i(86427),a=e.i(65566),o=e.i(60830),l=e.i(87022);function u(e,t){let i,n=()=>{let{currentTime:n}=t,r=(null===n?0:n.value)/100;i!==r&&e(r),i=r};return l.frame.preUpdate(n,!0),()=>(0,l.cancelFrame)(n)}function h(e){return!("u"<typeof window)&&(e?(0,r.supportsViewTimeline)():(0,r.supportsScrollTimeline)())}var c=e.i(61327),d=e.i(83920),m=e.i(25791);let p=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),f={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function g(e,t,i,n){let r=i[t],{length:s,position:a}=f[t],o=r.current,l=i.time;r.current=Math.abs(e[`scroll${a}`]),r.scrollLength=e[`scroll${s}`]-e[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=(0,d.progress)(0,r.scrollLength,r.current);let u=n-l;r.velocity=u>50?0:(0,m.velocityPerSecond)(r.current-o,u)}e.i(47167);var y=e.i(44230),v=e.i(15923),x=e.i(76959),w=e.i(72846);let b={start:0,center:.5,end:1};function S(e,t,i=0){let n=0;if(e in b&&(e=b[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),i+n}let T=[0,0],P=[[0,0],[1,1]],C={x:0,y:0},E=new WeakMap,j=new WeakMap,M=new WeakMap,A=new WeakMap,V=new WeakMap,k=e=>e===document.scrollingElement?window:e;function D(e,{container:t=document.scrollingElement,trackContentSize:i=!1,...n}={}
1){if(!t)return o.noop;let r=M.get(t);r||(r=new Set,M.set(t,r));let s=function(e,t,i,n={}){return{measure:t=>{!function(e,t=e,i){if(i.x.targetOffset=0,i.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=t===e?t.scrollWidth:t.clientWidth,i.y.targetLength=t===e?t.scrollHeight:t.clientHeight,i.x.containerLength=e.clientWidth,i.y.containerLength=e.clientHeight}(e,n.target,i),g(e,"x",i,t),g(e,"y",i,t),i.time=t,(n.offset||n.target)&&function(e,t,i){let{offset:n=P}=i,{target:r=e,axis:s="y"}=i,a="y"===s?"height":"width",o=r!==e?function(e,t){let i={x:0,y:0},n=e;for(;n&&n!==t;)if((0,w.isHTMLElement)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();i.x+=e.left-t.left,i.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();i.x+=e,i.y+=t;let r=null,s=n.parentNode;for(;!r;)"svg"===s.tagName&&(r=s),s=n.parentNode;n=r}else break;return i}(r,e):C,l=r===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in r&&"svg"!==r.tagName?r.getBBox():{width:r.clientWidth,height:r.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let h=!t[s].interpolate,c=n.length;for(let e=0;e<c;e++){let i=function(e,t,i,n){let r=Array.isArray(e)?e:T,s=0;return"number"==typeof e?r=[e,e]:"string"==typeof e&&(r=(e=e.trim()).includes(" ")?e.split(" "):[e,b[e]?e:"0"]),(s=S(r[0],i,n))-S(r[1],t)}(n[e],u[a],l[a],o[s]);h||i===t[s].interpolatorOffsets[e]||(h=!0),t[s].offset[e]=i}h&&(t[s].interpolate=(0,y.interpolate)(t[s].offset,(0,v.defaultOffset)(n),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=(0,x.clamp)(0,1,t[s].interpolate(t[s].current))}(e,i,n)},notify:()=>t(i)}}(t,e,{time:0,x:p(),y:p()},n);if(r.add(s),!E.has(t)){let e=()=>{for(let e of r)e.measure(l.frameData.timestamp);l.frame.preUpdate(i)},i=()=>{for(let e of r)e.notify()},n=()=>l.frame.read(e);E.set(t,n);let s=k(t);window.addEventListener("resize",n),t!==document.documentElement&&j.set(t,(0,c.resize)(t,n)),s.addEventListener("scroll",n),n()}if(i&&!V.has(t)){let e=E.get(t),i={width:t.scrollWidth,height:t.scrollHeight};A.set(t,i);let n=l.frame.read(()=>{let n=t.scrollWidth,r=t.scrollHeight;(i.width!==n||i.height!==r)&&(e(),i.width=n,i.height=r)},!0);V.set(t,n)}let a=E.get(t);return l.frame.read(a,!1,!0),()=>{(0,l.cancelFrame)(a);let e=M.get(t);if(!e||(e.delete(s),e.size))return;let i=E.get(t);E.delete(t),i&&(k(t).removeEventListener("scroll",i),j.get(t)?.(),window.removeEventListener("resize",i));let n=V.get(t);n&&((0,l.cancelFrame)(n),V.delete(t)),A.delete(t)}}let R=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[P,"contain"]],L={start:0,end:1};function I(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,i]of R)if(function(e,t){let i=function(e){if(2!==e.length)return;let t=[];for(let i of e)if(Array.isArray(i))t.push(i);else{if("string"!=typeof i)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let i=L[t[0]],n=L[t[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!e)return;t.push(e)}return t}(e);if(!i)return!1;for(let e=0;e<2;e++){let n=i[e],r=t[e];if(n[0]!==r[0]||n[1]!==r[1])return!1}return!0}(e,t))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let N=new Map;function O(e){let t={value:0},i=D(i=>{t.value=100*i[e.axis].progress},e);return{currentTime:t,cancel:i}}function B({source:e,container:t,...i}){let{axis:n}=i;e&&(t=e);let r=N.get(t);r||(r=new Map,N.set(t,r));let s=i.target??"self",a=r.get(s);a||(a={},r.set(s,a));let o=n+(i.offset??[]).join(",");return a[o]||(i.target&&h(i.target)?I(i.offset)?a[o]=new ViewTimeline({subject:i.target,axis:n}):a[o]=O({container:t,...i}):h()?a[o]=new ScrollTimeline({source:t,axis:n}):a[o]=O({container:t,...i})),a[o]}function F(e,{axis:t="y",container:i=document.scrollingElement,...n}={}){var r,s;let a,l,c;
1if(!i)return o.noop;let d={axis:t,container:i,...n};return"function"==typeof e?(r=e,s=d,2===r.length?D(e=>{r(e[s.axis].progress,e)},s):u(r,B(s))):(a=B(d),l=d.target?I(d.offset):void 0,c=d.target?h(d.target)&&!!l:h(),e.attachTimeline({timeline:c?a:void 0,...l&&c&&{rangeStart:l.rangeStart,rangeEnd:l.rangeEnd},observe:e=>(e.pause(),u(t=>{e.time=e.iterationDuration*t},a))}))}var $=e.i(47414),W=e.i(74008);let z=()=>({scrollX:(0,s.motionValue)(0),scrollY:(0,s.motionValue)(0),scrollXProgress:(0,s.motionValue)(0),scrollYProgress:(0,s.motionValue)(0)}),U=e=>!!e&&!e.current;function _(e,t,i,n){return{factory:r=>F(r,{...t,axis:e,container:i?.current||void 0,target:n?.current||void 0}),times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}var H=e.i(55650),K=e.i(55600);let Y={type:"spring",stiffness:200,damping:24};e.s(["default",0,function(){var e,s;let[o,l]=(0,i.useState)(!1),[u,h]=(0,i.useState)(""),c=(0,i.useRef)(0),{scrollY:d}=function({container:e,target:t,...n}={}){var s;let o=(0,$.useConstant)(z);s=n.offset,!("u"<typeof window)&&(t?(0,r.supportsViewTimeline)()&&!!I(s):(0,r.supportsScrollTimeline)())&&(o.scrollXProgress.accelerate=_("x",n,e,t),o.scrollYProgress.accelerate=_("y",n,e,t));let l=(0,i.useRef)(null),u=(0,i.useRef)(!1),h=(0,i.useCallback)(()=>(l.current=F((e,{x:t,y:i})=>{o.scrollX.set(t.current),o.scrollXProgress.set(t.progress),o.scrollY.set(i.current),o.scrollYProgress.set(i.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{l.current?.()}),[e,t,JSON.stringify(n.offset)]);return(0,W.useIsomorphicLayoutEffect)(()=>{if(u.current=!1,!(U(e)||U(t)))return h();u.current=!0},[h]),(0,i.useEffect)(()=>u.current?((0,a.invariant)(!U(e),"Container ref is defined but not hydrated","use-scroll-ref"),(0,a.invariant)(!U(t),"Target ref is defined but not hydrated","use-scroll-ref"),h()):void 0,[h]),o}();return e="change",s=e=>{"down"==(e>c.current?"down":"up")&&e>80?l(!0):l(!1),c.current=e},(0,i.useInsertionEffect)(()=>d.on(e,s),[d,e,s]),(0,i.useEffect)(()=>{let e=K.navLinks.map(e=>e.href.replace("#","")),t=[];return e.forEach(e=>{let i=document.getElementById(e);if(!i)return;let n=new IntersectionObserver(([t])=>{t.isIntersecting&&h(e)},{rootMargin:"-40% 0px -55% 0px"});n.observe(i),t.push(n)}),()=>t.forEach(e=>e.disconnect())},[]),(0,t.jsx)(n.motion.nav,{initial:{y:0},animate:{y:o?-80:0},transition:Y,className:"fixed top-0 left-0 right-0 z-50 hidden md:flex h-16 bg-surface/90 backdrop-blur-md shadow-nav",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 flex items-center justify-between",children:[(0,t.jsx)(H.default,{}),(0,t.jsx)("ul",{className:"flex items-center gap-8",children:K.navLinks.map(({label:e,href:i})=>{let r=u===i.replace("#","");return(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:i,onClick:e=>{let t,n;return e.preventDefault(),t=i.replace("#",""),void((n=document.getElementById(t))&&n.scrollIntoView({behavior:"smooth"}))},className:`relative text-sm font-sans transition-colors duration-200 ${r?"text-accent":"text-text-secondary hover:text-text"}`,children:[e,r&&(0,t.jsx)(n.motion.span,{layoutId:"nav-underline",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-accent rounded-full",transition:Y})]})},i)})})]})})}],4209)},11093,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(46932);e.i(47167);var r=e.i(31178),s=e.i(47414),a=e.i(74008),o=e.i(21476),l=e.i(72846),u=i,h=e.i(37806);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends u.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,l.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,i=(0,l.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,l.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:n,anchorX:r,anchorY:s,root:a,pop:o}){let l=(0,u.useId)(),p=(0,u.useRef)(null),f=(0,u.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=(0,u.useContext)(h.MotionConfigContext),y=function(...e){return i.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=c(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():c(e[t],null)}}}}(...e),e)}(p,e.props?.ref??e?.ref);return(0,u.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:u,right:h,bottom:c}=f.current;if(n||!1===o||!p.current||!e||!t)return;let d="left"===r?`left: ${u}`:`right: ${h}`,m="bottom"===s?`bottom: ${c}`:`top: ${i}`;p.current.dataset.motionPopId=l;let y=document.createElement("style");g&&(y.nonce=g);let v=a??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${d}px !important; 7 ${m}px !important; 8 } 9 `),()=>{p.current?.removeAttribute("data-motion-pop-id"),v.contains(y)&&v.removeChild(y)}},[n]),(0,t.jsx)(d,{isPresent:n,childRef:p,sizeRef:f,pop:o,children:!1===o?e:u.cloneElement(e,{ref:y})})}let p=({children:e,initial:n,isPresent:r,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,anchorY:d,root:p})=>{let g=(0,s.useConstant)(f),y=(0,i.useId)(),v=!0,x=(0,i.useMemo)(()=>
9(v=!1,{id:y,initial:n,isPresent:r,custom:l,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;a&&a()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[r,g,a]);return u&&v&&(x={...x}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[r]),i.useEffect(()=>{r||g.size||!a||a()},[r]),e=(0,t.jsx)(m,{pop:"popLayout"===h,isPresent:r,anchorX:c,anchorY:d,root:p,children:e}),(0,t.jsx)(o.PresenceContext.Provider,{value:x,children:e})};function f(){return new Map}var g=e.i(64978);let y=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let x=({children:e,custom:n,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",anchorY:m="top",root:f})=>{let[x,w]=(0,g.usePresence)(c),b=(0,i.useMemo)(()=>v(e),[e]),S=c&&!x?[]:b.map(y),T=(0,i.useRef)(!0),P=(0,i.useRef)(b),C=(0,s.useConstant)(()=>new Map),E=(0,i.useRef)(new Set),[j,M]=(0,i.useState)(b),[A,V]=(0,i.useState)(b);(0,a.useIsomorphicLayoutEffect)(()=>{T.current=!1,P.current=b;for(let e=0;e<A.length;e++){let t=y(A[e]);S.includes(t)?(C.delete(t),E.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[A,S.length,S.join("-")]);let k=[];if(b!==j){let e=[...b];for(let t=0;t<A.length;t++){let i=A[t],n=y(i);S.includes(n)||(e.splice(t,0,i),k.push(i))}return"wait"===h&&k.length&&(e=k),V(v(e)),M(b),null}let{forceRender:D}=(0,i.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:A.map(e=>{let i=y(e),r=(!c||!!x)&&(b===A||S.includes(i));return(0,t.jsx)(p,{isPresent:r,initial:(!T.current||!!o)&&void 0,custom:n,presenceAffectsLayout:u,mode:h,root:f,onExitComplete:r?void 0:()=>{if(E.current.has(i)||!C.has(i))return;E.current.add(i),C.set(i,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(D?.(),V(P.current),c&&w?.(),l&&l())},anchorX:d,anchorY:m,children:e},i)})})};var w=e.i(55650),b=e.i(55600);let S={type:"spring",stiffness:200,damping:24};e.s(["default",0,function(){let[e,r]=(0,i.useState)(!1);return(0,t.jsxs)("div",{className:"md:hidden",children:[(0,t.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50 flex h-16 items-center justify-between px-6 bg-surface/90 backdrop-blur-md shadow-nav",children:[(0,t.jsx)(w.default,{}),(0,t.jsx)("button",{onClick:()=>r(e=>!e),className:"relative z-50 flex h-10 w-10 items-center justify-center text-text","aria-label":e?"Close menu":"Open menu","aria-expanded":e,children:(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[(0,t.jsx)(n.motion.line,{x1:"4",x2:"20",y1:"6",y2:"6",animate:e?{y1:12,y2:12,rotate:45}:{y1:6,y2:6,rotate:0},transition:S,style:{transformOrigin:"center"}}),(0,t.jsx)(n.motion.line,{x1:"4",x2:"20",y1:"12",y2:"12",animate:e?{opacity:0}:{opacity:1},transition:{duration:.15}}),(0,t.jsx)(n.motion.line,{x1:"4",x2:"20",y1:"18",y2:"18",animate:e?{y1:12,y2:12,rotate:-45}:{y1:18,y2:18,rotate:0},transition:S,style:{transformOrigin:"center"}})]})})]}),(0,t.jsx)(x,{children:e&&(0,t.jsx)(n.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:{duration:.25},className:"fixed inset-0 z-40 flex flex-col items-center justify-center bg-surface",children:(0,t.jsx)("nav",{children:(0,t.jsx)("ul",{className:"flex flex-col items-center gap-8",children:b.navLinks.map(({label:e,href:i},s)=>(0,t.jsx)(n.motion.li,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{...S,delay:.05+.07*s},children:(0,t.jsx)("a",{href:i,onClick:e=>{e.preventDefault(),r(!1),setTimeout(()=>{let e=i.replace("#",""),t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})},100)},className:"font-serif text-3xl text-text hover:text-accent transition-colors duration-200",children:e})},i))})})},"mobile-overlay")})]})}],11093)},88143,(e,t,i)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:i,blurHeight:r,blurDataURL:s,objectFit:a}){let o=i?40*i:e,l=r?40*r:t,u=o&&l?`viewBox='0 0 ${o} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${u}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return a}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),e.r(33525);let n=e.r(43369),r=e.r(88143),s=e.r(87690),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function u({src:e,sizes:t,unoptimized:i=!1,priority:h=!1,preload:c=!1,loading:d,className:m,quality:p,width:f,height:g,fill:y=!1,style:v,overrideSrc:x,onLoad:w,onLoadingComplete:b,placeholder:S="empty",blurDataURL:T,fetchPriority:P,decoding:C="async",layout:E,objectFit:j,objectPosition:M,lazyBoundary:A,lazyRoot:V,...k},D){var R;let L,I,N,{imgConf:O,showAltText:B,blurComplete:F,defaultLoader:$}=D,W=O||s.imageConfigDefault;if("allSizes"in W)L=W;else{let e=[...W.deviceSizes,...W.imageSizes].sort((e,t)=>e-t),t=W.deviceSizes.sort((e,t)=>e-t),i=W.qualities?.sort((e,t)=>e-t);L={...W,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===$)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=k.loader||$;delete k.loader,delete k.srcSet;let U="__next_img_default"in z;if(U){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 10Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,
10configurable:!0})}else{let e=z;z=t=>{let{config:i,...n}=t;return e(n)}}if(E){"fill"===E&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(v={...v,...e});let i={responsive:"100vw",fill:"100vw"}[E];i&&!t&&(t=i)}let _="",H=l(f),K=l(g);if((R=e)&&"object"==typeof R&&(o(R)||void 0!==R.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(I=t.blurWidth,N=t.blurHeight,T=T||t.blurDataURL,_=t.src,!y)if(H||K){if(H&&!K){let e=H/t.width;K=Math.round(t.height*e)}else if(!H&&K){let e=K/t.height;H=Math.round(t.width*e)}}else H=t.width,K=t.height}let Y=!h&&!c&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:_)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,Y=!1),L.unoptimized&&(i=!0),U&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let G=l(p),X=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:M}:{},B?{}:{color:"transparent"},v),q=F||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,r.getImageBlurSvg)({widthInt:H,heightInt:K,blurWidth:I,blurHeight:N,blurDataURL:T||"",objectFit:X.objectFit})}")`:`url("${S}")`,Z=a.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,J=q?{backgroundSize:Z,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function({config:e,src:t,unoptimized:i,width:r,quality:s,sizes:a,loader:o}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(e){let i=t.indexOf("?");if(-1!==i){let n=new URLSearchParams(t.slice(i+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,i)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:e,allSizes:t},i,n){if(n){let i=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=i.exec(n);)r.push(parseInt(e[2]));if(r.length){let i=.01*Math.min(...r);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,r,a),h=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((i,n)=>`${o({config:e,src:t,quality:s,width:i})} ${"w"===u?i:n+1}${u}`).join(", "),src:o({config:e,src:t,quality:s,width:l[h]})}}({config:L,src:e,unoptimized:i,width:H,quality:G,sizes:t,loader:z}),ee=Y?"lazy":d;return{props:{...k,loading:ee,fetchPriority:P,width:H,height:K,decoding:C,className:m,style:{...X,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:i,preload:c||h,placeholder:S,fill:y}}}},98879,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=e.r(71645),r="u"<typeof window,s=r?()=>{}:n.useLayoutEffect,a=r?()=>{}:n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:i}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(e))}}return r&&(t?.mountedInstances?.add(e.children),o()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return c}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(55682),a=e.r(90809),o=e.r(43476),l=a._(e.r(71645)),u=s._(e.r(98879)),h=e.r(42732);function c(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>
10"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let m=["name","httpEquiv","charSet","itemProp"];function p(e){let t,i,n,r;return e.reduce(d,[]).reverse().concat(c().reverse()).filter((t=new Set,i=new Set,n=new Set,r={},e=>{let s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?s=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?s=!1:i.add(e.type);break;case"meta":for(let t=0,i=m.length;t<i;t++){let i=m[t];if(e.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?s=!1:n.add(i);else{let t=e.props[i],n=r[i]||new Set;("name"!==i||!a)&&n.has(t)?s=!1:(n.add(t),r[i]=n)}}}return s})).reverse().map((e,t)=>{let i=e.key||t;return l.default.cloneElement(e,{key:i})})}let f=function({children:e}){let t=(0,l.useContext)(h.HeadManagerContext);return(0,o.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},18556,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(55682)._(e.r(71645)),r=e.r(87690),s=n.default.createContext(r.imageConfigDefault)},65856,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,i)=>{"use strict";function n(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=e.r(70965),r=e.r(43369);function s({config:e,src:t,width:i,quality:a}){let o=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),n=i.get("dpl");if(n){o=n,i.delete("dpl");let r=i.toString();t=t.slice(0,e)+(r?"?"+r:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 11Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}s.__next_img_default=!0;let a=s},85437,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let n=e.r(55682),r=e.r(90809),s=e.r(43476),a=r._(e.r(71645)),o=n._(e.r(74080)),l=n._(e.r(25633)),u=e.r(8927),h=e.r(87690),c=e.r(18556);e.r(33525);let d=e.r(65856),m=n._(e.r(1948)),p=e.r(18581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,i,n,r,s,a){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&r(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,r=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{r=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)(({src:e,srcSet:t,sizes:i,height:n,width:r,decoding:o,className:l,style:u,fetchPriority:h,placeholder:c,loading:d,unoptimized:m,fill:f,onLoadRef:v,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:b,sizesInput:S,onLoad:T,onError:P,...C},E)=>{let j=(0,a.useCallback)(e=>{e&&(P&&(e.src=e.src),e.complete&&g(e,c,v,x,w,m,S))},[e,c,v,x,w,P,m,S]),M=(0,p.useMergedRef)(E,j);return(0,s.jsx)("img",{...C,...y(h),loading:d,width:r,height:n,decoding:o,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:t,src:e,ref:M,onLoad:e=>{g(e.currentTarget,c,v,x,w,m,S)},onError:e=>{b(!0),"empty"!==c&&w(!0),P&&P(e)}})});function x({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let i=(0,a.useContext)(d.RouterContext),n=(0,a.useContext)(c.ImageConfigContext),r=(0,a.useMemo)(()=>{let e=f||n||h.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
11e-t),i=e.deviceSizes.sort((e,t)=>e-t),r=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:r,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:o,onLoadingComplete:l}=e,p=(0,a.useRef)(o);(0,a.useEffect)(()=>{p.current=o},[o]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[y,w]=(0,a.useState)(!1),[b,S]=(0,a.useState)(!1),{props:T,meta:P}=(0,u.getImgProps)(e,{defaultLoader:m.default,imgConf:r,blurComplete:y,showAltText:b});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...T,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:w,setShowAltText:S,sizesInput:e.sizes,ref:t}),P.preload?(0,s.jsx)(x,{isAppRouter:!i,imgAttributes:T}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},94909,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=e.r(55682),a=e.r(8927),o=e.r(85437),l=s._(e.r(1948));function u(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let h=o.Image},57688,(e,t,i)=>{t.exports=e.r(94909)},77258,e=>{"use strict";var t=e.i(43476),i=e.i(57688),n=e.i(46932),r=e.i(71645),s=e.i(53034),a=e.i(37806),o=e.i(98125),l=e.i(47414);function u({children:e,isValidProp:i,...n}){i&&(0,o.loadExternalIsValidProp)(i);let h=(0,r.useContext)(a.MotionConfigContext);(n={...h,...n}).transition=(0,s.resolveTransition)(n.transition,h.transition),n.isStatic=(0,l.useConstant)(()=>n.isStatic);let c=(0,r.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,t.jsx)(a.MotionConfigContext.Provider,{value:c,children:e})}let h=[{title:"Medical Research",description:"A single protein blocks Alzheimer's cognitive decline. Gene editing eliminates herpes. Your meal timing matters more than your calories. We fund the scientists proving it."},{title:"Journalism",description:"Four million pages of government documents, searchable by anyone. Canada's largest independent podcast network. Investigations no mainstream outlet would touch."},{title:"Nonprofit Capacity",description:"The organizations that hold society together run on volunteer hours and donated space. We help them build the capacity to do more."}],c=[{src:"/images/fellows/jesse-brown.jpg",name:"Jesse Brown"},{src:"/images/fellows/carla-shatz.jpg",name:"Dr. Carla Shatz"},{src:"/images/fellows/hussein-yassine.jpg",name:"Dr. Hussein Yassine"},{src:"/images/fellows/alia-crum.jpg",name:"Dr. Alia Crum"},{src:"/images/fellows/andrew-huberman.jpg",name:"Dr. Andrew Huberman"},{src:"/images/fellows/kari-nadeau.jpg",name:"Dr. Kari Nadeau"},{src:"/images/fellows/satchin-panda.jpg",name:"Dr. Satchin Panda"},{src:"/images/fellows/joanna-steinglass.jpg",name:"Dr. Joanna Steinglass"},{src:"/images/fellows/keith-jerome.jpg",name:"Dr. Keith Jerome"},{src:"/images/fellows/rhonda-patrick.jpg",name:"Dr. Rhonda Patrick"},{src:"/images/fellows/carole-cadwalladr.jpg",name:"Carole Cadwalladr"},{src:"/images/fellows/ashley-mason.jpg",name:"Dr. Ashley Mason"}];e.s(["default",0,function(){return(0,t.jsx)(u,{reducedMotion:"user",children:(0,t.jsxs)("section",{id:"hero",className:"pt-32 md:pt-40 pb-0 overflow-hidden",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0}
11,animate:{opacity:1},transition:{duration:.8,ease:"easeOut"},className:"mx-auto max-w-5xl px-6 text-center",children:(0,t.jsx)("h1",{className:"font-serif text-display text-text leading-[1.1] text-balance",children:"We fund the work the world needs but wonât pay for."})}),(0,t.jsxs)("div",{className:"relative mt-20 mb-20",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 z-10 w-32 md:w-48 bg-gradient-to-r from-bg to-transparent"}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 z-10 w-32 md:w-48 bg-gradient-to-l from-bg to-transparent"}),(0,t.jsx)(n.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:1.2,delay:.3},className:"flex items-end gap-3 md:gap-4 justify-center px-4",style:{minWidth:"max-content"},children:c.map((e,r)=>{let s=220-18*Math.abs(r-(c.length-1)/2),a=Math.round(.72*s);return(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.25,.46,.45,.94],delay:.4+.08*r},className:"flex-shrink-0 relative group",style:{width:a,height:s},children:[(0,t.jsx)(i.default,{src:e.src,alt:e.name,fill:!0,className:"object-cover grayscale rounded-sm",sizes:`${a}px`,...r>=4&&r<=6?{priority:!0}:{}}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 to-transparent p-2 pt-8 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-b-sm",children:(0,t.jsx)("p",{className:"text-white text-xs font-sans text-center leading-tight",children:e.name})})]},e.name)})})]}),(0,t.jsx)(n.motion.div,{initial:{opacity:0}
11,animate:{opacity:1},transition:{duration:.8,delay:.6},className:"mx-auto max-w-5xl px-6 text-center",children:(0,t.jsx)("h2",{className:"font-serif text-h2 mb-8",children:"Focus Areas"})}),(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-6 pb-24 md:pb-32 grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-8",children:h.map((e,i)=>(0,t.jsxs)(n.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut",delay:.8+.15*i},className:"text-center",children:[(0,t.jsx)("h3",{className:"font-serif text-h2 text-text",children:e.title}),(0,t.jsx)("p",{className:"mt-3 text-body text-text-secondary leading-relaxed",children:e.description})]},e.title))})]})})}],77258)},36014,(e,t,i)=>{t.exports=[{label:"committed to date",value:16,prefix:"$",suffix:"M"},{label:"grants made",value:53},{label:"peer-reviewed papers funded",value:16}]},17706,e=>{"use strict";var t=e.i(43476),i=e.i(46932),n=e.i(71645),r=e.i(49652);let s={some:0,all:1};e.s(["default",0,function({children:e,staggerDelay:a=0,className:o=""}){let l=(0,n.useRef)(null),u=function(e,{root:t,margin:i,amount:a,once:o=!1,initial:l=!1}={}){let[u,h]=(0,n.useState)(l);return(0,n.useEffect)(()=>{if(!e.current||o&&u)return;let n={root:t&&t.current||void 0,margin:i,amount:a};return function(e,t,{root:i,margin:n,amount:a="some"}={}){let o=(0,r.resolveElements)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let i=l.get(e.target);if(!!i!==e.isIntersecting)if(e.isIntersecting){let i=t(e.target,e);
11"function"==typeof i?l.set(e.target,i):u.unobserve(e.target)}else"function"==typeof i&&(i(e),l.delete(e.target))})},{root:i,rootMargin:n,threshold:"number"==typeof a?a:s[a]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(h(!0),o?void 0:()=>h(!1)),n)},[t,e,i,o,a]),u}(l,{once:!0,margin:"0px 0px -40px 0px"});return(0,t.jsx)(i.motion.div,{ref:l,initial:{opacity:0,y:20},animate:u?{opacity:1,y:0}:{opacity:0,y:20},transition:{type:"spring",stiffness:100,damping:20,delay:a},className:o,children:e})}],17706)},34060,e=>{"use strict";var t=e.i(43476),i=e.i(36014),n=e.i(71645);function r({value:e,prefix:i="",suffix:s="",duration:a=2e3,className:o=""}){let[l,u]=(0,n.useState)(0),h=(0,n.useRef)(null),c=(0,n.useRef)(!1),d=(0,n.useCallback)(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return void u(e);let t=performance.now(),i=n=>{let r=Math.min((n-t)/a,1);u(Math.round((1-Math.pow(1-r,3))*e)),r<1&&requestAnimationFrame(i)};requestAnimationFrame(i)},[e,a]);return(0,n.useEffect)(()=>{let e=h.current;if(!e)return;let t=new IntersectionObserver(([e])=>{e.isIntersecting&&!c.current&&(c.current=!0,d())},{threshold:.3});return t.observe(e),()=>t.disconnect()},[d]),(0,t.jsxs)("span",{ref:h,className:o,children:[i,l,s]})}var s=e.i(17706);e.s(["default",0,function(){return(0,t.jsx)("section",{id:"stats",className:"border-t border-b border-border py-16 md:py-20",children:(0,t.jsx)("div",{className:"mx-auto grid max-w-4xl grid-cols-1 sm:grid-cols-3 gap-y-12 px-6",children:i.default.map((e,i)=>(0,t.jsx)(s.default,{staggerDelay:.1*i,children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(r,{value:e.value,prefix:e.prefix??"",suffix:e.suffix??"",className:"font-serif text-h1 text-text"}),(0,t.jsx)("p",{className:"mt-2 font-sans text-caption text-text-secondary",children:e.label})]})},e.label))})})}],34060)},31187,(e,t,i)=>{t.exports={"medical-research":[{name:"Huberman Lab",description:"How does the brain repair itself after injury? Can a damaged optic nerve regrow? The Huberman Lab at Stanford studies how neural circuits develop, how they break, and how to fix them â from regenerating retinal connections to discovering brain circuits that control fear and anxiety responses.",institution:"Stanford University School of Medicine",researcher:"Dr. Andrew Huberman",advisor:null},{name:"Chronobiology",description:"It doesn't matter what you eat. Mice fed identical high-fat diets gained 28% less weight when meals were restricted to a 8-10 hour window. This research is proving that when you eat may matter more than calories, macros, or willpower.",institution:"Salk Institute",researcher:"Dr. Satchin Panda",advisor:null},{name:"Mindsets",description:"Same milkshake, different label. Tell someone it's 620 calories and their ghrelin drops three times more than if you say it's 140. Hotel attendants told their work \"counts as exercise\" lost weight without changing a single habit. This lab studies how belief reprograms the body.",institution:"Stanford",researcher:"Dr. Alia Crum",advisor:null},{name:"Alzheimer's Disease",description:"One in four people carry a gene that dramatically raises their Alzheimer's risk â and most don't know it. This research developed a novel imaging probe to study why omega-3 fatty acids may protect APOE4 carriers, potentially reaching 75 million Americans before symptoms start.",institution:"USC",researcher:"Dr. Hussein Yassine",advisor:null},{name:"Neuroplasticity",description:"For decades, scientists assumed Alzheimer's plaques destroyed the brain. Then blocking a single protein called PirB restored cognition in mice â with the plaques still there. This discovery suggests we've been chasing the wrong target, and a new class of treatments is possible.",institution:"Stanford",researcher:"Dr. Carla Shatz",advisor:null},{name:"Psychiatric Disorders",description:"300 million people worldwide have depression. Standard antidepressants fail a third of them, and nothing has fundamentally changed in 40 years. This lab applies spaced learning theory to brain stimulation â developing new protocols for treatment-resistant depression, chronic pain, and OCD.",institution:"Stanford",researcher:"Dr. Nolan Williams",advisor:null},{name:"Eating Disorders",description:"Anorexia has the highest mortality rate of any psychiatric illness â higher than depression, schizophrenia, or PTSD. Yet most treatments haven't changed since the 1970s. This research uses cognitive neuroscience to map how the brain drives the disorder and build new ways to interrupt it.",institution:"Columbia",researcher:"Dr. Joanna Steinglass",advisor:null},{name:"Chronic Depression",description:"Can a hot bath treat depression as effectively as an SSRI? Early trials say yes. This program runs rigorous clinical trials on whole-body hyperthermia, cold water immersion, thermal insomnia treatments, and wearable algorithms â a full non-drug toolkit for chronic depression.",institution:"UCSF",researcher:"Dr. Ashley Mason",advisor:null},{name:"Esophageal Cancer",description:"By the time esophageal cancer causes symptoms, five-year survival drops below 20%. There are no reliable early warning signs â yet. This project uses organ-on-chip models and single-cell spatial genomics to find biomarkers that could catch the disease years before it kills.",institution:"UBC",researcher:"Dr. Shane Duggan",advisor:"Dr. Dermot Kelleher"},{name:"Pernicious Viruses",description:"Imagine curing HIV, herpes, or hepatitis B â not managing them, curing them. Gene editing can now perform molecular surgery on viral DNA hiding inside your cells. This lab is building those therapies and investigating a growing link between herpes simplex and Alzheimer's.",institution:"UW/Fred Hutch",researcher:"Dr. Keith Jerome",advisor:null},{name:"Allergies",description:"Your allergies aren't in your head â they're getting worse every year. Rising CO2 levels are making pollen seasons longer, more intense, and reaching cities that never had them. This research maps exactly how climate change is rewiring the allergy epidemic and what interventions can slow it.",institution:"Stanford/Harvard",researcher:"Dr. Kari Na
11deau",advisor:null},{name:"Psychology of Crime",description:"Online forums for people attracted to children have millions of users â and nearly zero connection to mental health services. What if those spaces could become a bridge to treatment instead of reinforcing harm? This research studies that counterintuitive question directly.",institution:"Royal Ottawa",researcher:"Dr. Michael Seto",advisor:"Daemon Fairless"},{name:"Prenatal Diet",description:"A child's cognitive development may be shaped years before birth by nutrients most obstetricians don't test for. This study measures omega-3 and vitamin D levels in cord blood to quantify exactly how much a mother's prenatal nutrition changes her baby's brain.",institution:"Fatty Acid Research Institute",researcher:"Dr. William Harris",advisor:"Dr. Rhonda Patrick"},{name:"Longevity (TRIAD)",description:"What if a cheap, existing drug could add years to your life? Low-dose rapamycin extends lifespan in mice by up to 25%. The Dog Aging Project is running the largest double-blind trial of the drug in companion dogs â because what works in dogs is far more likely to work in us.",institution:"Dog Aging Project",researcher:null,advisor:null},{name:"Rare Disease",description:"A child with MPS may seem healthy at birth, then slowly lose the ability to walk, speak, and breathe. There is no cure. The Isaac Foundation has funded over $1M in global research since 2007, building toward treatments one grant at a time.",institution:"Isaac Foundation",researcher:null,advisor:null},{name:"Pain Management",description:"Millions of chronic pain patients are stuck between opioids that addict and over-the-counter pills that don't work. SABI Mind runs ketamine therapy clinics in Victoria and Calgary â proving that psychedelic-assisted treatment works outside the lab, in real clinical settings.",institution:"SABI Mind",researcher:null,advisor:null},{name:"Substance Abuse",description:"The 12-step model turns 90 this decade. Neuroscience, pharmacology, and digital health have transformed every other field of medicine â but addiction treatment barely changed. Whylome accelerates that convergence into therapies that actually reach patients.",institution:"Whylome",researcher:null,advisor:null},{name:"Rare Tumors",description:"Imagine tumors growing on every nerve in y
11our body â pressing on your spine, your brain, your skin. That's neurofibromatosis, and it affects 1 in 3,000 people. The Children's Tumor Foundation unites patients, researchers, and pharma to accelerate drug discovery for NF.",institution:"Children's Tumor Foundation",researcher:null,advisor:null}],journalism:[{name:"Investigative Reporting",description:"4 million pages of internal government documents â and growing. The Investigative Journalism Foundation is building Canada's largest public-interest database, expanding into six new repositories and white-collar crime coverage no one else will touch.",institution:"Investigative Journalism Foundation",researcher:"Zane Schwartz",advisor:null},{name:"Democracy",description:"After exposing Cambridge Analytica, Carole Cadwalladr didn't stop. She built The Citizens â an organization running campaigns and investigations that hold Big Tech and political leaders accountable for disinformation, election manipulation, and regulatory capture.",institution:"The Citizens",researcher:"Carole Cadwalladr",advisor:null},{name:"Local Journalism",description:"When legacy Canadian media wouldn't publish the Jian Ghomeshi or WE Charity stories, Canadaland did. Canada's first independent podcast network does the investigations and accountability reporting that corporate-owned outlets won't fund â backed by listeners, not advertisers.",institution:"Canadaland",researcher:"Jesse Brown",advisor:null},{name:"In-Depth Reporting",description:"No newsroom will spend six months on a story with no guaranteed audience. That's why the most important investigations never get written. These grants go directly to journalists pursuing long-form public-interest work that every outlet turned down.",institution:"Various",researcher:null,advisor:null}],"nonprofit-capacity":[{name:"National Advocacy",description:"Canada has 170,000 charities. The oil industry has a dozen lobbyists for every one of them. Imagine Canada is building the nonprofit sector's first unified political voice â working to get charitable priorities into national party platforms.",institution:"Imagine Canada",researcher:null,advisor:null},{name:"Local Advocacy",description:"BC's nonprofits employ more people than mining, oil, and gas combined â yet they've never had a coordinated voice in provincial policy. Vantage Point is building the BC NonProfit Network to change that, creating the sector's first real coalition.",institution:"Vantage Point",researcher:null,advisor:null},{name:"Entrepreneurship",description:"A UVic student pitched a business idea at a campus competition and walked away with $24K to build it. Every year at the Tiny Summit, Gustavson alumni turn academic knowledge into real companies â it's where the next generation of founders gets their first funding.",institution:"UVic Gustavson School of Business",researcher:null,advisor:null}]}},11169,e=>{"use strict";var t=e.i(43476),i=e.i(31187),n=e.i(17706);let r={"medical-research":"Medical Research",journalism:"Journalism","nonprofit-capacity":"Nonprofit Capacity"};function s({grant:e,isLast:i}){return(0,t.jsxs)("div",{className:i?"pb-0":"pb-6 mb-6 border-b border-border",children:[(0,t.jsx)("p",{className:"font-serif text-lg font-medium",children:e.name}),(0,t.jsx)("p",{className:"text-caption text-text-secondary",children:e.institution}),e.researcher&&e.advisor?(0,t.jsxs)("p",{className:"text-caption",children:[(0,t.jsx)("span",{className:"text-accent",children:e.researcher}),(0,t.jsxs)("span",{className:"text-text-secondary",children:[" ","· ",(0,t.jsx)("span",{className:"italic",children:e.advisor})]})]}):e.researcher?(0,t.jsx)("p",{className:"text-caption text-accent",children:e.researcher}):e.advisor?(0,t.jsx)("p",{className:"text-caption text-text-secondary italic",children:e.advisor}):null,(0,t.jsx)("p",{className:"text-sm text-text-secondary mt-2 leading-relaxed",children:e.description})]})}e.s(["default",0,function(){return(0,t.jsx)("section",{id:"grants",className:"px-6 py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(n.default,{children:(0,t.jsx)("h2",{className:"font-serif text-h1 mb
11-16",children:"Grants"})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-16 items-start",children:[(0,t.jsx)(n.default,{children:(0,t.jsxs)("div",{className:"border-l-2 border-accent pl-6",children:[(0,t.jsxs)("h3",{className:"font-serif text-h2 mb-8",children:[r["medical-research"]," ",(0,t.jsxs)("span",{className:"text-text-secondary text-caption",children:["(",(i.default["medical-research"]??[]).length,")"]})]}),(i.default["medical-research"]??[]).map((e,i,n)=>(0,t.jsx)(s,{grant:e,isLast:i===n.length-1},e.name))]})}),(0,t.jsx)("div",{className:"space-y-16",children:["journalism","nonprofit-capacity"].map((e,a)=>{let o=i.default[e]??[];return(0,t.jsx)(n.default,{staggerDelay:.1*a,children:(0,t.jsxs)("div",{className:"border-l-2 border-accent pl-6",children:[(0,t.jsxs)("h3",{className:"font-serif text-h2 mb-8",children:[r[e]," ",(0,t.jsxs)("span",{className:"text-text-secondary text-caption",children:["(",o.length,")"]})]}),o.map((e,i)=>(0,t.jsx)(s,{grant:e,isLast:i===o.length-1},e.name))]})},e)})})]})]})})}])},73534,e=>{"use strict";var t=e.i(43476),i=e.i(57688),n=e.i(17706);let r=[{researcher:"Dr. Alia Crum",institution:"Stanford",topic:"How changing your beliefs changes your body"},{researcher:"Dr. Satchin Panda",institution:"Salk Institute",topic:"Time-restricted eating and metabolic health"},{researcher:"Dr. Carla Shatz",institution:"Stanford",topic:"Brain wiring during critical development windows"},{researcher:"Dr. Joanna Steinglass",institution:"Columbia",topic:"Neuroscience-based treatments for anorexia"},{researcher:"Dr. Nolan Williams",institution:"Stanford",topic:"Neurostimulation and psychedelics for depression"},{researcher:"Dr. Ashley Mason",institution:"UCSF",topic:"Treating depression with hyperthermia and cold exposure"}];e.s(["default",0,function(){return(0,t.jsx)("section",{id:"huberman",className:"bg-accent-light py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[(0,t.jsx)(n.default,{children:(0,t.jsxs)("div",{className:"grid grid-cols-1 items-start gap-12 md:grid-cols-2",children:[(0,t.jsx)("div",{className:"mx-auto w-full max-w-[300px] md:mx-0",children:(0,t.jsx)(i.default,{src:"/images/fellows/andrew-huberman.jpg",alt:"Dr. Andrew Huberman",width:300,height:400,className:"aspect-[3/4] w-full rounded-lg object-cover grayscale shadow-card"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-serif text-h1 mb-6",children:"Huberman Lab Partnership"}),(0,t.jsxs)("div",{className:"space-y-4 text-body text-text",children:[(0,t.jsx)("p",{children:"Tiny Foundation is the matching donor for the Huberman Lab, funding human studies hand-picked by Dr. Andrew Huberman. Every dollar raised is matched â and in 2024, two additional donors doubled the match again, turning every dollar into four."}),(0,t.jsx)("p",{children:"Over $1M has reached scientists studying everything from how your mindset reshapes your physiology to whether a single session of brain stimulation can lift treatment-resistant depression."})]}),(0,t.jsx)("a",{href:"https://www.hubermanlab.com",target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-block text-body-lg font-medium text-accent hover:underline",children:"Learn more about Huberman Lab â"})]})]})}),(0,t.jsx)(n.default,{staggerDelay:.15,children:(0,t.jsxs)("div",{className:"mt-16 border-t border-border pt-10",children:[(0,t.jsx)("h3",{className:"font-serif text-h2 mb-8",children:"Funded Research"}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:r.map((e,i)=>(0,t.jsx)(n.default,{staggerDelay:.07*i,children:(0,t.jsxs)("div",{className:"rounded-lg bg-surface p-5 shadow-card",children:[(0,t.jsx)("p",{className:"font-serif text-lg font-medium",children:e.researcher}),(0,t.jsx)("p",{className:"text-caption text-text-secondary",children:e.institution}),(0,t.jsx)("p",{className:"mt-2 text-sm italic text-text-secondary",children:e.topic})]})},e.researcher))})]})})]})})}])},25410,(e,t,i)=>{t.exports={intro:"Most of our giving targets the biggest problems we can find, wherever they are. But we live on Vancouver Island, and we've seen what a $10,000 grant can do for a local nonprofit that runs on volunteer hours and donated space â cover a year of food boxes, keep a crisis line staffed through winter, or put 30 kids in after-school programs. So we give locally too.",organizations:[{name:"1Up Victoria Single Parent Resource Centre",description:"Supporting 1,800+ single parent families on Vancouver Island since 1978.",amount:"$460K",location:"Victoria"},{name:"StreetoHome / Delancey Street BC",description:"Launching a structured two-year live-in program for people exiting prison.",amount:"$250K",location:"BC"},{name:"United Way Greater Victoria",description:"The largest annual funder of local social services in Greater Victoria.",amount:"$52K",location:"Victoria"},{name:"Saanich Neighbourhood Place",description:"Child care, youth outreach, and food security for Saanich families.",amount:"$43K",location:"Saanich"},{name:"Saanich Legacy Foundation",description:"Grassroots funding for local community organizations since 1999.",amount:"$25K",location:"Saanich"},{name:"Victoria Women's Transition House",description:"24-hour crisis lines and emergency shelter for women and children fleeing intimate partner violence since 1974.",amount:"$20K",location:"Victoria"},{name:"Victoria Conservatory of Music",description:"Music education and therapy for 4,500+ students annually since 1964.",amount:"$17.5K",location:"Victoria"},{name:"Victoria Native Friendship Centre",description:"Indigenous-led organization with 140+ staff, 75+ programs, and 8,000 members on Southern Vancouver Island.",amount:"$15K",location:"Victoria"},{name:"SABI Mind",description:"Psychedelic-assisted therapy centers bridging clinical research and patient access.",amount:"$10.3K",location:"Victoria"},{name:"Our Place Society",description:"Serving 1,400 meals daily and operating 500+ housing units for Greater Victoria's most vulnerable.",amount:"$10.2K",location:"Victoria"},{name:"Bridges for Women Society",description:"Trauma-informed counseling and pre-employment programs for women, non-binary, and two-spirit people since 1988.",amount:"$10.2K",location:"Victoria"},{name:"Eldercare Foundation",description:"Enhancing care for Vancouver Island seniors since 1982, with over $11.3M donated.",amount:"$10K",location:"Victoria"},{name:"Greater Victoria Citizens' Counselling Centre",description:"130 volunteer counselors providing 9,000 hours of free counseling annually.",amount:"$10K",location:"Victoria"}
11,{name:"Good Food Box (Fernwood Neighbourhood House)",description:"Fresh seasonal produce boxes sourced from local farmers for families in need.",amount:"$10K",location:"Victoria"},{name:"VISII (Vancouver Island School of Innovation)",description:"Alternative education for grades 5-8 since 2020.",amount:"$10K",location:"Vancouver Island"},{name:"Watari",description:"Food programs and youth services in Vancouver's Downtown Eastside since 1986.",amount:"$10K",location:"Vancouver"},{name:"DTES Neighbourhood House",description:"Community kitchens and nutrition programs in Vancouver's Downtown Eastside.",amount:"$10K",location:"Vancouver"},{name:"Yarrow Intergenerational Society",description:"Supporting youth and immigrant seniors in Chinatown and the Downtown Eastside.",amount:"$10K",location:"Vancouver"},{name:"Indian Residential School Survivors Society",description:"Essential services for residential school survivors since 1994.",amount:"$5.2K",location:"BC"},{name:"Victoria Hospitals Foundation",description:"Medical equipment and research for Vancouver Island hospitals, with $209M raised since 1989.",amount:"$5K",location:"Victoria"},{name:"One Tree Planted",description:"Tree planting and ecosystem restoration across 80+ countries.",amount:"$1K",location:"Global"},{name:"Beacon Community Services",description:"Seniors services, youth programs, employment training, and housing support across Southern Vancouver Island since 1974.",amount:null,location:"Sidney"},{name:"Victoria Foundation",description:"Community foundation managing endowment funds for Greater Victoria.",amount:null,location:"Victoria"},{name:"Mustard Seed",description:"Meals, shelter, and housing for people experiencing homelessness.",amount:null,location:"Victoria"},{name:"KidSafe Project Society",description:"Free after-school programs with meals for at-risk kids ages 5-13.",amount:null,location:"Vancouver"},{name:"Greater Victoria Acting Together",description:"Community organizing alliance addressing housing, mental health, and poverty.",amount:null,location:"Victoria"}]}},97570,e=>{"use strict";var t=e.i(43476),i=e.i(25410),n=e.i(17706);e.s(["default",0,function(){return(0,t.jsxs)("section",{id:"community",className:"max-w-4xl mx-auto px-6 py-24 md:py-32",children:[(0,t.jsxs)(n.default,{children:[(0,t.jsx)("h2",{className:"font-serif text-h1 mb-6",children:"Giving Back Locally"}),(0,t.jsx)("p",{className:"font-sans text-body-lg text-text-secondary max-w-2xl mb-16",children:i.default.intro})]}),(0,t.jsx)("div",{className:"columns-1 md:columns-2 gap-x-8",children:i.default.organizations.map((e,i)=>(0,t.jsx)(n.default,{staggerDelay:.03*i,children:(0,t.jsx)("div",{className:"break-inside-avoid flex items-baseline justify-between gap-4 border-b border-border pb-4 mb-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"font-serif font-medium text-body text-text",children:e.name}),(0,t.jsx)("span",{className:"text-caption text-text-tertiary ml-3",children:e.location})]})})},e.name))})]})}])},80543,(e,t,i)=>{t.exports={rawlsQuote:"Those who have been favored by nature, whoever they are, may gain from their good fortune only on terms that improve the situation of those who have lost out.",rawlsAttribution:"John Rawls",pledgeUrl:"https://givingpledge.org/pledger?pledgerId=455"}},28113,e=>{"use strict";var t=e.i(43476),i=e.i(57688),n=e.i(80543),r=e.i(17706);e.s(["default",0,function(){return(0,t.jsxs)("section",{id:"commitment",className:"mx-auto max-w-5xl px-6 py-24 md:py-32",children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("div",{className:"grid grid-cols-1 items-start gap-12 md:grid-cols-2",children:[(0,t.jsx)("div",{className:"mx-auto w-full max-w-[360px] md:mx-0",children:(0,t.jsx)(i.default,{src:"/images/andrew-zoe.jpg",alt:"Andrew Wilkinson and Zoe Peterson",width:360,height:360,className:"aspect-square w-full rounded-lg object-cover shadow-card grayscale brightness-125 contrast-90"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-serif text-h1 mb-6",children:"Why We Do This"}),(0,t.jsxs)("div",{className:"space-y-4 text-body text-text-secondary leading-relaxed",children:[(0,t.jsxs)("p",{children:["Weâre Andrew Wilkinson and Zoe Peterson. Andrew built a company called"," ",(0,t.jsx)("a",{href:"https://tiny.com",target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline",children:"Tiny"}
11),", and somewhere along the way we got luckier than either of us ever expected."]}),(0,t.jsx)("p",{children:"In 2023, we signed The Giving Pledge â a commitment to give away the majority of our wealth during our lifetimes. It wasnât a hard decision. We didnât want to be the kind of family whose great-grandchildren buy Formula 1 teams with money they didnât earn."}),(0,t.jsxs)("p",{children:["The harder question was always ",(0,t.jsx)("em",{children:"how"})," to give well â finding people doing work that matters and getting out of their way. Tiny Foundation is our answer."]})]}),(0,t.jsx)("a",{href:n.default.pledgeUrl,target:"_blank",rel:"noopener noreferrer",className:"mt-6 inline-block text-body text-accent hover:underline",children:"Read our pledge letter â"})]})]})}),(0,t.jsx)(r.default,{staggerDelay:.2,children:(0,t.jsxs)("blockquote",{className:"mt-24 md:mt-32 border-l-4 border-accent pl-8 py-8",children:[(0,t.jsxs)("p",{className:"font-serif text-h2 leading-snug text-text",children:["â",n.default.rawlsQuote,"â"]}),(0,t.jsxs)("footer",{className:"mt-4 text-caption italic text-text-secondary",children:["â ",n.default.rawlsAttribution]})]})})]})}])}]);
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.