PageSourceSearch

https://iamsteve.me/_next/static/chunks/2gj7og4lhqnd_.js

js iamsteve.me collected 2026-10-01 10:23:41 UTC 128,016 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61970,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getMDXComponent=function(t,e){return l(t,e).default},i.getMDXExport=l;var n=o(t.r(89358)),s=o(t.r(71335)),r=o(t.r(15476));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,i=new WeakMap;return(a=function(t){return t?i:e})(t)}function o(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=a(e);if(i&&i.has(t))return i.get(t);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&({}).hasOwnProperty.call(t,r)){var o=s?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=t[r]}return n.default=t,i&&i.set(t,n),n}function l(t,e){let i={React:n,ReactDOM:s,_jsx_runtime:r,...e};return Function(...Object.keys(i),t)(...Object.values(i))}},17924,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t.r(61970);Object.keys(n).forEach(function(t){"default"===t||"__esModule"===t||t in i&&i[t]===n[t]||Object.defineProperty(i,t,{enumerable:!0,get:function(){return n[t]}})})},83075,(t,e,i)=>{e.exports=t.r(17924)},96640,30565,t=>{"use strict";var e=t.i(83075),i=t.i(89358),n=t.i(15476);t.s(["MDXContent",0,function({code:t,...s}){let r=(0,i.useMemo)(()=>(0,e.getMDXComponent)(t),[t]);return(0,n.jsx)(r,{...s})}],96640);var s=t.i(41933);t.s(["default",0,({...t})=>(0,n.jsx)(s.default,{...t})],30565)},18051,t=>{"use strict";var e=t.i(15476),i=t.i(30565);t.i(77823);var n=t.i(81968),s=t.i(51037),r=t.i(89358),a=t.i(82710);function o({getCode:t}){return(0,e.jsx)(a.default,{getText:t,label:"Copy code",className:"ml-auto text-body text-base"})}let l={Image:i.default,Icon:n.default,Chat:s.Chat,ChatMessage:s.ChatMessage,CodeFigure:function({title:t,language:i,children:n}){let s=(0,r.useRef)(null),a=(0,r.useCallback)(()=>{let t=s.current?.querySelector("pre");return t?.textContent||""},[]);return(0,e.jsxs)("figure",{ref:s,"data-rehype-pretty-code-figure":"",children:[(0,e.jsxs)("figcaption",{"data-rehype-pretty-code-title":"","data-language":i,children:[(0,e.jsx)("span",{className:"text-base tracking-normal py-1.5 px-3",children:t}),(0,e.jsx)(o,{getCode:a})]}),n]})},a:t=>(0,e.jsx)("a",{className:"text-link underline [text-underline-offset:12.5%] [text-decoration-thickness:1.5px] [text-decoration-color:color-mix(in_oklch,currentcolor,transparent_60%)] hover:text-link-hover hover:no-underline has-[svg]:inline-flex has-[svg]:gap-0 has-[svg]:items-center has-[svg]:align-middle transition duration-200 ease-out",...t}),blockquote:t=>(0,e.jsx)("blockquote",{className:"border-l-2 border-l-cornflour-500 pl-4 my-4 text-ui-body",...t}),strong:t=>(0,e.jsx)("strong",{className:"font-medium text-emphasis",...t}),code:t=>(0,e.jsx)("code",{className:t.style||void 0!==t["data-line-numbers"]?void 0:"font-mono bg-code text-code rounded-sm px-1",...t}),pre:t=>(0,e.jsx)("pre",{className:"bg-surface-02 rounded-sm p-4 overflow-x-auto my-4",...t}),ul:t=>(0,e.jsx)("ul",{className:"text-ui-body md:text-lg lg:text-xl list-inside sm:list-outside list-[square] marker:text-neutral-03-400 mb-3",...t}),ol:t=>(0,e.jsx)("ol",{className:"text-ui-body md:text-lg lg:text-xl list-inside sm:list-outside list-decimal marker:text-neutral-03-400 mb-3",...t}),li:t=>(0,e.jsx)("li",{...t}),img:t=>(0,e.jsx)("img",{className:"rounded-sm my-4",...t})};t.s(["components",0,l],18051)},42549,t=>{"use strict";let e,i,n;var s,r=t.i(15476),a=t.i(89358),o=t.i(8070);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set(l),h=t=>180*t/Math.PI,c=t=>p(h(Math.atan2(t[1],t[0]))),d={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:c,rotateZ:c,skewX:t=>h(Math.atan(t[1])),skewY:t=>h(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},p=t=>((t%=360)<0&&(t+=360),t),m=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),g={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:m,scaleY:f,scale:t=>(m(t)+f(t))/2,rotateX:t=>p(h(Math.atan2(t[6],t[5]))),rotateY:t=>p(h(Math.atan2(-t[2],t[0]))),rotateZ:c,rotate:c,skewX:t=>h(Math.atan(t[4])),skewY:t=>h(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function y(t){return+!!t.includes("scale")}function v(t,e){let i,n;if(!t||"none"===t)return y(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=g,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=d,n=e}if(!n)return y(e);let r=i[e],a=n[1].split(",").map(x);return"function"==typeof r?r(a):a[r]}function x(t){return parseFloat(t.trim())}let w=t=>e=>"string"==typeof e&&e.startsWith(t),b=w("--"),T=w("var(--"),P=t=>!!T(t)&&A.test(t.split("/*")[0].trim()),A=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function S({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let M=(t,e,i)=>t+(e-t)*i;function E(t){return void 0===t||1===t}function C({scale:t,scaleX:e,scaleY:i}){return!E(t)||!E(e)||!E(i)}function V(t){return C(t)||k(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function k(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function D(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function j(t,e=0,i=1,n,s){t.min=D(t.min,e,i,n,s),t.max=D(t.max,e,i,n,s)}function R(t,{x:e,y:i}){j(t.x,e.translate,e.scale,e.originPoint),j(t.y,i.translate,i.scale,i.originPoint)}function L(t,e){t.min=t.min+e,t.max=t.max+e}function F(t,e,i,n,s=.5){let r=M(t.min,t.max,s);j(t,e,i,r,n)}function B(t,e){F(t.x,e.x,e.scaleX,e.scale,e.originX),F(t.y,e.y,e.scaleY,e.scale,e.originY)}function O(t,e){return S(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 I=new Set(["width","height","top","left","right","bottom",...l]),N=(t,e,i)=>i>e?e:i<t?t:i,U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={...U,transform:t=>N(0,1,t)},$={...U,default:1},z=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Y=z("deg"),X=z("%"),H=z("px"),_=z("vh"),q=z("vw"),K={...X,parse:t=>X.parse(t)/100,transform:t=>X.transform(100*t)},G=t=>e=>e.test(t),Z=[U,H,X,Y,q,_,{test:t=>"auto"===t,parse:t=>t}],J=t=>Z.find(G(t));t.i(86029);let Q=()=>{},tt=()=>{},te=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ti=t=>t===U||t===H,tn=new Set(["x","y","z"]),ts=l.filter(t=>!tn.has(t)),tr={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})=>v(e,"x"),y:(t,{transform:e})=>v(e,"y")};tr.translateX=tr.x,tr.translateY=tr.y;let ta=t=>t,to={},tl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tu(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tl.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}
1s=!0,[i,n]=[n,i],i.forEach(u),e,l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=a,f=()=>{let r=to.useManualTiming?s.timestamp:performance.now();i=!1,to.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tl.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tl.length;e++)a[tl[e]].cancel(t)},state:s,steps:a}}let{schedule:th,cancel:tc,state:td,steps:tp}=tu("u">typeof requestAnimationFrame?requestAnimationFrame:ta,!0),tm=new Set,tf=!1,tg=!1,ty=!1;function tv(){if(tg){let t=Array.from(tm).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],ts.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)})}tg=!1,tf=!1,tm.forEach(t=>t.complete(ty)),tm.clear()}function tx(){tm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tg=!0)})}class tw{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tm.add(this),tf||(tf=!0,th.read(tx),th.resolveKeyframes(tv))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tm.delete(this)}cancel(){"scheduled"===this.state&&(tm.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tb=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tA=(t,e)=>i=>!!("string"==typeof i&&tP.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tS=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(tT);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tM={...U,transform:t=>Math.round(N(0,255,t))},tE={test:tA("rgb","red"),parse:tS("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tM.transform(t)+", "+tM.transform(e)+", "+tM.transform(i)+", "+tb(W.transform(n))+")"},tC={test:tA("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:tE.transform},tV={test:tA("hsl","hue"),parse:tS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+X.transform(tb(e))+", "+X.transform(tb(i))+", "+tb(W.transform(n))+")"},tk={test:t=>tE.test(t)||tC.test(t)||tV.test(t),parse:t=>tE.test(t)?tE.parse(t):tV.test(t)?tV.parse(t):tC.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tE.transform(t):tV.transform(t),getAnimatableNone:t=>{let e=tk.parse(t);return e.alpha=0,tk.transform(e)}},tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tj="number",tR="color",tL=/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 tF(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(tL,t=>(tk.test(t)?(n.color.push(r),s.push(tR),i.push(tk.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(tj),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function tB(t){return tF(t).values}function tO(t){let{split:e,types:i}=tF(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===tj?s+=tb(t[r]):e===tR?s+=tk.transform(t[r]):s+=t[r]}return s}}let tI=t=>"number"==typeof t?0:tk.test(t)?tk.getAnimatableNone(t):t,tN={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tT)?.length||0)+(t.match(tD)?.length||0)>0},parse:tB,createTransformer:tO,getAnimatableNone:function(t){let e=tB(t);return tO(t)(e.map(tI))}},tU=new Set(["brightness","contrast","saturate","opacity"]);function tW(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tT)||[];if(!n)return t;let s=i.replace(n,""),r=+!!tU.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let t$=/\b([a-z-]*)\(.*?\)/gu,tz={...tN,getAnimatableNone:t=>{let e=t.match(t$);return e?e.map(tW).join(" "):t}},tY={...U,transform:Math.round},tX={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:Y,skewX:Y,skewY:Y,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:W,originX:K,originY:K,originZ:H,zIndex:tY,fillOpacity:W,strokeOpacity:W,numOctaves:tY},tH={...tX,color:tk,backgroundColor:tk,outlineColor:tk,fill:tk,stroke:tk,borderColor:tk,borderTopColor:tk,borderRightColor:tk,borderBottomColor:tk,borderLeftColor:tk,filter:tz,WebkitFilter:tz},t_=t=>tH[t];function tq(t,e){let i=t_(t);return i!==tz&&(i=tN),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tK=new Set(["auto","none","0"]);class tG extends tw{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&P(n=n.trim())){let s=function t(e,i,n=1){tt(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=te.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return P(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!I.has(i)||2!==t.length)return;let[n,s]=t,r=J(n),a=J(s);if(r!==a)if(ti(r)&&ti(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tK.has(e)&&tF(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tq(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=tr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tZ=t=>!!(t&&t.getVelocity);function tJ(){e=void 0}let tQ={now:()=>(void 0===e&&tQ.set(td.isProcessing||to.useManualTiming?td.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(tJ)}};function t0(t,e){-1===t.indexOf(e)&&t.push(e)}function t1(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t5{constructor(){this.subscriptions=[]}add(t){return t0(this.subscriptions,t),()=>t1(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class t2{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tQ.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=tQ.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 t5);let i=this.events[t].add(e);return"change"===t?()=>{i(),th.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=tQ.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 t3(t,e){return new t2(t,e)}let t4=[...Z,tk,tN],{schedule:t9}=tu(queueMicrotask,!1),t6={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"]},t8={};for(let t in t6)t8[t]={isEnabled:e=>t6[t].some(t=>!!e[t])};let t7=()=>({translate:0,scale:1,origin:0,originPoint:0}),et=()=>({x:t7(),y:t7()}),ee=()=>({min:0,max:0}),ei=()=>({x:ee(),y:ee()}),en="u">typeof window,es={current:null},er={current:!1};function ea(){if(er.current=!0,en)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>es.current=t.matches;t.addEventListener("change",e),e()}else es.current=!1}let eo=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eu(t){return"string"==typeof t||Array.isArray(t)}let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...eh];function ed(t){return el(t.animate)||ec.some(e=>eu(t[e]))}function ep(t){return!!(ed(t)||t.variants)}function em(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ef(t,e,i,n){if("function"==typeof e){let[s,r]=em(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=em(n);e=e(void 0!==i?i:t.custom,s,r)}return e}let eg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ey{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tw,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=tQ.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,th.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ed(e),this.isVariantNode=ep(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!==o[t]&&tZ(e)&&e.set(o[t])}}mount(t){this.current=t,eo.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)),er.current||ea(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||es.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),tc(this.notifyUpdate),tc(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=u.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&th.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),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 t8){let e=t8[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):ei()}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<eg.length;e++){let i=eg[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 s=e[n],r=i[n];if(tZ(s))t.addValue(n,s);else if(tZ(r))t.addValue(n,t3(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,t3(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=t3(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!t4.find(G(n))&&tN.test(e)&&(i=tq(t,e))}this.setBaseTarget(t,tZ(i)?i.get():i)}return tZ(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=ef(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||tZ(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 t5),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class ev extends ey{constructor(){super(...arguments),this.KeyframeResolver=tG}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;tZ(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let ex=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ew={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eb=l.length;function eT(t,e,i){let{style:n,vars:s,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(u.has(t)){a=!0;continue}if(b(t)){s[t]=i;continue}{let e=ex(i,tX[t]);t.startsWith("origin")?(o=!0,r[t]=e):n[t]=e}}if(!e.transform&&(a||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<eb;r++){let a=l[r],o=t[a];if(void 0===o)continue;let u=!0;if(!(u="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=ex(o,tX[a]);if(!u){s=!1;let e=ew[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function eP(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}let eA={};function eS(t,{layout:e,layoutId:i}){return u.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eA[t]||"opacity"===t)}function eM(t,e,i){let{style:n}=t,s={};for(let r in n)(tZ(n[r])||e.style&&tZ(e.style[r])||eS(r,t)||i?.getValue(r)?.liveStyle!==void 0)&&(s[r]=n[r]);return s}class eE extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=eP}readValueFromInstance(t,e){if(u.has(e))return this.projection?.isProjecting?y(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return v(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(b(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return O(t,e)}build(t,e,i){eT(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eM(t,e,i)}}let eC=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},ek={offset:"strokeDashoffset",array:"strokeDasharray"};function eD(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(eT(t,o,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eV:ek;t[r.offset]=H.transform(-n);let a=H.transform(e),o=H.transform(i);t[r.array]=`${a} ${o}`}(c,s,r,a,!1)}let ej=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"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,e,i){let n=eM(t,e,i);for(let i in t)(tZ(t[i])||tZ(e[i]))&&(n[-1!==l.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eF extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ei}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(u.has(e)){let t=t_(e);return t&&t.default||0}return e=ej.has(e)?e:eC(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eL(t,e,i)}build(t,e,i){eD(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eP(t,e,void 0,n),e.attrs)t.setAttribute(ej.has(i)?i:eC(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}let eB=["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 eO(t){if("string"!=typeof t||t.includes("-"));else if(eB.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let eI=(0,a.createContext)({}),eN=(0,a.createContext)({strict:!1}),eU=(0,a.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eW=(0,a.createContext)({});function e$(t){return Array.isArray(t)?t.join(" "):t}let ez=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eY(t,e,i){for(let n in e)tZ(e[n])||eS(n,i)||(t[n]=e[n])}let eX=()=>({...ez(),attrs:{}}),eH=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 e_(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eH.has(t)}let eq=t=>!e_(t);try{s=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof s&&(eq=t=>t.startsWith("on")?!e_(t):s(t))}catch{}let eK=(0,a.createContext)(null);function eG(t){let e=(0,a.useRef)(null);return null===e.current&&(e.current=t()),e.current}function eZ(t){return tZ(t)?t.get():t}let eJ=t=>(e,i)=>{let n=(0,a.useContext)(eW),s=(0,a.useContext)(eK),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=eZ(r[t]);let{initial:a,animate:o}=t,l=ed(t),u=ep(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!el(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=ef(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&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():eG(r)},eQ=eJ({scrapeMotionValuesFromProps:eM,createRenderState:ez}
1),e0=eJ({scrapeMotionValuesFromProps:eL,createRenderState:eX}),e1=Symbol.for("motionComponentSymbol");function e5(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e2="data-"+eC("framerAppearId"),e3=(0,a.createContext)({}),e4=en?a.useLayoutEffect:a.useEffect;function e9(t,{forwardMotionProps:e=!1}={},i,n){i&&function(t){for(let e in t)t8[e]={...t8[e],...t[e]}}(i);let s=eO(t)?e0:eQ;function o(i,o){var l;let u,h={...(0,a.useContext)(eU),...i,layoutId:function({layoutId:t}){let e=(0,a.useContext)(eI).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=h,d=function(t){let{initial:e,animate:i}=function(t,e){if(ed(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eu(e)?e:void 0,animate:eu(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,a.useContext)(eW));return(0,a.useMemo)(()=>({initial:e,animate:i}),[e$(e),e$(i)])}(i),p=s(i,c);if(!c&&en){(0,a.useContext)(eN).strict;let e=function(t){let{drag:e,layout:i}=t8;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=e.MeasureLayout,d.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,a.useContext)(eW),o=(0,a.useContext)(eN),l=(0,a.useContext)(eK),u=(0,a.useContext)(eU).reducedMotion,h=(0,a.useRef)(null);n=n||o.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:r,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let c=h.current,d=(0,a.useContext)(e3);c&&!c.projection&&s&&("html"===c.type||"svg"===c.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,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:s,layout:r,alwaysMeasureLayout:!!a||o&&e5(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(h.current,i,s,d);let p=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{c&&p.current&&c.update(i,l)});let m=i[e2],f=(0,a.useRef)(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return e4(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,a.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),f.current=!1),c.enteringChildren=void 0)}),c}(t,p,h,n,e.ProjectionNode)}return(0,r.jsxs)(eW.Provider,{value:d,children:[u&&d.visualElement?(0,r.jsx)(u,{visualElement:d.visualElement,...h}):null,function(t,e,i,{latestValues:n},s,r=!1){let o=(eO(t)?function(t,e,i,n){let s=(0,a.useMemo)(()=>{let i=eX();return eD(i,e,eR(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eY(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},eY(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,a.useMemo)(()=>{let i=ez();return eT(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(eq(s)||!0===i&&e_(s)||!e&&!e_(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),u=t!==a.Fragment?{...l,...o,ref:i}:{},{children:h}=e,c=(0,a.useMemo)(()=>tZ(h)?h.get():h,[h]);return(0,a.createElement)(t,{...u,children:c})}(t,i,(l=d.visualElement,(0,a.useCallback)(t=>{t&&p.onMount&&p.onMount(t),l&&(t?l.mount(t):l.unmount()),o&&("function"==typeof o?o(t):e5(o)&&(o.current=t))},[l])),p,c,e)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,a.forwardRef)(o);return l[e1]=t,l}function e6(t,e,i){let n=t.getProps();return ef(n,e,void 0!==i?i:n.custom,t)}function e8(t,e){return t?.[e]??t?.default??t}let e7=t=>Array.isArray(t);function it(t,e){let i=t.getValue("willChange");if(tZ(i)&&i.add)return i.add(e);if(!i&&to.WillChange){let i=new to.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}function ie(t){t.duration=0,t.type="keyframes"}let ii=(t,e)=>i=>e(t(i)),is=(...t)=>t.reduce(ii),ir=t=>1e3*t,ia={layout:0,mainThread:0,waapi:0};function io(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 il(t,e){return i=>i>0?e:t}let iu=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},ih=[tC,tE,tV];function ic(t){let e=ih.find(e=>e.test(t));if(Q(!!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===tV&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=io(o,n,t+1/3),r=io(o,n,t),a=io(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let id=(t,e)=>{let i=ic(t),n=ic(e);if(!i||!n)return il(t,e);let s={...i};return t=>(s.red=iu(i.red,n.red,t),s.green=iu(i.green,n.green,t),s.blue=iu(i.blue,n.blue,t),s.alpha=M(i.alpha,n.alpha,t),tE.transform(s))},ip=new Set(["none","hidden"]);function im(t,e){return i=>M(t,e,i)}function ig(t){return"number"==typeof t?im:"string"==typeof t?P(t)?il:tk.test(t)?id:ix:Array.isArray(t)?iy:"object"==typeof t?tk.test(t)?id:iv:il}function iy(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>ig(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iv(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=ig(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let ix=(t,e)=>{let i=tN.createTransformer(e),n=tF(t),s=tF(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return Q(!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"),il(t,e);if(ip.has(t)&&!s.values.length||ip.has(e)&&!n.values.length)return ip.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return is(iy(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function iw(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?M(t,e,i):ig(t)(t,e)}let ib=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>th.update(e,t),stop:()=>tc(e),now:()=>td.isProcessing?td.timestamp:tQ.now()}},iT=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iP(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 iA(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iP(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}function iS(t,e,i){var n,s;let r=Math.max(e-5,0);return n=i-t(r),(s=e-r)?1e3/s*n:0}let iM=.01,iE=2,iC=.005,iV=.5;function ik(t,e){return t*Math.sqrt(1-e*e)}let iD=["duration","bounce"],ij=["stiffness","damping","mass"];function iR(t,e){return e.some(e=>void 0!==t[e])}function iL(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:r}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iR(t,ij)&&iR(t,iD))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*N(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;Q(t<=ir(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=N(.05,1,a),t=N(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/ik(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=ik(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let o=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=ir(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*c)),y=o-a,v=Math.sqrt(u/c)/1e3,x=5>Math.abs(y);if(s||(s=x?iM:iE),r||(r=x?iC:iV),g<1){let t=ik(v,g);i=e=>o-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=>o-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 o-i*((f+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;g<1&&(n=0===t?ir(f):iS(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(n)<=s&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(iP(w),2e4),e=iT(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function iF({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===a?g:a(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),w=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?y:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=iL({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iS(x,t,m.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),m)}}}iL.applyToOptions=t=>{let e=iA(t,100,iL);return t.ease=e.ease,t.duration=ir(e.duration),t.type="keyframes",t};let iB=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iO(t,e,i,n){return t===e&&i===n?ta:s=>0===s||1===s?s:iB(function(t,e,i,n,s){let r,a,o=0;do(r=iB(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let iI=iO(.42,0,1,1),iN=iO(0,0,.58,1),iU=iO(.42,0,.58,1),iW=t=>Array.isArray(t)&&"number"!=typeof t[0],i$=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iz=t=>e=>1-t(1-e),iY=iO(.33,1.53,.69,.99),iX=iz(iY),iH=i$(iX),i_=t=>(t*=2)<1?.5*iX(t):.5*(2-Math.pow(2,-10*(t-1))),iq=t=>1-Math.sin(Math.acos(t)),iK=iz(iq),iG=i$(iq),iZ=t=>Array.isArray(t)&&"number"==typeof t[0],iJ={linear:ta,easeIn:iI,easeInOut:iU,easeOut:iN,circIn:iq,circInOut:iG,circOut:iK,backIn:iX,backInOut:iH,backOut:iY,anticipate:i_},iQ=t=>{if(iZ(t)){tt(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return iO(e,i,n,s)}return"string"==typeof t?(tt(void 0!==iJ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iJ[t]):t},i0=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function i1(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=i0(0,e,n);t.push(M(i,1,s))}}function i5(t){let e=[0];return i1(e,t.length-1),e}function i2({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=iW(n)?n.map(iQ):iQ(n),a={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(tt(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let n=[],s=i||to.mix||iw,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=is(Array.isArray(e)?e[i]||ta:e,r)),n.push(r)}return n}(e,n,s),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=i0(t[n],t[n+1],i);return o[n](s)};return i?e=>u(N(t[0],t[r-1],e)):u}((s=i&&i.length===e.length?i:i5(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||iU).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}let i3=t=>null!==t;function i4(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(i3),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let i9={decay:iF,inertia:iF,tween:i2,keyframes:i2,spring:iL};function i6(t){"string"==typeof t.type&&(t.type=i9[t.type])}class i8{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 i7=t=>t/100;class nt extends i8{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!==tQ.now()&&this.tick(tQ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ia.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i6(t);let{type:e=i2,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||i2;o!==i2&&"number"!=typeof a[0]&&(this.mixKeyframes=is(i7,iw(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iP(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:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,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)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(x=r)),v=N(0,1,i)*a}let w=y?{done:!1,value:u[0]}:x.next(v);s&&(w.value=s(w.value));let{done:b}=w;y||null===o||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&p!==iF&&(w.value=i4(u,this.options,f,this.speed)),m&&m(w.value),T&&this.finish(),w}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=ir(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(tQ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=ib,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(tQ.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,ia.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 ne(t){let e;return()=>(void 0===e&&(e=t()),e)}let ni=ne(()=>void 0!==window.ScrollTimeline),nn={},ns=(i=ne(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>nn.linearEasing??i()),nr=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,na={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nr([0,.65,.55,1]),circOut:nr([.55,0,1,.45]),backIn:nr([.31,.01,.66,-.59]),backOut:nr([.33,1.53,.69,.99])};function no(t){return"function"==typeof t&&"applyToOptions"in t}class nl extends i8{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tt("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return no(t)&&ns()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?ns()?iT(e,i):"ease-out":iZ(e)?nr(e):Array.isArray(e)?e.map(e=>t(e,i)||na.easeOut):na[e]}(o,s);Array.isArray(c)&&(h.easing=c);let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=i4(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),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=ir(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&&ni())?(this.animation.timeline=t,ta):e(this)}}let nu={anticipate:i_,backInOut:iH,circInOut:iG};class nh extends nl{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nu&&(t.ease=nu[t.ease])}(t),i6(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nt({...r,autoplay:!1}),o=ir(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let nc=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tN.test(t)||"0"===t)&&!t.startsWith("url(")),nd=new Set(["opacity","clipPath","filter","transform"]),np=ne(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nm extends i8{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tQ.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tw;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=tQ.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=nc(s,e),o=nc(r,e);return Q(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||no(i))&&n)}(t,s,r,a)&&((to.instantAnimations||!o)&&u?.(i4(t,i,e)),t[0]=t[t.length-1],ie(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},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return np()&&i&&nd.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(h)?new nh({...h,element:h.motionValue.owner.current}):new nt(h);c.finished.then(()=>this.notifyFinished()).catch(ta),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}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(),ty=!0,tx(),tv(),ty=!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 nf=t=>null!==t,ng={type:"spring",stiffness:500,damping:25,restSpeed:10},ny={type:"keyframes",duration:.8},nv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3}
1,nx=(t,e,i,n={},s,r)=>a=>{let o=e8(n,t)||{},l=o.delay||n.delay||0,{elapsed:h=0}=n;h-=ir(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?ny:u.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:ng:nv)(t,c)),c.duration&&(c.duration=ir(c.duration)),c.repeatDelay&&(c.repeatDelay=ir(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ie(c),0===c.delay&&(d=!0)),(to.instantAnimations||to.skipAnimations)&&(d=!0,ie(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let n=t.filter(nf),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[s]}(c.keyframes,o);if(void 0!==t)return void th.update(()=>{c.onUpdate(t),c.onComplete()})}return o.isSync?new nt(c):new nm(c)};function nw(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:a,...o}=e;n&&(r=n);let l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let a={delay:i,...e8(r||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(s)&&s===h&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[e2];if(i){let t=window.MotionHandoffAnimation(i,e,th);null!==t&&(a.startTime=t,c=!0)}}it(t,e),n.start(nx(e,n,s,t.shouldReduceMotion&&I.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{th.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=e6(t,e)||{};for(let e in s={...s,...i}){var r;let i=e7(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t3(i))}}(t,a)})}),l}function nb(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function nT(t,e,i={}){let n=e6(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nw(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nT(l,e,{...a,delay:i+("function"==typeof n?0:n)+nb(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}function nP(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 nA=ec.length,nS=[...eh].reverse(),nM=eh.length;function nE(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nC(){return{animate:nE(!0),whileInView:nE(),whileHover:nE(),whileTap:nE(),whileDrag:nE(),whileFocus:nE(),exit:nE()}}class nV{constructor(t){this.isMounted=!1,this.node=t}update(){}}let nk=0,nD={x:!1,y:!1};function nj(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nR=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nL(t){return{point:{x:t.pageX,y:t.pageY}}}function nF(t,e,i,n){return nj(t,e,t=>nR(t)&&i(t,nL(t)),n)}function nB(t){return t.max-t.min}function nO(t,e,i,n=.5){t.origin=n,t.originPoint=M(e.min,e.max,t.origin),t.scale=nB(i)/nB(e),t.translate=M(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 nI(t,e,i,n){nO(t.x,e.x,i.x,n?n.originX:void 0),nO(t.y,e.y,i.y,n?n.originY:void 0)}function nN(t,e,i){t.min=i.min+e.min,t.max=t.min+nB(e)}function nU(t,e,i){t.min=e.min-i.min,t.max=t.min+nB(e)}function nW(t,e,i){nU(t.x,e.x,i.x),nU(t.y,e.y,i.y)}function n$(t){return[t("x"),t("y")]}let nz=({current:t})=>t?t.ownerDocument.defaultView:null,nY=(t,e)=>Math.abs(t-e);class nX{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=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=nq(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(nY(t.x,e.x)**2+nY(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=td;this.history.push({...r,timestamp:a});
1let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nH(e,this.transformPagePoint),th.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nq("pointercancel"===t.type?this.lastMoveEventInfo:nH(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!nR(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=nH(nL(t),this.transformPagePoint),{point:o}=a,{timestamp:l}=td;this.history=[{...o,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,nq(a,this.history)),this.removeListeners=is(nF(this.contextWindow,"pointermove",this.handlePointerMove),nF(this.contextWindow,"pointerup",this.handlePointerUp),nF(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tc(this.updatePoint)}}function nH(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 nq({point:t},e){return{point:t,delta:n_(t,nK(e)),offset:n_(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=nK(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>ir(.1)));)e--;if(!i)return{x:0,y:0};let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function nK(t){return t[t.length-1]}function nG(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 nZ(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 nJ(t,e,i){return{min:nQ(t,e),max:nQ(t,i)}}function nQ(t,e){return"number"==typeof t?t:t[e]||0}let n0=new WeakMap;class n1{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=ei(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nL(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nD[t])return null;else return nD[t]=!0,()=>{nD[t]=!1};return nD.x||nD.y?null:(nD.x=nD.y=!0,()=>{nD.x=nD.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(X.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nB(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&th.postRender(()=>s(t,e)),it(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>n$(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nX(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nz(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&th.postRender(()=>a(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||!n5(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?M(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?M(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&e5(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:nG(t.x,i,s),y:nG(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:nJ(t,"left","right"),y:nJ(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e5(e))return!1;let n=e.current;tt(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
1let r=function(t,e,i){let n=O(t,i),{scroll:s}=e;return s&&(L(n.x,s.offset.x),L(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:nZ(t.x,r.x),y:nZ(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=S(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(n$(a=>{if(!n5(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return it(this.visualElement,t),i.start(nx(t,i,0,e,this.visualElement,!1))}stopAnimation(){n$(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n$(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){n$(e=>{let{drag:i}=this.getProps();if(!n5(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-M(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e5(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,o,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,a=nB(i),(o=nB(s))>a?r=i0(s.min,s.max-a,i.min):a>o&&(r=i0(i.min,i.max-o,s.min)),N(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),n$(e=>{if(!n5(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(M(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;n0.set(this.visualElement,this);let t=nF(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e5(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()),th.read(e);let s=nj(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function n5(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let n2=t=>(e,i)=>{t&&th.postRender(()=>t(e,i))};var n3=a;let n4={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n9(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n6={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!H.test(t))return t;else t=parseFloat(t);let i=n9(t,e.target.x),n=n9(t,e.target.y);return`${i}% ${n}%`}},n8=!1;class n7 extends n3.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;for(let t in se)eA[t]=se[t],b(t)&&(eA[t].isCSSVariable=!0);s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),n8&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),n4.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n8=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||th.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t9.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n8=!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 st(t){let[e,i]=function(t=!0){let e=(0,a.useContext)(eK);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,a.useId)();(0,a.useEffect)(()=>
1{if(t)return s(r)},[t]);let o=(0,a.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,n3.useContext)(eI);return(0,r.jsx)(n7,{...t,layoutGroup:n,switchLayoutGroup:(0,n3.useContext)(e3),isPresent:e,safeToRemove:i})}let se={borderRadius:{...n6,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n6,borderTopRightRadius:n6,borderBottomLeftRadius:n6,borderBottomRightRadius:n6,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tN.parse(t);if(n.length>5)return t;let s=tN.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=M(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function si(t){return"object"==typeof t&&null!==t}function sn(t){return si(t)&&"ownerSVGElement"in t}function ss(t){return sn(t)&&"svg"===t.tagName}function sr(t,e,i){let n=tZ(t)?t:t3(t);return n.start(nx("",n,e,i)),n.animation}let sa=(t,e)=>t.depth-e.depth;class so{constructor(){this.children=[],this.isDirty=!1}add(t){t0(this.children,t),this.isDirty=!0}remove(t){t1(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sa),this.isDirty=!1,this.children.forEach(t)}}let sl=["TopLeft","TopRight","BottomLeft","BottomRight"],su=sl.length,sh=t=>"string"==typeof t?parseFloat(t):t,sc=t=>"number"==typeof t||H.test(t);function sd(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sp=sf(0,.5,iK),sm=sf(.5,.95,ta);function sf(t,e,i){return n=>n<t?0:n>e?1:i(i0(t,e,n))}function sg(t,e){t.min=e.min,t.max=e.max}function sy(t,e){sg(t.x,e.x),sg(t.y,e.y)}function sv(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sx(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sw(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(X.test(e)&&(e=parseFloat(e),e=M(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=M(r.min,r.max,n);t===r&&(o-=e),t.min=sx(t.min,e,i,o,s),t.max=sx(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sb=["x","scaleX","originX"],sT=["y","scaleY","originY"];function sP(t,e,i,n){sw(t.x,e,sb,i?i.x:void 0,n?n.x:void 0),sw(t.y,e,sT,i?i.y:void 0,n?n.y:void 0)}function sA(t){return 0===t.translate&&1===t.scale}function sS(t){return sA(t.x)&&sA(t.y)}function sM(t,e){return t.min===e.min&&t.max===e.max}function sE(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sC(t,e){return sE(t.x,e.x)&&sE(t.y,e.y)}function sV(t){return nB(t.x)/nB(t.y)}function sk(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sD{constructor(){this.members=[]}add(t){t0(this.members,t),t.scheduleRender()}remove(t){if(t1(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 sj=["","X","Y","Z"],sR=0;
1function sL(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sF({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sR++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(sI),this.nodes.forEach(sX),this.nodes.forEach(sH),this.nodes.forEach(sN)},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 so)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t5),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=sn(e)&&!ss(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;th.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=tQ.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tc(r),s(i-250))},th.setup(r,!0),i=()=>tc(r),n4.hasAnimatedSinceResize&&(n4.hasAnimatedSinceResize=!1,this.nodes.forEach(sY))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||sJ,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!sC(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={...e8(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||sY(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tc(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(s_),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[e2];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",th,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}
1(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.forEach(sW);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s$);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sz),this.nodes.forEach(sB),this.nodes.forEach(sO)):this.nodes.forEach(s$),this.clearAllSnapshots();let t=tQ.now();td.delta=N(0,1e3/60,t-td.timestamp),td.timestamp=t,td.isProcessing=!0,tp.update.process(td),tp.preRender.process(td),tp.render.process(td),td.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sU),this.sharedNodes.forEach(sq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,th.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){th.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nB(this.snapshot.measuredBox.x)||nB(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=ei(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sS(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||V(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),s1((e=n).x),s1(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return ei();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(s2))){let{scroll:t}=this.root;t&&(L(e.x,t.offset.x),L(e.y,t.offset.y))}return e}removeElementScroll(t){let e=ei();if(sy(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sy(e,t),L(e.x,s.offset.x),L(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=ei();sy(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&&B(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),V(n.latestValues)&&B(i,n.latestValues)}return V(this.latestValues)&&B(i,this.latestValues),i}removeTransform(t){let e=ei();sy(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!V(i.latestValues))continue;C(i.latestValues)&&i.updateSnapshot();let n=ei();sy(n,i.measurePageBox()),sP(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return V(this.latestValues)&&sP(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!==td.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=td.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ei(),this.targetWithTransforms=ei()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,nN(a.x,o.x,l.x),nN(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sy(this.target,this.layout.layoutBox),R(this.target,this.targetDelta)):sy(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||C(this.parent.latestValues)||k(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=ei(),this.relativeTargetOrigin=ei(),nW(this.relativeTargetOrigin,e,i),sy(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===td.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sy(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&B(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,R(t,r)),n&&V(s.latestValues)&&B(t,s.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=ei());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sv(this.prevProjectionDelta.x,this.projectionDelta.x),sv(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nI(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sk(this.projectionDelta.x,this.prevProjectionDelta.x)&&sk(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=et(),this.projectionDelta=et(),this.projectionDeltaWithTransform=et()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=et();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=ei(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(sZ));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sK(a.x,t.x,n),sK(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;nW(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,sG(p.x,m.x,f.x,g),sG(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,d=i,sM(u.x,d.x)&&sM(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=ei()),sy(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=M(0,i.opacity??1,sp(n)),t.opacityExit=M(e.opacity??1,0,sm(n))):r&&(t.opacity=M(e.opacity??1,i.opacity??1,n));for(let s=0;s<su;s++){let r=`border${sl[s]}Radius`,a=sd(e,r),o=sd(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sc(a)===sc(o)?(t[r]=Math.max(M(sh(a),sh(o),n),0),(X.test(o)||X.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=M(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,c,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&&(tc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=th.update(()=>{n4.hasAnimatedSinceResize=!0,ia.layout++,this.motionValue||(this.motionValue=t3(0)),this.currentAnimation=sr(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ia.layout--},onComplete:()=>{ia.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&s5(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||ei();let e=nB(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nB(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sy(e,i),B(e,s),nI(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sD),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&&sL("z",t,n,this.animationValues);for(let e=0;e<sj.length;e++)sL(`rotate${sj[e]}`,t,n,this.animationValues),sL(`skew${sj[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eZ(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=eZ(e?.pointerEvents)||""),this.hasProjected&&!V(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eA){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eA[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eZ(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(sW),this.root.sharedNodes.clear()}}}function sB(t){t.updateLayout()}function sO(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?n$(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nB(n);n.min=i[t].min,n.max=n.min+s}):s5(s,e.layoutBox,i)&&n$(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=nB(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=et();nI(a,i,e.layoutBox);let o=et();r?nI(o,t.applyTransform(n,!0),e.measuredBox):nI(o,i,e.layoutBox);let l=!sS(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=ei();nW(a,e.layoutBox,s.layoutBox);let o=ei();nW(o,i,r.layoutBox),sC(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sI(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 sN(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function sU(t){t.clearSnapshot()}function sW(t){t.clearMeasurements()}function s$(t){t.isLayoutDirty=!1}function sz(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function sY(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function sX(t){t.resolveTargetDelta()}function sH(t){t.calcProjection()}function s_(t){t.resetSkewAndRotation()}function sq(t){t.removeLeadSnapshot()}function sK(t,e,i){t.translate=M(e.translate,0,i),t.scale=M(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sG(t,e,i,n){t.min=M(e.min,i.min,n),t.max=M(e.max,i.max,n)}function sZ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sJ={duration:.45,ease:[.4,0,.1,1]},sQ=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),s0=sQ("applewebkit/")&&!sQ("chrome/")?Math.round:ta;function s1(t){t.min=s0(t.min),t.max=s0(t.max)}function s5(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sV(e)-sV(i)))}function s2(t){return t!==t.root&&t.scroll?.wasRoot}let s3=sF({attachResizeListener:(t,e)=>nj(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s4={current:void 0},s9=sF({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!s4.current){let t=new s3({});t.mount(window),t.setOptions({layoutScroll:!0}),s4.current=t}return s4.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function s6(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function s8(t,e){let i=s6(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function s7(t){return!("touch"===t.pointerType||nD.x||nD.y)}function rt(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&th.postRender(()=>s(e,nL(e)))}let re=(t,e)=>!!e&&(t===e||re(t,e.parentElement)),ri=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rn=new WeakSet;function rs(t){return e=>{"Enter"===e.key&&t(e)}}function rr(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function ra(t){return nR(t)&&!(nD.x||nD.y)}function ro(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&th.postRender(()=>s(e,nL(e)))}let rl=new WeakMap,ru=new WeakMap,rh=t=>{let e=rl.get(t.target);e&&e(t)},rc=t=>{t.forEach(rh)},rd={some:0,all:1},rp=function(t,e){if("u"<typeof Proxy)return e9;let i=new Map,n=(i,n)=>e9(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,e9(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends nV{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=>nT(t,e,i)));else if("string"==typeof e)n=nT(t,e,i);else{let s="function"==typeof e?e6(t,e,i.custom):e;n=Promise.all(nw(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nC(),n=!0,s=e=>(i,n)=>{let s=e6(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function r(r){let{props:a}=t,o=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<nA;t++){let n=ec[t],s=e.props[n];(eu(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<nM;e++){var d,p;let m=nS[e],f=i[m],g=void 0!==a[m]?a[m]:o[m],y=eu(g),v=m===r?f.isActive:null;!1===v&&(c=e);let x=g===o[m]&&g!==a[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===v||!g&&!f.prevProp||el(g)||"boolean"==typeof g)continue;let w=(d=f.prevProp,"string"==typeof(p=g)?p!==d:!!Array.isArray(p)&&!nP(p,d)),b=w||m===r&&f.isActive&&!x&&y||e>c&&y,T=!1,P=Array.isArray(g)?g:[g],A=P.reduce(s(m),{});!1===v&&(A={});let{prevResolvedValues:S={}}=f,M={...S,...A},E=e=>{b=!0,u.has(e)&&(T=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in M){let e=A[t],i=S[t];if(!h.hasOwnProperty(t))(e7(e)&&e7(i)?nP(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=A,f.isActive&&(h={...h,...A}),n&&t.blockInitialAnimation&&(b=!1);let C=x&&w,V=!C||T;b&&V&&l.push(...P.map(e=>{let i={type:m};if("string"==typeof e&&n&&!C&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=e6(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nb(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=e6(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=r(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nC()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(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 nV{constructor(){super(...arguments),this.id=nk++}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 nV{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:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rd[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;ru.has(i)||ru.set(i,{});let n=ru.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rc,{root:t,...e})),n[s]}(o),rl.set(t,l),e.observe(t),()=>{rl.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nV{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=s8(t,i),a=t=>{let n=t.currentTarget;if(!ra(t))return;rn.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rn.has(n)&&rn.delete(n),ra(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||re(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),si(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rs(()=>{if(rn.has(i))return;rr(i,"down");let t=rs(()=>{rr(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rr(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),ri.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(ro(this.node,e,"Start"),(t,{success:e})=>ro(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends nV{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=is(nj(this.node.current,"focus",()=>this.onFocus()),nj(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nV{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=s8(t,i),a=t=>{if(!s7(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{s7(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(rt(this.node,e,"Start"),t=>rt(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends nV{constructor(){super(...arguments),this.removePointerDownListener=ta}onPointerDown(t){this.session=new nX(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nz(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:n2(t),onStart:n2(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&th.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nF(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 nV{constructor(t){super(t),this.removeGroupControls=ta,this.removeListeners=ta,this.controls=new n1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ta}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:s9,MeasureLayout:st},layout:{ProjectionNode:s9,MeasureLayout:st}},(t,e)=>eO(t)?new eF(e):new eE(e,{allowProjection:t!==a.Fragment}));class rm{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){let e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return rf(this.animations,"duration")}get iterationDuration(){return rf(this.animations,"iterationDuration")}
1runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function rf(t,e){let i=0;for(let n=0;n<t.length;n++){let s=t[n][e];null!==s&&s>i&&(i=s)}return i}class rg extends rm{then(t,e){return this.finished.finally(t).then(()=>{})}}function ry(t,e){var i;let n;return iW(t)?t[i=t.length,((e-0)%(n=i-0)+n)%n+0]:t}function rv(t){return"object"==typeof t&&!Array.isArray(t)}function rx(t,e,i,n){return"string"==typeof t&&rv(e)?s6(t,i,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function rw(t,e,i,n){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):n.get(e)??t}function rb(t,e){return t.at!==e.at?t.at-e.at:null===t.value?1:null===e.value?-1:0}function rT(t,e){return e.has(t)||e.set(t,{}),e.get(t)}function rP(t,e){return e[t]||(e[t]=[]),e[t]}let rA=t=>"number"==typeof t,rS=t=>t.every(rA);class rM extends ey{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(e in t){let i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return ei()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}function rE(t){let e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=sn(t)&&!ss(t)?new eF(e):new eE(e);i.mount(t),eo.set(t,i)}function rC(t){let e=new rM({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),eo.set(t,e)}function rV(t,e,i,n){let s=[];if(tZ(t)||"number"==typeof t||"string"==typeof t&&!rv(e))s.push(sr(t,rv(e)&&e.default||e,i&&i.default||i));else{let r=rx(t,e,n),a=r.length;tt(!!a,"No valid elements provided.","no-valid-elements");for(let t=0;t<a;t++){let n=r[t];tt(null!==n,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");let o=n instanceof Element?rE:rC;eo.has(n)||o(n);let l=eo.get(n),u={...i};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,a)),s.push(...nw(l,{...e,transition:u},{}))}}return s}let rk=function(t,e,i){let n,s=[];if(Array.isArray(t)&&t.some(Array.isArray)){let i;i=[],(function(t,{defaultTransition:e={},...i}={},n,s){let r=e.duration||.3,a=new Map,o=new Map,l={},u=new Map,h=0,c=0,d=0;for(let i=0;i<t.length;i++){let a=t[i];if("string"==typeof a){u.set(a,c);continue}if(!Array.isArray(a)){u.set(a.name,rw(c,a.at,h,u));continue}let[f,g,y={}]=a;void 0!==y.at&&(c=rw(c,y.at,h,u));let v=0,x=(t,i,n,a=0,o=0)=>{var l;let u=Array.isArray(l=t)?l:[l],{delay:h=0,times:p=i5(u),type:m="keyframes",repeat:f,repeatType:g,repeatDelay:y=0,...x}=i,{ease:w=e.ease||"easeOut",duration:b}=i,T="function"==typeof h?h(a,o):h,P=u.length,A=no(m)?m:s?.[m||"keyframes"];if(P<=2&&A){let t=100;2===P&&rS(u)&&(t=Math.abs(u[1]-u[0]));let e={...x};void 0!==b&&(e.duration=ir(b));let i=iA(e,t,A);w=i.ease,b=i.duration}b??(b=r);let S=c+T;1===p.length&&0===p[0]&&(p[1]=1);let E=p.length-u.length;if(E>0&&i1(p,E),1===u.length&&u.unshift(null),f){tt(f<20,"Repeat count too high, must be less than 20","repeat-count-high"),b*=f+1;let t=[...u],e=[...p],i=[...w=Array.isArray(w)?[...w]:[w]];for(let n=0;n<f;n++){u.push(...t);for(let s=0;s<t.length;s++)p.push(e[s]+(n+1)),w.push(0===s?"linear":ry(i,s-1))}for(let t=0;t<p.length;t++)p[t]=p[t]/(f+1)}let C=S+b;!function(t,e,i,n,s,r){for(let e=0;e<t.length;e++){let i=t[e];i.at>s&&i.at<r&&(t1(t,i),e--)}for(let a=0;a<e.length;a++)t.push({value:e[a],at:M(s,r,n[a]),easing:ry(i,a)})}(n,u,w,p,S,C),v=Math.max(T+b,v),d=Math.max(C,d)};if(tZ(f))x(g,y,rP("default",rT(f,o)));else{let t=rx(f,g,n,l),e=t.length;for(let i=0;i<e;i++){let n=rT(t[i],o);for(let t in g){var p,m;x(g[t],(p=y,m=t,p&&p[m]?{...p,...p[m]}:{...p}),rP(t,n),i,e)}}}h=c,c+=v}return o.forEach((t,n)=>{for(let s in t){let r=t[s];r.sort(rb);let o=[],l=[],u=[];for(let t=0;t<r.length;t++){let{at:e,value:i,easing:n}=r[t];o.push(i),l.push(i0(0,d,e)),u.push(n||"easeOut")}0!==l[0]&&(l.unshift(0),o.unshift(o[0]),u.unshift("easeInOut")),1!==l[l.length-1]&&(l.push(1),o.push(null)),a.has(n)||a.set(n,{keyframes:{},transition:{}});let h=a.get(n);h.keyframes[s]=o,h.transition[s]={...e,duration:d,ease:u,times:l,...i}}}),a})(t,e,void 0,{spring:iL}
1).forEach(({keyframes:t,transition:e},n)=>{i.push(...rV(n,t,e))}),s=i}else{let{onComplete:r,...a}=i||{};"function"==typeof r&&(n=r),s=rV(t,e,a,void 0)}let r=new rg(s);return n&&r.finished.then(n),r};function rD(t){let e=eG(()=>t3(t)),{isStatic:i}=(0,a.useContext)(eU);if(i){let[,i]=(0,a.useState)(t);(0,a.useEffect)(()=>e.on("change",i),[])}return e}var rj=t.i(86425),rR=t.i(8799);function rL({children:t,content:e}){return(0,r.jsxs)(rj.DialogTrigger,{children:[t,(0,r.jsx)(rR.ModalOverlay,{className:"fixed inset-0 z-50 bg-canvas transition-opacity duration-300 data-[entering]:opacity-0 data-[exiting]:opacity-0",children:(0,r.jsx)(rR.Modal,{className:"fixed inset-0 outline-none transition-all duration-300 data-[exiting]:delay-[50ms] data-[entering]:opacity-0 data-[entering]:scale-95 data-[entering]:-translate-y-2 data-[exiting]:opacity-0 data-[exiting]:scale-95 data-[exiting]:-translate-y-2",children:(0,r.jsx)(rj.Dialog,{className:"outline-none w-full h-full",children:({close:t})=>e({close:t})})})})]})}t.i(77823);var rF=t.i(81968);let rB={type:"spring",stiffness:400,damping:40},rO={type:"spring",stiffness:300,damping:35},rI={type:"spring",stiffness:250,damping:30},rN={duration:0},rU={ArrowLeft:[1,0],ArrowRight:[-1,0],ArrowUp:[0,1],ArrowDown:[0,-1]};function rW(t,e){let{w:i,h:n}=e,s=Math.max(0,(i*t-window.innerWidth)/2),r=Math.max(0,(n*t-window.innerHeight)/2);return{minX:-s,maxX:s,minY:-r,maxY:r}}function r$(t,e,i){return Math.min(i,Math.max(e,t))}function rz(t,e,i){t.classList.remove("cursor-zoom-in","cursor-zoom-out","cursor-grab","cursor-grabbing"),e<=1?t.classList.add("cursor-zoom-in"):e>=4?t.classList.add("cursor-zoom-out"):t.classList.add(i?"cursor-grabbing":"cursor-grab")}function rY({src:t,alt:e,close:i}){var n;let s=(0,a.useRef)(null),l=(0,a.useRef)(null),u=(0,a.useRef)({w:0,h:0}),h=(0,a.useRef)(new Map),c=(0,a.useRef)(null),d=(0,a.useRef)(null),p=(0,a.useRef)(!1),m=(0,a.useRef)(!1),f=(0,a.useRef)(null),g=(0,a.useRef)(null),y=rD(1),v=rD(0),x=rD(0),w=rD(1),b=function(){er.current||ea();let[t]=(0,a.useState)(es.current);return t}(),T=b?rN:rB,P=b?rN:rO,A=(0,a.useCallback)(()=>{let{minX:t,maxX:e,minY:i,maxY:n}=rW(y.get(),u.current),s=v.get(),r=x.get(),a=r$(s,t,e),o=r$(r,i,n);s!==a&&rk(v,a,T),r!==o&&rk(x,o,T)},[y,v,x,T]),S=(0,a.useCallback)((t,e)=>{if(y.get()>1)rk(y,1,P),rk(v,0,P),rk(x,0,P);else{let i=window.innerWidth/2,n=window.innerHeight/2;rk(y,2,P),rk(v,-(t-i),P),rk(x,-(e-n),P)}},[y,v,x,P]);n=t=>{l.current&&rz(l.current,Math.max(1,t),m.current)},(0,a.useInsertionEffect)(()=>y.on("change",n),[y,"change",n]),(0,a.useEffect)(()=>{function t(){let t=f.current;t&&(u.current={w:t.offsetWidth,h:t.offsetHeight})}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),(0,a.useEffect)(()=>{let t=s.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),()=>t.removeEventListener("wheel",e);function e(t){t.preventDefault();let e=y.get(),i=r$(e+-(.005*t.deltaY),1,4),n=window.innerWidth/2,s=window.innerHeight/2,r=i/e,a=v.get(),o=x.get(),l=a-(t.clientX-n-a)*(r-1),u=o-(t.clientY-s-o)*(r-1);y.set(i),v.set(l),x.set(u),i<=1&&(rk(v,0,P),rk(x,0,P))}},[y,v,x,P]),(0,a.useEffect)(()=>{function t(t){if(rk(y,t,rO),t<=1){rk(v,0,rO),rk(x,0,rO);return}let e=rW(t,u.current);rk(v,r$(v.get(),e.minX,e.maxX),rO),rk(x,r$(x.get(),e.minY,e.maxY),rO)}function e(e){let i=rU[e.key];if("+"!==e.key&&"="!==e.key&&"-"!==e.key&&"_"!==e.key&&"0"!==e.key&&!i)return;e.preventDefault();let n=y.get();if("+"===e.key||"="===e.key)t(r$(n+.5,1,4));else if("-"===e.key||"_"===e.key)t(r$(n-.5,1,4));else if("0"===e.key)t(1);else if(n>1){let[t,e]=i,{minX:s,maxX:r,minY:a,maxY:o}=rW(n,u.current);t&&rk(v,r$(v.get()+60*t,s,r),rB),e&&rk(x,r$(x.get()+60*e,a,o),rB)}}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[y,v,x]),(0,a.useEffect)(()=>{let t=s.current;if(t)return t.addEventListener("pointerdown",e),t.addEventListener("pointermove",i),t.addEventListener("pointerup",n),t.addEventListener("pointercancel",r),t.addEventListener("touchmove",a,{passive:!1}),()=>{t.removeEventListener("pointerdown",e),t.removeEventListener("pointermove",i),t.removeEventListener("pointerup",n),t.removeEventListener("pointercancel",r),t.removeEventListener("touchmove",a)};function e(e){if(t.setPointerCapture(e.pointerId),h.current.set(e.pointerId,{x:e.clientX,y:e.clientY}),p.current=!1,2===h.current.size){let t=[...h.current.values()],e=t[1].x-t[0].x,i=t[1].y-t[0].y,n=Math.sqrt(e*e+i*i),s=(t[0].x+t[1].x)/2,r=(t[0].y+t[1].y)/2;c.current={startDist:n,startScale:y.get(),startPanX:v.get(),startPanY:x.get(),startMidX:s,startMidY:r}}}function i(t){if(h.current.has(t.pointerId)&&(h.current.set(t.pointerId,{x:t.clientX,y:t.clientY}),2===h.current.size&&c.current)){let t=[...h.current.values()],e=t[1].x-t[0].x,i=t[1].y-t[0].y,n=Math.sqrt(e*e+i*i),s=c.current,r=r$(s.startScale*(n/s.startDist),1,4),a=r/s.startScale,o=window.innerWidth/2,l=window.innerHeight/2,u=s.startPanX-(s.startMidX-o)*(a-1),d=s.startPanY-(s.startMidY-l)*(a-1);y.set(r),v.set(u),x.set(d)}}function n(t){var e,i;let n,s;if(h.current.delete(t.pointerId),h.current.size<2&&c.current){c.current=null,p.current=!0,d.current=null,A();return}p.current||(e=t.clientX,i=t.clientY,n=Date.now(),(s=d.current)&&n-s.time<300&&30>Math.abs(e-s.x)&&30>Math.abs(i-s.y)?(d.current=null,0):(d.current={time:n,x:e,y:i},1))||S(t.clientX,t.clientY)}function r(t){h.current.delete(t.pointerId),c.current&&(c.current=null,p.current=!0,A())}function a(t){h.current.size>=2&&t.preventDefault()}},[y,v,x,A,S]);let M=(0,a.useCallback)(()=>{g.current&&(cancelAnimationFrame(g.current),g.current=null),m.current=!0,l.current&&rz(l.current,y.get(),!0)},[y]),E=(0,a.useCallback)((t,e)=>{if(h.current.size>1)return;let i=y.get(),n=v.get(),s=x.get();if(i>1){let{minX:t,maxX:r,minY:a,maxY:o}=rW(i,u.current),l=n+e.delta.x,h=s+e.delta.y;v.set(l<t?t+(l-t)*.15:l>r?r+(l-r)*.15:l),x.set(h<a?a+(h-a)*.15:h>o?o+(h-o)*.15:h)}else x.set(s+e.delta.y),v.set(n+.3*e.delta.x)},[y,v,x]),C=(0,a.useCallback)((t,e)=>{let{minX:i,maxX:n,minY:s,maxY:r}=rW(y.get(),u.current),a=t,o=e,l=null;g.current=requestAnimationFrame(function t(e){if(null===l){l=e,g.current=requestAnimationFrame(t);return}let u=Math.min((e-l)/1e3,1/30);l=e;let h=Math.pow(.97,60*u);if(a*=h,o*=h,.5>Math.abs(a)&&.5>Math.abs(o))return void A();let c=v.get(),d=x.get(),p=c+a*u,m=d+o*u;p<i?(p=i+(p-i)*.15,a*=.5):p>n&&(p=n+(p-n)*.15,a*=.5),m<s?(m=s+(m-s)*.15,o*=.5):m>r&&(m=r+(m-r)*.15,o*=.5),v.set(p),x.set(m),g.current=requestAnimationFrame(t)})},[y,v,x,A]),V=(0,a.useCallback)((t,e)=>
1{if(m.current=!1,!(h.current.size>1))if(1>=y.get()){let t=Math.abs(e.velocity.y),n=Math.abs(x.get());if(t>500||n>150)if(b)i();else{let t=x.get()>=0?1:-1;rk(x,t*(window.innerHeight+300),{...rI,onComplete:i}),rk(w,0,{duration:.25})}else rk(v,0,P),rk(x,0,P)}else(Math.abs(e.velocity.x)>.5||Math.abs(e.velocity.y)>.5)&&!b?C(e.velocity.x,e.velocity.y):A()},[y,v,x,w,i,A,C,b,P]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{ref:l,onPress:()=>1>=y.get()&&i(),className:"w-full h-full flex items-center justify-center cursor-zoom-in","aria-label":"Close image",children:(0,r.jsx)(rp.div,{ref:s,style:{x:v,y:x,scale:y,opacity:w},onPanStart:M,onPan:E,onPanEnd:V,onClick:t=>{y.get()>1&&t.stopPropagation()},className:"touch-none select-none",children:(0,r.jsx)("img",{ref:f,src:t,alt:e,onLoad:()=>{let t=f.current;u.current={w:t.offsetWidth,h:t.offsetHeight}},draggable:!1,className:"block max-w-[calc(100vw-4rem)] max-h-[calc(100vh-4rem)] object-contain pointer-events-none rounded-sm"})})}),(0,r.jsx)(o.Button,{onPress:i,"aria-label":"Close",className:"fixed top-4 right-4 p-2 rounded-sm bg-[light-dark(theme(--color-neutral-01-50/.8),theme(--color-fern-1100/.8))] backdrop-blur-md shadow-reduced cursor-pointer focus-visible:outline-2 focus-visible:outline-offset-2",children:(0,r.jsx)(rF.default,{icon:"close",size:24})})]})}function rX({children:t,src:e,alt:i}){return(0,r.jsx)(rL,{content:({close:t})=>(0,r.jsx)(rY,{src:e,alt:i,close:t}),children:(0,r.jsx)(o.Button,{className:"group cursor-zoom-in text-left my-4 block w-full","aria-label":`Enlarge image: ${i}`,children:(0,r.jsxs)("span",{className:"relative block",children:[t,(0,r.jsx)("span",{"aria-hidden":"true",className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 transition-opacity ease-out duration-200 bg-[light-dark(theme(--color-neutral-01-50/.8),theme(--color-fern-1100/.8))] backdrop-blur-md shadow-reduced p-2 rounded-sm",children:(0,r.jsx)(rF.default,{icon:"enlarge",size:16})})]})})})}let rH=t=>(0,r.jsx)("figcaption",{className:"text-body/60 font-mono text-base tracking-[-0.03em] leading-tight pt-2",...t});t.s(["figureComponents",0,{figure:t=>(0,r.jsx)("figure",{...t}),figcaption:rH,Figure:({imageShadow:t,enlargeable:e,src:i,alt:n,className:s="",...a})=>{let o=`${t?"[&_img]:drop-shadow-image [&_img]:rounded-sm":""} ${s}`.trim()||void 0;return e?(0,r.jsx)(rX,{src:i,alt:n,className:"group/modal",children:(0,r.jsx)("figure",{className:o,...a})}):(0,r.jsx)("figure",{className:o,...a})},Figcaption:rH,Fig:t=>(0,r.jsxs)("span",{className:"text-heading/40 uppercase",children:["Fig. ",t.children]})}],42549)}]);

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.