1import{r as v,j as W}from"./core-CQD1A4FG.js";import{n as K,i as ee,m as H,s as G,c as js,a as go,g as yo,b as vo,p as mt,d as xo,e as To,f as Tn,h as Po,j as So,G as ks,k as je,l as Is,o as Ao,q as Vo,r as bo,t as wo,u as Co}from"./vendor-Fzc1iQjg.js";const Mt=v.createContext({});function ke(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const ne=v.createContext(null),Ie=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Do extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Mo({children:t,isPresent:e}){const n=v.useId(),s=v.useRef(null),i=v.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=v.useContext(Ie);return v.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(e||!s.current||!o||!a)return;s.current.dataset.motionPopId=n;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${o}px !important; 5 height: ${a}px !important; 6 top: ${l}px !important; 7 left: ${u}px !important; 8 } 9 `),()=>{document.head.removeChild(c)}},[e]),W.jsx(Do,{isPresent:e,childRef:s,sizeRef:i,children:v.cloneElement(t,{ref:s})})}const Ro=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o})=>{const a=ke(Eo),l=v.useId(),u=v.useCallback(h=>{a.set(h,!0);for(const f of a.values())if(!f)return;s&&s()},[a,s]),c=v.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u,register:h=>(a.set(h,!1),()=>a.delete(h))}),r?[Math.random(),u]:[n,u]);return v.useMemo(()=>{a.forEach((h,f)=>a.set(f,!1))},[n]),v.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),o==="popLayout"&&(t=W.jsx(Mo,{isPresent:n,children:t})),W.jsx(ne.Provider,{value:c,children:t})};function Eo(){return new Map}function Os(t=!0){const e=v.useContext(ne);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=v.useId();v.useEffect(()=>{t&&i(r)},[t]);const o=v.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const _t=t=>t.key||"";function Pn(t){const e=[];return v.Children.forEach(t,n=>{v.isValidElement(n)&&e.push(n)}),e}const Oe=typeof window<"u",Ne=Oe?v.useLayoutEffect:v.useEffect,rc=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1})=>{const[a,l]=Os(o),u=v.useMemo(()=>Pn(t),[t]),c=o&&!a?[]:u.map(_t),h=v.useRef(!0),f=v.useRef(u),d=ke(()=>new Map),[m,p]=v.useState(u),[y,g]=v.useState(u);Ne(()=>{h.current=!1,f.current=u;for(let A=0;A<y.length;A++){const T=_t(y[A]);c.includes(T)?d.delete(T):d.get(T)!==!0&&d.set(T,!1)}},[y,c.length,c.join("-")]);const x=[];if(u!==m){let A=[...u];for(let T=0;T<y.length;T++){const b=y[T],C=_t(b);c.includes(C)||(A.splice(T,0,b),x.push(b))}r==="wait"&&x.length&&(A=x),g(Pn(A)),p(u);return}const{forceRender:P}=v.useContext(Mt);return W.jsx(W.Fragment,{children:y.map(A=>{const T=_t(A),b=o&&!a?!1:u===y||c.includes(T),C=()=>{if(d.has(T))d.set(T,!0);else return;let V=!0;d.forEach(w=>{w||(V=!1)}),V&&(P?.(),g(f.current),o&&l?.(),s&&s())};return W.jsx(Ro,{isPresent:b,initial:!h.current||n?void 0:!1,custom:b?void 0:e,presenceAffectsLayout:i,mode:r,onExitComplete:b?void 0:C,children:A},T)})})},Lo=v.createContext(null);function Fo(){const t=v.useRef(!1);return Ne(()=>(t.current=!0,()=>{t.current=!1}),[]),t}const Bo={useManualTiming:!1};function jo(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,h=!1)=>{const d=h&&s?e:n;return c&&r.add(u),d.has(u)||d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,i&&(i=!1,l.process(u))}};return l}const Kt=["read","resolveKeyframes","update","preRender","render","postRender"],ko=40;function Ns(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Kt.reduce((g,x)=>(g[x]=jo(r),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,ko),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},m=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:Kt.reduce((g,x)=>{const P=o[x];return g[x]=(A,T=!1,b=!1)=>(n||m(),P.schedule(A,T,b)),g},{}),cancel:g=>{for(let x=0;x<Kt.length;x++)o[Kt[x]].cancel(g)},state:i,steps:o}}const{schedule:D,cancel:q,state:j,steps:ce}=Ns(typeof requestAnimationFrame<"u"?requestAnimationFrame:K,!0);function Io(){const t=Fo(),[e,n]=v.useState(0),s=v.useCallback(()=>{t.current&&n(e+1)},[e]);return[v.useCallback(()=>D.postRender(s),[s]),e]}const Oo=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Sn(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Oo);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",n))},remove:s=>{t.delete(s);const i=e.get(s);i&&(i(),e.delete(s)),n()},dirty:n}}const Us=t=>t===!0,No=t=>Us(t===!0)||t==="id",ac=({children:t,id:e,inherit:n=!0})=>{const s=v.useContext(Mt),i=v.useContext(Lo),[r,o]=Io(),a=v.useRef(null),l=s.id||i;a.current===null&&(No(n)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:Us(n)&&s.group||Sn()});const u=v.useMemo(()=>({...a.current,forceRender:r}),[o]);return W.jsx(Mt.Provider,{value:u,children:t})},_s=v.createContext({strict:!1}),An={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"]},pt={};for(const t in An)pt[t]={isEnabled:e=>An[t].some(n=>!!e[n])};function Uo(t){for(const e in t)pt[e]={...pt[e],...t[e]}}const _o=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 Xt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||_o.has(t)}let Ks=t=>!Xt(t);function Ko(t){t&&(Ks=e=>e.startsWith("on")?!Xt(e):t(e))}try{Ko(require("@emotion/is-prop-valid").default)}catch{}function Wo(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ks(i)||n===!0&&Xt(i)||!e&&!Xt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Go(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>t(...s);return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const se=v.createContext({});function Rt(t){return typeof t=="string"||Array.isArray(t)}function ie(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ue=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_e=["initial",...
vendor: 22,370 bytes, line 9
9Ue];function oe(t){return ie(t.animate)||_e.some(e=>Rt(t[e]))}function Ws(t){return!!(oe(t)||t.variants)}function $o(t,e){if(oe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Rt(n)?n:void 0,animate:Rt(s)?s:void 0}}return t.inherit!==!1?e:{}}function zo(t){const{initial:e,animate:n}=$o(t,v.useContext(se));return v.useMemo(()=>({initial:e,animate:n}),[Vn(e),Vn(n)])}function Vn(t){return Array.isArray(t)?t.join(" "):t}const Ho=Symbol.for("motionComponentSymbol");function ut(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Xo(t,e,n){return v.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):ut(n)&&(n.current=s))},[e])}const Ke=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Yo="framerAppearId",Gs="data-"+Ke(Yo),{schedule:We}=Ns(queueMicrotask,!1),$s=v.createContext({});function qo(t,e,n,s,i){var r,o;const{visualElement:a}=v.useContext(se),l=v.useContext(_s),u=v.useContext(ne),c=v.useContext(Ie).reducedMotion,h=v.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=v.useContext($s);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&Zo(h.current,n,i,d);const m=v.useRef(!1);v.useInsertionEffect(()=>{f&&m.current&&f.update(n,u)});const p=n[Gs],y=v.useRef(!!p&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return Ne(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),We.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),v.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,p)}),y.current=!1))}),f}function Zo(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:zs(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&ut(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function zs(t){if(t)return t.options.allowProjection!==!1?t.projection:zs(t.parent)}function Jo({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var r,o;t&&Uo(t);function a(u,c){let h;const f={...v.useContext(Ie),...u,layoutId:Qo(u)},{isStatic:d}=f,m=zo(u),p=s(u,d);if(!d&&Oe){tr();const y=er(f);h=y.MeasureLayout,m.visualElement=qo(i,p,f,e,y.ProjectionNode)}return W.jsxs(se.Provider,{value:m,children:[h&&m.visualElement?W.jsx(h,{visualElement:m.visualElement,...f}):null,n(i,u,Xo(p,m.visualElement,c),p,d,m.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(r=i.displayName)!==null&&r!==void 0?r:i.name)!==null&&o!==void 0?o:""})`}`;const l=v.forwardRef(a);return l[Ho]=i,l}function Qo({layoutId:t}){const e=v.useContext(Mt).id;return e&&t!==void 0?e+"-"+t:t}function tr(t,e){v.useContext(_s).strict}function er(t){const{drag:e,layout:n}=pt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const nr=["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 Ge(t){return typeof t!="string"||t.includes("-")?!1:!!(nr.indexOf(t)>-1||/[A-Z]/u.test(t))}function bn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function $e(t,e,n,s){if(typeof e=="function"){const[i,r]=bn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=bn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}const Se=t=>Array.isArray(t),sr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ir=t=>Se(t)?t[t.length-1]||0:t,B=t=>!!(t&&t.getVelocity);function $t(t){const e=B(t)?t.get():t;return sr(e)?e.toValue():e}function or({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,r){const o={latestValues:rr(s,i,r,t),renderState:e()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const Hs=t=>(e,n)=>{const s=v.useContext(se),i=v.useContext(ne),r=()=>or(t,e,s,i);return n?r():ke(r)};function rr(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=$t(r[f]);let{initial:o,animate:a}=t;const l=oe(t),u=Ws(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!ie(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=$e(t,f[d]);if(m){const{transitionEnd:p,transition:y,...g}=m;for(const x in g){let P=g[x];if(Array.isArray(P)){const A=c?P.length-1:0;P=P[A]}P!==null&&(i[x]=P)}for(const x in p)i[x]=p[x]}}}return i}const vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],it=new Set(vt),Xs=t=>e=>typeof e=="string"&&e.startsWith(t),Ys=Xs("--"),ar=Xs("var(--"),ze=t=>ar(t)?lr.test(t.split("/*")[0].trim()):!1,lr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qs=(t,e)=>e&&typeof t=="number"?e.transform(t):t,X=(t,e,n)=>n>e?e:n<t?t:n,xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Et={...xt,transform:t=>X(0,1,t)},Wt={...xt,default:1},jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y=jt("deg"),$=jt("%"),S=jt("px"),ur=jt("vh"),cr=jt("vw"),wn={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)},hr={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S},fr={rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:Wt,scaleX:Wt,scaleY:Wt,scaleZ:Wt,skew:Y,skewX:Y,skewY:Y,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Et,originX:wn,originY:wn,originZ:S},Cn={...xt,transform:Math.round},He={...hr,...fr,zIndex:Cn,size:S,fillOpacity:Et,strokeOpacity:Et,numOctaves:Cn},dr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},mr=vt.length;function pr(t,e,n){let s="",i=!0;for(let r=0;r<mr;r++){const o=vt[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=qs(a,He[o]);if(!l){i=!1;const c=dr[o]||o;s+=`${c}(${u}) `}n&&(e[o]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Xe(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(it.has(l)){o=!0;continue}else if(Ys(l)){i[l]=u;continue}else{const c=qs(u,He[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(e.transform||(o||n?s.transform=pr(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}const gr={offset:"stroke-dashoffset",array:"stroke-dasharray"},yr={offset:"strokeDashoffset",array:"strokeDasharray"};function vr(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?gr:yr;t[r.offset]=S.transform(-s);const o=S.transform(e),a=S.transform(n);t[r.array]=`${o} ${a}`}function Dn(t,e,n){return typeof t=="string"?t:S.transform(e+n*t)}function xr(t,e,n){const s=Dn(e,t.x,t.width),i=Dn(n,t.y,t.height);return`${s} ${i}`}function Ye(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Xe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:m}=t;f.transform&&(m&&(d.transform=f.transform),delete f.transform),m&&(i!==void 0||r!==void 0||d.transform)&&(d.transformOrigin=xr(m,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&vr(f,o,a,l,!1)}const qe=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Zs=()=>({...qe(),attrs:{}}),Ze=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Js(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Qs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ti(t,e,n,s){Js(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Qs.has(i)?i:Ke(i),e.attrs[i])}const Yt={};function Tr(t){Object.assign(Yt,t)}function ei(t,{layout:e,layoutId:n}){return it.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Yt[t]||t==="opacity")}function Je(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(B(i[o])||e.style&&B(e.style[o])||ei(o,t)||((s=n?.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function ni(t,e,n){const s=Je(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const r=vt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function Pr(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Mn=["x","y","width","height","cx","cy","r"],Sr={useVisualState:Hs({scrapeMotionValuesFromProps:ni,createRenderState:Zs,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let r=!!t.drag;if(!r){for(const a in i)if(it.has(a)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let a=0;a<Mn.length;a++){const l=Mn[a];t[l]!==e[l]&&(o=!0)}o&&D.read(()=>{Pr(n,s),D.render(()=>{Ye(s,i,Ze(n.tagName),t.transformTemplate),ti(n,s)})})}})},Ar={useVisualState:Hs({scrapeMotionValuesFromProps:Je,createRenderState:qe})};function si(t,e,n){for(const s in e)!B(e[s])&&!ei(s,n)&&(t[s]=e[s])}function Vr({transformTemplate:t},e){return v.useMemo(()=>{const n=qe();return Xe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function br(t,e){const n=t.style||{},s={};return si(s,n,t),Object.assign(s,Vr(t,e)),s}function wr(t,e){const n={},s=br(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}function Cr(t,e,n,s){const i=v.useMemo(()=>{const r=Zs();return Ye(r,e,Ze(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};si(r,t.style,t),i.style={...r,...i.style}}return i}function Dr(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Ge(n)?Cr:wr)(s,r,o,n),u=Wo(s,typeof n=="string",t),c=n!==v.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=v.useMemo(()=>B(h)?h.get():h,[h]);return v.createElement(n,{...c,children:f})}}function Mr(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Ge(s)?Sr:Ar,preloadedFeatures:t,useRender:Dr(i),createVisualElement:e,Component:s};return Jo(o)}}function ii(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function re(t,e,n){const s=t.getProps();return $e(s,e,n!==void 0?n:s.custom,t)}const oi=new Set(["width","height","top","left","right","bottom",...vt]);let zt;function Rr(){zt=void 0}const z={now:()=>(zt===void 0&&z.set(j.isProcessing||Bo.useManualTiming?j.timestamp:performance.now()),zt),set:t=>{zt=t,queueMicrotask(Rr)}};function Qe(t,e){t.indexOf(e)===-1&&t.push(e)}function ae(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class tn{constructor(){this.subscriptions=[]}add(e){return Qe(this.subscriptions,e),()=>ae(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function ri(t,e){return e?t*(1e3/e):0}const Rn=30,Er=t=>!isNaN(parseFloat(t));class Lr{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=z.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Er(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new tn);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Rn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rn);return ri(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Lt(t,e){return new Lr(t,e)}function Fr(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Lt(n))}function Br(t,e){const n=re(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ir(r[o]);Fr(t,o,a)}}function jr(t){return!!(B(t)&&t.add)}function Ae(t,e){const n=t.getValue("willChange");if(jr(n))return n.add(e)}function ai(t){return t.props[Gs]}const li=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,kr=1e-7,Ir=12;function Or(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=li(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>kr&&++a<Ir);return o}function kt(t,e,n,s){if(t===e&&n===s)return K;const i=r=>Or(r,0,1,t,n);return r=>r===0||r===1?r:li(i(r),e,s)}const ui=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ci=t=>e=>1-t(1-e),hi=kt(.33,1.53,.69,.99),en=ci(hi),fi=ui(en),di=t=>(t*=2)<1?.5*en(t):.5*(2-Math.pow(2,-10*(t-1))),nn=t=>1-Math.sin(Math.acos(t)),mi=ci(nn),pi=ui(nn),gi=t=>/^0[^.\s]+$/u.test(t);function Nr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||gi(t):!0}const bt=t=>Math.round(t*1e5)/1e5,sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ur(t){return t==null}const _r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,on=(t,e)=>n=>!!(typeof n=="string"&&_r.test(n)&&n.startsWith(t)||e&&!Ur(n)&&Object.prototype.hasOwnProperty.call(n,e)),yi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(sn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Kr=t=>X(0,255,t),he={...xt,transform:t=>Math.round(Kr(t))},nt={test:on("rgb","red"),parse:yi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+he.transform(t)+", "+he.transform(e)+", "+he.transform(n)+", "+bt(Et.transform(s))+")"};function Wr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ve={test:on("#"),parse:Wr,transform:nt.transform},ct={test:on("hsl","hue"),parse:yi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(bt(e))+", "+$.transform(bt(n))+", "+bt(Et.transform(s))+")"},O={test:t=>nt.test(t)||Ve.test(t)||ct.test(t),parse:t=>nt.test(t)?nt.parse(t):ct.test(t)?ct.parse(t):Ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?nt.transform(t):ct.transform(t)},Gr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $r(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(sn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Gr))===null||n===void 0?void 0:n.length)||0)>0}const vi="number",xi="color",zr="var",Hr="var(",En="${}",Xr=/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 Ft(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Xr,l=>(O.test(l)?(s.color.push(r),i.push(xi),n.push(O.parse(l))):l.startsWith(Hr)?(s.var.push(r),i.push(zr),n.push(l)):(s.number.push(r),i.push(vi),n.push(parseFloat(l))),++r,En)).split(En);return{values:n,split:a,indexes:s,types:i}}function Ti(t){return Ft(t).values}function Pi(t){const{split:e,types:n}=Ft(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===vi?r+=bt(i[o]):a===xi?r+=O.transform(i[o]):r+=i[o]}return r}}const Yr=t=>typeof t=="number"?0:t;function qr(t){const e=Ti(t);return Pi(t)(e.map(Yr))}const Z={test:$r,parse:Ti,createTransformer:Pi,getAnimatableNone:qr},Zr=new Set(["brightness","contrast","saturate","opacity"]);function Jr(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(sn)||[];if(!s)return t;const i=n.replace(s,"");let r=Zr.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Qr=/\b([a-z-]*)\(.*?\)/gu,be={...Z,getAnimatableNone:t=>{const e=t.match(Qr);return e?e.map(Jr).join(" "):t}},ta={...He,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:be,WebkitFilter:be},rn=t=>ta[t];function Si(t,e){let n=rn(t);return n!==be&&(n=Z),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ea=new Set(["auto","none","0"]);function na(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!ea.has(r)&&Ft(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Si(n,i)}const Ln=t=>t===xt||t===S,Fn=(t,e)=>parseFloat(t.split(", ")[e]),Bn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Fn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?Fn(r[1],t):0}},sa=new Set(["x","y","z"]),ia=vt.filter(t=>!sa.has(t));function oa(t){const e=[];return ia.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Bn(4,13),y:Bn(5,14)};gt.translateX=gt.x;gt.translateY=gt.y;const st=new Set;let we=!1,Ce=!1;function Ai(){if(Ce){const t=Array.from(st).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=oa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ce=!1,we=!1,st.forEach(t=>t.complete()),st.clear()}function Vi(){st.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ce=!0)})}function ra(){Vi(),Ai()}class an{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(st.add(this),we||(we=!0,D.read(Vi),D.resolveKeyframes(Ai))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i?.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),st.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,st.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const bi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),aa=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
vendor: 8,159 bytes, line 9
9function la(t){const e=aa.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function wi(t,e,n=1){const[s,i]=la(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return bi(o)?parseFloat(o):o}return ze(i)?wi(i,e,n+1):i}const Ci=t=>e=>e.test(t),ua={test:t=>t==="auto",parse:t=>t},Di=[xt,S,$,Y,cr,ur,ua],jn=t=>Di.find(Ci(t));class Mi extends an{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),ze(u))){const c=wi(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!oi.has(s)||e.length!==2)return;const[i,r]=e,o=jn(i),a=jn(r);if(o!==a)if(Ln(o)&&Ln(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Nr(e[i])&&s.push(i);s.length&&na(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=gt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Z.test(t)||t==="0")&&!t.startsWith("url("));function ca(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ha(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=kn(i,e),a=kn(r,e);return!o||!a?!1:ca(t)||(n==="spring"||ee(n))&&s}const fa=t=>t!==null;function le(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(fa),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const da=40;class Ri{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=z.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>da?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ra(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=z.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ha(e,s,i,r))if(o)this.options.duration=0;else{l&&l(le(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const R=(t,e,n)=>t+(e-t)*n;function fe(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function ma({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=fe(l,a,t+1/3),r=fe(l,a,t),o=fe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function qt(t,e){return n=>n>0?e:t}const de=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},pa=[Ve,nt,ct],ga=t=>pa.find(e=>e.test(t));function In(t){const e=ga(t);if(!e)return!1;let n=e.parse(t);return e===ct&&(n=ma(n)),n}const On=(t,e)=>{const n=In(t),s=In(e);if(!n||!s)return qt(t,e);const i={...n};return r=>(i.red=de(n.red,s.red,r),i.green=de(n.green,s.green,r),i.blue=de(n.blue,s.blue,r),i.alpha=R(n.alpha,s.alpha,r),nt.transform(i))},ya=(t,e)=>n=>e(t(n)),It=(...t)=>t.reduce(ya),De=new Set(["none","hidden"]);function va(t,e){return De.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function xa(t,e){return n=>R(t,e,n)}function ln(t){return typeof t=="number"?xa:typeof t=="string"?ze(t)?qt:O.test(t)?On:Sa:Array.isArray(t)?Ei:typeof t=="object"?O.test(t)?On:Ta:qt}function Ei(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>ln(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ta(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=ln(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Pa(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const Sa=(t,e)=>{const n=Z.createTransformer(e),s=Ft(t),i=Ft(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?De.has(t)&&!i.values.length||De.has(e)&&!s.values.length?va(t,e):It(Ei(Pa(s,i),i.values),n):qt(t,e)};function Li(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):ln(t)(t,e)}const Aa=5;function Fi(t,e,n){const s=Math.max(e-Aa,0);return ri(n-t(s),e-s)}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},me=.001;function Va({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,r,o=1-e;o=X(L.minDamping,L.maxDamping,o),t=X(L.minDuration,L.maxDuration,H(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Me(u,o),m=Math.exp(-h);return me-f/d*m},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=Me(Math.pow(u,2),o);return(-i(u)+me>0?-1:1)*((f-d)*m)/p}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-me+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=wa(i,r,a);if(t=G(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const ba=12;function wa(t,e,n){let s=n;for(let i=1;i<ba;i++)s=s-t(s)/e(s);return s}function Me(t,e){return t*Math.sqrt(1-e*e)}const Ca=["duration","bounce"],Da=["stiffness","damping","mass"];function Nn(t,e){return e.some(n=>t[n]!==void 0)}function Ma(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!Nn(t,Da)&&Nn(t,Ca))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:r}}else{const n=Va(t);e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function un(t=L.visualDuration,e=L.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Ma({...n,velocity:-H(n.velocity||0)}),m=f||0,p=u/(2*Math.sqrt(l*c)),y=o-r,g=H(Math.sqrt(l/c)),x=Math.abs(y)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),i||(i=x?L.restDelta.granular:L.restDelta.default);let P;if(p<1){const T=Me(g,p);P=b=>{const C=Math.exp(-p*g*b);return o-C*((m+p*g*y)/T*Math.sin(T*b)+y*Math.cos(T*b))}}else if(p===1)P=T=>o-Math.exp(-g*T)*(y+(m+g*y)*T);else{const T=g*Math.sqrt(p*p-1);P=b=>{const C=Math.exp(-p*g*b),V=Math.min(T*b,300);return o-C*((m+p*g*y)*Math.sinh(V)+T*y*Math.cosh(V))/T}}
vendor: 59,613 bytes, line 9
9const A={calculatedDuration:d&&h||null,next:T=>{const b=P(T);if(d)a.done=T>=h;else{let C=0;p<1&&(C=T===0?G(m):Fi(P,T,b));const V=Math.abs(C)<=s,w=Math.abs(o-b)<=i;a.done=V&&w}return a.value=a.done?o:b,a},toString:()=>{const T=Math.min(js(A),go),b=yo(C=>A.next(T*C).value,T,30);return T+"ms "+b}};return A}function Un({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,m=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let p=n*e;const y=h+p,g=o===void 0?y:o(y);g!==y&&(p=g-h);const x=V=>-p*Math.exp(-V/s),P=V=>g+x(V),A=V=>{const w=x(V),k=P(V);f.done=Math.abs(w)<=u,f.value=f.done?g:k};let T,b;const C=V=>{d(f.value)&&(T=V,b=un({keyframes:[f.value,m(f.value)],velocity:Fi(P,V,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:V=>{let w=!1;return!b&&T===void 0&&(w=!0,A(V),C(V)),T!==void 0&&V>=T?b.next(V-T):(!w&&A(V),f)}}}const Ra=kt(.42,0,1,1),Ea=kt(0,0,.58,1),Bi=kt(.42,0,.58,1),ji=t=>Array.isArray(t)&&typeof t[0]!="number",La={linear:K,easeIn:Ra,easeInOut:Bi,easeOut:Ea,circIn:nn,circInOut:pi,circOut:mi,backIn:en,backInOut:fi,backOut:hi,anticipate:di},_n=t=>{if(vo(t)){const[e,n,s,i]=t;return kt(e,n,s,i)}else if(typeof t=="string")return La[t];return t};function Fa(t,e,n){const s=[],i=n||Li,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||K:e;a=It(l,a)}s.push(a)}return s}function Ba(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Fa(e,s,i),l=a.length,u=c=>{if(o&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=mt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(X(t[0],t[r-1],c)):u}function ki(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=mt(0,e,s);t.push(R(n,1,i))}}function Ii(t){const e=[0];return ki(e,t.length-1),e}function ja(t,e){return t.map(n=>n*e)}function ka(t,e){return t.map(()=>e||Bi).splice(0,t.length-1)}function Zt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ji(s)?s.map(_n):_n(s),r={done:!1,value:e[0]},o=ja(n&&n.length===e.length?n:Ii(e),t),a=Ba(o,e,{ease:Array.isArray(i)?i:ka(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ia=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>q(e),now:()=>j.isProcessing?j.timestamp:z.now()}},Oa={decay:Un,inertia:Un,tween:Zt,keyframes:Zt,spring:un},Na=t=>t/100;class cn extends Ri{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=i?.KeyframeResolver||an,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=ee(n)?n:Oa[n]||Zt;let l,u;a!==Zt&&typeof e[0]!="number"&&(l=It(Na,Li(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=js(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let P=this.currentTime,A=r;if(d){const V=Math.min(this.currentTime,c)/h;let w=Math.floor(V),k=V%1;!k&&V>=1&&(k=1),k===1&&w--,w=Math.min(w,d+1),w%2&&(m==="reverse"?(k=1-k,p&&(k-=p/h)):m==="mirror"&&(A=o)),P=X(0,1,k)*h}const T=x?{done:!1,value:l[0]}:A.next(P);a&&(T.value=a(T.value));let{done:b}=T;!x&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(T.value=le(l,this.options,i)),y&&y(T.value),C&&this.finish(),T}get duration(){const{resolved:e}=this;return e?H(e.calculatedDuration):0}get time(){return H(this.currentTime)}set time(e){e=G(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ia,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ua=new Set(["opacity","clipPath","filter","transform"]);function _a(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=xo(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Ka=To(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Jt=10,Wa=2e4;function Ga(t){return ee(t.type)||t.type==="spring"||!So(t.ease)}function $a(t,e){const n=new cn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<Wa;)s=n.sample(r),i.push(s.value),r+=Jt;return{times:void 0,keyframes:i,duration:r-Jt,ease:"linear"}}const Oi={anticipate:di,backInOut:fi,circInOut:pi};function za(t){return t in Oi}class Kn extends Ri{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new Mi(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&Po()&&za(r)&&(r=Oi[r]),Ga(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,element:m,...p}=this.options,y=$a(e,p);e=y.keyframes,e.length===1&&(e[1]=e[0]),s=y.duration,i=y.times,r=y.ease,o="keyframes"}const c=_a(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Tn(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:h}=this.options;a.set(le(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:s,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return H(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return H(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=G(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return K;const{animation:s}=n;Tn(s,e)}return K}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:f,...d}=this.options,m=new cn({...d,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),p=G(this.time);u.setWithVelocity(m.sample(p-Jt).value,m.sample(p).value,Jt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Ka()&&s&&Ua.has(s)&&!l&&!u&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Ha={type:"spring",stiffness:500,damping:25,restSpeed:10},Xa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ya={type:"keyframes",duration:.8},qa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Za=(t,{keyframes:e})=>e.length>2?Ya:it.has(t)?t.startsWith("scale")?Xa(e[1]):Ha:qa;function Ja({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const hn=(t,e,n,s={},i,r)=>o=>{const a=je(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-G(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ja(a)||(c={...c,...Za(t,c)}),c.duration&&(c.duration=G(c.duration)),c.repeatDelay&&(c.repeatDelay=G(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const f=le(c.keyframes,a);if(f!==void 0)return D.update(()=>{c.onUpdate(f),c.onComplete()}),new ks([])}return!r&&Kn.supports(c)?new Kn(c):new cn(c)};function Qa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function fn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),d=l[h];if(d===void 0||c&&Qa(c,h))continue;const m={delay:n,...je(o||{},h)};let p=!1;if(window.MotionHandoffAnimation){const g=ai(t);if(g){const x=window.MotionHandoffAnimation(g,h,D);x!==null&&(m.startTime=x,p=!0)}}Ae(t,h),f.start(hn(h,f,d,t.shouldReduceMotion&&oi.has(h)?{type:!1}:m,t,p));const y=f.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{D.update(()=>{a&&Br(t,a)})}),u}function Re(t,e,n={}){var s;const i=re(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(fn(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=r;return tl(t,e,c+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function tl(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(el).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(Re(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function el(t,e){return t.sortNodePosition(e)}function nl(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Re(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Re(t,e,n);else{const i=typeof e=="function"?re(t,e,n.custom):e;s=Promise.all(fn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const sl=_e.length;function Ni(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ni(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<sl;n++){const s=_e[n],i=t.props[s];(Rt(i)||i===!1)&&(e[s]=i)}return e}const il=[...Ue].reverse(),ol=Ue.length;function rl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>nl(t,n,s)))}function al(t){let e=rl(t),n=Wn(),s=!0;const i=l=>(u,c)=>{var h;const f=re(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:m,...p}=f;u={...u,...p,...m}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=Ni(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let y=0;y<ol;y++){const g=il[y],x=n[g],P=u[g]!==void 0?u[g]:c[g],A=Rt(P),T=g===l?x.isActive:null;T===!1&&(m=y);let b=P===c[g]&&P!==u[g]&&A;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...d},!x.isActive&&T===null||!P&&!x.prevProp||ie(P)||typeof P=="boolean")continue;const C=ll(x.prevProp,P);let V=C||g===l&&x.isActive&&!b&&A||y>m&&A,w=!1;const k=Array.isArray(P)?P:[P];let I=k.reduce(i(g),{});T===!1&&(I={});const{prevResolvedValues:ot={}}=x,rt={...ot,...I},ue=M=>{V=!0,f.has(M)&&(w=!0,f.delete(M)),x.needsAnimating[M]=!0;const F=t.getValue(M);F&&(F.liveStyle=!1)};for(const M in rt){const F=I[M],at=ot[M];if(d.hasOwnProperty(M))continue;let lt=!1;Se(F)&&Se(at)?lt=!ii(F,at):lt=F!==at,lt?F!=null?ue(M):f.add(M):F!==void 0&&f.has(M)?ue(M):x.protectedKeys[M]=!0}x.prevProp=P,x.prevResolvedValues=I,x.isActive&&(d={...d,...I}),s&&t.blockInitialAnimation&&(V=!1),V&&(!(b&&C)||w)&&h.push(...k.map(M=>({animation:M,options:{type:g}})))}if(f.size){const y={};f.forEach(g=>{const x=t.getBaseTarget(g),P=t.getValue(g);P&&(P.liveStyle=!0),y[g]=x??null}),h.push({animation:y})}let p=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Wn(),s=!0}}}function ll(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ii(e,t):!1}function Q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wn(){return{animate:Q(!0),whileInView:Q(),whileHover:Q(),whileTap:Q(),whileDrag:Q(),whileFocus:Q(),exit:Q()}}class J{constructor(e){this.isMounted=!1,this.node=e}update(){}}class ul extends J{constructor(e){super(e),e.animationState||(e.animationState=al(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ie(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let cl=0;class hl extends J{constructor(){super(...arguments),this.id=cl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const fl={animation:{Feature:ul},exit:{Feature:hl}};function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Ot(t){return{point:{x:t.pageX,y:t.pageY}}}const dl=t=>e=>Is(e)&&t(e,Ot(e));function wt(t,e,n,s){return Bt(t,e,dl(n),s)}const Gn=(t,e)=>Math.abs(t-e);function ml(t,e){const n=Gn(t.x,e.x),s=Gn(t.y,e.y);return Math.sqrt(n**2+s**2)}class Ui{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ge(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=ml(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:m}=h,{timestamp:p}=j;this.history.push({...m,timestamp:p});const{onStart:y,onMove:g}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pe(f,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ge(h.type==="pointercancel"?this.lastMoveEventInfo:pe(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),m&&m(h,y)},!Is(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Ot(e),a=pe(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=j;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,ge(a,this.history)),this.removeListeners=It(wt(this.contextWindow,"pointermove",this.handlePointerMove),wt(this.contextWindow,"pointerup",this.handlePointerUp),wt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function pe(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 ge({point:t},e){return{point:t,delta:$n(t,_i(e)),offset:$n(t,pl(e)),velocity:gl(e,.1)}}function pl(t){return t[0]}function _i(t){return t[t.length-1]}function gl(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=_i(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};const r=H(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Ki=1e-4,yl=1-Ki,vl=1+Ki,Wi=.01,xl=0-Wi,Tl=0+Wi;function N(t){return t.max-t.min}function Pl(t,e,n){return Math.abs(t-e)<=n}function zn(t,e,n,s=.5){t.origin=s,t.originPoint=R(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=R(n.min,n.max,t.origin)-t.originPoint,(t.scale>=yl&&t.scale<=vl||isNaN(t.scale))&&(t.scale=1),(t.translate>=xl&&t.translate<=Tl||isNaN(t.translate))&&(t.translate=0)}function Ct(t,e,n,s){zn(t.x,e.x,n.x,s?s.originX:void 0),zn(t.y,e.y,n.y,s?s.originY:void 0)}function Hn(t,e,n){t.min=n.min+e.min,t.max=t.min+N(e)}function Sl(t,e,n){Hn(t.x,e.x,n.x),Hn(t.y,e.y,n.y)}function Xn(t,e,n){t.min=e.min-n.min,t.max=t.min+N(e)}function Dt(t,e,n){Xn(t.x,e.x,n.x),Xn(t.y,e.y,n.y)}function Al(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?R(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?R(n,t,s.max):Math.min(t,n)),t}function Yn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Vl(t,{top:e,left:n,bottom:s,right:i}){return{x:Yn(t.x,n,i),y:Yn(t.y,e,s)}}function qn(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function bl(t,e){return{x:qn(t.x,e.x),y:qn(t.y,e.y)}}function wl(t,e){let n=.5;const s=N(t),i=N(e);return i>s?n=mt(e.min,e.max-s,t.min):s>i&&(n=mt(t.min,t.max-i,e.min)),X(0,1,n)}function Cl(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ee=.35;function Dl(t=Ee){return t===!1?t=0:t===!0&&(t=Ee),{x:Zn(t,"left","right"),y:Zn(t,"top","bottom")}}function Zn(t,e,n){return{min:Jn(t,e),max:Jn(t,n)}}function Jn(t,e){return typeof t=="number"?t:t[e]||0}const Qn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ht=()=>({x:Qn(),y:Qn()}),ts=()=>({min:0,max:0}),E=()=>({x:ts(),y:ts()});function _(t){return[t("x"),t("y")]}function Gi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ml({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Rl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ye(t){return t===void 0||t===1}function Le({scale:t,scaleX:e,scaleY:n}){return!ye(t)||!ye(e)||!ye(n)}function tt(t){return Le(t)||$i(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function $i(t){return es(t.x)||es(t.y)}function es(t){return t&&t!=="0%"}function Qt(t,e,n){const s=t-n,i=e*s;return n+i}function ns(t,e,n,s,i){return i!==void 0&&(t=Qt(t,i,s)),Qt(t,n,s)+e}function Fe(t,e=0,n=1,s,i){t.min=ns(t.min,e,n,s,i),t.max=ns(t.max,e,n,s,i)}function zi(t,{x:e,y:n}){Fe(t.x,e.translate,e.scale,e.originPoint),Fe(t.y,n.translate,n.scale,n.originPoint)}const ss=.999999999999,is=1.0000000000001;function El(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&dt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,zi(t,o)),s&&tt(r.latestValues)&&dt(t,r.latestValues))}e.x<is&&e.x>ss&&(e.x=1),e.y<is&&e.y>ss&&(e.y=1)}function ft(t,e){t.min=t.min+e,t.max=t.max+e}function os(t,e,n,s,i=.5){const r=R(t.min,t.max,i);Fe(t,e,n,r,s)}function dt(t,e){os(t.x,e.x,e.scaleX,e.scale,e.originX),os(t.y,e.y,e.scaleY,e.scale,e.originY)}function Hi(t,e){return Gi(Rl(t.getBoundingClientRect(),e))}function Ll(t,e,n){const s=Hi(t,n),{scroll:i}=e;return i&&(ft(s.x,i.offset.x),ft(s.y,i.offset.y)),s}const Xi=({current:t})=>t?t.ownerDocument.defaultView:null,Fl=new WeakMap;class Bl{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=E(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ot(c).point)},r=(c,h)=>{const{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ao(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_(y=>{let g=this.getAxisMotionValue(y).get()||0;if($.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const P=x.layout.layoutBox[y];P&&(g=N(P)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&D.postRender(()=>m(c,h)),Ae(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=jl(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>_(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ui(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Xi(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&D.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Gt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Al(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&ut(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Vl(i.layoutBox,n):this.constraints=!1,this.elastic=Dl(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&_(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Cl(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ut(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Ll(s,i.root,this.visualElement.getTransformPagePoint());let o=bl(i.layout.layoutBox,r);if(n){const a=n(Ml(o));this.hasMutatedConstraints=!!a,a&&(o=Gi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=_(c=>{if(!Gt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ae(this.visualElement,e),s.start(hn(e,s,0,n,this.visualElement,!1))}stopAnimation(){_(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){_(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){_(n=>{const{drag:s}=this.getProps();if(!Gt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-R(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ut(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};_(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=wl({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),_(o=>{if(!Gt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(R(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Fl.set(this.visualElement,this);const e=this.visualElement.current,n=wt(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();ut(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const o=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(_(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ee,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Gt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function jl(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class kl extends J{constructor(e){super(e),this.removeGroupControls=K,this.removeListeners=K,this.controls=new Bl(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K}unmount(){this.removeGroupControls(),this.removeListeners()}}const rs=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class Il extends J{constructor(){super(...arguments),this.removePointerDownListener=K}onPointerDown(e){this.session=new Ui(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:rs(e),onStart:rs(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&D.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=wt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ht={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function as(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const At={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=as(t,e.target.x),s=as(t,e.target.y);return`${n}% ${s}%`}},Ol={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Z.parse(t);if(i.length>5)return s;const r=Z.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=R(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}};class Nl extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;Tr(Ul),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Ht.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||D.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),We.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Yi(t){const[e,n]=Os(),s=v.useContext(Mt);return W.jsx(Nl,{...t,layoutGroup:s,switchLayoutGroup:v.useContext($s),isPresent:e,safeToRemove:n})}const Ul={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:Ol};function qi(t,e,n){const s=B(t)?t:Lt(t);return s.start(hn("",s,e,n)),s.animation}function Zi(t){return t instanceof SVGElement&&t.tagName!=="svg"}const _l=(t,e)=>t.depth-e.depth;class Kl{constructor(){this.children=[],this.isDirty=!1}add(e){Qe(this.children,e),this.isDirty=!0}remove(e){ae(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(_l),this.isDirty=!1,this.children.forEach(e)}}function Wl(t,e){const n=z.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(q(s),t(r-e))};return D.read(s,!0),()=>q(s)}const Ji=["TopLeft","TopRight","BottomLeft","BottomRight"],Gl=Ji.length,ls=t=>typeof t=="string"?parseFloat(t):t,us=t=>typeof t=="number"||S.test(t);function $l(t,e,n,s,i,r){i?(t.opacity=R(0,n.opacity!==void 0?n.opacity:1,zl(s)),t.opacityExit=R(e.opacity!==void 0?e.opacity:1,0,Hl(s))):r&&(t.opacity=R(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<Gl;o++){const a=`border${Ji[o]}Radius`;let l=cs(e,a),u=cs(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||us(l)===us(u)?(t[a]=Math.max(R(ls(l),ls(u),s),0),($.test(u)||$.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=R(e.rotate||0,n.rotate||0,s))}function cs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const zl=Qi(0,.5,mi),Hl=Qi(.5,.95,K);function Qi(t,e,n){return s=>s<t?0:s>e?1:n(mt(t,e,s))}function hs(t,e){t.min=e.min,t.max=e.max}function U(t,e){hs(t.x,e.x),hs(t.y,e.y)}function fs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ds(t,e,n,s,i){return t-=e,t=Qt(t,1/n,s),i!==void 0&&(t=Qt(t,1/i,s)),t}function Xl(t,e=0,n=1,s=.5,i,r=t,o=t){if($.test(e)&&(e=parseFloat(e),e=R(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=R(r.min,r.max,s);t===r&&(a-=e),t.min=ds(t.min,e,n,a,i),t.max=ds(t.max,e,n,a,i)}function ms(t,e,[n,s,i],r,o){Xl(t,e[n],e[s],e[i],e.scale,r,o)}const Yl=["x","scaleX","originX"],ql=["y","scaleY","originY"];function ps(t,e,n,s){ms(t.x,e,Yl,n?n.x:void 0,s?s.x:void 0),ms(t.y,e,ql,n?n.y:void 0,s?s.y:void 0)}function gs(t){return t.translate===0&&t.scale===1}function to(t){return gs(t.x)&&gs(t.y)}function ys(t,e){return t.min===e.min&&t.max===e.max}function Zl(t,e){return ys(t.x,e.x)&&ys(t.y,e.y)}function vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function eo(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function xs(t){return N(t.x)/N(t.y)}function Ts(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Jl{constructor(){this.members=[]}add(e){Qe(this.members,e),e.scheduleRender()}remove(e){if(ae(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ql(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const et={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vt=typeof window<"u"&&window.MotionDebug!==void 0,ve=["","X","Y","Z"],tu={visibility:"hidden"},Ps=1e3;let eu=0;function xe(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function no(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=ai(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&no(s)}function so({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=eu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vt&&(et.totalNodes=et.resolvedTargetDeltas=et.recalculatedProjection=0),this.nodes.forEach(iu),this.nodes.forEach(uu),this.nodes.forEach(cu),this.nodes.forEach(ou),Vt&&window.MotionDebug.record(et)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kl)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new tn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Zi(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Wl(f,250),Ht.hasAnimatedSinceResize&&(Ht.hasAnimatedSinceResize=!1,this.nodes.forEach(As))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||pu,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!eo(this.targetLayout,m)||d,P=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||P||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,P);const A={...je(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A)}else f||As(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,q(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(hu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&no(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ss);return}this.isUpdating||this.nodes.forEach(au),this.isUpdating=!1,this.nodes.forEach(lu),this.nodes.forEach(nu),this.nodes.forEach(su),this.clearAllSnapshots();const a=z.now();j.delta=X(0,1e3/60,a-j.timestamp),j.timestamp=a,j.isProcessing=!0,ce.update.process(j),ce.preRender.process(j),ce.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,We.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(fu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=E(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!to(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||tt(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),gu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return E();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(yu))){const{scroll:c}=this.root;c&&(ft(l.x,c.offset.x),ft(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=E();if(U(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:f}=c;c!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&U(l,o),ft(l.x,h.offset.x),ft(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=E();U(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&dt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),tt(c.latestValues)&&dt(l,c.latestValues)}return tt(this.latestValues)&&dt(l,this.latestValues),l}removeTransform(o){const a=E();U(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!tt(u.latestValues))continue;Le(u.latestValues)&&u.updateSnapshot();const c=E(),h=u.measurePageBox();U(c,h),ps(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return tt(this.latestValues)&&ps(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==j.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=j.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),Dt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=E(),this.targetWithTransforms=E()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):U(this.target,this.layout.layoutBox),zi(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),Dt(this.relativeTargetOrigin,this.target,d.target),U(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vt&&et.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Le(this.parent.latestValues)||$i(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===j.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||h))return;U(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;El(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=E());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fs(this.prevProjectionDelta.x,this.projectionDelta.x),fs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ct(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!Ts(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ts(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Vt&&et.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ht(),this.projectionDelta=ht(),this.projectionDeltaWithTransform=ht()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=ht();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=E(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,y=this.getStack(),g=!y||y.members.length<=1,x=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(mu));this.animationProgress=0;let P;this.mixTargetDelta=A=>{const T=A/1e3;Vs(h.x,o.x,T),Vs(h.y,o.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Dt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),du(this.relativeTarget,this.relativeTargetOrigin,f,T),P&&Zl(this.relativeTarget,P)&&(this.isProjectionDirty=!1),P||(P=E()),U(P,this.relativeTarget)),p&&(this.animationValues=c,$l(c,u,this.latestValues,T,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Ht.hasAnimatedSinceResize=!0,this.currentAnimation=qi(0,Ps,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ps),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&io(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||E();const h=N(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=N(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}U(a,l),dt(a,c),Ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Jl),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&xe("z",o,u,this.animationValues);for(let c=0;c<ve.length;c++)xe(`rotate${ve[c]}`,o,u,this.animationValues),xe(`skew${ve[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tu;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=$t(o?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=$t(o?.pointerEvents)||""),this.hasProjected&&!tt(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Ql(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:d,y:m}=this.projectionDelta;u.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in Yt){if(f[p]===void 0)continue;const{correct:y,applyTo:g}=Yt[p],x=u.transform==="none"?f[p]:y(f[p],h);if(g){const P=g.length;for(let A=0;A<P;A++)u[g[A]]=x}else u[p]=x}return this.options.layoutId&&(u.pointerEvents=h===this?$t(o?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ss),this.root.sharedNodes.clear()}}}function nu(t){t.updateLayout()}function su(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?_(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=N(f);f.min=s[h].min,f.max=f.min+d}):io(r,n.layoutBox,s)&&_(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],d=N(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ht();Ct(a,s,n.layoutBox);const l=ht();o?Ct(l,t.applyTransform(i,!0),n.measuredBox):Ct(l,s,n.layoutBox);const u=!to(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=E();Dt(m,n.layoutBox,f.layoutBox);const p=E();Dt(p,s,d.layoutBox),eo(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function iu(t){Vt&&et.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ou(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ru(t){t.clearSnapshot()}function Ss(t){t.clearMeasurements()}function au(t){t.isLayoutDirty=!1}function lu(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function As(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function uu(t){t.resolveTargetDelta()}function cu(t){t.calcProjection()}
vendor: 6,577 bytes, line 9
9function hu(t){t.resetSkewAndRotation()}function fu(t){t.removeLeadSnapshot()}function Vs(t,e,n){t.translate=R(e.translate,0,n),t.scale=R(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function bs(t,e,n,s){t.min=R(e.min,n.min,s),t.max=R(e.max,n.max,s)}function du(t,e,n,s){bs(t.x,e.x,n.x,s),bs(t.y,e.y,n.y,s)}function mu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const pu={duration:.45,ease:[.4,0,.1,1]},ws=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Cs=ws("applewebkit/")&&!ws("chrome/")?Math.round:K;function Ds(t){t.min=Cs(t.min),t.max=Cs(t.max)}function gu(t){Ds(t.x),Ds(t.y)}function io(t,e,n){return t==="position"||t==="preserve-aspect"&&!Pl(xs(e),xs(n),.2)}function yu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const vu=so({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Te={current:void 0},oo=so({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Te.current){const t=new vu({});t.mount(window),t.setOptions({layoutScroll:!0}),Te.current=t}return Te.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xu={pan:{Feature:Il},drag:{Feature:kl,ProjectionNode:oo,MeasureLayout:Yi}};function Ms(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&D.postRender(()=>r(e,Ot(e)))}class Tu extends J{mount(){const{current:e}=this.node;e&&(this.unmount=Vo(e,n=>(Ms(this.node,n,"Start"),s=>Ms(this.node,s,"End"))))}unmount(){}}class Pu extends J{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=It(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rs(t,e,n){const{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&D.postRender(()=>r(e,Ot(e)))}class Su extends J{mount(){const{current:e}=this.node;e&&(this.unmount=bo(e,n=>(Rs(this.node,n,"Start"),(s,{success:i})=>Rs(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Be=new WeakMap,Pe=new WeakMap,Au=t=>{const e=Be.get(t.target);e&&e(t)},Vu=t=>{t.forEach(Au)};function bu({root:t,...e}){const n=t||document;Pe.has(n)||Pe.set(n,{});const s=Pe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Vu,{root:t,...e})),s[i]}function wu(t,e,n){const s=bu(e);return Be.set(t,n),s.observe(t),()=>{Be.delete(t),s.unobserve(t)}}const Cu={some:0,all:1};class Du extends J{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Cu[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),f=u?c:h;f&&f(l)};return wu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Mu(e,n))&&this.startObserver()}unmount(){}}function Mu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ru={inView:{Feature:Du},tap:{Feature:Su},focus:{Feature:Pu},hover:{Feature:Tu}},Eu={layout:{ProjectionNode:oo,MeasureLayout:Yi}},te={current:null},dn={current:!1};function ro(){if(dn.current=!0,!!Oe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>te.current=t.matches;t.addListener(e),e()}else te.current=!1}const Lu=[...Di,O,Z],Fu=t=>Lu.find(Ci(t)),yt=new WeakMap;function Bu(t,e,n){for(const s in e){const i=e[s],r=n[s];if(B(i))t.addValue(s,i);else if(B(r))t.addValue(s,Lt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Lt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Es=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class ao{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=an,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=()=>{const d=z.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,D.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=o;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=oe(n),this.isVariantNode=Ws(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];l[d]!==void 0&&B(m)&&m.set(l[d],!1)}}mount(e){this.current=e,yt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
vendor: 9,514 bytes, line 9
9h((n,s)=>this.bindToMotionValue(s,n)),dn.current||ro(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:te.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yt.delete(this.current),this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=it.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in pt){const n=pt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Es.length;s++){const i=Es[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Bu(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Lt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(bi(i)||gi(i))?i=parseFloat(i):!Fu(i)&&Z.test(n)&&(i=Si(e,n)),this.setBaseTarget(e,B(i)?i.get():i)),B(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=$e(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!B(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new tn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class lo extends ao{constructor(){super(...arguments),this.KeyframeResolver=Mi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function ju(t){return window.getComputedStyle(t)}class uo extends lo{constructor(){super(...arguments),this.type="html",this.renderInstance=Js}readValueFromInstance(e,n){if(it.has(n)){const s=rn(n);return s&&s.default||0}else{const s=ju(e),i=(Ys(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Hi(e,n)}build(e,n,s){Xe(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Je(e,n,s)}}class co extends lo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(it.has(n)){const s=rn(n);return s&&s.default||0}return n=Qs.has(n)?n:Ke(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ni(e,n,s)}build(e,n,s){Ye(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){ti(e,n,s,i)}mount(e){this.isSVGTag=Ze(e.tagName),super.mount(e)}}const ku=(t,e)=>Ge(t)?new co(e):new uo(e,{allowProjection:t!==v.Fragment}),Iu=Mr({...fl,...Ru,...xu,...Eu},ku),uc=Go(Iu);function cc(){!dn.current&&ro();const[t]=v.useState(te.current);return t}const Ou=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t};function ho(t,e){return ji(t)?t[Ou(0,t.length,e)]:t}function mn(t){return typeof t=="object"&&!Array.isArray(t)}function fo(t,e,n,s){return typeof t=="string"&&mn(e)?wo(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Nu(t,e,n){return t*(e+1)}function Ls(t,e,n,s){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(i=s.get(e))!==null&&i!==void 0?i:t}function Uu(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(ae(t,i),s--)}}function _u(t,e,n,s,i,r){Uu(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:R(i,r,s[o]),easing:ho(n,o)})}function Ku(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function Wu(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Gu="easeInOut";function $u(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,o=new Map,a=new Map,l={},u=new Map;let c=0,h=0,f=0;for(let d=0;d<t.length;d++){const m=t[d];if(typeof m=="string"){u.set(m,h);continue}else if(!Array.isArray(m)){u.set(m.name,Ls(h,m.at,c,u));continue}let[p,y,g={}]=m;g.at!==void 0&&(h=Ls(h,g.at,c,u));let x=0;const P=(A,T,b,C=0,V=0)=>{const w=zu(A),{delay:k=0,times:I=Ii(w),type:ot="keyframes",repeat:rt,repeatType:ue,repeatDelay:po=0,...pn}=T;let{ease:M=e.ease||"easeOut",duration:F}=T;const at=typeof k=="function"?k(C,V):k,lt=w.length,gn=ee(ot)?ot:i?.[ot];if(lt<=2&&gn){let Tt=100;if(lt===2&&Yu(w)){const Pt=w[1]-w[0];Tt=Math.abs(Pt)}const Nt={...pn};F!==void 0&&(Nt.duration=G(F));const Ut=Co(Nt,Tt,gn);M=Ut.ease,F=Ut.duration}F??(F=r);const yn=h+at;I.length===1&&I[0]===0&&(I[1]=1);const vn=I.length-w.length;if(vn>0&&ki(I,vn),w.length===1&&w.unshift(null),rt){F=Nu(F,rt);const Tt=[...w],Nt=[...I];M=Array.isArray(M)?[...M]:[M];const Ut=[...M];for(let Pt=0;Pt<rt;Pt++){w.push(...Tt);for(let St=0;St<Tt.length;St++)I.push(Nt[St]+(Pt+1)),M.push(St===0?"linear":ho(Ut,St-1))}Ku(I,rt)}const xn=yn+F;_u(b,w,M,I,yn,xn),x=Math.max(at+F,x),f=Math.max(xn,f)};if(B(p)){const A=Fs(p,a);P(y,g,Bs("default",A))}else{const A=fo(p,y,s,l),T=A.length;for(let b=0;b<T;b++){y=y,g=g;const C=A[b],V=Fs(C,a);for(const w in y)P(y[w],Hu(g,w),Bs(w,V),b,T)}}c=h,h+=x}return a.forEach((d,m)=>{for(const p in d){const y=d[p];y.sort(Wu);const g=[],x=[],P=[];for(let T=0;T<y.length;T++){const{at:b,value:C,easing:V}=y[T];g.push(C),x.push(mt(0,f,b)),P.push(V||"easeOut")}x[0]!==0&&(x.unshift(0),g.unshift(g[0]),P.unshift(Gu)),x[x.length-1]!==1&&(x.push(1),g.push(null)),o.has(m)||o.set(m,{keyframes:{},transition:{}});const A=o.get(m);A.keyframes[p]=g,A.transition[p]={...e,duration:f,ease:P,times:x,...n}}}),o}function Fs(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Bs(t,e){return e[t]||(e[t]=[]),e[t]}function zu(t){return Array.isArray(t)?t:[t]}function Hu(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Xu=t=>typeof t=="number",Yu=t=>t.every(Xu);function qu(t,e){return t in e}class Zu extends ao{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(qu(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return E()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Ju(t){const e={presenceContext:null,props:{}
9,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Zi(t)?new co(e):new uo(e);n.mount(t),yt.set(t,n)}function Qu(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Zu(e);n.mount(t),yt.set(t,n)}function tc(t,e){return B(t)||typeof t=="number"||typeof t=="string"&&!mn(e)}function mo(t,e,n,s){const i=[];if(tc(t,e))i.push(qi(t,mn(e)&&e.default||e,n&&(n.default||n)));else{const r=fo(t,e,s),o=r.length;for(let a=0;a<o;a++){const l=r[a],u=l instanceof Element?Ju:Qu;yt.has(l)||u(l);const c=yt.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),i.push(...fn(c,{...e,transition:h},{}))}}return i}function ec(t,e,n){const s=[];return $u(t,e,n,{spring:un}).forEach(({keyframes:r,transition:o},a)=>{s.push(...mo(a,r,o))}),s}function nc(t){return Array.isArray(t)&&t.some(Array.isArray)}function sc(t){function e(n,s,i){let r=[];return nc(n)?r=ec(n,s,t):r=mo(n,s,i,t),new ks(r)}return e}const hc=sc();export{rc as A,ac as L,hc as a,uc as m,cc as u};
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.