PageSourceSearch

https://www.shotsnap.ai/_next/static/chunks/ebe0cd46888a8365.js?dpl=dpl_9dJyhpP7WLXa1WprDXDBRJZK9SM3

js shotsnap.ai collected 2026-10-05 12:40:09 UTC 134,725 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46932,31178,37806,21476,47414,74008,64978,72846,t=>{"use strict";let e,i,n;var r,s=t.i(71645);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=t=>180*t/Math.PI,u=t=>d(l(Math.atan2(t[1],t[0]))),h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:u,rotateZ:u,skewX:t=>l(Math.atan(t[1])),skewY:t=>l(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},d=t=>((t%=360)<0&&(t+=360),t),c=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),m={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:c,scaleY:p,scale:t=>(c(t)+p(t))/2,rotateX:t=>d(l(Math.atan2(t[6],t[5]))),rotateY:t=>d(l(Math.atan2(-t[2],t[0]))),rotateZ:u,rotate:u,skewX:t=>l(Math.atan(t[4])),skewY:t=>l(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function f(t){return+!!t.includes("scale")}function g(t,e){let i,n;if(!t||"none"===t)return f(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=m,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=h,n=e}if(!n)return f(e);let s=i[e],o=n[1].split(",").map(y);return"function"==typeof s?s(o):o[s]}function y(t){return parseFloat(t.trim())}let v=t=>e=>"string"==typeof e&&e.startsWith(t),x=v("--"),b=v("var(--"),w=t=>!!b(t)&&T.test(t.split("/*")[0].trim()),T=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function P({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let S=(t,e,i)=>t+(e-t)*i;function k(t){return void 0===t||1===t}function A({scale:t,scaleX:e,scaleY:i}){return!k(t)||!k(e)||!k(i)}function E(t){return A(t)||M(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function M(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function C(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function j(t,e=0,i=1,n,r){t.min=C(t.min,e,i,n,r),t.max=C(t.max,e,i,n,r)}function V(t,{x:e,y:i}){j(t.x,e.translate,e.scale,e.originPoint),j(t.y,i.translate,i.scale,i.originPoint)}function R(t,e){t.min=t.min+e,t.max=t.max+e}function D(t,e,i,n,r=.5){let s=S(t.min,t.max,r);j(t,e,i,s,n)}function L(t,e){D(t.x,e.x,e.scaleX,e.scale,e.originX),D(t.y,e.y,e.scaleY,e.scale,e.originY)}function F(t,e){return P(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let O=new Set(["width","height","top","left","right","bottom",...o]),N=(t,e,i)=>i>e?e:i<t?t:i,I={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},B={...I,transform:t=>N(0,1,t)},U={...I,default:1},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),W=$("deg"),_=$("%"),z=$("px"),X=$("vh"),Y=$("vw"),H={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(100*t)},K=t=>e=>e.test(t),q=[I,z,_,W,Y,X,{test:t=>"auto"===t,parse:t=>t}],G=t=>q.find(K(t));t.i(47167);let Z=()=>{},J=()=>{},Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tt=t=>t===I||t===z,te=new Set(["x","y","z"]),ti=o.filter(t=>!te.has(t)),tn={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>g(e,"x"),y:(t,{transform:e})=>g(e,"y")};tn.translateX=tn.x,tn.translateY=tn.y;let tr=t=>t,ts={},to=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ta(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=to.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),e,l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=ts.useManualTiming?r.timestamp:performance.now();i=!1,ts.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:to.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<to.length;e++)o[to[e]].cancel(t)},state:r,steps:o}}let{schedule:tl,cancel:tu,state:th,steps:td}=ta("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tr,!0),tc=new Set,tp=!1,tm=!1,tf=!1;function tg(){if(tm){let t=Array.from(tc).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],ti.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tm=!1,tp=!1,tc.forEach(t=>t.complete(tf)),tc.clear()}
1function ty(){tc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tm=!0)})}class tv{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tc.add(this),tp||(tp=!0,tl.read(ty),tl.resolveKeyframes(tg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tc.delete(this)}cancel(){"scheduled"===this.state&&(tc.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tx=t=>Math.round(1e5*t)/1e5,tb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tT=(t,e)=>i=>!!("string"==typeof i&&tw.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tP=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tb);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tS={...I,transform:t=>Math.round(N(0,255,t))},tk={test:tT("rgb","red"),parse:tP("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tS.transform(t)+", "+tS.transform(e)+", "+tS.transform(i)+", "+tx(B.transform(n))+")"},tA={test:tT("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tk.transform},tE={test:tT("hsl","hue"),parse:tP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+_.transform(tx(e))+", "+_.transform(tx(i))+", "+tx(B.transform(n))+")"},tM={test:t=>tk.test(t)||tA.test(t)||tE.test(t),parse:t=>tk.test(t)?tk.parse(t):tE.test(t)?tE.parse(t):tA.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tk.transform(t):tE.transform(t),getAnimatableNone:t=>{let e=tM.parse(t);return e.alpha=0,tM.transform(e)}},tC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tj="number",tV="color",tR=/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 tD(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tR,t=>(tM.test(t)?(n.color.push(s),r.push(tV),i.push(tM.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tj),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tL(t){return tD(t).values}function tF(t){let{split:e,types:i}=tD(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tj?r+=tx(t[s]):e===tV?r+=tM.transform(t[s]):r+=t[s]}return r}}let tO=t=>"number"==typeof t?0:tM.test(t)?tM.getAnimatableNone(t):t,tN={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tb)?.length||0)+(t.match(tC)?.length||0)>0},parse:tL,createTransformer:tF,getAnimatableNone:function(t){let e=tL(t);return tF(t)(e.map(tO))}},tI=new Set(["brightness","contrast","saturate","opacity"]);function tB(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tb)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tI.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tU=/\b([a-z-]*)\(.*?\)/gu,t$={...tN,getAnimatableNone:t=>{let e=t.match(tU);return e?e.map(tB).join(" "):t}},tW={...I,transform:Math.round},t_={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,backgroundPositionX:z,backgroundPositionY:z,rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:U,scaleX:U,scaleY:U,scaleZ:U,skew:W,skewX:W,skewY:W,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:B,originX:H,originY:H,originZ:z,zIndex:tW,fillOpacity:B,strokeOpacity:B,numOctaves:tW},tz={...t_,color:tM,backgroundColor:tM,outlineColor:tM,fill:tM,stroke:tM,borderColor:tM,borderTopColor:tM,borderRightColor:tM,borderBottomColor:tM,borderLeftColor:tM,filter:t$,WebkitFilter:t$},tX=t=>tz[t];function tY(t,e){let i=tX(t);return i!==t$&&(i=tN),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tH=new Set(["auto","none","0"]);class tK extends tv{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&w(n=n.trim())){let r=function t(e,i,n=1){J(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=Q.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return w(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!O.has(i)||2!==t.length)return;let[n,r]=t,s=G(n),o=G(r);if(s!==o)if(tt(s)&&tt(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tn[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tH.has(e)&&tD(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tY(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tn[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=tn[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tq=t=>!!(t&&t.getVelocity);function tG(){e=void 0}let tZ={now:()=>(void 0===e&&tZ.set(th.isProcessing||ts.useManualTiming?th.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tG)}};function tJ(t,e){-1===t.indexOf(e)&&t.push(e)}function tQ(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t0{constructor(){this.subscriptions=[]}add(t){return tJ(this.subscriptions,t),()=>tQ(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class t1{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tZ.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=tZ.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t0);let i=this.events[t].add(e);return"change"===t?()=>{i(),tl.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tZ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t5(t,e){return new t1(t,e)}let t2=[...q,tM,tN],{schedule:t4}=ta(queueMicrotask,!1),t3={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"]},t6={};for(let t in t3)t6[t]={isEnabled:e=>t3[t].some(t=>!!e[t])};let t9=()=>({translate:0,scale:1,origin:0,originPoint:0}),t8=()=>({x:t9(),y:t9()}),t7=()=>({min:0,max:0}),et=()=>({x:t7(),y:t7()}),ee="undefined"!=typeof window,ei={current:null},en={current:!1},er=new WeakMap;function es(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eo(t){return"string"==typeof t||Array.isArray(t)}let ea=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],el=["initial",...ea];function eu(t){return es(t.animate)||el.some(e=>eo(t[e]))}function eh(t){return!!(eu(t)||t.variants)}function ed(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ec(t,e,i,n){if("function"==typeof e){let[r,s]=ed(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=ed(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let ep=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class em{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=tZ.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tl.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=eu(e),this.isVariantNode=eh(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&tq(e)&&e.set(a[t])}}mount(t){this.current=t,er.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),en.current||function(){if(en.current=!0,ee)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ei.current=t.matches;t.addEventListener("change",e),e()}else ei.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ei.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tu(this.notifyUpdate),tu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tl.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in t6){let e=t6[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ep.length;e++){let i=ep[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(tq(r))t.addValue(n,r);else if(tq(s))t.addValue(n,t5(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,t5(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t5(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,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,!t2.find(K(n))&&tN.test(e)&&(i=tY(t,e))}this.setBaseTarget(t,tq(i)?i.get():i)}return tq(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ec(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||tq(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t0),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t4.render(this.render)}}class ef extends em{constructor(){super(...arguments),this.KeyframeResolver=tK}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tq(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eg=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ey={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ev=o.length;function ex(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(x(t)){r[t]=i;continue}{let e=eg(i,t_[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<ev;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||i){let t=eg(l,t_[a]);if(!u){r=!1;let e=ey[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}function eb(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let ew={};function eT(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ew[t]||"opacity"===t)}function eP(t,e,i){let{style:n}=t,r={};for(let s in n)(tq(n[s])||e.style&&tq(e.style[s])||eT(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}class eS extends ef{constructor(){super(...arguments),this.type="html",this.renderInstance=eb}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?f(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return g(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(x(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return F(t,e)}build(t,e,i){ex(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eP(t,e,i)}}let ek=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eE={offset:"strokeDashoffset",array:"strokeDasharray"};function eM(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(ex(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eA:eE;t[s.offset]=z.transform(-n);let o=z.transform(e),a=z.transform(i);t[s.array]=`${o} ${a}`}(d,r,s,o,!1)}let eC=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"]),ej=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eV(t,e,i){let n=eP(t,e,i);for(let i in t)(tq(t[i])||tq(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eR extends ef{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=tX(e);return t&&t.default||0}return e=eC.has(e)?e:ek(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eV(t,e,i)}build(t,e,i){eM(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eb(t,e,void 0,n),e.attrs)t.setAttribute(eC.has(i)?i:ek(i),e.attrs[i])}mount(t){this.isSVGTag=ej(t.tagName),super.mount(t)}}let eD=["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 eL(t){if("string"!=typeof t||t.includes("-"));else if(eD.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eF=t.i(43476);let eO=(0,s.createContext)({});t.s(["LayoutGroupContext",()=>eO],31178);let eN=(0,s.createContext)({strict:!1}),eI=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>eI],37806);let eB=(0,s.createContext)({});function eU(t){return Array.isArray(t)?t.join(" "):t}let e$=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eW(t,e,i){for(let n in e)tq(e[n])||eT(n,i)||(t[n]=e[n])}let e_=()=>({...e$(),attrs:{}}),ez=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eX(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ez.has(t)}let eY=t=>!eX(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(eY=t=>t.startsWith("on")?!eX(t):r(t))}catch{}let eH=(0,s.createContext)(null);function eK(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}function eq(t){return tq(t)?t.get():t}t.s(["PresenceContext",()=>eH],21476),t.s(["useConstant",()=>eK],47414);let eG=t=>(e,i)=>{let n=(0,s.useContext)(eB),r=(0,s.useContext)(eH),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e}
1,i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=eq(s[t]);let{initial:o,animate:a}=t,l=eu(t),u=eh(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!es(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=ec(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?o():eK(o)},eZ=eG({scrapeMotionValuesFromProps:eP,createRenderState:e$}),eJ=eG({scrapeMotionValuesFromProps:eV,createRenderState:e_}),eQ=Symbol.for("motionComponentSymbol");function e0(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e1="data-"+ek("framerAppearId"),e5=(0,s.createContext)({}),e2=ee?s.useLayoutEffect:s.useEffect;function e4(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)t6[e]={...t6[e],...t[e]}}(i);let r=eL(t)?eJ:eZ;function o(i,o){var a;let l,u={...(0,s.useContext)(eI),...i,layoutId:function({layoutId:t}){let e=(0,s.useContext)(eO).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if(eu(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eo(e)?e:void 0,animate:eo(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(eB));return(0,s.useMemo)(()=>({initial:e,animate:i}),[eU(e),eU(i)])}(i),c=r(i,h);if(!h&&ee){(0,s.useContext)(eN).strict;let e=function(t){let{drag:e,layout:i}=t6;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=e.MeasureLayout,d.visualElement=function(t,e,i,n,r){let{visualElement:o}=(0,s.useContext)(eB),a=(0,s.useContext)(eN),l=(0,s.useContext)(eH),u=(0,s.useContext)(eI).reducedMotion,h=(0,s.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=h.current,c=(0,s.useContext)(e5);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&e0(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,r,c);let p=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{d&&p.current&&d.update(i,l)});let m=i[e1],f=(0,s.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return e2(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),f.current&&d.animationState&&d.animationState.animateChanges())}),(0,s.useEffect)(()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),d.enteringChildren=void 0)}),d}(t,c,u,n,e.ProjectionNode)}return(0,eF.jsxs)(eB.Provider,{value:d,children:[l&&d.visualElement?(0,eF.jsx)(l,{visualElement:d.visualElement,...u}):null,function(t,e,i,{latestValues:n},r,o=!1){let a=(eL(t)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=e_();return eM(i,e,ej(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eW(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},o=(i=t.style||{},eW(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=e$();return ex(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}
1)(e,n,r,t),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(eY(r)||!0===i&&eX(r)||!e&&!eX(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),u=t!==s.Fragment?{...l,...a,ref:i}:{},{children:h}=e,d=(0,s.useMemo)(()=>tq(h)?h.get():h,[h]);return(0,s.createElement)(t,{...u,children:d})}(t,i,(a=d.visualElement,(0,s.useCallback)(t=>{t&&c.onMount&&c.onMount(t),a&&(t?a.mount(t):a.unmount()),o&&("function"==typeof o?o(t):e0(o)&&(o.current=t))},[a])),c,h,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let a=(0,s.forwardRef)(o);return a[eQ]=t,a}function e3(t,e,i){let n=t.getProps();return ec(n,e,void 0!==i?i:n.custom,t)}function e6(t,e){return t?.[e]??t?.default??t}t.s(["useIsomorphicLayoutEffect",()=>e2],74008);let e9=t=>Array.isArray(t);function e8(t,e){let i=t.getValue("willChange");if(tq(i)&&i.add)return i.add(e);if(!i&&ts.WillChange){let i=new ts.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function e7(t){t.duration=0,t.type="keyframes"}let it=(t,e)=>i=>e(t(i)),ie=(...t)=>t.reduce(it),ii=t=>1e3*t,ir={layout:0,mainThread:0,waapi:0};function is(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function io(t,e){return i=>i>0?e:t}let ia=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},il=[tA,tk,tE];function iu(t){let e=il.find(e=>e.test(t));if(Z(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tE&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=is(a,n,t+1/3),s=is(a,n,t),o=is(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let ih=(t,e)=>{let i=iu(t),n=iu(e);if(!i||!n)return io(t,e);let r={...i};return t=>(r.red=ia(i.red,n.red,t),r.green=ia(i.green,n.green,t),r.blue=ia(i.blue,n.blue,t),r.alpha=S(i.alpha,n.alpha,t),tk.transform(r))},id=new Set(["none","hidden"]);function ic(t,e){return i=>S(t,e,i)}function ip(t){return"number"==typeof t?ic:"string"==typeof t?w(t)?io:tM.test(t)?ih:iy:Array.isArray(t)?im:"object"==typeof t?tM.test(t)?ih:ig:io}function im(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ip(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function ig(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ip(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iy=(t,e)=>{let i=tN.createTransformer(e),n=tD(t),r=tD(e);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 Z(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),io(t,e);if(id.has(t)&&!r.values.length||id.has(e)&&!n.values.length)return id.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ie(im(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function iv(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?S(t,e,i):ip(t)(t,e)}let ix=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tl.update(e,t),stop:()=>tu(e),now:()=>th.isProcessing?th.timestamp:tZ.now()}},ib=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iw(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function iT(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let iP=.01,iS=2,ik=.005,iA=.5;function iE(t,e){return t*Math.sqrt(1-e*e)}let iM=["duration","bounce"],iC=["stiffness","damping","mass"];function ij(t,e){return e.some(e=>void 0!==t[e])}function iV(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ij(t,iC)&&ij(t,iM))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*N(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;Z(t<=ii(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=N(.05,1,o),t=N(.01,10,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iE(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iE(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=ii(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,v=Math.sqrt(u/d)/1e3,x=5>Math.abs(y);if(r||(r=x?iP:iS),s||(s=x?ik:iA),g<1){let t=iE(v,g);i=e=>a-Math.exp(-g*v*e)*((f+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(f+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let b={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;g<1&&(n=0===t?ii(f):iT(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(iw(b),2e4),e=ib(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iR({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=iV({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iT(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}iV.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iw(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,iV);return t.ease=e.ease,t.duration=ii(e.duration),t.type="keyframes",t};let iD=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iL(t,e,i,n){return t===e&&i===n?tr:r=>0===r||1===r?r:iD(function(t,e,i,n,r){let s,o,a=0;do(s=iD(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let iF=iL(.42,0,1,1),iO=iL(0,0,.58,1),iN=iL(.42,0,.58,1),iI=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iB=t=>e=>1-t(1-e),iU=iL(.33,1.53,.69,.99),i$=iB(iU),iW=iI(i$),i_=t=>(t*=2)<1?.5*i$(t):.5*(2-Math.pow(2,-10*(t-1))),iz=t=>1-Math.sin(Math.acos(t)),iX=iB(iz),iY=iI(iz),iH=t=>Array.isArray(t)&&"number"==typeof t[0],iK={linear:tr,easeIn:iF,easeInOut:iN,easeOut:iO,circIn:iz,circInOut:iY,circOut:iX,backIn:i$,backInOut:iW,backOut:iU,anticipate:i_},iq=t=>{if(iH(t)){J(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iL(e,i,n,r)}return"string"==typeof t?(J(void 0!==iK[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iK[t]):t},iG=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function iZ({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(iq):iq(n),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(J(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||ts.mix||iv,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ie(Array.isArray(e)?e[i]||tr:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=iG(t[n],t[n+1],i);return a[n](r)};return i?e=>u(N(t[0],t[s-1],e)):u}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=iG(0,e,n);t.push(S(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||iN).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let iJ=t=>null!==t;function iQ(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(iJ),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let i0={decay:iR,inertia:iR,tween:iZ,keyframes:iZ,spring:iV};function i1(t){"string"==typeof t.type&&(t.type=i0[t.type])}class i5{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let i2=t=>t/100;class i4 extends i5{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==tZ.now()&&this.tick(tZ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ir.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i1(t);let{type:e=iZ,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||iZ;a!==iZ&&"number"!=typeof o[0]&&(this.mixKeyframes=ie(i2,iv(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iw(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=s)),v=N(0,1,i)*o}let b=y?{done:!1,value:u[0]}:x.next(v);r&&(b.value=r(b.value));let{done:w}=b;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&p!==iR&&(b.value=iQ(u,this.options,f,this.speed)),m&&m(b.value),T&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=ii(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tZ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=ix,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tZ.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,ir.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function i3(t){let e;return()=>(void 0===e&&(e=t()),e)}let i6=i3(()=>void 0!==window.ScrollTimeline),i9={},i8=(i=i3(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>i9.linearEasing??i()),i7=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,nt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i7([0,.65,.55,1]),circOut:i7([.55,0,1,.45]),backIn:i7([.31,.01,.66,-.59]),backOut:i7([.33,1.53,.69,.99])};function ne(t){return"function"==typeof t&&"applyToOptions"in t}class ni extends i5{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,J("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ne(t)&&i8()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?i8()?ib(e,i):"ease-out":iH(e)?i7(e):Array.isArray(e)?e.map(e=>t(e,i)||nt.easeOut):nt[e]}(a,r);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=iQ(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=ii(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i6())?(this.animation.timeline=t,tr):e(this)}}let nn={anticipate:i_,backInOut:iW,circInOut:iY};class nr extends ni{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nn&&(t.ease=nn[t.ease])}(t),i1(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i4({...s,autoplay:!1}),a=ii(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ns=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.test(t)||"0"===t)&&!t.startsWith("url(")),no=new Set(["opacity","clipPath","filter","transform"]),na=i3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nl extends i5{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tZ.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tv;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=tZ.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ns(r,e),a=ns(s,e);return Z(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||ne(i))&&n)}(t,r,s,o)&&((ts.instantAnimations||!a)&&u?.(iQ(t,i,e)),t[0]=t[t.length-1],e7(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return na()&&i&&no.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new nr({...h,element:h.motionValue.owner.current}):new i4(h);d.finished.then(()=>this.notifyFinished()).catch(tr),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tf=!0,ty(),tg(),tf=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nu=t=>null!==t,nh={type:"spring",stiffness:500,damping:25,restSpeed:10},nd={type:"keyframes",duration:.8},nc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},np=(t,e,i,n={},r,s)=>o=>{let l=e6(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=ii(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nd:a.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nh:nc)(t,d)),d.duration&&(d.duration=ii(d.duration)),d.repeatDelay&&(d.repeatDelay=ii(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(e7(d),0===d.delay&&(c=!0)),(ts.instantAnimations||ts.skipAnimations)&&(c=!0,e7(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nu),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(d.keyframes,l);if(void 0!==t)return void tl.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new i4(d):new nl(d)};function nm(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(s=n);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let o={delay:i,...e6(s||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let i=t.props[e1];if(i){let t=window.MotionHandoffAnimation(i,e,tl);null!==t&&(o.startTime=t,d=!0)}}e8(t,e),n.start(np(e,n,r,t.shouldReduceMotion&&O.has(e)?{type:!1}:o,t,d));let c=n.animation;c&&l.push(c)}return o&&Promise.all(l).then(()=>{tl.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=e3(t,e)||{};for(let e in r={...r,...i}){var s;let i=e9(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t5(i))}}(t,o)})}),l}function nf(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function ng(t,e,i={}){let n=e3(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nm(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(ng(l,e,{...o,delay:i+("function"==typeof n?0:n)+nf(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function ny(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nv=el.length,nx=[...ea].reverse(),nb=ea.length;function nw(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nT(){return{animate:nw(!0),whileInView:nw(),whileHover:nw(),whileTap:nw(),whileDrag:nw(),whileFocus:nw(),exit:nw()}}class nP{constructor(t){this.isMounted=!1,this.node=t}update(){}}let nS=0,nk={x:!1,y:!1};function nA(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nE=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nM(t){return{point:{x:t.pageX,y:t.pageY}}}function nC(t,e,i,n){return nA(t,e,t=>nE(t)&&i(t,nM(t)),n)}function nj(t){return t.max-t.min}function nV(t,e,i,n=.5){t.origin=n,t.originPoint=S(e.min,e.max,t.origin),t.scale=nj(i)/nj(e),t.translate=S(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nR(t,e,i,n){nV(t.x,e.x,i.x,n?n.originX:void 0),nV(t.y,e.y,i.y,n?n.originY:void 0)}function nD(t,e,i){t.min=i.min+e.min,t.max=t.min+nj(e)}function nL(t,e,i){t.min=e.min-i.min,t.max=t.min+nj(e)}function nF(t,e,i){nL(t.x,e.x,i.x),nL(t.y,e.y,i.y)}function nO(t){return[t("x"),t("y")]}let nN=({current:t})=>t?t.ownerDocument.defaultView:null,nI=(t,e)=>Math.abs(t-e);class nB{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=nW(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(nI(t.x,e.x)**2+nI(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=th;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nU(e,this.transformPagePoint),tl.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=nW("pointercancel"===t.type?this.lastMoveEventInfo:nU(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!nE(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=nU(nM(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=th;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,nW(o,this.history)),this.removeListeners=ie(nC(this.contextWindow,"pointermove",this.handlePointerMove),nC(this.contextWindow,"pointerup",this.handlePointerUp),nC(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tu(this.updatePoint)}}function nU(t,e){return e?{point:e(t.point)}:t}function n$(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nW({point:t},e){return{point:t,delta:n$(t,n_(e)),offset:n$(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=n_(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>ii(.1)));)i--;if(!n)return{x:0,y:0};let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function n_(t){return t[t.length-1]}function nz(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nX(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function nY(t,e,i){return{min:nH(t,e),max:nH(t,i)}}function nH(t,e){return"number"==typeof t?t:t[e]||0}let nK=new WeakMap;class nq{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nM(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nk[t])return null;else return nk[t]=!0,()=>{nk[t]=!1};return nk.x||nk.y?null:(nk.x=nk.y=!0,()=>{nk.x=nk.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(_.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nj(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tl.postRender(()=>r(t,e)),e8(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>nO(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nB(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nN(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tl.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!nG(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?S(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?S(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&e0(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:nz(t.x,i,r),y:nz(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nY(t,"left","right"),y:nY(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nO(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e0(e))return!1;let n=e.current;J(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;
1let s=function(t,e,i){let n=F(t,i),{scroll:r}=e;return r&&(R(n.x,r.offset.x),R(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:nX(t.x,s.x),y:nX(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=P(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nO(o=>{if(!nG(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return e8(this.visualElement,t),i.start(np(t,i,0,e,this.visualElement,!1))}stopAnimation(){nO(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nO(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nO(e=>{let{drag:i}=this.getProps();if(!nG(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-S(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e0(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,o,a,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,o=nj(i),(a=nj(r))>o?s=iG(r.min,r.max-o,i.min):o>a&&(s=iG(i.min,i.max-a,r.min)),N(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.resolveConstraints(),nO(e=>{if(!nG(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(S(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;nK.set(this.visualElement,this);let t=nC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e0(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),tl.read(e);let r=nA(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function nG(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nZ=t=>(e,i)=>{t&&tl.postRender(()=>t(e,i))};var nJ=s;function nQ(t=!0){let e=(0,s.useContext)(eH);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,o=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return r(o)},[t]);let a=(0,s.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}t.s(["usePresence",()=>nQ],64978);let n0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n5={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!z.test(t))return t;else t=parseFloat(t);let i=n1(t,e.target.x),n=n1(t,e.target.y);return`${i}% ${n}%`}},n2=!1;class n4 extends nJ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in n6)ew[t]=n6[t],x(t)&&(ew[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),n2&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),n0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,n2=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tl.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n2=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function n3(t){let[e,i]=nQ(),n=(0,nJ.useContext)(eO);return(0,eF.jsx)(n4,{...t,layoutGroup:n,switchLayoutGroup:(0,nJ.useContext)(e5),isPresent:e,safeToRemove:i})}let n6={borderRadius:{...n5,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n5,borderTopRightRadius:n5,borderBottomLeftRadius:n5,borderBottomRightRadius:n5,boxSh
1adow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tN.parse(t);if(n.length>5)return t;let r=tN.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=S(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function n9(t){return"object"==typeof t&&null!==t}function n8(t){return n9(t)&&"ownerSVGElement"in t}let n7=(t,e)=>t.depth-e.depth;class rt{constructor(){this.children=[],this.isDirty=!1}add(t){tJ(this.children,t),this.isDirty=!0}remove(t){tQ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n7),this.isDirty=!1,this.children.forEach(t)}}let re=["TopLeft","TopRight","BottomLeft","BottomRight"],ri=re.length,rn=t=>"string"==typeof t?parseFloat(t):t,rr=t=>"number"==typeof t||z.test(t);function rs(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let ro=rl(0,.5,iX),ra=rl(.5,.95,tr);function rl(t,e,i){return n=>n<t?0:n>e?1:i(iG(t,e,n))}function ru(t,e){t.min=e.min,t.max=e.max}function rh(t,e){ru(t.x,e.x),ru(t.y,e.y)}function rd(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rc(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rp(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(_.test(e)&&(e=parseFloat(e),e=S(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=S(s.min,s.max,n);t===s&&(a-=e),t.min=rc(t.min,e,i,a,r),t.max=rc(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rm=["x","scaleX","originX"],rf=["y","scaleY","originY"];function rg(t,e,i,n){rp(t.x,e,rm,i?i.x:void 0,n?n.x:void 0),rp(t.y,e,rf,i?i.y:void 0,n?n.y:void 0)}function ry(t){return 0===t.translate&&1===t.scale}function rv(t){return ry(t.x)&&ry(t.y)}function rx(t,e){return t.min===e.min&&t.max===e.max}function rb(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rw(t,e){return rb(t.x,e.x)&&rb(t.y,e.y)}function rT(t){return nj(t.x)/nj(t.y)}function rP(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rS{constructor(){this.members=[]}add(t){tJ(this.members,t),t.scheduleRender()}remove(t){if(tQ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rk=["","X","Y","Z"],rA=0;function rE(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rM({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rA++,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=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(rV),this.nodes.forEach(rI),this.nodes.forEach(rB),this.nodes.forEach(rR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t0),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=n8(e)&&!(n8(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tl.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=tZ.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tu(s),r(i-250))},tl.setup(s,!0),i=()=>tu(s),n0.hasAnimatedSinceResize&&(n0.hasAnimatedSinceResize=!1,this.nodes.forEach(rN))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||rX,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rw(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...e6(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||rN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rU),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[e1];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tl,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(rL);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rF);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rO),this.nodes.forEach(rC),this.nodes.forEach(rj)):this.nodes.forEach(rF),this.clearAllSnapshots();let t=tZ.now();th.delta=N(0,1e3/60,t-th.timestamp),th.timestamp=t,th.isProcessing=!0,td.update.process(th),td.preRender.process(th),td.render.process(th),th.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rD),this.sharedNodes.forEach(r$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tl.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nj(this.snapshot.measuredBox.x)||nj(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rv(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||E(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rK((e=n).x),rK(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return et();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rG))){let{scroll:t}=this.root;t&&(R(e.x,t.offset.x),R(e.y,t.offset.y))}return e}removeElementScroll(t){let e=et();if(rh(e,t),this.scroll?.wasRoot)return e;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&&rh(e,t),R(e.x,r.offset.x),R(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=et();rh(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&L(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),E(n.latestValues)&&L(i,n.latestValues)}return E(this.latestValues)&&L(i,this.latestValues),i}removeTransform(t){let e=et();rh(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!E(i.latestValues))continue;A(i.latestValues)&&i.updateSnapshot();let n=et();rh(n,i.measurePageBox()),rg(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return E(this.latestValues)&&rg(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==th.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=th.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,nD(o.x,a.x,l.x),nD(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rh(this.target,this.layout.layoutBox),V(this.target,this.targetDelta)):rh(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,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||A(this.parent.latestValues)||M(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),nF(this.relativeTargetOrigin,e,i),rh(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===th.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;rh(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&L(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,V(t,s)),n&&E(r.latestValues)&&L(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=et());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rd(this.prevProjectionDelta.x,this.projectionDelta.x),rd(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nR(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rP(this.projectionDelta.x,this.prevProjectionDelta.x)&&rP(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=t8(),this.projectionDelta=t8(),this.projectionDeltaWithTransform=t8()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=t8();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=et(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(rz));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(rW(o.x,t.x,n),rW(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;nF(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,r_(p.x,m.x,f.x,g),r_(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,rx(u.x,c.x)&&rx(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=et()),rh(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=S(0,i.opacity??1,ro(n)),t.opacityExit=S(e.opacity??1,0,ra(n))):s&&(t.opacity=S(e.opacity??1,i.opacity??1,n));for(let r=0;r<ri;r++){let s=`border${re[r]}Radius`,o=rs(e,s),a=rs(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rr(o)===rr(a)?(t[s]=Math.max(S(rn(o),rn(a),n),0),(_.test(a)||_.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=S(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tl.update(()=>{var e,i,n;let r;n0.hasAnimatedSinceResize=!0,ir.layout++,this.motionValue||(this.motionValue=t5(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ir.layout--},onComplete:()=>{ir.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}
1,(r=tq(e)?e:t5(e)).start(np("",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 t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rq(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||et();let e=nj(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nj(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rh(e,i),L(e,r),nR(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rS),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rE("z",t,n,this.animationValues);for(let e=0;e<rk.length;e++)rE(`rotate${rk[e]}`,t,n,this.animationValues),rE(`skew${rk[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eq(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eq(e?.pointerEvents)||""),this.hasProjected&&!E(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,ew){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ew[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eq(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rL),this.root.sharedNodes.clear()}}}function rC(t){t.updateLayout()}function rj(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nO(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nj(n);n.min=i[t].min,n.max=n.min+r}):rq(r,e.layoutBox,i)&&nO(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nj(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=t8();nR(o,i,e.layoutBox);let a=t8();s?nR(a,t.applyTransform(n,!0),e.measuredBox):nR(a,i,e.layoutBox);let l=!rv(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=et();nF(o,e.layoutBox,r.layoutBox);let a=et();nF(a,i,s.layoutBox),rw(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rV(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rR(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rD(t){t.clearSnapshot()}function rL(t){t.clearMeasurements()}function rF(t){t.isLayoutDirty=!1}function rO(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rN(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rI(t){t.resolveTargetDelta()}function rB(t){t.calcProjection()}function rU(t){t.resetSkewAndRotation()}function r$(t){t.removeLeadSnapshot()}function rW(t,e,i){t.translate=S(e.translate,0,i),t.scale=S(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r_(t,e,i,n){t.min=S(e.min,i.min,n),t.max=S(e.max,i.max,n)}function rz(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rX={duration:.45,ease:[.4,0,.1,1]},rY=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rH=rY("applewebkit/")&&!rY("chrome/")?Math.round:tr;function rK(t){t.min=rH(t.min),t.max=rH(t.max)}function rq(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rT(e)-rT(i)))}function rG(t){return t!==t.root&&t.scroll?.wasRoot}let rZ=rM({attachResizeListener:(t,e)=>nA(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rJ={current:void 0},rQ=rM({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rJ.current){let t=new rZ({});t.mount(window),t.setOptions({layoutScroll:!0}),rJ.current=t}return rJ.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r0(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function r1(t){return!("touch"===t.pointerType||nk.x||nk.y)}function r5(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tl.postRender(()=>r(e,nM(e)))}function r2(t){return n9(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>r2],72846);let r4=(t,e)=>!!e&&(t===e||r4(t,e.parentElement)),r3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),r6=new WeakSet;function r9(t){return e=>{"Enter"===e.key&&t(e)}}function r8(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function r7(t){return nE(t)&&!(nk.x||nk.y)}function st(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tl.postRender(()=>r(e,nM(e)))}let se=new WeakMap,si=new WeakMap,sn=t=>{let e=se.get(t.target);e&&e(t)},sr=t=>{t.forEach(sn)},ss={some:0,all:1},so=function(t,e){if("undefined"==typeof Proxy)return e4;let i=new Map,n=(i,n)=>e4(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,e4(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends nP{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>ng(t,e,i)));else if("string"==typeof e)n=ng(t,e,i);else{let r="function"==typeof e?e3(t,e,i.custom):e;n=Promise.all(nm(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nT(),n=!0,r=e=>(i,n)=>{let r=e3(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nv;t++){let n=el[t],r=e.props[n];(eo(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},d=1/0;for(let e=0;e<nb;
1e++){var c,p;let m=nx[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],y=eo(g),v=m===s?f.isActive:null;!1===v&&(d=e);let x=g===a[m]&&g!==o[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!g&&!f.prevProp||es(g)||"boolean"==typeof g)continue;let b=(c=f.prevProp,"string"==typeof(p=g)?p!==c:!!Array.isArray(p)&&!ny(p,c)),w=b||m===s&&f.isActive&&!x&&y||e>d&&y,T=!1,P=Array.isArray(g)?g:[g],S=P.reduce(r(m),{});!1===v&&(S={});let{prevResolvedValues:k={}}=f,A={...k,...S},E=e=>{w=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=k[t];if(!h.hasOwnProperty(t))(e9(e)&&e9(i)?ny(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(w=!1);let M=x&&b,C=!M||T;w&&C&&l.push(...P.map(e=>{let i={type:m};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=e3(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nf(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=e3(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nT()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();es(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nP{constructor(){super(...arguments),this.id=nS++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends nP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:ss[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;si.has(i)||si.set(i,{});let n=si.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sr,{root:t,...e})),n[r]}(a),se.set(t,l),e.observe(t),()=>{se.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=r0(t,i),o=t=>{let n=t.currentTarget;if(!r7(t))return;r6.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),r6.has(n)&&r6.delete(n),r7(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||r4(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),r2(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=r9(()=>{if(r6.has(i))return;r8(i,"down");let t=r9(()=>{r8(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>r8(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),r3.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(st(this.node,e,"Start"),(t,{success:e})=>st(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends nP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ie(nA(this.node.current,"focus",()=>this.onFocus()),nA(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=r0(t,i),o=t=>{if(!r1(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{r1(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(r5(this.node,e,"Start"),t=>r5(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends nP{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new nB(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nN(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:nZ(t),onStart:nZ(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tl.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nP{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new nq(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:rQ,MeasureLayout:n3},layout:{ProjectionNode:rQ,MeasureLayout:n3}},(t,e)=>eL(t)?new eR(e):new eS(e,{allowProjection:t!==s.Fragment}));t.s(["motion",()=>so],46932)},75254,t=>{"use strict";var e=t.i(71645);let i=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,i)=>i?i.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)},n=(...t)=>t.filter((t,e,i)=>!!t&&""!==t.trim()&&i.indexOf(t)===e).join(" ").trim();var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,e.forwardRef)(({color:t="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:u,...h},d)=>(0,e.createElement)("svg",{ref:d,...r,width:i,height:i,stroke:t,strokeWidth:o?24*Number(s)/Number(i):s,className:n("lucide",a),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0})(h)&&{"aria-hidden":"true"},...h},[...u.map(([t,i])=>(0,e.createElement)(t,i)),...Array.isArray(l)?l:[l]])),o=(t,r)=>{let o=(0,e.forwardRef)(({className:o,...a},l)=>(0,e.createElement)(s,{ref:l,iconNode:r,className:n(`lucide-${i(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,o),...a}));return o.displayName=i(t),o}
1;t.s(["default",()=>o],75254)},98183,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});function s(t){let e={};for(let[i,n]of t.entries()){let t=e[i];void 0===t?e[i]=n:Array.isArray(t)?t.push(n):e[i]=[t,n]}return e}function o(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function a(t){let e=new URLSearchParams;for(let[i,n]of Object.entries(t))if(Array.isArray(n))for(let t of n)e.append(i,o(t));else e.set(i,o(n));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,n]of i.entries())t.append(e,n)}return t}},95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809)._(t.r(98183)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,n=t.protocol||"",r=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=t.r(71645);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>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),e.exports=i.default)},18967,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return b},NormalizeError:function(){return v},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return c},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return T}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(t){let e,i=!1;return(...n)=>(i||(i=!0,e=t(...n)),e)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>a.test(t);function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function d(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function c(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function m(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await m(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&c(i))return n;if(!n)throw Object.defineProperty(Error(`"${d(t)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,g=f&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class y extends Error{}class v extends Error{}class x extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class b extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function T(t){return JSON.stringify({message:t.message,stack:t.stack})}},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=t.r(18967),r=t.r(52817);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return x}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809),o=t.r(43476),a=s._(t.r(71645)),l=t.r(95057),u=t.r(8372),h=t.r(18581),d=t.r(18967),c=t.r(5550);t.r(33525);let p=t.r(91949),m=t.r(73668),f=t.r(9396);function g(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}function y(e){var i;let n,r,s,[l,y]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:b,as:w,children:T,prefetch:P=null,passHref:S,replace:k,shallow:A,scroll:E,onClick:M,onMouseEnter:C,onTouchStart:j,legacyBehavior:V=!1,onNavigate:R,ref:D,unstable_dynamicOnHover:L,...F}=e;n=T,V&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let O=a.default.useContext(u.AppRouterContext),N=!1!==P,I=!1!==P?null===(i=P)||"auto"===i?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:B,as:U}=a.default.useMemo(()=>{let t=g(b);return{href:t,as:w?g(w):t}},[b,w]);if(V){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=a.default.Children.only(n)}let $=V?r&&"object"==typeof r&&r.ref:D,W=a.default.useCallback(t=>(null!==O&&(x.current=(0,p.mountLinkInstance)(t,B,O,I,N,y)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(t)}),[N,B,O,I,y]),_={ref:(0,h.useMergedRef)(W,$),onClick(e){V||"function"!=typeof M||M(e),V&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),!O||e.defaultPrevented||function(e,i,n,r,s,o,l){if("undefined"!=typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),l){let t=!1;if(l({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:d}=t.r(99781);a.default.startTransition(()=>{d(n||i,s?"replace":"push",o??!0,r.current)})}}(e,B,U,x,k,E,R)},onMouseEnter(t){V||"function"!=typeof C||C(t),V&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),O&&N&&(0,p.onNavigationIntent)(t.currentTarget,!0===L)},onTouchStart:function(t){V||"function"!=typeof j||j(t),V&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),O&&N&&(0,p.onNavigationIntent)(t.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(U)?_.href=U:V&&!S&&("a"!==r.type||"href"in r.props)||(_.href=(0,c.addBasePath)(U)),s=V?a.default.cloneElement(r,_):(0,o.jsx)("a",{...F,..._,children:n}),(0,o.jsx)(v.Provider,{value:l,children:s})}t.r(84508);let v=(0,a.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},88653,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),n=t.i(31178),r=t.i(47414),s=t.i(74008),o=t.i(21476),a=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:n,anchorX:r,root:s}){let o=(0,l.useId)(),a=(0,l.useRef)(null),c=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,l.useContext)(u.MotionConfigContext),m=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=h(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():h(t[e],null)}}}}(...t),t)}(a,t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u}=c.current;if(n||!a.current||!t||!e)return;let h="left"===r?`left: ${l}`:`right: ${u}`;a.current.dataset.motionPopId=o;let d=document.createElement("style");p&&(d.nonce=p);let m=s??document.head;return m.appendChild(d),d.sheet&&d.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${e}px !important;
6            ${h}px !important;
7            top: ${i}px !important;
8          }
9        `),()=>{m.contains(d)&&m.removeChild(d)}},[n]),(0,e.jsx)(d,{isPresent:n,childRef:a,sizeRef:c,children:l.cloneElement(t,{ref:m})})}let p=({children:t,initial:n,isPresent:s,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:d,root:p})=>{let f=(0,r.useConstant)(m),g=(0,i.useId)(),y=!0,v=(0,i.useMemo)(()=>(y=!1,{id:g,initial:n,isPresent:s,custom:l,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;a&&a()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[s,f,a]);return u&&y&&(v={...v}),(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),i.useEffect(()=>{s||f.size||!a||a()},[s]),"popLayout"===h&&(t=(0,e.jsx)(c,{isPresent:s,anchorX:d,root:p,children:t})),(0,e.jsx)(o.PresenceContext.Provider,{value:v,children:t})};function m(){return new Map}var f=t.i(64978);let g=t=>t.key||"";function y(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let v=({children:t,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:c="left",root:m})=>{let[v,x]=(0,f.usePresence)(d),b=(0,i.useMemo)(()=>y(t),[t]),w=d&&!v?[]:b.map(g),T=(0,i.useRef)(!0),P=(0,i.useRef)(b),S=(0,r.useConstant)(()=>new Map),[k,A]=(0,i.useState)(b),[E,M]=(0,i.useState)(b);(0,s.useIsomorphicLayoutEffect)(()=>{T.current=!1,P.current=b;for(let t=0;t<E.length;t++){let e=g(E[t]);w.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[E,w.length,w.join("-")]);let C=[];if(b!==k){let t=[...b];for(let e=0;e<E.length;e++){let i=E[e],n=g(i);w.includes(n)||(t.splice(e,0,i),C.push(i))}return"wait"===h&&C.length&&(t=C),M(y(t)),A(b),null}let{forceRender:j}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:E.map(t=>{let i=g(t),n=(!d||!!v)&&(b===E||w.includes(i));return(0,e.jsx)(p,{isPresent:n,initial:(!T.current||!!a)&&void 0,custom:o,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:n?void 0:()=>{if(!S.has(i))return;S.set(i,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(j?.(),M(P.current),d&&x?.(),l&&l())},anchorX:c,children:t},i)})})};t.s(["AnimatePresence",()=>v],88653)},37727,t=>{"use strict";let e=(0,t.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);t.s(["X",()=>e],37727)},54055,t=>{"use strict";let e=(0,t.i(75254).default)("aperture",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m14.31 8 5.74 9.94",key:"1y6ab4"}],["path",{d:"M9.69 8h11.48",key:"1wxppr"}],["path",{d:"m7.38 12 5.74-9.94",key:"1grp0k"}],["path",{d:"M9.69 16 3.95 6.06",key:"libnyf"}],["path",{d:"M14.31 16H2.83",key:"x5fava"}
9],["path",{d:"m16.62 12-5.74 9.94",key:"1vwawt"}]]);t.s(["Aperture",()=>e],54055)},62319,t=>{"use strict";var e=t.i(43476),i=t.i(71645),n=t.i(22016),r=t.i(18566),s=t.i(46932),o=t.i(88653);let a=(0,t.i(75254).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var l=t.i(37727),u=t.i(54055);function h({showIntro:t=!1}){let h=(0,r.usePathname)(),[d,c]=(0,i.useState)(!1),[p,m]=(0,i.useState)(!1),[f,g]=(0,i.useState)(""),y=t=>"/"===h?t:`/${t}`;return((0,i.useEffect)(()=>{let t=()=>{c(window.scrollY>20)};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,i.useEffect)(()=>{let t=["features","what-is-shotsnap","tools","faq"],e=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let i=e.target.id;t.includes(i)&&g(i)}})},{rootMargin:"-20% 0px -70% 0px",threshold:0});return t.forEach(t=>{let i=document.getElementById(t);i&&e.observe(i)}),()=>{t.forEach(t=>{let i=document.getElementById(t);i&&e.unobserve(i)})}},[]),t)?null:(0,e.jsx)("div",{className:"fixed top-0 left-0 right-0 z-50 flex flex-col",children:(0,e.jsxs)("nav",{className:`w-full transition-all duration-300 ${d?"bg-white/80 dark:bg-black/80 backdrop-blur-md border-b border-gray-200 dark:border-gray-800 py-3":"bg-transparent py-5"}`,children:[(0,e.jsx)("div",{className:"container mx-auto px-4 md:px-6",children:(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)(n.default,{href:"/",className:"flex items-center gap-2 group",children:[(0,e.jsxs)(s.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},transition:{duration:.8,ease:"easeInOut",type:"tween"},className:"relative flex items-center justify-center w-10 h-10 rounded-xl bg-gradient-to-tr from-gray-900 to-gray-700 dark:from-white dark:to-gray-400 text-white dark:text-black shadow-lg group-hover:scale-105 transition-transform overflow-hidden",children:[(0,e.jsx)(s.motion.div,{layoutId:"logo-icon",transition:{duration:.8,ease:"easeInOut",type:"tween"},children:(0,e.jsx)(u.Aperture,{size:24})}),(0,e.jsx)(s.motion.div,{layoutId:"logo-dot",className:"absolute top-1.5 right-1 w-1.5 h-1.5 bg-red-500 rounded-full z-10",transition:{duration:.8,ease:"easeInOut",type:"tween"}})]}),(0,e.jsx)(s.motion.span,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5,duration:.5},className:"text-xl font-bold tracking-tight bg-clip-text text-transparent bg-gradient-to-r from-gray-900 to-gray-600 dark:from-white dark:to-gray-400",children:"ShotSnap"})]}),(0,e.jsxs)(s.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.2,duration:.8},className:"hidden md:flex items-center gap-8",children:[(0,e.jsxs)(n.default,{href:y("#features"),className:`text-sm font-medium transition-all duration-200 relative ${"features"===f?"text-black dark:text-white font-semibold":"text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white"}`,children:["Features","features"===f&&(0,e.jsx)(s.motion.div,{layoutId:"activeIndicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-black dark:bg-white rounded-full",initial:!1,transition:{type:"spring",stiffness:380,damping:30}})]}),(0,e.jsxs)(n.default,{href:y("#what-is-shotsnap"),className:`text-sm font-medium transition-all duration-200 relative ${"what-is-shotsnap"===f?"text-black dark:text-white font-semibold":"text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white"}`,children:["What is ShotSnap","what-is-shotsnap"===f&&(0,e.jsx)(s.motion.div,{layoutId:"activeIndicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-black dark:bg-white rounded-full",initial:!1,transition:{type:"spring",stiffness:380,damping:30}})]}),(0,e.jsxs)(n.default,{href:y("#tools"),className:`text-sm font-medium transition-all duration-200 relative ${"tools"===f?"text-black dark:text-white font-semibold":"text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white"}`,children:["Tools","tools"===f&&(0,e.jsx)(s.motion.div,{layoutId:"activeIndicator",className:"absolute -bottom-1 left-0 right-0 h-0.5 bg-black dark:bg-white rounded-full",initial:!1,transition:{type:"spring",stiffness:380,damping:30}})]}),(0,e.jsx)(n.default,{href:"/pricing",className:"text-sm font-medium transition-all duration-200 text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white",children:"Pricing"}),(0,e.jsx)(n.default,{href:"/account",className:"text-sm font-medium transition-all duration-200 text-gray-600 hover:text-black dark:text-gray-400 dark:hover:text-white",children:"Account"})]}),(0,e.jsx)(s.motion.button,{initial:{opacity:0}
9,animate:{opacity:1},transition:{delay:.2,duration:.8},className:"md:hidden p-2 text-gray-600 dark:text-gray-300",onClick:()=>m(!p),children:p?(0,e.jsx)(l.X,{}):(0,e.jsx)(a,{})})]})}),(0,e.jsx)(o.AnimatePresence,{children:p&&(0,e.jsx)(s.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden bg-white dark:bg-black border-b border-gray-200 dark:border-gray-800 overflow-hidden",children:(0,e.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[(0,e.jsx)(n.default,{href:y("#features"),className:`text-sm font-medium transition-colors ${"features"===f?"text-black dark:text-white font-semibold":"text-gray-600 dark:text-gray-400"}`,onClick:()=>m(!1),children:"Features"}),(0,e.jsx)(n.default,{href:y("#what-is-shotsnap"),className:`text-sm font-medium transition-colors ${"what-is-shotsnap"===f?"text-black dark:text-white font-semibold":"text-gray-600 dark:text-gray-400"}`,onClick:()=>m(!1),children:"What is ShotSnap"}),(0,e.jsx)(n.default,{href:y("#tools"),className:`text-sm font-medium transition-colors ${"tools"===f?"text-black dark:text-white font-semibold":"text-gray-600 dark:text-gray-400"}`,onClick:()=>m(!1),children:"Tools"}),(0,e.jsx)(n.default,{href:"/pricing",className:"text-sm font-medium transition-colors text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white",onClick:()=>m(!1),children:"Pricing"}),(0,e.jsx)(n.default,{href:"/account",className:"text-sm font-medium transition-colors text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white",onClick:()=>m(!1),children:"Account"}),(0,e.jsx)(n.default,{href:"/support",className:"text-sm font-medium transition-colors text-gray-600 dark:text-gray-400 hover:text-black dark:hover:text-white",onClick:()=>m(!1),children:"Support"})]})})})]})})}t.s(["default",()=>h],62319)},56691,t=>{"use strict";var e=t.i(43476),i=t.i(54055),n=t.i(22016);function r(){return(0,e.jsx)("footer",{className:"bg-white dark:bg-black border-t border-gray-200 dark:border-gray-800 pt-16 pb-8",children:(0,e.jsxs)("div",{className:"container mx-auto px-4 md:px-6",children:[(0,e.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-5 gap-12 mb-12",children:[(0,e.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,e.jsxs)(n.default,{href:"/",className:"flex items-center gap-2 mb-4 group",children:[(0,e.jsxs)("div",{className:"relative flex items-center justify-center w-8 h-8 rounded-lg bg-gray-900 dark:bg-white text-white dark:text-black",children:[(0,e.jsx)(i.Aperture,{size:20}),(0,e.jsx)("div",{className:"absolute top-1 right-0.5 w-1.5 h-1.5 bg-red-500 rounded-full"})]}),(0,e.jsx)("span",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"ShotSnap"})]}),(0,e.jsx)("p",{className:"text-gray-500 dark:text-gray-400 max-w-xs mb-6",children:"The smartest way to capture, analyze, and organize your screenshots on macOS."})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Product"}),(0,e.jsxs)("ul",{className:"space-y-3",children:[(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/#features",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Features"})}),(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/pricing",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Pricing"})}),(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/download",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Download"})})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Resources"}),(0,e.jsxs)("ul",{className:"space-y-3",children:[(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/changelog",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Changelog"})}),(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/support",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Support"})}),(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/account",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Account"})})]})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white mb-4",children:"Legal"}),(0,e.jsxs)("ul",{className:"space-y-3",children:[(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/privacy-policy",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Privacy Policy"})}),(0,e.jsx)("li",{children:(0,e.jsx)(n.default,{href:"/terms-of-service",className:"text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors",children:"Terms of Service"})})]})]})]}),(0,e.jsxs)("div",{className:"border-t border-gray-100 dark:border-gray-800 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,e.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:["© ",new Date().getFullYear()," ShotSnap. All rights reserved."]}),(0,e.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-500",children:"Designed with ♥ for Mac users"})]})]})})}t.s(["default",()=>r])}]);

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.