@gardenfi/garden-book 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +6 -0
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui.cjs.js
CHANGED
|
@@ -62,4 +62,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
62
62
|
top: ${c}px !important;
|
|
63
63
|
left: ${u}px !important;
|
|
64
64
|
}
|
|
65
|
-
`),()=>{document.head.removeChild(d)}},[t]),o.jsx(mo,{isPresent:t,childRef:r,sizeRef:s,children:L.cloneElement(e,{ref:r})})}const yo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a})=>{const l=xe(xo),c=v.useId(),u=v.useCallback(f=>{l.set(f,!0);for(const h of l.values())if(!h)return;r&&r()},[l,r]),d=v.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return v.useMemo(()=>{l.forEach((f,h)=>l.set(h,!1))},[n]),L.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=o.jsx(vo,{isPresent:n,children:e})),o.jsx(t2.Provider,{value:d,children:e})};function xo(){return new Map}function W4(e=!0){const t=v.useContext(t2);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=v.useId();v.useEffect(()=>{e&&s(i)},[e]);const a=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const kt=e=>e.key||"";function v6(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const h3=typeof window<"u",C3=h3?v.useLayoutEffect:v.useEffect,wo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1})=>{const[l,c]=W4(a),u=v.useMemo(()=>v6(e),[e]),d=a&&!l?[]:u.map(kt),f=v.useRef(!0),h=v.useRef(u),p=xe(()=>new Map),[y,C]=v.useState(u),[m,g]=v.useState(u);C3(()=>{f.current=!1,h.current=u;for(let j=0;j<m.length;j++){const b=kt(m[j]);d.includes(b)?p.delete(b):p.get(b)!==!0&&p.set(b,!1)}},[m,d.length,d.join("-")]);const w=[];if(u!==y){let j=[...u];for(let b=0;b<m.length;b++){const k=m[b],S=kt(k);d.includes(S)||(j.splice(b,0,k),w.push(k))}i==="wait"&&w.length&&(j=w),g(v6(j)),C(u);return}process.env.NODE_ENV!=="production"&&i==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:H}=v.useContext(f3);return o.jsx(o.Fragment,{children:m.map(j=>{const b=kt(j),k=a&&!l?!1:u===m||d.includes(b),S=()=>{if(p.has(b))p.set(b,!0);else return;let M=!0;p.forEach(P=>{P||(M=!1)}),M&&(H==null||H(),g(h.current),a&&(c==null||c()),r&&r())};return o.jsx(yo,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:k?void 0:S,children:j},b)})})},A1=e=>e;let $e=A1,Q1=A1;process.env.NODE_ENV!=="production"&&($e=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Q1=(e,t)=>{if(!e)throw new Error(t)});function p3(e){let t;return()=>(t===void 0&&(t=e()),t)}const we=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},U1=e=>e*1e3,Y1=e=>e/1e3,bo={useManualTiming:!1};function Lo(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,c.process(u))}};return c}const Dt=["read","resolveKeyframes","update","preRender","render","postRender"],Vo=40;function z4(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Dt.reduce((g,w)=>(g[w]=Lo(i),g),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:h}=a,p=()=>{const g=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(g-s.timestamp,Vo),1),s.timestamp=g,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:Dt.reduce((g,w)=>{const H=a[w];return g[w]=(j,b=!1,k=!1)=>(n||y(),H.schedule(j,b,k)),g},{}),cancel:g=>{for(let w=0;w<Dt.length;w++)a[Dt[w]].cancel(g)},state:s,steps:a}}const{schedule:c1,cancel:ne,state:T1,steps:j2}=z4(typeof requestAnimationFrame<"u"?requestAnimationFrame:A1,!0),G4=v.createContext({strict:!1}),y6={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"]},Ie={};for(const e in y6)Ie[e]={isEnabled:t=>y6[e].some(n=>!!t[n])};function Mo(e){for(const t in e)Ie[t]={...Ie[t],...e[t]}}const jo=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 Ut(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jo.has(e)}let K4=e=>!Ut(e);function Ho(e){e&&(K4=t=>t.startsWith("on")?!Ut(t):e(t))}try{Ho(require("@emotion/is-prop-valid").default)}catch{}function So(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(K4(s)||n===!0&&Ut(s)||!t&&!Ut(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const x6=new Set;function r2(e,t,n){e||x6.has(t)||(console.warn(t),x6.add(t))}function To(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&r2(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const s2=v.createContext({});function ht(e){return typeof e=="string"||Array.isArray(e)}function o2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const g3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],m3=["initial",...g3];function i2(e){return o2(e.animate)||m3.some(t=>ht(e[t]))}function Y4(e){return!!(i2(e)||e.variants)}function Po(e,t){if(i2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ht(n)?n:void 0,animate:ht(r)?r:void 0}}return e.inherit!==!1?t:{}}function Eo(e){const{initial:t,animate:n}=Po(e,v.useContext(s2));return v.useMemo(()=>({initial:t,animate:n}),[w6(t),w6(n)])}function w6(e){return Array.isArray(e)?e.join(" "):e}const ko=Symbol.for("motionComponentSymbol");function Pe(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Do(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Pe(n)&&(n.current=r))},[t])}const v3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zo="framerAppearId",X4="data-"+v3(Zo),{schedule:y3}=z4(queueMicrotask,!1),q4=v.createContext({});function Ro(e,t,n,r,s){var i,a;const{visualElement:l}=v.useContext(s2),c=v.useContext(G4),u=v.useContext(t2),d=v.useContext(n2).reducedMotion,f=v.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,p=v.useContext(q4);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&Ao(f.current,n,s,p);const y=v.useRef(!1);v.useInsertionEffect(()=>{h&&y.current&&h.update(n,u)});const C=n[X4],m=v.useRef(!!C&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,C))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,C)));return C3(()=>{h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),y3.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),v.useEffect(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,C)}),m.current=!1))}),h}function Ao(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Q4(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Pe(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function Q4(e){if(e)return e.options.allowProjection!==!1?e.projection:Q4(e.parent)}function Oo({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,a;e&&Mo(e);function l(u,d){let f;const h={...v.useContext(n2),...u,layoutId:Io(u)},{isStatic:p}=h,y=Eo(u),C=r(u,p);if(!p&&h3){_o(h,e);const m=Bo(h);f=m.MeasureLayout,y.visualElement=Ro(s,C,h,t,m.ProjectionNode)}return o.jsxs(s2.Provider,{value:y,children:[f&&y.visualElement?o.jsx(f,{visualElement:y.visualElement,...h}):null,n(s,u,Do(C,y.visualElement,d),C,p,y.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(a=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&a!==void 0?a:""})`}`;const c=v.forwardRef(l);return c[ko]=s,c}function Io({layoutId:e}){const t=v.useContext(f3).id;return t&&e!==void 0?t+"-"+e:e}function _o(e,t){const n=v.useContext(G4).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?$e(!1,r):Q1(!1,r)}}function Bo(e){const{drag:t,layout:n}=Ie;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const No=["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 x3(e){return typeof e!="string"||e.includes("-")?!1:!!(No.indexOf(e)>-1||/[A-Z]/u.test(e))}function b6(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function w3(e,t,n,r){if(typeof t=="function"){const[s,i]=b6(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=b6(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const W2=e=>Array.isArray(e),Fo=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Uo=e=>W2(e)?e[e.length-1]||0:e,H1=e=>!!(e&&e.getVelocity);function _t(e){const t=H1(e)?e.get():e;return Fo(t)?t.toValue():t}function $o({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const a={latestValues:Wo(r,s,i,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const J4=e=>(t,n)=>{const r=v.useContext(s2),s=v.useContext(t2),i=()=>$o(e,t,r,s);return n?i():xe(i)};function Wo(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=_t(i[h]);let{initial:a,animate:l}=e;const c=i2(e),u=Y4(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!o2(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=w3(e,h[p]);if(y){const{transitionEnd:C,transition:m,...g}=y;for(const w in g){let H=g[w];if(Array.isArray(H)){const j=d?H.length-1:0;H=H[j]}H!==null&&(s[w]=H)}for(const w in C)s[w]=C[w]}}}return s}const We=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Le=new Set(We),e9=e=>t=>typeof t=="string"&&t.startsWith(e),t9=e9("--"),zo=e9("var(--"),b3=e=>zo(e)?Go.test(e.split("/*")[0].trim()):!1,Go=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,n9=(e,t)=>t&&typeof e=="number"?t.transform(e):e,re=(e,t,n)=>n>t?t:n<e?e:n,ze={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ct={...ze,transform:e=>re(0,1,e)},Zt={...ze,default:1},xt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ce=xt("deg"),X1=xt("%"),G=xt("px"),Ko=xt("vh"),Yo=xt("vw"),L6={...X1,parse:e=>X1.parse(e)/100,transform:e=>X1.transform(e*100)},Xo={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},qo={rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:Zt,scaleX:Zt,scaleY:Zt,scaleZ:Zt,skew:ce,skewX:ce,skewY:ce,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:Ct,originX:L6,originY:L6,originZ:G},V6={...ze,transform:Math.round},L3={...Xo,...qo,zIndex:V6,size:G,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:V6},Qo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jo=We.length;function ei(e,t,n){let r="",s=!0;for(let i=0;i<Jo;i++){const a=We[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=n9(l,L3[a]);if(!c){s=!1;const d=Qo[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function V3(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Le.has(c)){a=!0;continue}else if(t9(c)){s[c]=u;continue}else{const d=n9(u,L3[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=ei(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const ti={offset:"stroke-dashoffset",array:"stroke-dasharray"},ni={offset:"strokeDashoffset",array:"strokeDasharray"};function ri(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?ti:ni;e[i.offset]=G.transform(-r);const a=G.transform(t),l=G.transform(n);e[i.array]=`${a} ${l}`}function M6(e,t,n){return typeof e=="string"?e:G.transform(t+n*e)}function si(e,t,n){const r=M6(t,e.x,e.width),s=M6(n,e.y,e.height);return`${r} ${s}`}function M3(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(V3(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:y}=e;h.transform&&(y&&(p.transform=h.transform),delete h.transform),y&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=si(y,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&ri(h,a,l,c,!1)}const j3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r9=()=>({...j3(),attrs:{}}),H3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function s9(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const o9=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 i9(e,t,n,r){s9(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(o9.has(s)?s:v3(s),t.attrs[s])}const $t={};function oi(e){Object.assign($t,e)}function a9(e,{layout:t,layoutId:n}){return Le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$t[e]||e==="opacity")}function S3(e,t,n){var r;const{style:s}=e,i={};for(const a in s)(H1(s[a])||t.style&&H1(t.style[a])||a9(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=s[a]);return i}function l9(e,t,n){const r=S3(e,t,n);for(const s in e)if(H1(e[s])||H1(t[s])){const i=We.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function ii(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const j6=["x","y","width","height","cx","cy","r"],ai={useVisualState:J4({scrapeMotionValuesFromProps:l9,createRenderState:r9,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(Le.has(l)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let l=0;l<j6.length;l++){const c=j6[l];e[c]!==t[c]&&(a=!0)}a&&c1.read(()=>{ii(n,r),c1.render(()=>{M3(r,s,H3(n.tagName),e.transformTemplate),i9(n,r)})})}})},li={useVisualState:J4({scrapeMotionValuesFromProps:S3,createRenderState:j3})};function c9(e,t,n){for(const r in t)!H1(t[r])&&!a9(r,n)&&(e[r]=t[r])}function ci({transformTemplate:e},t){return v.useMemo(()=>{const n=j3();return V3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ui(e,t){const n=e.style||{},r={};return c9(r,n,e),Object.assign(r,ci(e,t)),r}function di(e,t){const n={},r=ui(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function fi(e,t,n,r){const s=v.useMemo(()=>{const i=r9();return M3(i,t,H3(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};c9(i,e.style,e),s.style={...i,...s.style}}return s}function hi(e=!1){return(n,r,s,{latestValues:i},a)=>{const c=(x3(n)?fi:di)(r,i,a,n),u=So(r,typeof n=="string",e),d=n!==v.Fragment?{...u,...c,ref:s}:{},{children:f}=r,h=v.useMemo(()=>H1(f)?f.get():f,[f]);return v.createElement(n,{...d,children:h})}}function Ci(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...x3(r)?ai:li,preloadedFeatures:e,useRender:hi(s),createVisualElement:t,Component:r};return Oo(a)}}function u9(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function a2(e,t,n){const r=e.getProps();return w3(r,t,n!==void 0?n:r.custom,e)}const pi=p3(()=>window.ScrollTimeline!==void 0);class gi{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(pi()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d9 extends gi{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function T3(e,t){return e?e[t]||e.default||e:void 0}const Wt=2e4;function P3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wt;)t+=n,r=e.next(t);return t>=Wt?1/0:t}function mi(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(P3(r),Wt);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Y1(s)}}function l2(e){return typeof e=="function"}function H6(e,t){e.timeline=t,e.onfinish=null}const E3=e=>Array.isArray(e)&&typeof e[0]=="number",vi={linearEasing:void 0};function yi(e,t){const n=p3(e);return()=>{var r;return(r=vi[t])!==null&&r!==void 0?r:n()}}const zt=yi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),f9=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(we(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function h9(e){return!!(typeof e=="function"&&zt()||!e||typeof e=="string"&&(e in z2||zt())||E3(e)||Array.isArray(e)&&e.every(h9))}const rt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,z2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function C9(e,t){if(e)return typeof e=="function"&&zt()?f9(e,t):E3(e)?rt(e):Array.isArray(e)?e.map(n=>C9(n,t)||z2.easeOut):z2[e]}const F1={x:!1,y:!1};function p9(){return F1.x||F1.y}function g9(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);const i=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function m9(e,t){const n=g9(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function S6(e){return t=>{t.pointerType==="touch"||p9()||e(t)}}function xi(e,t,n={}){const[r,s,i]=m9(e,n),a=S6(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=S6(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",a,s)}),i}const v9=(e,t)=>t?e===t?!0:v9(e,t.parentElement):!1,k3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wi=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bi(e){return wi.has(e.tagName)||e.tabIndex!==-1}const st=new WeakSet;function T6(e){return t=>{t.key==="Enter"&&e(t)}}function H2(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Li=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=T6(()=>{if(st.has(n))return;H2(n,"down");const s=T6(()=>{H2(n,"up")}),i=()=>H2(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function P6(e){return k3(e)&&!p9()}function Vi(e,t,n={}){const[r,s,i]=m9(e,n),a=l=>{const c=l.currentTarget;if(!P6(l)||st.has(c))return;st.add(c);const u=t(l),d=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!P6(p)||!st.has(c))&&(st.delete(c),typeof u=="function"&&u(p,{success:y}))},f=p=>{d(p,n.useGlobalTarget||v9(c,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(l=>{!bi(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),l.addEventListener("focus",u=>Li(u,s),s)}),i}function Mi(e){return e==="x"||e==="y"?F1[e]?null:(F1[e]=!0,()=>{F1[e]=!1}):F1.x||F1.y?null:(F1.x=F1.y=!0,()=>{F1.x=F1.y=!1})}const y9=new Set(["width","height","top","left","right","bottom",...We]);let Bt;function ji(){Bt=void 0}const q1={now:()=>(Bt===void 0&&q1.set(T1.isProcessing||bo.useManualTiming?T1.timestamp:performance.now()),Bt),set:e=>{Bt=e,queueMicrotask(ji)}};function D3(e,t){e.indexOf(t)===-1&&e.push(t)}function c2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Z3{constructor(){this.subscriptions=[]}add(t){return D3(this.subscriptions,t),()=>c2(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function x9(e,t){return t?e*(1e3/t):0}const E6=30,Hi=e=>!isNaN(parseFloat(e)),it={current:void 0};class Si{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=q1.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=q1.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hi(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&r2(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Z3);const r=this.events[t].add(n);return t==="change"?()=>{r(),c1.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return it.current&&it.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=q1.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>E6)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,E6);return x9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 _e(e,t){return new Si(e,t)}function Ti(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_e(n))}function Pi(e,t){const n=a2(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=Uo(i[a]);Ti(e,a,l)}}function Ei(e){return!!(H1(e)&&e.add)}function G2(e,t){const n=e.getValue("willChange");if(Ei(n))return n.add(t)}function w9(e){return e.props[X4]}const b9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ki=1e-7,Di=12;function Zi(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=b9(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>ki&&++l<Di);return a}function Ge(e,t,n,r){if(e===t&&n===r)return A1;const s=i=>Zi(i,0,1,e,n);return i=>i===0||i===1?i:b9(s(i),t,r)}const L9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V9=e=>t=>1-e(1-t),M9=Ge(.33,1.53,.69,.99),R3=V9(M9),j9=L9(R3),H9=e=>(e*=2)<1?.5*R3(e):.5*(2-Math.pow(2,-10*(e-1))),A3=e=>1-Math.sin(Math.acos(e)),S9=V9(A3),T9=L9(A3),P9=e=>/^0[^.\s]+$/u.test(e);function Ri(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||P9(e):!0}const at=e=>Math.round(e*1e5)/1e5,O3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ai(e){return e==null}const Oi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,I3=(e,t)=>n=>!!(typeof n=="string"&&Oi.test(n)&&n.startsWith(e)||t&&!Ai(n)&&Object.prototype.hasOwnProperty.call(n,t)),E9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(O3);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},Ii=e=>re(0,255,e),S2={...ze,transform:e=>Math.round(Ii(e))},me={test:I3("rgb","red"),parse:E9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+S2.transform(e)+", "+S2.transform(t)+", "+S2.transform(n)+", "+at(Ct.transform(r))+")"};function _i(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const K2={test:I3("#"),parse:_i,transform:me.transform},Ee={test:I3("hsl","hue"),parse:E9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+X1.transform(at(t))+", "+X1.transform(at(n))+", "+at(Ct.transform(r))+")"},P1={test:e=>me.test(e)||K2.test(e)||Ee.test(e),parse:e=>me.test(e)?me.parse(e):Ee.test(e)?Ee.parse(e):K2.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?me.transform(e):Ee.transform(e)},Bi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ni(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(O3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Bi))===null||n===void 0?void 0:n.length)||0)>0}const k9="number",D9="color",Fi="var",Ui="var(",k6="${}",$i=/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 pt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace($i,c=>(P1.test(c)?(r.color.push(i),s.push(D9),n.push(P1.parse(c))):c.startsWith(Ui)?(r.var.push(i),s.push(Fi),n.push(c)):(r.number.push(i),s.push(k9),n.push(parseFloat(c))),++i,k6)).split(k6);return{values:n,split:l,indexes:r,types:s}}function Z9(e){return pt(e).values}function R9(e){const{split:t,types:n}=pt(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===k9?i+=at(s[a]):l===D9?i+=P1.transform(s[a]):i+=s[a]}return i}}const Wi=e=>typeof e=="number"?0:e;function zi(e){const t=Z9(e);return R9(e)(t.map(Wi))}const de={test:Ni,parse:Z9,createTransformer:R9,getAnimatableNone:zi},Gi=new Set(["brightness","contrast","saturate","opacity"]);function Ki(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(O3)||[];if(!r)return e;const s=n.replace(r,"");let i=Gi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Yi=/\b([a-z-]*)\(.*?\)/gu,Y2={...de,getAnimatableNone:e=>{const t=e.match(Yi);return t?t.map(Ki).join(" "):e}},Xi={...L3,color:P1,backgroundColor:P1,outlineColor:P1,fill:P1,stroke:P1,borderColor:P1,borderTopColor:P1,borderRightColor:P1,borderBottomColor:P1,borderLeftColor:P1,filter:Y2,WebkitFilter:Y2},_3=e=>Xi[e];function A9(e,t){let n=_3(e);return n!==Y2&&(n=de),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qi=new Set(["auto","none","0"]);function Qi(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!qi.has(i)&&pt(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=A9(n,s)}const D6=e=>e===ze||e===G,Z6=(e,t)=>parseFloat(e.split(", ")[t]),R6=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Z6(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Z6(i[1],e):0}},Ji=new Set(["x","y","z"]),ea=We.filter(e=>!Ji.has(e));function ta(e){const t=[];return ea.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:R6(4,13),y:R6(5,14)};Be.translateX=Be.x;Be.translateY=Be.y;const ve=new Set;let X2=!1,q2=!1;function O9(){if(q2){const e=Array.from(ve).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=ta(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,a])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}q2=!1,X2=!1,ve.forEach(e=>e.complete()),ve.clear()}function I9(){ve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(q2=!0)})}function na(){I9(),O9()}class B3{constructor(t,n,r,s,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ve.add(this),X2||(X2=!0,c1.read(I9),c1.resolveKeyframes(O9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=s==null?void 0:s.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),s&&a===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ve.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ve.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ra=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sa(e){const t=ra.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const oa=4;function B9(e,t,n=1){Q1(n<=oa,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=sa(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return _9(a)?parseFloat(a):a}return b3(s)?B9(s,t,n+1):s}const N9=e=>t=>t.test(e),ia={test:e=>e==="auto",parse:e=>e},F9=[ze,G,X1,ce,Yo,Ko,ia],A6=e=>F9.find(N9(e));class U9 extends B3{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),b3(u))){const d=B9(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!y9.has(r)||t.length!==2)return;const[s,i]=t,a=A6(s),l=A6(i);if(a!==l)if(D6(a)&&D6(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)Ri(t[s])&&r.push(s);r.length&&Qi(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=s.length-1,l=s[a];s[a]=Be[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const O6=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(de.test(e)||e==="0")&&!e.startsWith("url("));function aa(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function la(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=O6(s,t),l=O6(i,t);return $e(a===l,`You are trying to animate ${t} from "${s}" to "${i}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${i} via the \`style\` property.`),!a||!l?!1:aa(e)||(n==="spring"||l2(n))&&r}const ca=e=>e!==null;function u2(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(ca),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const ua=40;class $9{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=q1.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ua?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&na(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=q1.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!la(t,r,s,i))if(a)this.options.duration=0;else{c&&c(u2(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const C1=(e,t,n)=>e+(t-e)*n;function T2(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function da({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=T2(c,l,e+1/3),i=T2(c,l,e),a=T2(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Gt(e,t){return n=>n>0?t:e}const P2=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},fa=[K2,me,Ee],ha=e=>fa.find(t=>t.test(e));function I6(e){const t=ha(e);if($e(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ee&&(n=da(n)),n}const _6=(e,t)=>{const n=I6(e),r=I6(t);if(!n||!r)return Gt(e,t);const s={...n};return i=>(s.red=P2(n.red,r.red,i),s.green=P2(n.green,r.green,i),s.blue=P2(n.blue,r.blue,i),s.alpha=C1(n.alpha,r.alpha,i),me.transform(s))},Ca=(e,t)=>n=>t(e(n)),wt=(...e)=>e.reduce(Ca),Q2=new Set(["none","hidden"]);function pa(e,t){return Q2.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ga(e,t){return n=>C1(e,t,n)}function N3(e){return typeof e=="number"?ga:typeof e=="string"?b3(e)?Gt:P1.test(e)?_6:ya:Array.isArray(e)?W9:typeof e=="object"?P1.test(e)?_6:ma:Gt}function W9(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>N3(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function ma(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=N3(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function va(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],l=e.indexes[a][s[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=c,s[a]++}return r}const ya=(e,t)=>{const n=de.createTransformer(t),r=pt(e),s=pt(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Q2.has(e)&&!s.values.length||Q2.has(t)&&!r.values.length?pa(e,t):wt(W9(va(r,s),s.values),n):($e(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Gt(e,t))};function z9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?C1(e,t,n):N3(e)(e,t)}const xa=5;function G9(e,t,n){const r=Math.max(t-xa,0);return x9(n-e(r),t-r)}const v1={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},E2=.001;function wa({duration:e=v1.duration,bounce:t=v1.bounce,velocity:n=v1.velocity,mass:r=v1.mass}){let s,i;$e(e<=U1(v1.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=re(v1.minDamping,v1.maxDamping,a),e=re(v1.minDuration,v1.maxDuration,Y1(e)),a<1?(s=u=>{const d=u*a,f=d*e,h=d-n,p=J2(u,a),y=Math.exp(-f);return E2-h/p*y},i=u=>{const f=u*a*e,h=f*n+n,p=Math.pow(a,2)*Math.pow(u,2)*e,y=Math.exp(-f),C=J2(Math.pow(u,2),a);return(-s(u)+E2>0?-1:1)*((h-p)*y)/C}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-E2+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=La(s,i,l);if(e=U1(e),isNaN(c))return{stiffness:v1.stiffness,damping:v1.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const ba=12;function La(e,t,n){let r=n;for(let s=1;s<ba;s++)r=r-e(r)/t(r);return r}function J2(e,t){return e*Math.sqrt(1-t*t)}const Va=["duration","bounce"],Ma=["stiffness","damping","mass"];function B6(e,t){return t.some(n=>e[n]!==void 0)}function ja(e){let t={velocity:v1.velocity,stiffness:v1.stiffness,damping:v1.damping,mass:v1.mass,isResolvedFromDuration:!1,...e};if(!B6(e,Ma)&&B6(e,Va))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*re(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:v1.mass,stiffness:s,damping:i}}else{const n=wa(e);t={...t,...n,mass:v1.mass},t.isResolvedFromDuration=!0}return t}function F3(e=v1.visualDuration,t=v1.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=ja({...n,velocity:-Y1(n.velocity||0)}),y=h||0,C=u/(2*Math.sqrt(c*d)),m=a-i,g=Y1(Math.sqrt(c/d)),w=Math.abs(m)<5;r||(r=w?v1.restSpeed.granular:v1.restSpeed.default),s||(s=w?v1.restDelta.granular:v1.restDelta.default);let H;if(C<1){const b=J2(g,C);H=k=>{const S=Math.exp(-C*g*k);return a-S*((y+C*g*m)/b*Math.sin(b*k)+m*Math.cos(b*k))}}else if(C===1)H=b=>a-Math.exp(-g*b)*(m+(y+g*m)*b);else{const b=g*Math.sqrt(C*C-1);H=k=>{const S=Math.exp(-C*g*k),M=Math.min(b*k,300);return a-S*((y+C*g*m)*Math.sinh(M)+b*m*Math.cosh(M))/b}}const j={calculatedDuration:p&&f||null,next:b=>{const k=H(b);if(p)l.done=b>=f;else{let S=0;C<1&&(S=b===0?U1(y):G9(H,b,k));const M=Math.abs(S)<=r,P=Math.abs(a-k)<=s;l.done=M&&P}return l.value=l.done?a:k,l},toString:()=>{const b=Math.min(P3(j),Wt),k=f9(S=>j.next(b*S).value,b,30);return b+"ms "+k}};return j}function N6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=M=>l!==void 0&&M<l||c!==void 0&&M>c,y=M=>l===void 0?c:c===void 0||Math.abs(l-M)<Math.abs(c-M)?l:c;let C=n*t;const m=f+C,g=a===void 0?m:a(m);g!==m&&(C=g-f);const w=M=>-C*Math.exp(-M/r),H=M=>g+w(M),j=M=>{const P=w(M),B=H(M);h.done=Math.abs(P)<=u,h.value=h.done?g:B};let b,k;const S=M=>{p(h.value)&&(b=M,k=F3({keyframes:[h.value,y(h.value)],velocity:G9(H,M,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return S(0),{calculatedDuration:null,next:M=>{let P=!1;return!k&&b===void 0&&(P=!0,j(M),S(M)),b!==void 0&&M>=b?k.next(M-b):(!P&&j(M),h)}}}const Ha=Ge(.42,0,1,1),Sa=Ge(0,0,.58,1),K9=Ge(.42,0,.58,1),Y9=e=>Array.isArray(e)&&typeof e[0]!="number",F6={linear:A1,easeIn:Ha,easeInOut:K9,easeOut:Sa,circIn:A3,circInOut:T9,circOut:S9,backIn:R3,backInOut:j9,backOut:M9,anticipate:H9},e3=e=>{if(E3(e)){Q1(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return Ge(t,n,r,s)}else if(typeof e=="string")return Q1(F6[e]!==void 0,`Invalid easing type '${e}'`),F6[e];return e};function Ta(e,t,n){const r=[],s=n||z9,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||A1:t;l=wt(c,l)}r.push(l)}return r}function X9(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Q1(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Ta(t,r,s),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=we(e[f],e[f+1],d);return l[f](h)};return n?d=>u(re(e[0],e[i-1],d)):u}function q9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=we(0,t,r);e.push(C1(n,1,s))}}function Q9(e){const t=[0];return q9(t,e.length-1),t}function Pa(e,t){return e.map(n=>n*t)}function Ea(e,t){return e.map(()=>t||K9).splice(0,e.length-1)}function Kt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Y9(r)?r.map(e3):e3(r),i={done:!1,value:t[0]},a=Pa(n&&n.length===t.length?n:Q9(t),e),l=X9(a,t,{ease:Array.isArray(s)?s:Ea(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const ka=e=>{const t=({timestamp:n})=>e(n);return{start:()=>c1.update(t,!0),stop:()=>ne(t),now:()=>T1.isProcessing?T1.timestamp:q1.now()}},Da={decay:N6,inertia:N6,tween:Kt,keyframes:Kt,spring:F3},Za=e=>e/100;class U3 extends $9{constructor(t){super(t),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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,a=(s==null?void 0:s.KeyframeResolver)||B3,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=this.options,l=l2(n)?n:Da[n]||Kt;let c,u;l!==Kt&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Q1(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=wt(Za,z9(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=P3(d));const{calculatedDuration:f}=d,h=f+s,p=h*(r+1)-s;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:y,repeatDelay:C,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?g<0:g>d;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let H=this.currentTime,j=i;if(p){const M=Math.min(this.currentTime,d)/f;let P=Math.floor(M),B=M%1;!B&&M>=1&&(B=1),B===1&&P--,P=Math.min(P,p+1),!!(P%2)&&(y==="reverse"?(B=1-B,C&&(B-=C/f)):y==="mirror"&&(j=a)),H=re(0,1,B)*f}const b=w?{done:!1,value:c[0]}:j.next(H);l&&(b.value=l(b.value));let{done:k}=b;!w&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return S&&s!==void 0&&(b.value=u2(c,this.options,s)),m&&m(b.value),S&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Y1(t.calculatedDuration):0}get time(){return Y1(this.currentTime)}set time(t){t=U1(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Y1(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ka,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const Ra=new Set(["opacity","clipPath","filter","transform"]);function Aa(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=C9(l,s);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const Oa=p3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yt=10,Ia=2e4;function _a(e){return l2(e.type)||e.type==="spring"||!h9(e.ease)}function Ba(e,t){const n=new U3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<Ia;)r=n.sample(i),s.push(r.value),i+=Yt;return{times:void 0,keyframes:s,duration:i-Yt,ease:"linear"}}const J9={anticipate:H9,backInOut:j9,circInOut:T9};function Na(e){return e in J9}class U6 extends $9{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new U9(i,(a,l)=>this.onKeyframesResolved(a,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&zt()&&Na(i)&&(i=J9[i]),_a(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:y,...C}=this.options,m=Ba(t,C);t=m.keyframes,t.length===1&&(t[1]=t[0]),r=m.duration,s=m.times,i=m.ease,a="keyframes"}const d=Aa(l.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(H6(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(u2(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Y1(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Y1(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=U1(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return A1;const{animation:r}=n;H6(r,t)}return A1}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...p}=this.options,y=new U3({...p,keyframes:r,duration:s,type:i,ease:a,times:l,isGenerator:!0}),C=U1(this.time);u.setWithVelocity(y.sample(C-Yt).value,y.sample(C).value,Yt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return Oa()&&r&&Ra.has(r)&&!c&&!u&&!s&&i!=="mirror"&&a!==0&&l!=="inertia"}}const Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$a={type:"keyframes",duration:.8},Wa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},za=(e,{keyframes:t})=>t.length>2?$a:Le.has(e)?e.startsWith("scale")?Ua(t[1]):Fa:Wa;function Ga({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const $3=(e,t,n,r={},s,i)=>a=>{const l=T3(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-U1(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};Ga(l)||(d={...d,...za(e,d)}),d.duration&&(d.duration=U1(d.duration)),d.repeatDelay&&(d.repeatDelay=U1(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const h=u2(d.keyframes,l);if(h!==void 0)return c1.update(()=>{d.onUpdate(h),d.onComplete()}),new d9([])}return!i&&U6.supports(d)?new U6(d):new U3(d)};function Ka({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W3(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in c){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=c[f];if(p===void 0||d&&Ka(d,f))continue;const y={delay:n,...T3(a||{},f)};let C=!1;if(window.MotionHandoffAnimation){const g=w9(e);if(g){const w=window.MotionHandoffAnimation(g,f,c1);w!==null&&(y.startTime=w,C=!0)}}G2(e,f),h.start($3(f,h,p,e.shouldReduceMotion&&y9.has(f)?{type:!1}:y,e,C));const m=h.animation;m&&u.push(m)}return l&&Promise.all(u).then(()=>{c1.update(()=>{l&&Pi(e,l)})}),u}function t3(e,t,n={}){var r;const s=a2(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const a=s?()=>Promise.all(W3(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return Ya(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function Ya(e,t,n=0,r=0,s=1,i){const a=[],l=(e.variantChildren.size-1)*r,c=s===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Xa).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(t3(u,t,{...i,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Xa(e,t){return e.sortNodePosition(t)}function qa(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>t3(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=t3(e,t,n);else{const s=typeof t=="function"?a2(e,t,n.custom):t;r=Promise.all(W3(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Qa=m3.length;function en(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?en(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qa;n++){const r=m3[n],s=e.props[r];(ht(s)||s===!1)&&(t[r]=s)}return t}const Ja=[...g3].reverse(),el=g3.length;function tl(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qa(e,n,r)))}function nl(e){let t=tl(e),n=$6(),r=!0;const s=c=>(u,d)=>{var f;const h=a2(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:y,...C}=h;u={...u,...C,...y}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=en(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let m=0;m<el;m++){const g=Ja[m],w=n[g],H=u[g]!==void 0?u[g]:d[g],j=ht(H),b=g===c?w.isActive:null;b===!1&&(y=m);let k=H===d[g]&&H!==u[g]&&j;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...p},!w.isActive&&b===null||!H&&!w.prevProp||o2(H)||typeof H=="boolean")continue;const S=rl(w.prevProp,H);let M=S||g===c&&w.isActive&&!k&&j||m>y&&j,P=!1;const B=Array.isArray(H)?H:[H];let N=B.reduce(s(g),{});b===!1&&(N={});const{prevResolvedValues:A={}}=w,R={...A,...N},K=U=>{M=!0,h.has(U)&&(P=!0,h.delete(U)),w.needsAnimating[U]=!0;const z=e.getValue(U);z&&(z.liveStyle=!1)};for(const U in R){const z=N[U],n1=A[U];if(p.hasOwnProperty(U))continue;let X=!1;W2(z)&&W2(n1)?X=!u9(z,n1):X=z!==n1,X?z!=null?K(U):h.add(U):z!==void 0&&h.has(U)?K(U):w.protectedKeys[U]=!0}w.prevProp=H,w.prevResolvedValues=N,w.isActive&&(p={...p,...N}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(k&&S)||P)&&f.push(...B.map(U=>({animation:U,options:{type:g}})))}if(h.size){const m={};h.forEach(g=>{const w=e.getBaseTarget(g),H=e.getValue(g);H&&(H.liveStyle=!0),m[g]=w??null}),f.push({animation:m})}let C=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),n[c].isActive=u;const f=a(c);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=$6(),r=!0}}}function rl(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!u9(t,e):!1}function Ce(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $6(){return{animate:Ce(!0),whileInView:Ce(),whileHover:Ce(),whileTap:Ce(),whileDrag:Ce(),whileFocus:Ce(),exit:Ce()}}class fe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sl extends fe{constructor(t){super(t),t.animationState||(t.animationState=nl(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();o2(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ol=0;class il extends fe{constructor(){super(...arguments),this.id=ol++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const al={animation:{Feature:sl},exit:{Feature:il}};function gt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bt(e){return{point:{x:e.pageX,y:e.pageY}}}const ll=e=>t=>k3(t)&&e(t,bt(t));function lt(e,t,n,r){return gt(e,t,ll(n),r)}const W6=(e,t)=>Math.abs(e-t);function cl(e,t){const n=W6(e.x,t.x),r=W6(e.y,t.y);return Math.sqrt(n**2+r**2)}class tn{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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 f=D2(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=cl(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:y}=f,{timestamp:C}=T1;this.history.push({...y,timestamp:C});const{onStart:m,onMove:g}=this.handlers;h||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=k2(h,this.transformPagePoint),c1.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=D2(f.type==="pointercancel"?this.lastMoveEventInfo:k2(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,m),y&&y(f,m)},!k3(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=bt(t),l=k2(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=T1;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,D2(l,this.history)),this.removeListeners=wt(lt(this.contextWindow,"pointermove",this.handlePointerMove),lt(this.contextWindow,"pointerup",this.handlePointerUp),lt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ne(this.updatePoint)}}function k2(e,t){return t?{point:t(e.point)}:e}function z6(e,t){return{x:e.x-t.x,y:e.y-t.y}}function D2({point:e},t){return{point:e,delta:z6(e,nn(t)),offset:z6(e,ul(t)),velocity:dl(t,.1)}}function ul(e){return e[0]}function nn(e){return e[e.length-1]}function dl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=nn(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>U1(t)));)n--;if(!r)return{x:0,y:0};const i=Y1(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const rn=1e-4,fl=1-rn,hl=1+rn,sn=.01,Cl=0-sn,pl=0+sn;function I1(e){return e.max-e.min}function gl(e,t,n){return Math.abs(e-t)<=n}function G6(e,t,n,r=.5){e.origin=r,e.originPoint=C1(t.min,t.max,e.origin),e.scale=I1(n)/I1(t),e.translate=C1(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fl&&e.scale<=hl||isNaN(e.scale))&&(e.scale=1),(e.translate>=Cl&&e.translate<=pl||isNaN(e.translate))&&(e.translate=0)}function ct(e,t,n,r){G6(e.x,t.x,n.x,r?r.originX:void 0),G6(e.y,t.y,n.y,r?r.originY:void 0)}function K6(e,t,n){e.min=n.min+t.min,e.max=e.min+I1(t)}function ml(e,t,n){K6(e.x,t.x,n.x),K6(e.y,t.y,n.y)}function Y6(e,t,n){e.min=t.min-n.min,e.max=e.min+I1(t)}function ut(e,t,n){Y6(e.x,t.x,n.x),Y6(e.y,t.y,n.y)}function vl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?C1(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?C1(n,e,r.max):Math.min(e,n)),e}function X6(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yl(e,{top:t,left:n,bottom:r,right:s}){return{x:X6(e.x,n,s),y:X6(e.y,t,r)}}function q6(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xl(e,t){return{x:q6(e.x,t.x),y:q6(e.y,t.y)}}function wl(e,t){let n=.5;const r=I1(e),s=I1(t);return s>r?n=we(t.min,t.max-r,e.min):r>s&&(n=we(e.min,e.max-s,t.min)),re(0,1,n)}function bl(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const n3=.35;function Ll(e=n3){return e===!1?e=0:e===!0&&(e=n3),{x:Q6(e,"left","right"),y:Q6(e,"top","bottom")}}function Q6(e,t,n){return{min:J6(e,t),max:J6(e,n)}}function J6(e,t){return typeof e=="number"?e:e[t]||0}const e5=()=>({translate:0,scale:1,origin:0,originPoint:0}),ke=()=>({x:e5(),y:e5()}),t5=()=>({min:0,max:0}),x1=()=>({x:t5(),y:t5()});function N1(e){return[e("x"),e("y")]}function on({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vl({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ml(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Z2(e){return e===void 0||e===1}function r3({scale:e,scaleX:t,scaleY:n}){return!Z2(e)||!Z2(t)||!Z2(n)}function pe(e){return r3(e)||an(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function an(e){return n5(e.x)||n5(e.y)}function n5(e){return e&&e!=="0%"}function Xt(e,t,n){const r=e-n,s=t*r;return n+s}function r5(e,t,n,r,s){return s!==void 0&&(e=Xt(e,s,r)),Xt(e,n,r)+t}function s3(e,t=0,n=1,r,s){e.min=r5(e.min,t,n,r,s),e.max=r5(e.max,t,n,r,s)}function ln(e,{x:t,y:n}){s3(e.x,t.translate,t.scale,t.originPoint),s3(e.y,n.translate,n.scale,n.originPoint)}const s5=.999999999999,o5=1.0000000000001;function jl(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ze(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ln(e,a)),r&&pe(i.latestValues)&&Ze(e,i.latestValues))}t.x<o5&&t.x>s5&&(t.x=1),t.y<o5&&t.y>s5&&(t.y=1)}function De(e,t){e.min=e.min+t,e.max=e.max+t}function i5(e,t,n,r,s=.5){const i=C1(e.min,e.max,s);s3(e,t,n,i,r)}function Ze(e,t){i5(e.x,t.x,t.scaleX,t.scale,t.originX),i5(e.y,t.y,t.scaleY,t.scale,t.originY)}function cn(e,t){return on(Ml(e.getBoundingClientRect(),t))}function Hl(e,t,n){const r=cn(e,n),{scroll:s}=t;return s&&(De(r.x,s.offset.x),De(r.y,s.offset.y)),r}const un=({current:e})=>e?e.ownerDocument.defaultView:null,Sl=new WeakMap;class Tl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=x1(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bt(d).point)},i=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:y}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Mi(h),!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),N1(m=>{let g=this.getAxisMotionValue(m).get()||0;if(X1.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const H=w.layout.layoutBox[m];H&&(g=I1(H)*(parseFloat(g)/100))}}this.originPoint[m]=g}),y&&c1.postRender(()=>y(d,f)),G2(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:y,onDrag:C}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=f;if(p&&this.currentDirection===null){this.currentDirection=Pl(m),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),C&&C(d,f)},l=(d,f)=>this.stop(d,f),c=()=>N1(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tn(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:un(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&c1.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Rt(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vl(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Pe(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=yl(s.layoutBox,n):this.constraints=!1,this.elastic=Ll(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&N1(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=bl(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pe(t))return!1;const r=t.current;Q1(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Hl(r,s.root,this.visualElement.getTransformPagePoint());let a=xl(s.layout.layoutBox,i);if(n){const l=n(Vl(a));this.hasMutatedConstraints=!!l,l&&(a=on(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=N1(d=>{if(!Rt(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return G2(this.visualElement,t),r.start($3(t,r,0,n,this.visualElement,!1))}stopAnimation(){N1(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){N1(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){N1(n=>{const{drag:r}=this.getProps();if(!Rt(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];i.set(t[n]-C1(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pe(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};N1(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();s[a]=wl({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),N1(a=>{if(!Rt(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(C1(c,u,s[a]))})}addListeners(){if(!this.visualElement.current)return;Sl.set(this.visualElement,this);const t=this.visualElement.current,n=lt(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Pe(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),c1.read(r);const a=gt(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(N1(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=n3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function Rt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pl(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class El extends fe{constructor(t){super(t),this.removeGroupControls=A1,this.removeListeners=A1,this.controls=new Tl(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A1}unmount(){this.removeGroupControls(),this.removeListeners()}}const a5=e=>(t,n)=>{e&&c1.postRender(()=>e(t,n))};class kl extends fe{constructor(){super(...arguments),this.removePointerDownListener=A1}onPointerDown(t){this.session=new tn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:un(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:a5(t),onStart:a5(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&c1.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=lt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function l5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const tt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=l5(e,t.target.x),r=l5(e,t.target.y);return`${n}% ${r}%`}},Dl={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=de.parse(e);if(s.length>5)return r;const i=de.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=c;const u=C1(l,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=u),typeof s[3+a]=="number"&&(s[3+a]/=u),i(s)}};class Zl extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;oi(Rl),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,s||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||c1.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),y3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dn(e){const[t,n]=W4(),r=v.useContext(f3);return o.jsx(Zl,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(q4),isPresent:t,safeToRemove:n})}const Rl={borderRadius:{...tt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomLeftRadius:tt,borderBottomRightRadius:tt,boxShadow:Dl};function fn(e,t,n){const r=H1(e)?e:_e(e);return r.start($3("",r,t,n)),r.animation}function hn(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Al=(e,t)=>e.depth-t.depth;class Ol{constructor(){this.children=[],this.isDirty=!1}add(t){D3(this.children,t),this.isDirty=!0}remove(t){c2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Al),this.isDirty=!1,this.children.forEach(t)}}function Il(e,t){const n=q1.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ne(r),e(i-t))};return c1.read(r,!0),()=>ne(r)}const Cn=["TopLeft","TopRight","BottomLeft","BottomRight"],_l=Cn.length,c5=e=>typeof e=="string"?parseFloat(e):e,u5=e=>typeof e=="number"||G.test(e);function Bl(e,t,n,r,s,i){s?(e.opacity=C1(0,n.opacity!==void 0?n.opacity:1,Nl(r)),e.opacityExit=C1(t.opacity!==void 0?t.opacity:1,0,Fl(r))):i&&(e.opacity=C1(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<_l;a++){const l=`border${Cn[a]}Radius`;let c=d5(t,l),u=d5(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||u5(c)===u5(u)?(e[l]=Math.max(C1(c5(c),c5(u),r),0),(X1.test(u)||X1.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=C1(t.rotate||0,n.rotate||0,r))}function d5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Nl=pn(0,.5,S9),Fl=pn(.5,.95,A1);function pn(e,t,n){return r=>r<e?0:r>t?1:n(we(e,t,r))}function f5(e,t){e.min=t.min,e.max=t.max}function B1(e,t){f5(e.x,t.x),f5(e.y,t.y)}function h5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function C5(e,t,n,r,s){return e-=t,e=Xt(e,1/n,r),s!==void 0&&(e=Xt(e,1/s,r)),e}function Ul(e,t=0,n=1,r=.5,s,i=e,a=e){if(X1.test(t)&&(t=parseFloat(t),t=C1(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=C1(i.min,i.max,r);e===i&&(l-=t),e.min=C5(e.min,t,n,l,s),e.max=C5(e.max,t,n,l,s)}function p5(e,t,[n,r,s],i,a){Ul(e,t[n],t[r],t[s],t.scale,i,a)}const $l=["x","scaleX","originX"],Wl=["y","scaleY","originY"];function g5(e,t,n,r){p5(e.x,t,$l,n?n.x:void 0,r?r.x:void 0),p5(e.y,t,Wl,n?n.y:void 0,r?r.y:void 0)}function m5(e){return e.translate===0&&e.scale===1}function gn(e){return m5(e.x)&&m5(e.y)}function v5(e,t){return e.min===t.min&&e.max===t.max}function zl(e,t){return v5(e.x,t.x)&&v5(e.y,t.y)}function y5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mn(e,t){return y5(e.x,t.x)&&y5(e.y,t.y)}function x5(e){return I1(e.x)/I1(e.y)}function w5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Gl{constructor(){this.members=[]}add(t){D3(this.members,t),t.scheduleRender()}remove(t){if(c2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kl(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:p,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ge={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ot=typeof window<"u"&&window.MotionDebug!==void 0,R2=["","X","Y","Z"],Yl={visibility:"hidden"},b5=1e3;let Xl=0;function A2(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function vn(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=w9(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",c1,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&vn(r)}function yn({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=Xl++,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,ot&&(ge.totalNodes=ge.resolvedTargetDeltas=ge.recalculatedProjection=0),this.nodes.forEach(Jl),this.nodes.forEach(sc),this.nodes.forEach(oc),this.nodes.forEach(ec),ot&&window.MotionDebug.record(ge)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ol)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Z3),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hn(a),this.instance=a;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Il(h,250),Nt.hasAnimatedSinceResize&&(Nt.hasAnimatedSinceResize=!1,this.nodes.forEach(V5))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||d.getDefaultTransition()||uc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=d.getProps(),w=!this.targetLayout||!mn(this.targetLayout,y)||p,H=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,H);const j={...T3(C,"layout"),onPlay:m,onComplete:g};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else h||V5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ne(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(ic),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(L5);return}this.isUpdating||this.nodes.forEach(nc),this.isUpdating=!1,this.nodes.forEach(rc),this.nodes.forEach(ql),this.nodes.forEach(Ql),this.clearAllSnapshots();const l=q1.now();T1.delta=re(0,1e3/60,l-T1.timestamp),T1.timestamp=l,T1.isProcessing=!0,j2.update.process(T1),j2.preRender.process(T1),j2.render.process(T1),T1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,y3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tc),this.sharedNodes.forEach(ac)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,c1.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){c1.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=x1(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!gn(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||pe(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),dc(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return x1();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(fc))){const{scroll:d}=this.root;d&&(De(c.x,d.offset.x),De(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=x1();if(B1(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&B1(c,a),De(c.x,f.offset.x),De(c.y,f.offset.y))}return c}applyTransform(a,l=!1){const c=x1();B1(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ze(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),pe(d.latestValues)&&Ze(c,d.latestValues)}return pe(this.latestValues)&&Ze(c,this.latestValues),c}removeTransform(a){const l=x1();B1(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!pe(u.latestValues))continue;r3(u.latestValues)&&u.updateSnapshot();const d=x1(),f=u.measurePageBox();B1(d,f),g5(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return pe(this.latestValues)&&g5(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==T1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=T1.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=x1(),this.relativeTargetOrigin=x1(),ut(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),B1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=x1(),this.targetWithTransforms=x1()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ml(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):B1(this.target,this.layout.layoutBox),ln(this.target,this.targetDelta)):B1(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=x1(),this.relativeTargetOrigin=x1(),ut(this.relativeTargetOrigin,this.target,p.target),B1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ot&&ge.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||r3(this.parent.latestValues)||an(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 a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===T1.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;B1(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;jl(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=x1());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(h5(this.prevProjectionDelta.x,this.projectionDelta.x),h5(this.prevProjectionDelta.y,this.projectionDelta.y)),ct(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!w5(this.projectionDelta.x,this.prevProjectionDelta.x)||!w5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),ot&&ge.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ke(),this.projectionDelta=ke(),this.projectionDeltaWithTransform=ke()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=ke();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=x1(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,C=p!==y,m=this.getStack(),g=!m||m.members.length<=1,w=!!(C&&!g&&this.options.crossfade===!0&&!this.path.some(cc));this.animationProgress=0;let H;this.mixTargetDelta=j=>{const b=j/1e3;M5(f.x,a.x,b),M5(f.y,a.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ut(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lc(this.relativeTarget,this.relativeTargetOrigin,h,b),H&&zl(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=x1()),B1(H,this.relativeTarget)),C&&(this.animationValues=d,Bl(d,u,this.latestValues,b,w,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ne(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=c1.update(()=>{Nt.hasAnimatedSinceResize=!0,this.currentAnimation=fn(0,b5,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(b5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&xn(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||x1();const f=I1(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const h=I1(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}B1(l,c),Ze(l,d),ct(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Gl),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&A2("z",a,u,this.animationValues);for(let d=0;d<R2.length;d++)A2(`rotate${R2[d]}`,a,u,this.animationValues),A2(`skew${R2[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yl;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=_t(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=_t(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!pe(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Kl(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:p,y}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const C in $t){if(h[C]===void 0)continue;const{correct:m,applyTo:g}=$t[C],w=u.transform==="none"?h[C]:m(h[C],f);if(g){const H=g.length;for(let j=0;j<H;j++)u[g[j]]=w}else u[C]=w}return this.options.layoutId&&(u.pointerEvents=f===this?_t(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(L5),this.root.sharedNodes.clear()}}}function ql(e){e.updateLayout()}function Ql(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?N1(f=>{const h=a?n.measuredBox[f]:n.layoutBox[f],p=I1(h);h.min=r[f].min,h.max=h.min+p}):xn(i,n.layoutBox,r)&&N1(f=>{const h=a?n.measuredBox[f]:n.layoutBox[f],p=I1(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const l=ke();ct(l,r,n.layoutBox);const c=ke();a?ct(c,e.applyTransform(s,!0),n.measuredBox):ct(c,r,n.layoutBox);const u=!gn(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const y=x1();ut(y,n.layoutBox,h.layoutBox);const C=x1();ut(C,r,p.layoutBox),mn(y,C)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Jl(e){ot&&ge.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ec(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tc(e){e.clearSnapshot()}function L5(e){e.clearMeasurements()}function nc(e){e.isLayoutDirty=!1}function rc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function V5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sc(e){e.resolveTargetDelta()}function oc(e){e.calcProjection()}function ic(e){e.resetSkewAndRotation()}function ac(e){e.removeLeadSnapshot()}function M5(e,t,n){e.translate=C1(t.translate,0,n),e.scale=C1(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function j5(e,t,n,r){e.min=C1(t.min,n.min,r),e.max=C1(t.max,n.max,r)}function lc(e,t,n,r){j5(e.x,t.x,n.x,r),j5(e.y,t.y,n.y,r)}function cc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uc={duration:.45,ease:[.4,0,.1,1]},H5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),S5=H5("applewebkit/")&&!H5("chrome/")?Math.round:A1;function T5(e){e.min=S5(e.min),e.max=S5(e.max)}function dc(e){T5(e.x),T5(e.y)}function xn(e,t,n){return e==="position"||e==="preserve-aspect"&&!gl(x5(t),x5(n),.2)}function fc(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hc=yn({attachResizeListener:(e,t)=>gt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),O2={current:void 0},wn=yn({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!O2.current){const e=new hc({});e.mount(window),e.setOptions({layoutScroll:!0}),O2.current=e}return O2.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Cc={pan:{Feature:kl},drag:{Feature:El,ProjectionNode:wn,MeasureLayout:dn}};function P5(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&c1.postRender(()=>i(t,bt(t)))}class pc extends fe{mount(){const{current:t}=this.node;t&&(this.unmount=xi(t,n=>(P5(this.node,n,"Start"),r=>P5(this.node,r,"End"))))}unmount(){}}class gc extends fe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wt(gt(this.node.current,"focus",()=>this.onFocus()),gt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function E5(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&c1.postRender(()=>i(t,bt(t)))}class mc extends fe{mount(){const{current:t}=this.node;t&&(this.unmount=Vi(t,n=>(E5(this.node,n,"Start"),(r,{success:s})=>E5(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const o3=new WeakMap,I2=new WeakMap,vc=e=>{const t=o3.get(e.target);t&&t(e)},yc=e=>{e.forEach(vc)};function xc({root:e,...t}){const n=e||document;I2.has(n)||I2.set(n,{});const r=I2.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(yc,{root:e,...t})),r[s]}function wc(e,t,n){const r=xc(t);return o3.set(e,n),r.observe(e),()=>{o3.delete(e),r.unobserve(e)}}const bc={some:0,all:1};class Lc extends fe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:bc[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return wc(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Vc(t,n))&&this.startObserver()}unmount(){}}function Vc({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mc={inView:{Feature:Lc},tap:{Feature:mc},focus:{Feature:gc},hover:{Feature:pc}},jc={layout:{ProjectionNode:wn,MeasureLayout:dn}},i3={current:null},bn={current:!1};function Hc(){if(bn.current=!0,!!h3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i3.current=e.matches;e.addListener(t),t()}else i3.current=!1}const Sc=[...F9,P1,de],Tc=e=>Sc.find(N9(e)),Ne=new WeakMap;function Pc(e,t,n){for(const r in t){const s=t[r],i=n[r];if(H1(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&r2(s.version==="11.18.2",`Attempting to mix Motion versions ${s.version} with 11.18.2 may not work as expected.`);else if(H1(i))e.addValue(r,_e(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,_e(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ln{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=B3,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 p=q1.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,c1.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=i2(n),this.isVariantNode=Y4(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&H1(y)&&y.set(c[p],!1)}}mount(t){this.current=t,Ne.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bn.current||Hc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:i3.current,process.env.NODE_ENV!=="production"&&r2(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ne.delete(this.current),this.projection&&this.projection.unmount(),ne(this.notifyUpdate),ne(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Le.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&c1.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ie){const n=Ie[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):x1()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<k5.length;r++){const s=k5[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=Pc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_e(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(_9(s)||P9(s))?s=parseFloat(s):!Tc(s)&&de.test(n)&&(s=A9(t,n)),this.setBaseTarget(t,H1(s)?s.get():s)),H1(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=w3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!H1(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Z3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Vn extends Ln{constructor(){super(...arguments),this.KeyframeResolver=U9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;H1(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ec(e){return window.getComputedStyle(e)}class Mn extends Vn{constructor(){super(...arguments),this.type="html",this.renderInstance=s9}readValueFromInstance(t,n){if(Le.has(n)){const r=_3(n);return r&&r.default||0}else{const r=Ec(t),s=(t9(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cn(t,n)}build(t,n,r){V3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return S3(t,n,r)}}class jn extends Vn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=x1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Le.has(n)){const r=_3(n);return r&&r.default||0}return n=o9.has(n)?n:v3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return l9(t,n,r)}build(t,n,r){M3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){i9(t,n,r,s)}mount(t){this.isSVGTag=H3(t.tagName),super.mount(t)}}const kc=(e,t)=>x3(e)?new jn(t):new Mn(t,{allowProjection:e!==v.Fragment}),Dc=Ci({...al,...Mc,...Cc,...jc},kc),z3=To(Dc);function Hn(e){const t=xe(()=>_e(e)),{isStatic:n}=v.useContext(n2);if(n){const[,r]=v.useState(e);v.useEffect(()=>t.on("change",r),[])}return t}function Sn(e,t){const n=Hn(t()),r=()=>n.set(t());return r(),C3(()=>{const s=()=>c1.preRender(r,!1,!0),i=e.map(a=>a.on("change",s));return()=>{i.forEach(a=>a()),ne(r)}}),n}const Zc=e=>e&&typeof e=="object"&&e.mix,Rc=e=>Zc(e)?e.mix:void 0;function Ac(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],a=e[3+n],l=X9(s,i,{mixer:Rc(i[0]),...a});return t?l(r):l}function Oc(e){it.current=[],e();const t=Sn(it.current,e);return it.current=void 0,t}function Ic(e,t,n,r){if(typeof e=="function")return Oc(e);const s=typeof t=="function"?t:Ac(t,n,r);return Array.isArray(e)?D5(e,s):D5([e],([i])=>s(i))}function D5(e,t){const n=xe(()=>[]);return Sn(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function _c(e){return v.useEffect(()=>()=>e(),[])}const Bc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Tn(e,t){return Y9(e)?e[Bc(0,e.length,t)]:e}function G3(e){return typeof e=="object"&&!Array.isArray(e)}function Pn(e,t,n,r){return typeof e=="string"&&G3(t)?g9(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Nc(e,t,n){return e*(t+1)}function Z5(e,t,n,r){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=r.get(t))!==null&&s!==void 0?s:e}function Fc(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(c2(e,s),r--)}}function Uc(e,t,n,r,s,i){Fc(e,s,i);for(let a=0;a<t.length;a++)e.push({value:t[a],at:C1(s,i,r[a]),easing:Tn(n,a)})}function $c(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Wc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const zc="easeInOut",Gc=20;function Kc(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,a=new Map,l=new Map,c={},u=new Map;let d=0,f=0,h=0;for(let p=0;p<e.length;p++){const y=e[p];if(typeof y=="string"){u.set(y,f);continue}else if(!Array.isArray(y)){u.set(y.name,Z5(f,y.at,d,u));continue}let[C,m,g={}]=y;g.at!==void 0&&(f=Z5(f,g.at,d,u));let w=0;const H=(j,b,k,S=0,M=0)=>{const P=Yc(j),{delay:B=0,times:N=Q9(P),type:A="keyframes",repeat:R,repeatType:K,repeatDelay:t1=0,...Q}=b;let{ease:U=t.ease||"easeOut",duration:z}=b;const n1=typeof B=="function"?B(S,M):B,X=P.length,l1=l2(A)?A:s==null?void 0:s[A];if(X<=2&&l1){let p1=100;if(X===2&&Qc(P)){const b1=P[1]-P[0];p1=Math.abs(b1)}const M1={...Q};z!==void 0&&(M1.duration=U1(z));const E1=mi(M1,p1,l1);U=E1.ease,z=E1.duration}z??(z=i);const V1=f+n1;N.length===1&&N[0]===0&&(N[1]=1);const i1=N.length-P.length;if(i1>0&&q9(N,i1),P.length===1&&P.unshift(null),R){Q1(R<Gc,"Repeat count too high, must be less than 20"),z=Nc(z,R);const p1=[...P],M1=[...N];U=Array.isArray(U)?[...U]:[U];const E1=[...U];for(let b1=0;b1<R;b1++){P.push(...p1);for(let k1=0;k1<p1.length;k1++)N.push(M1[k1]+(b1+1)),U.push(k1===0?"linear":Tn(E1,k1-1))}$c(N,R)}const f1=V1+z;Uc(k,P,U,N,V1,f1),w=Math.max(n1+z,w),h=Math.max(f1,h)};if(H1(C)){const j=R5(C,l);H(m,g,A5("default",j))}else{const j=Pn(C,m,r,c),b=j.length;for(let k=0;k<b;k++){m=m,g=g;const S=j[k],M=R5(S,l);for(const P in m)H(m[P],Xc(g,P),A5(P,M),k,b)}}d=f,f+=w}return l.forEach((p,y)=>{for(const C in p){const m=p[C];m.sort(Wc);const g=[],w=[],H=[];for(let b=0;b<m.length;b++){const{at:k,value:S,easing:M}=m[b];g.push(S),w.push(we(0,h,k)),H.push(M||"easeOut")}w[0]!==0&&(w.unshift(0),g.unshift(g[0]),H.unshift(zc)),w[w.length-1]!==1&&(w.push(1),g.push(null)),a.has(y)||a.set(y,{keyframes:{},transition:{}});const j=a.get(y);j.keyframes[C]=g,j.transition[C]={...t,duration:h,ease:H,times:w,...n}}}),a}function R5(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function A5(e,t){return t[e]||(t[e]=[]),t[e]}function Yc(e){return Array.isArray(e)?e:[e]}function Xc(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const qc=e=>typeof e=="number",Qc=e=>e.every(qc);function Jc(e,t){return e in t}class eu extends Ln{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Jc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return x1()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function tu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=hn(e)?new jn(t):new Mn(t);n.mount(e),Ne.set(e,n)}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new eu(t);n.mount(e),Ne.set(e,n)}function ru(e,t){return H1(e)||typeof e=="number"||typeof e=="string"&&!G3(t)}function En(e,t,n,r){const s=[];if(ru(e,t))s.push(fn(e,G3(t)&&t.default||t,n&&(n.default||n)));else{const i=Pn(e,t,r),a=i.length;Q1(!!a,"No valid elements provided.");for(let l=0;l<a;l++){const c=i[l],u=c instanceof Element?tu:nu;Ne.has(c)||u(c);const d=Ne.get(c),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(l,a)),s.push(...W3(d,{...t,transition:f},{}))}}return s}function su(e,t,n){const r=[];return Kc(e,t,n,{spring:F3}).forEach(({keyframes:i,transition:a},l)=>{r.push(...En(l,i,a))}),r}function ou(e){return Array.isArray(e)&&e.some(Array.isArray)}function iu(e){function t(n,r,s){let i=[];ou(n)?i=su(n,r,e):i=En(n,r,s,e);const a=new d9(i);return e&&e.animations.push(a),a}return t}function au(){const e=xe(()=>({current:null,animations:[]})),t=xe(()=>iu(e));return _c(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}function lu(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function At(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(s,i)=>{const a=typeof n=="number"?n:lu(n,i),l=Math.abs(a-s);let c=e*l;if(r){const u=i*e;c=e3(r)(c/u)*u}return t+c}}const cu=({isMobile:e,isLogoHovered:t,maskUrl:n})=>{const[r]=v.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[s,i]=v.useState("initial"),a=v.useRef(null),l=v.useRef(null),c=Hn(45),u=Ic(c,d=>`${d}% center`);return v.useEffect(()=>{if(t)i("visible");else{i("exit");const d=setTimeout(()=>{i("initial")},800);return()=>clearTimeout(d)}},[t]),o.jsxs(o.Fragment,{children:[o.jsx("video",{ref:a,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),o.jsx(wo,{mode:"wait",children:o.jsx(z3.div,{animate:s,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${n}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:o.jsx("video",{ref:l,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},uu=({children:e,triggerAnimation:t})=>{const n={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:Ge(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return o.jsx(z3.div,{animate:t?"animation":"idle",variants:n,style:{transformOrigin:"bottom"},children:e})},du=({children:e})=>o.jsx(z3.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),Re=v.forwardRef(({value:e,isHovered:t,className:n,delay:r},s)=>{const i=e.split(""),[a,l]=au(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:r?At(.014,{startDelay:r}):At(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:r?At(.014,{startDelay:r}):At(.014),ease:[.76,0,.24,1]}]])};return v.useImperativeHandle(s,()=>({startAnimation:c,stopAnimation:u})),v.useEffect(()=>{t?c():u()},[t]),v.useEffect(()=>{const d=()=>{t||c()},f=()=>{t||u()},h=a.current;if(h)return h.addEventListener("mouseenter",d),h.addEventListener("mouseleave",f),()=>{h.removeEventListener("mouseenter",d),h.removeEventListener("mouseleave",f)}},[a,t]),o.jsx("div",{ref:a,children:o.jsx("span",{className:y1("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",n),children:i.map((d,f)=>o.jsx("span",{"data-letter":d,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:d},`${d}-${f}`))})})});Re.displayName="RollingText";const nt=({title:e,links:t,hoveredIndex:n,onHover:r,className:s="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:i="gf-flex gf-flex-col gf-gap-1",isRoutes:a=!1})=>o.jsxs("div",{className:s,children:[o.jsx(R1,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:o.jsx("span",{children:e})}),o.jsx("ul",{className:i,children:Object.values(t).map((l,c)=>l.link&&o.jsx("li",{className:a?"gf-w-fit":"",onMouseEnter:()=>{r==null||r(c)},onMouseLeave:()=>{r==null||r(null)},children:o.jsxs(R1,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${a?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&o.jsx(Re,{delay:.2,value:l.inputAsset||"",isHovered:n===c}),a&&l.inputChain&&o.jsx(Re,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:n===c}),o.jsx(Re,{delay:.35,value:l.title,isHovered:n===c}),a&&l.chain&&o.jsx(Re,{delay:.5,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:n===c})]})},c))})]}),fu="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",hu=({className:e,network:t="mainnet",maskUrl:n=fu,...r})=>{const[s,i]=v.useState(!1),[a,l]=v.useState(null),c=z5(),u=v.useRef(null);v.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const d=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",f="https://garden.finance",h={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${d}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${d}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${d}/stake`,isExternal:!0},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0}},Resources:{blog:{title:"Blog",link:`${f}/blog`,isExternal:!0},routes:{title:"Routes",link:`${f}/routes`,isExternal:!0},faq:{title:"FAQs",link:`${f}/faq`,isExternal:!0},brandKit:{title:"Brand kit",link:`${f}/brand-kit`,isExternal:!0},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0},Governance:{title:"Governance",link:"https://docs.garden.finance/home/governance",isExternal:!0}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0},security:{title:"Security",link:`${f}/security`,isExternal:!0}}},p={btcToSol:{title:"BTC to SOL",link:f+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:f+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBTC",link:f+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:f+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:f+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},btcToMon:{title:"BTC to MON",link:f+"/routes/bridge-btc-to-mon",chain:"Monad",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBTC",link:f+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBTC",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",isExternal:!0},btcToUsdtEthereum:{title:" to USDT",link:f+"/routes/bridge-btc-to-usdt-ethereum",inputAsset:"BTC",chain:"Ethereum",isExternal:!0},btcToUsdcSolana:{title:" to USDC",link:f+"/routes/bridge-btc-to-usdc-solana",inputAsset:"BTC",chain:"Solana",isExternal:!0},usdcEthereumToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-ethereum-to-btc",inputAsset:"USDC",inputChain:"Ethereum",isExternal:!0},solToBtc:{title:" to BTC",link:f+"/routes/bridge-sol-to-btc",inputAsset:"SOL",inputChain:"Solana",isExternal:!0},usdcEthereumToUsdcBase:{title:" to USDC",link:f+"/routes/bridge-usdc-ethereum-to-usdc-base",inputAsset:"USDC",inputChain:"Ethereum",chain:"Base",isExternal:!0}},y={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/gardenfi"},{Products:C,Resources:m,Developers:g}=h;return o.jsxs("footer",{className:y1("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,s?"gf-text-white":"gf-text-dark-grey"),...r,children:[o.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[o.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[o.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[o.jsx(U4,{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{i(!0)},300)},onMouseLeave:()=>{u.current&&(clearTimeout(u.current),u.current=null),i(!1)},className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:w=>w.preventDefault()}),o.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[o.jsx(F4,{onClick:()=>{c&&window.open(y.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),o.jsx(N4,{onClick:()=>{c&&window.open(y.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),o.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[o.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[o.jsx("div",{className:"gf-w-full md:gf-hidden",children:o.jsx(nt,{title:"Resources",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),o.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:o.jsx(nt,{title:"Routes",links:p,hoveredIndex:a,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),o.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[o.jsx(nt,{title:"Products",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),o.jsx(nt,{title:"Developers",links:g,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),o.jsx("div",{className:"gf-hidden md:gf-flex",children:o.jsx(nt,{title:"Resources",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),o.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[o.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${s?"gf-bg-white":"gf-bg-dark-grey"}`}),o.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[o.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:o.jsxs(R1,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[o.jsx(B4,{}),o.jsx("span",{children:"Garden"}),o.jsx("span",{children:"2026"})]})}),o.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[o.jsx(R1,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"https://garden.finance/privacy.pdf",target:"_blank",children:"Privacy Policy"}),o.jsx(R1,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"https://garden.finance/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),o.jsx(cu,{isMobile:!1,isLogoHovered:s,maskUrl:n})]})};var kn={exports:{}};(()=>{var e={296:(s,i,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,p=typeof self=="object"&&self&&self.Object===Object&&self,y=h||p||Function("return this")(),C=Object.prototype.toString,m=Math.max,g=Math.min,w=function(){return y.Date.now()};function H(b){var k=typeof b;return!!b&&(k=="object"||k=="function")}function j(b){if(typeof b=="number")return b;if(function(M){return typeof M=="symbol"||function(P){return!!P&&typeof P=="object"}(M)&&C.call(M)=="[object Symbol]"}(b))return NaN;if(H(b)){var k=typeof b.valueOf=="function"?b.valueOf():b;b=H(k)?k+"":k}if(typeof b!="string")return b===0?b:+b;b=b.replace(l,"");var S=u.test(b);return S||d.test(b)?f(b.slice(2),S?2:8):c.test(b)?NaN:+b}s.exports=function(b,k,S){var M,P,B,N,A,R,K=0,t1=!1,Q=!1,U=!0;if(typeof b!="function")throw new TypeError("Expected a function");function z(i1){var f1=M,p1=P;return M=P=void 0,K=i1,N=b.apply(p1,f1)}function n1(i1){var f1=i1-R;return R===void 0||f1>=k||f1<0||Q&&i1-K>=B}function X(){var i1=w();if(n1(i1))return l1(i1);A=setTimeout(X,function(f1){var p1=k-(f1-R);return Q?g(p1,B-(f1-K)):p1}(i1))}function l1(i1){return A=void 0,U&&M?z(i1):(M=P=void 0,N)}function V1(){var i1=w(),f1=n1(i1);if(M=arguments,P=this,R=i1,f1){if(A===void 0)return function(p1){return K=p1,A=setTimeout(X,k),t1?z(p1):N}(R);if(Q)return A=setTimeout(X,k),z(R)}return A===void 0&&(A=setTimeout(X,k)),N}return k=j(k)||0,H(S)&&(t1=!!S.leading,B=(Q="maxWait"in S)?m(j(S.maxWait)||0,k):B,U="trailing"in S?!!S.trailing:U),V1.cancel=function(){A!==void 0&&clearTimeout(A),K=0,M=R=P=A=void 0},V1.flush=function(){return A===void 0?N:l1(w())},V1}},96:(s,i,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,y=parseInt,C=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,m=typeof self=="object"&&self&&self.Object===Object&&self,g=C||m||Function("return this")(),w=Object.prototype.toString,H=Math.max,j=Math.min,b=function(){return g.Date.now()};function k(M){var P=typeof M;return!!M&&(P=="object"||P=="function")}function S(M){if(typeof M=="number")return M;if(function(N){return typeof N=="symbol"||function(A){return!!A&&typeof A=="object"}(N)&&w.call(N)==u}(M))return c;if(k(M)){var P=typeof M.valueOf=="function"?M.valueOf():M;M=k(P)?P+"":P}if(typeof M!="string")return M===0?M:+M;M=M.replace(d,"");var B=h.test(M);return B||p.test(M)?y(M.slice(2),B?2:8):f.test(M)?c:+M}s.exports=function(M,P,B){var N=!0,A=!0;if(typeof M!="function")throw new TypeError(l);return k(B)&&(N="leading"in B?!!B.leading:N,A="trailing"in B?!!B.trailing:A),function(R,K,t1){var Q,U,z,n1,X,l1,V1=0,i1=!1,f1=!1,p1=!0;if(typeof R!="function")throw new TypeError(l);function M1(h1){var D1=Q,S1=U;return Q=U=void 0,V1=h1,n1=R.apply(S1,D1)}function E1(h1){var D1=h1-l1;return l1===void 0||D1>=K||D1<0||f1&&h1-V1>=z}function b1(){var h1=b();if(E1(h1))return k1(h1);X=setTimeout(b1,function(D1){var S1=K-(D1-l1);return f1?j(S1,z-(D1-V1)):S1}(h1))}function k1(h1){return X=void 0,p1&&Q?M1(h1):(Q=U=void 0,n1)}function _1(){var h1=b(),D1=E1(h1);if(Q=arguments,U=this,l1=h1,D1){if(X===void 0)return function(S1){return V1=S1,X=setTimeout(b1,K),i1?M1(S1):n1}(l1);if(f1)return X=setTimeout(b1,K),M1(l1)}return X===void 0&&(X=setTimeout(b1,K)),n1}return K=S(K)||0,k(t1)&&(i1=!!t1.leading,z=(f1="maxWait"in t1)?H(S(t1.maxWait)||0,K):z,p1="trailing"in t1?!!t1.trailing:p1),_1.cancel=function(){X!==void 0&&clearTimeout(X),V1=0,Q=l1=U=X=void 0},_1.flush=function(){return X===void 0?n1:k1(b())},_1}(M,P,{leading:N,maxWait:P,trailing:A})}},703:(s,i,a)=>{var l=a(414);function c(){}function u(){}u.resetWarningCache=c,s.exports=function(){function d(p,y,C,m,g,w){if(w!==l){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}}function f(){return d}d.isRequired=d;var h={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},697:(s,i,a)=>{s.exports=a(703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.n=s=>{var i=s&&s.__esModule?()=>s.default:()=>s;return n.d(i,{a:i}),i},n.d=(s,i)=>{for(var a in i)n.o(i,a)&&!n.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:i[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(s,i)=>Object.prototype.hasOwnProperty.call(s,i),n.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>D1,LazyLoadImage:()=>f2,trackWindowScroll:()=>n1});const s=v;var i=n.n(s),a=n(697);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(E){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(E)}function u(E,x){var Z=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);x&&(D=D.filter(function(J){return Object.getOwnPropertyDescriptor(E,J).enumerable})),Z.push.apply(Z,D)}return Z}function d(E,x,Z){return(x=h(x))in E?Object.defineProperty(E,x,{value:Z,enumerable:!0,configurable:!0,writable:!0}):E[x]=Z,E}function f(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,h(D.key),D)}}function h(E){var x=function(Z,D){if(c(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var r1=J.call(Z,"string");if(c(r1)!=="object")return r1;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(E);return c(x)==="symbol"?x:String(x)}function p(E,x){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},p(E,x)}function y(E){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},y(E)}var C=function(E){E.forEach(function(x){x.isIntersecting&&x.target.onVisible()})},m={},g=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&p(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=y(D);if(J){var F=y(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(c(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){var T;if(function(_,I){if(!(_ instanceof I))throw new TypeError("Cannot call a class as a function")}(this,a1),(T=r1.call(this,V)).supportsObserver=!V.scrollPosition&&V.useIntersectionObserver&&l(),T.supportsObserver){var F=V.threshold;T.observer=function(_){return m[_]=m[_]||new IntersectionObserver(C,{rootMargin:_+"px"}),m[_]}(F)}return T}return x=a1,Z=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,T=this.placeholder.getBoundingClientRect(),F=this.placeholder.style,_=parseInt(F.getPropertyValue("margin-left"),10)||0,I=parseInt(F.getPropertyValue("margin-top"),10)||0;return{bottom:V.y+T.bottom+I,left:V.x+T.left+_,right:V.x+T.right+_,top:V.y+T.top+I}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var V=this.props,T=V.scrollPosition,F=V.threshold,_=this.getPlaceholderBoundingBox(T),I=T.y+window.innerHeight,s1=T.x,u1=T.x+window.innerWidth,O=T.y;return O-F<=_.bottom&&I+F>=_.top&&s1-F<=_.right&&u1+F>=_.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var V=this,T=this.props,F=T.className,_=T.height,I=T.placeholder,s1=T.style,u1=T.width;if(I&&typeof I.type!="function")return i().cloneElement(I,{ref:function($){return V.placeholder=$}});var O=function($){for(var Y=1;Y<arguments.length;Y++){var W=arguments[Y]!=null?arguments[Y]:{};Y%2?u(Object(W),!0).forEach(function(o1){d($,o1,W[o1])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(W)):u(Object(W)).forEach(function(o1){Object.defineProperty($,o1,Object.getOwnPropertyDescriptor(W,o1))})}return $}({display:"inline-block"},s1);return u1!==void 0&&(O.width=u1),_!==void 0&&(O.height=_),i().createElement("span",{className:F,ref:function($){return V.placeholder=$},style:O},I)}}],Z&&f(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);g.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},g.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const w=g;var H=n(296),j=n.n(H),b=n(96),k=n.n(b),S=function(E){var x=getComputedStyle(E,null);return x.getPropertyValue("overflow")+x.getPropertyValue("overflow-y")+x.getPropertyValue("overflow-x")};const M=function(E){if(!(E instanceof HTMLElement))return window;for(var x=E;x&&x instanceof HTMLElement;){if(/(scroll|auto)/.test(S(x)))return x;x=x.parentNode}return window};function P(E){return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},P(E)}var B=["delayMethod","delayTime"];function N(){return N=Object.assign?Object.assign.bind():function(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x];for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(E[D]=Z[D])}return E},N.apply(this,arguments)}function A(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(P(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(P(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),P(J)==="symbol"?J:String(J)),D)}var J}function R(E,x){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},R(E,x)}function K(E,x){if(x&&(P(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t1(E)}function t1(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function Q(E){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},Q(E)}var U=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},z=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const n1=function(E){var x=function(Z){(function(F,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(_&&_.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),_&&R(F,_)})(T,Z);var D,J,r1,a1,V=(r1=T,a1=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var F,_=Q(r1);if(a1){var I=Q(this).constructor;F=Reflect.construct(_,arguments,I)}else F=_.apply(this,arguments);return K(this,F)});function T(F){var _;if(function(s1,u1){if(!(s1 instanceof u1))throw new TypeError("Cannot call a class as a function")}(this,T),(_=V.call(this,F)).useIntersectionObserver=F.useIntersectionObserver&&l(),_.useIntersectionObserver)return K(_);var I=_.onChangeScroll.bind(t1(_));return F.delayMethod==="debounce"?_.delayedScroll=j()(I,F.delayTime):F.delayMethod==="throttle"&&(_.delayedScroll=k()(I,F.delayTime)),_.state={scrollPosition:{x:U(),y:z()}},_.baseComponentRef=i().createRef(),_}return D=T,(J=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||M(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=M(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:U(),y:z()}})}},{key:"render",value:function(){var F=this.props,_=(F.delayMethod,F.delayTime,function(s1,u1){if(s1==null)return{};var O,$,Y=function(o1,w1){if(o1==null)return{};var g1,O1,Z1={},W1=Object.keys(o1);for(O1=0;O1<W1.length;O1++)g1=W1[O1],w1.indexOf(g1)>=0||(Z1[g1]=o1[g1]);return Z1}(s1,u1);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(s1);for($=0;$<W.length;$++)O=W[$],u1.indexOf(O)>=0||Object.prototype.propertyIsEnumerable.call(s1,O)&&(Y[O]=s1[O])}return Y}(F,B)),I=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(E,N({forwardRef:this.baseComponentRef,scrollPosition:I},_))}}])&&A(D.prototype,J),Object.defineProperty(D,"prototype",{writable:!1}),T}(i().Component);return x.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},x.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},x};function X(E){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},X(E)}function l1(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(X(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(X(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),X(J)==="symbol"?J:String(J)),D)}var J}function V1(E,x){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},V1(E,x)}function i1(E){return i1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},i1(E)}var f1=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&V1(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=i1(D);if(J){var F=i1(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(X(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){return function(T,F){if(!(T instanceof F))throw new TypeError("Cannot call a class as a function")}(this,a1),r1.call(this,V)}return x=a1,(Z=[{key:"render",value:function(){return i().createElement(w,this.props)}}])&&l1(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);const p1=n1(f1);function M1(E){return M1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},M1(E)}function E1(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(M1(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(M1(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),M1(J)==="symbol"?J:String(J)),D)}var J}function b1(E,x){return b1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},b1(E,x)}function k1(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _1(E){return _1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},_1(E)}var h1=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&b1(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=_1(D);if(J){var F=_1(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(M1(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k1(_)}(this,V)});function a1(V){var T;(function(u1,O){if(!(u1 instanceof O))throw new TypeError("Cannot call a class as a function")})(this,a1),T=r1.call(this,V);var F=V.afterLoad,_=V.beforeLoad,I=V.scrollPosition,s1=V.visibleByDefault;return T.state={visible:s1},s1&&(_(),F()),T.onVisible=T.onVisible.bind(k1(T)),T.isScrollTracked=!!(I&&Number.isFinite(I.x)&&I.x>=0&&Number.isFinite(I.y)&&I.y>=0),T}return x=a1,(Z=[{key:"componentDidUpdate",value:function(V,T){T.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var V=this.props,T=V.className,F=V.delayMethod,_=V.delayTime,I=V.height,s1=V.placeholder,u1=V.scrollPosition,O=V.style,$=V.threshold,Y=V.useIntersectionObserver,W=V.width;return this.isScrollTracked||Y&&l()?i().createElement(w,{className:T,height:I,onVisible:this.onVisible,placeholder:s1,scrollPosition:u1,style:O,threshold:$,useIntersectionObserver:Y,width:W}):i().createElement(p1,{className:T,delayMethod:F,delayTime:_,height:I,onVisible:this.onVisible,placeholder:s1,style:O,threshold:$,width:W})}}])&&E1(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);h1.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},h1.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const D1=h1;function S1(E){return S1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},S1(E)}var q=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Ke(E,x){var Z=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);x&&(D=D.filter(function(J){return Object.getOwnPropertyDescriptor(E,J).enumerable})),Z.push.apply(Z,D)}return Z}function Ye(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x]!=null?arguments[x]:{};x%2?Ke(Object(Z),!0).forEach(function(D){Xe(E,D,Z[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(Z)):Ke(Object(Z)).forEach(function(D){Object.defineProperty(E,D,Object.getOwnPropertyDescriptor(Z,D))})}return E}function Xe(E,x,Z){return(x=J1(x))in E?Object.defineProperty(E,x,{value:Z,enumerable:!0,configurable:!0,writable:!0}):E[x]=Z,E}function Ve(){return Ve=Object.assign?Object.assign.bind():function(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x];for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(E[D]=Z[D])}return E},Ve.apply(this,arguments)}function d2(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,J1(D.key),D)}}function J1(E){var x=function(Z,D){if(S1(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var r1=J.call(Z,"string");if(S1(r1)!=="object")return r1;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(E);return S1(x)==="symbol"?x:String(x)}function Me(E,x){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},Me(E,x)}function je(E){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},je(E)}var ee=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&Me(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=je(D);if(J){var F=je(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(S1(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){var T;return function(F,_){if(!(F instanceof _))throw new TypeError("Cannot call a class as a function")}(this,a1),(T=r1.call(this,V)).state={loaded:!1},T}return x=a1,(Z=[{key:"onImageLoad",value:function(){var V=this;return this.state.loaded?null:function(T){V.props.onLoad(T),V.props.afterLoad(),V.setState({loaded:!0})}}},{key:"getImg",value:function(){var V=this.props,T=(V.afterLoad,V.beforeLoad,V.delayMethod,V.delayTime,V.effect,V.placeholder,V.placeholderSrc,V.scrollPosition,V.threshold,V.useIntersectionObserver,V.visibleByDefault,V.wrapperClassName,V.wrapperProps,function(F,_){if(F==null)return{};var I,s1,u1=function($,Y){if($==null)return{};var W,o1,w1={},g1=Object.keys($);for(o1=0;o1<g1.length;o1++)W=g1[o1],Y.indexOf(W)>=0||(w1[W]=$[W]);return w1}(F,_);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(F);for(s1=0;s1<O.length;s1++)I=O[s1],_.indexOf(I)>=0||Object.prototype.propertyIsEnumerable.call(F,I)&&(u1[I]=F[I])}return u1}(V,q));return i().createElement("img",Ve({},T,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var V=this.props,T=V.beforeLoad,F=V.className,_=V.delayMethod,I=V.delayTime,s1=V.height,u1=V.placeholder,O=V.scrollPosition,$=V.style,Y=V.threshold,W=V.useIntersectionObserver,o1=V.visibleByDefault,w1=V.width;return i().createElement(D1,{beforeLoad:T,className:F,delayMethod:_,delayTime:I,height:s1,placeholder:u1,scrollPosition:O,style:$,threshold:Y,useIntersectionObserver:W,visibleByDefault:o1,width:w1},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(V){var T=this.props,F=T.effect,_=T.height,I=T.placeholderSrc,s1=T.width,u1=T.wrapperClassName,O=T.wrapperProps,$=this.state.loaded,Y=$?" lazy-load-image-loaded":"",W=$||!I?{}:{backgroundImage:"url(".concat(I,")"),backgroundSize:"100% 100%"};return i().createElement("span",Ve({className:u1+" lazy-load-image-background "+F+Y,style:Ye(Ye({},W),{},{color:"transparent",display:"inline-block",height:_,width:s1})},O),V)}},{key:"render",value:function(){var V=this.props,T=V.effect,F=V.placeholderSrc,_=V.visibleByDefault,I=V.wrapperClassName,s1=V.wrapperProps,u1=this.getLazyLoadImage();return(T||F)&&!_||I||s1?this.getWrappedLazyLoadImage(u1):u1}}])&&d2(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);ee.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ee.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const f2=ee})(),kn.exports=r})();var Cu=kn.exports;const _2="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pu=({thumbnail:e,category:t,date:n,title:r,className:s,thumbnailClassName:i})=>{const[a,l]=v.useState(!1),[c,u]=v.useState(e??_2);v.useEffect(()=>{u(e??_2)},[e]);const d=()=>{u(_2)};return o.jsx(vt,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:o.jsxs("div",{className:y1(s,"gf-overflow-hidden gf-rounded-2xl"),children:[o.jsx("div",{className:y1(i,`${a?"":"gf-filter gf-blur-md"}`),children:o.jsx(Cu.LazyLoadImage,{alt:r,effect:"blur",src:c,onLoad:()=>l(!0),onError:d})}),o.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[o.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[o.jsx(R1,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),o.jsx(R1,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:n})]}),o.jsx(R1,{size:"h3",weight:"bold",children:r})]})]})})},gu=Fe(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),mu=({variant:e,title:t,description:n,chipContent:r,logo:s})=>o.jsxs("div",{className:y1(gu({variant:e})),children:[o.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[o.jsxs(G1,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[o.jsx(G1.Logo,{children:s}),t,o.jsx(G1.CheckBox,{checked:!1})]}),e==="default"?o.jsx(R4,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):o.jsx(Z4,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),o.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:o.jsx(R1,{size:"h3",weight:"medium",children:n})}),o.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[o.jsxs(G1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[o.jsx(R1,{size:"h4",weight:"medium",children:"Quest Access"}),o.jsx(G1.CheckBox,{checked:!1})]}),o.jsxs(G1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[o.jsx(R1,{size:"h4",weight:"medium",children:r}),o.jsx(G1.CheckBox,{checked:!1})]})]})]});exports.APIIcon=Wr;exports.AddIcon=X8;exports.ArbitrumLogo=Hs;exports.ArrowDownwardIcon=z8;exports.ArrowEastIcon=Vr;exports.ArrowInwardIcon=ds;exports.ArrowLeftIcon=K8;exports.ArrowNorthEastIcon=q8;exports.ArrowNorthWestIcon=Q8;exports.ArrowRightIcon=Y8;exports.ArrowSouthEastIcon=J8;exports.ArrowSouthWestIcon=er;exports.ArrowSyncIcon=Fr;exports.ArrowUpwardIcon=G8;exports.BTCLogo=Ss;exports.BlogCard=pu;exports.BlogIcon=zr;exports.BooksIcon=Ls;exports.BottomSheet=$8;exports.BrandKitIcon=Gr;exports.BtcIcon=hs;exports.Button=M0;exports.Camelot=Ks;exports.CancelIcon=Nr;exports.CatalogLogo=Ts;exports.ChainflipIcon=Zr;exports.CheckBox=uo;exports.CheckCircleIcon=Mr;exports.CheckIcon=tr;exports.Checked=I4;exports.Chip=G1;exports.ClientOnly=mt;exports.ClockIcon=nr;exports.CloseIcon=rr;exports.CodeBlockIcon=$r;exports.Coinbase=Ps;exports.CompareArrowsIcon=Hr;exports.ConsoleIcon=Kr;exports.Container=W8;exports.CopyIcon=sr;exports.CopyrightsIcon=B4;exports.DLCBTC=Ws;exports.Debridge=Gs;exports.DeleteIcon=Or;exports.DigitalWellbeingIcon=xs;exports.DiscordIcon=N4;exports.DistanceIcon=ys;exports.Dodo=Qs;exports.DollarChipIcon=is;exports.DraftIcon=Yr;exports.EditIcon=or;exports.EncryptedIcon=rs;exports.EthereumLogo=Es;exports.ExchangeAltIcon=js;exports.ExchangeIcon=ir;exports.FaqIcon=fs;exports.FeesIcon=br;exports.FillDownIcon=ps;exports.FillUpIcon=Cs;exports.FingerprintIcon=jr;exports.FlowChartIcon=ms;exports.FolderIcon=us;exports.Footer=hu;exports.GMX=Ys;exports.GMXLogo=Os;exports.GardenDocs=oo;exports.GardenExplorer=ks;exports.GardenExplorerAlt=so;exports.GardenFullLogo=Ds;exports.GardenIcon=U4;exports.GardenIconOutline=no;exports.GardenLogo=Zs;exports.GardenLogoDark=lo;exports.GardenLogoLight=co;exports.GardenLogoMarkDark=io;exports.GardenLogoMarkLight=ao;exports.GardenLogoText=Rs;exports.GardenStrokeIcon=As;exports.GasStationIcon=Br;exports.GiftBoxIcon=as;exports.GradientScroll=go;exports.HorizontalSwap=os;exports.HubIcon=Ur;exports.InfinityIcon=Er;exports.InfoBadge=Co;exports.InfoIcon=ar;exports.KeyboardDownIcon=D4;exports.KeyboardLeftIcon=lr;exports.KeyboardRightIcon=cr;exports.KeyboardUpIcon=ur;exports.LanguageIcon=dr;exports.LinkIcon=fr;exports.LocationPointerIcon=Vs;exports.LockIcon=Z4;exports.LogoutIcon=hr;exports.MailIcon=Ms;exports.MenuIcon=Cr;exports.MinusIcon=Sr;exports.Modal=e4;exports.NFTIcon=ro;exports.Opacity=vt;exports.OpenInFullIcon=R4;exports.OpenInNewIcon=Lr;exports.OtterSecIcon=Xr;exports.PageInfoIcon=pr;exports.PancakeSwap=qs;exports.PasskeyIcon=Dr;exports.PaymentsIcon=bs;exports.PhantomIcon=Is;exports.PlusIcon=Tr;exports.PolygonLogo=_s;exports.QuestCard=mu;exports.Radiant=eo;exports.RadiantLogo=Bs;exports.RadioCheckedIcon=A4;exports.RadioUncheckedIcon=O4;exports.RaiseHandIcon=ls;exports.ReferralIcon=wr;exports.RelayLinkIcon=Rr;exports.RemoveIcon=gr;exports.RewardsIcon=gs;exports.RollingText=Re;exports.Rotate360Icon=ns;exports.RoutingIcon=ss;exports.RowInfoIcon=cs;exports.SDKIcon=qr;exports.ScaleY=uu;exports.SearchIcon=yr;exports.SearchIconThin=ts;exports.ShapesIcon=vs;exports.Share=Pr;exports.Shine=du;exports.Sidebar=u7;exports.Solv=Xs;exports.StakeIcon=Qr;exports.StarIcon=mr;exports.SwapHorizontalIcon=_r;exports.SwellBTC=$s;exports.ThorswapIcon=Ar;exports.TimerIcon=xr;exports.TokenInfo=po;exports.TokenNetworkLogos=$4;exports.TraderJoe=zs;exports.TrailOfBits=Ns;exports.TrustWallet=Fs;exports.Typography=R1;exports.Unchecked=_4;exports.UserGroupsIcon=ws;exports.Vertex=Js;exports.WalletConnect=Us;exports.WalletIcon=vr;exports.WalletIconRose=kr;exports.WarningIcon=Ir;exports.XIcon=F4;exports.XSolidIcon=Jr;exports.ZellicIcon=es;
|
|
65
|
+
`),()=>{document.head.removeChild(d)}},[t]),o.jsx(mo,{isPresent:t,childRef:r,sizeRef:s,children:L.cloneElement(e,{ref:r})})}const yo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a})=>{const l=xe(xo),c=v.useId(),u=v.useCallback(f=>{l.set(f,!0);for(const h of l.values())if(!h)return;r&&r()},[l,r]),d=v.useMemo(()=>({id:c,initial:t,isPresent:n,custom:s,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),i?[Math.random(),u]:[n,u]);return v.useMemo(()=>{l.forEach((f,h)=>l.set(h,!1))},[n]),L.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=o.jsx(vo,{isPresent:n,children:e})),o.jsx(t2.Provider,{value:d,children:e})};function xo(){return new Map}function W4(e=!0){const t=v.useContext(t2);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=v.useId();v.useEffect(()=>{e&&s(i)},[e]);const a=v.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const kt=e=>e.key||"";function v6(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const h3=typeof window<"u",C3=h3?v.useLayoutEffect:v.useEffect,wo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1})=>{const[l,c]=W4(a),u=v.useMemo(()=>v6(e),[e]),d=a&&!l?[]:u.map(kt),f=v.useRef(!0),h=v.useRef(u),p=xe(()=>new Map),[y,C]=v.useState(u),[m,g]=v.useState(u);C3(()=>{f.current=!1,h.current=u;for(let j=0;j<m.length;j++){const b=kt(m[j]);d.includes(b)?p.delete(b):p.get(b)!==!0&&p.set(b,!1)}},[m,d.length,d.join("-")]);const w=[];if(u!==y){let j=[...u];for(let b=0;b<m.length;b++){const k=m[b],S=kt(k);d.includes(S)||(j.splice(b,0,k),w.push(k))}i==="wait"&&w.length&&(j=w),g(v6(j)),C(u);return}process.env.NODE_ENV!=="production"&&i==="wait"&&m.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:H}=v.useContext(f3);return o.jsx(o.Fragment,{children:m.map(j=>{const b=kt(j),k=a&&!l?!1:u===m||d.includes(b),S=()=>{if(p.has(b))p.set(b,!0);else return;let M=!0;p.forEach(P=>{P||(M=!1)}),M&&(H==null||H(),g(h.current),a&&(c==null||c()),r&&r())};return o.jsx(yo,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:k?void 0:S,children:j},b)})})},A1=e=>e;let $e=A1,Q1=A1;process.env.NODE_ENV!=="production"&&($e=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Q1=(e,t)=>{if(!e)throw new Error(t)});function p3(e){let t;return()=>(t===void 0&&(t=e()),t)}const we=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},U1=e=>e*1e3,Y1=e=>e/1e3,bo={useManualTiming:!1};function Lo(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,c.process(u))}};return c}const Dt=["read","resolveKeyframes","update","preRender","render","postRender"],Vo=40;function z4(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Dt.reduce((g,w)=>(g[w]=Lo(i),g),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:h}=a,p=()=>{const g=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(g-s.timestamp,Vo),1),s.timestamp=g,s.isProcessing=!0,l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(p))},y=()=>{n=!0,r=!0,s.isProcessing||e(p)};return{schedule:Dt.reduce((g,w)=>{const H=a[w];return g[w]=(j,b=!1,k=!1)=>(n||y(),H.schedule(j,b,k)),g},{}),cancel:g=>{for(let w=0;w<Dt.length;w++)a[Dt[w]].cancel(g)},state:s,steps:a}}const{schedule:c1,cancel:ne,state:T1,steps:j2}=z4(typeof requestAnimationFrame<"u"?requestAnimationFrame:A1,!0),G4=v.createContext({strict:!1}),y6={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"]},Ie={};for(const e in y6)Ie[e]={isEnabled:t=>y6[e].some(n=>!!t[n])};function Mo(e){for(const t in e)Ie[t]={...Ie[t],...e[t]}}const jo=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 Ut(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jo.has(e)}let K4=e=>!Ut(e);function Ho(e){e&&(K4=t=>t.startsWith("on")?!Ut(t):e(t))}try{Ho(require("@emotion/is-prop-valid").default)}catch{}function So(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(K4(s)||n===!0&&Ut(s)||!t&&!Ut(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const x6=new Set;function r2(e,t,n){e||x6.has(t)||(console.warn(t),x6.add(t))}function To(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&r2(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const s2=v.createContext({});function ht(e){return typeof e=="string"||Array.isArray(e)}function o2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const g3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],m3=["initial",...g3];function i2(e){return o2(e.animate)||m3.some(t=>ht(e[t]))}function Y4(e){return!!(i2(e)||e.variants)}function Po(e,t){if(i2(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ht(n)?n:void 0,animate:ht(r)?r:void 0}}return e.inherit!==!1?t:{}}function Eo(e){const{initial:t,animate:n}=Po(e,v.useContext(s2));return v.useMemo(()=>({initial:t,animate:n}),[w6(t),w6(n)])}function w6(e){return Array.isArray(e)?e.join(" "):e}const ko=Symbol.for("motionComponentSymbol");function Pe(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Do(e,t,n){return v.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Pe(n)&&(n.current=r))},[t])}const v3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zo="framerAppearId",X4="data-"+v3(Zo),{schedule:y3}=z4(queueMicrotask,!1),q4=v.createContext({});function Ro(e,t,n,r,s){var i,a;const{visualElement:l}=v.useContext(s2),c=v.useContext(G4),u=v.useContext(t2),d=v.useContext(n2).reducedMotion,f=v.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,p=v.useContext(q4);h&&!h.projection&&s&&(h.type==="html"||h.type==="svg")&&Ao(f.current,n,s,p);const y=v.useRef(!1);v.useInsertionEffect(()=>{h&&y.current&&h.update(n,u)});const C=n[X4],m=v.useRef(!!C&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,C))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,C)));return C3(()=>{h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),y3.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),v.useEffect(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,C)}),m.current=!1))}),h}function Ao(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Q4(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Pe(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function Q4(e){if(e)return e.options.allowProjection!==!1?e.projection:Q4(e.parent)}function Oo({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,a;e&&Mo(e);function l(u,d){let f;const h={...v.useContext(n2),...u,layoutId:Io(u)},{isStatic:p}=h,y=Eo(u),C=r(u,p);if(!p&&h3){_o(h,e);const m=Bo(h);f=m.MeasureLayout,y.visualElement=Ro(s,C,h,t,m.ProjectionNode)}return o.jsxs(s2.Provider,{value:y,children:[f&&y.visualElement?o.jsx(f,{visualElement:y.visualElement,...h}):null,n(s,u,Do(C,y.visualElement,d),C,p,y.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(a=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&a!==void 0?a:""})`}`;const c=v.forwardRef(l);return c[ko]=s,c}function Io({layoutId:e}){const t=v.useContext(f3).id;return t&&e!==void 0?t+"-"+e:e}function _o(e,t){const n=v.useContext(G4).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?$e(!1,r):Q1(!1,r)}}function Bo(e){const{drag:t,layout:n}=Ie;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const No=["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 x3(e){return typeof e!="string"||e.includes("-")?!1:!!(No.indexOf(e)>-1||/[A-Z]/u.test(e))}function b6(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function w3(e,t,n,r){if(typeof t=="function"){const[s,i]=b6(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=b6(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const W2=e=>Array.isArray(e),Fo=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Uo=e=>W2(e)?e[e.length-1]||0:e,H1=e=>!!(e&&e.getVelocity);function _t(e){const t=H1(e)?e.get():e;return Fo(t)?t.toValue():t}function $o({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const a={latestValues:Wo(r,s,i,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const J4=e=>(t,n)=>{const r=v.useContext(s2),s=v.useContext(t2),i=()=>$o(e,t,r,s);return n?i():xe(i)};function Wo(e,t,n,r){const s={},i=r(e,{});for(const h in i)s[h]=_t(i[h]);let{initial:a,animate:l}=e;const c=i2(e),u=Y4(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!o2(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const y=w3(e,h[p]);if(y){const{transitionEnd:C,transition:m,...g}=y;for(const w in g){let H=g[w];if(Array.isArray(H)){const j=d?H.length-1:0;H=H[j]}H!==null&&(s[w]=H)}for(const w in C)s[w]=C[w]}}}return s}const We=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Le=new Set(We),e9=e=>t=>typeof t=="string"&&t.startsWith(e),t9=e9("--"),zo=e9("var(--"),b3=e=>zo(e)?Go.test(e.split("/*")[0].trim()):!1,Go=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,n9=(e,t)=>t&&typeof e=="number"?t.transform(e):e,re=(e,t,n)=>n>t?t:n<e?e:n,ze={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ct={...ze,transform:e=>re(0,1,e)},Zt={...ze,default:1},xt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ce=xt("deg"),X1=xt("%"),G=xt("px"),Ko=xt("vh"),Yo=xt("vw"),L6={...X1,parse:e=>X1.parse(e)/100,transform:e=>X1.transform(e*100)},Xo={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,backgroundPositionX:G,backgroundPositionY:G},qo={rotate:ce,rotateX:ce,rotateY:ce,rotateZ:ce,scale:Zt,scaleX:Zt,scaleY:Zt,scaleZ:Zt,skew:ce,skewX:ce,skewY:ce,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:Ct,originX:L6,originY:L6,originZ:G},V6={...ze,transform:Math.round},L3={...Xo,...qo,zIndex:V6,size:G,fillOpacity:Ct,strokeOpacity:Ct,numOctaves:V6},Qo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jo=We.length;function ei(e,t,n){let r="",s=!0;for(let i=0;i<Jo;i++){const a=We[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=n9(l,L3[a]);if(!c){s=!1;const d=Qo[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function V3(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Le.has(c)){a=!0;continue}else if(t9(c)){s[c]=u;continue}else{const d=n9(u,L3[c]);c.startsWith("origin")?(l=!0,i[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=ei(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${c} ${u} ${d}`}}const ti={offset:"stroke-dashoffset",array:"stroke-dasharray"},ni={offset:"strokeDashoffset",array:"strokeDasharray"};function ri(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?ti:ni;e[i.offset]=G.transform(-r);const a=G.transform(t),l=G.transform(n);e[i.array]=`${a} ${l}`}function M6(e,t,n){return typeof e=="string"?e:G.transform(t+n*e)}function si(e,t,n){const r=M6(t,e.x,e.width),s=M6(n,e.y,e.height);return`${r} ${s}`}function M3(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,f){if(V3(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:y}=e;h.transform&&(y&&(p.transform=h.transform),delete h.transform),y&&(s!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=si(y,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&ri(h,a,l,c,!1)}const j3=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r9=()=>({...j3(),attrs:{}}),H3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function s9(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const o9=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 i9(e,t,n,r){s9(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(o9.has(s)?s:v3(s),t.attrs[s])}const $t={};function oi(e){Object.assign($t,e)}function a9(e,{layout:t,layoutId:n}){return Le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$t[e]||e==="opacity")}function S3(e,t,n){var r;const{style:s}=e,i={};for(const a in s)(H1(s[a])||t.style&&H1(t.style[a])||a9(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=s[a]);return i}function l9(e,t,n){const r=S3(e,t,n);for(const s in e)if(H1(e[s])||H1(t[s])){const i=We.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function ii(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const j6=["x","y","width","height","cx","cy","r"],ai={useVisualState:J4({scrapeMotionValuesFromProps:l9,createRenderState:r9,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(Le.has(l)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let l=0;l<j6.length;l++){const c=j6[l];e[c]!==t[c]&&(a=!0)}a&&c1.read(()=>{ii(n,r),c1.render(()=>{M3(r,s,H3(n.tagName),e.transformTemplate),i9(n,r)})})}})},li={useVisualState:J4({scrapeMotionValuesFromProps:S3,createRenderState:j3})};function c9(e,t,n){for(const r in t)!H1(t[r])&&!a9(r,n)&&(e[r]=t[r])}function ci({transformTemplate:e},t){return v.useMemo(()=>{const n=j3();return V3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ui(e,t){const n=e.style||{},r={};return c9(r,n,e),Object.assign(r,ci(e,t)),r}function di(e,t){const n={},r=ui(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function fi(e,t,n,r){const s=v.useMemo(()=>{const i=r9();return M3(i,t,H3(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};c9(i,e.style,e),s.style={...i,...s.style}}return s}function hi(e=!1){return(n,r,s,{latestValues:i},a)=>{const c=(x3(n)?fi:di)(r,i,a,n),u=So(r,typeof n=="string",e),d=n!==v.Fragment?{...u,...c,ref:s}:{},{children:f}=r,h=v.useMemo(()=>H1(f)?f.get():f,[f]);return v.createElement(n,{...d,children:h})}}function Ci(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...x3(r)?ai:li,preloadedFeatures:e,useRender:hi(s),createVisualElement:t,Component:r};return Oo(a)}}function u9(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function a2(e,t,n){const r=e.getProps();return w3(r,t,n!==void 0?n:r.custom,e)}const pi=p3(()=>window.ScrollTimeline!==void 0);class gi{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(pi()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class d9 extends gi{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function T3(e,t){return e?e[t]||e.default||e:void 0}const Wt=2e4;function P3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wt;)t+=n,r=e.next(t);return t>=Wt?1/0:t}function mi(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(P3(r),Wt);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:Y1(s)}}function l2(e){return typeof e=="function"}function H6(e,t){e.timeline=t,e.onfinish=null}const E3=e=>Array.isArray(e)&&typeof e[0]=="number",vi={linearEasing:void 0};function yi(e,t){const n=p3(e);return()=>{var r;return(r=vi[t])!==null&&r!==void 0?r:n()}}const zt=yi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),f9=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(we(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function h9(e){return!!(typeof e=="function"&&zt()||!e||typeof e=="string"&&(e in z2||zt())||E3(e)||Array.isArray(e)&&e.every(h9))}const rt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,z2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rt([0,.65,.55,1]),circOut:rt([.55,0,1,.45]),backIn:rt([.31,.01,.66,-.59]),backOut:rt([.33,1.53,.69,.99])};function C9(e,t){if(e)return typeof e=="function"&&zt()?f9(e,t):E3(e)?rt(e):Array.isArray(e)?e.map(n=>C9(n,t)||z2.easeOut):z2[e]}const F1={x:!1,y:!1};function p9(){return F1.x||F1.y}function g9(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);const i=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function m9(e,t){const n=g9(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function S6(e){return t=>{t.pointerType==="touch"||p9()||e(t)}}function xi(e,t,n={}){const[r,s,i]=m9(e,n),a=S6(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=S6(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",a,s)}),i}const v9=(e,t)=>t?e===t?!0:v9(e,t.parentElement):!1,k3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,wi=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bi(e){return wi.has(e.tagName)||e.tabIndex!==-1}const st=new WeakSet;function T6(e){return t=>{t.key==="Enter"&&e(t)}}function H2(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Li=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=T6(()=>{if(st.has(n))return;H2(n,"down");const s=T6(()=>{H2(n,"up")}),i=()=>H2(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function P6(e){return k3(e)&&!p9()}function Vi(e,t,n={}){const[r,s,i]=m9(e,n),a=l=>{const c=l.currentTarget;if(!P6(l)||st.has(c))return;st.add(c);const u=t(l),d=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!P6(p)||!st.has(c))&&(st.delete(c),typeof u=="function"&&u(p,{success:y}))},f=p=>{d(p,n.useGlobalTarget||v9(c,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return r.forEach(l=>{!bi(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),l.addEventListener("focus",u=>Li(u,s),s)}),i}function Mi(e){return e==="x"||e==="y"?F1[e]?null:(F1[e]=!0,()=>{F1[e]=!1}):F1.x||F1.y?null:(F1.x=F1.y=!0,()=>{F1.x=F1.y=!1})}const y9=new Set(["width","height","top","left","right","bottom",...We]);let Bt;function ji(){Bt=void 0}const q1={now:()=>(Bt===void 0&&q1.set(T1.isProcessing||bo.useManualTiming?T1.timestamp:performance.now()),Bt),set:e=>{Bt=e,queueMicrotask(ji)}};function D3(e,t){e.indexOf(t)===-1&&e.push(t)}function c2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Z3{constructor(){this.subscriptions=[]}add(t){return D3(this.subscriptions,t),()=>c2(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function x9(e,t){return t?e*(1e3/t):0}const E6=30,Hi=e=>!isNaN(parseFloat(e)),it={current:void 0};class Si{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=q1.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=q1.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Hi(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&r2(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Z3);const r=this.events[t].add(n);return t==="change"?()=>{r(),c1.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return it.current&&it.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=q1.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>E6)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,E6);return x9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 _e(e,t){return new Si(e,t)}function Ti(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_e(n))}function Pi(e,t){const n=a2(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=Uo(i[a]);Ti(e,a,l)}}function Ei(e){return!!(H1(e)&&e.add)}function G2(e,t){const n=e.getValue("willChange");if(Ei(n))return n.add(t)}function w9(e){return e.props[X4]}const b9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ki=1e-7,Di=12;function Zi(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=b9(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>ki&&++l<Di);return a}function Ge(e,t,n,r){if(e===t&&n===r)return A1;const s=i=>Zi(i,0,1,e,n);return i=>i===0||i===1?i:b9(s(i),t,r)}const L9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V9=e=>t=>1-e(1-t),M9=Ge(.33,1.53,.69,.99),R3=V9(M9),j9=L9(R3),H9=e=>(e*=2)<1?.5*R3(e):.5*(2-Math.pow(2,-10*(e-1))),A3=e=>1-Math.sin(Math.acos(e)),S9=V9(A3),T9=L9(A3),P9=e=>/^0[^.\s]+$/u.test(e);function Ri(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||P9(e):!0}const at=e=>Math.round(e*1e5)/1e5,O3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ai(e){return e==null}const Oi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,I3=(e,t)=>n=>!!(typeof n=="string"&&Oi.test(n)&&n.startsWith(e)||t&&!Ai(n)&&Object.prototype.hasOwnProperty.call(n,t)),E9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(O3);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},Ii=e=>re(0,255,e),S2={...ze,transform:e=>Math.round(Ii(e))},me={test:I3("rgb","red"),parse:E9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+S2.transform(e)+", "+S2.transform(t)+", "+S2.transform(n)+", "+at(Ct.transform(r))+")"};function _i(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const K2={test:I3("#"),parse:_i,transform:me.transform},Ee={test:I3("hsl","hue"),parse:E9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+X1.transform(at(t))+", "+X1.transform(at(n))+", "+at(Ct.transform(r))+")"},P1={test:e=>me.test(e)||K2.test(e)||Ee.test(e),parse:e=>me.test(e)?me.parse(e):Ee.test(e)?Ee.parse(e):K2.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?me.transform(e):Ee.transform(e)},Bi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ni(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(O3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Bi))===null||n===void 0?void 0:n.length)||0)>0}const k9="number",D9="color",Fi="var",Ui="var(",k6="${}",$i=/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 pt(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace($i,c=>(P1.test(c)?(r.color.push(i),s.push(D9),n.push(P1.parse(c))):c.startsWith(Ui)?(r.var.push(i),s.push(Fi),n.push(c)):(r.number.push(i),s.push(k9),n.push(parseFloat(c))),++i,k6)).split(k6);return{values:n,split:l,indexes:r,types:s}}function Z9(e){return pt(e).values}function R9(e){const{split:t,types:n}=pt(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===k9?i+=at(s[a]):l===D9?i+=P1.transform(s[a]):i+=s[a]}return i}}const Wi=e=>typeof e=="number"?0:e;function zi(e){const t=Z9(e);return R9(e)(t.map(Wi))}const de={test:Ni,parse:Z9,createTransformer:R9,getAnimatableNone:zi},Gi=new Set(["brightness","contrast","saturate","opacity"]);function Ki(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(O3)||[];if(!r)return e;const s=n.replace(r,"");let i=Gi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Yi=/\b([a-z-]*)\(.*?\)/gu,Y2={...de,getAnimatableNone:e=>{const t=e.match(Yi);return t?t.map(Ki).join(" "):e}},Xi={...L3,color:P1,backgroundColor:P1,outlineColor:P1,fill:P1,stroke:P1,borderColor:P1,borderTopColor:P1,borderRightColor:P1,borderBottomColor:P1,borderLeftColor:P1,filter:Y2,WebkitFilter:Y2},_3=e=>Xi[e];function A9(e,t){let n=_3(e);return n!==Y2&&(n=de),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qi=new Set(["auto","none","0"]);function Qi(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!qi.has(i)&&pt(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=A9(n,s)}const D6=e=>e===ze||e===G,Z6=(e,t)=>parseFloat(e.split(", ")[t]),R6=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Z6(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Z6(i[1],e):0}},Ji=new Set(["x","y","z"]),ea=We.filter(e=>!Ji.has(e));function ta(e){const t=[];return ea.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:R6(4,13),y:R6(5,14)};Be.translateX=Be.x;Be.translateY=Be.y;const ve=new Set;let X2=!1,q2=!1;function O9(){if(q2){const e=Array.from(ve).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=ta(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,a])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}q2=!1,X2=!1,ve.forEach(e=>e.complete()),ve.clear()}function I9(){ve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(q2=!0)})}function na(){I9(),O9()}class B3{constructor(t,n,r,s,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ve.add(this),X2||(X2=!0,c1.read(I9),c1.resolveKeyframes(O9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const a=s==null?void 0:s.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),s&&a===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ve.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ve.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ra=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sa(e){const t=ra.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const oa=4;function B9(e,t,n=1){Q1(n<=oa,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=sa(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return _9(a)?parseFloat(a):a}return b3(s)?B9(s,t,n+1):s}const N9=e=>t=>t.test(e),ia={test:e=>e==="auto",parse:e=>e},F9=[ze,G,X1,ce,Yo,Ko,ia],A6=e=>F9.find(N9(e));class U9 extends B3{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),b3(u))){const d=B9(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!y9.has(r)||t.length!==2)return;const[s,i]=t,a=A6(s),l=A6(i);if(a!==l)if(D6(a)&&D6(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)Ri(t[s])&&r.push(s);r.length&&Qi(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=s.length-1,l=s[a];s[a]=Be[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const O6=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(de.test(e)||e==="0")&&!e.startsWith("url("));function aa(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function la(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=O6(s,t),l=O6(i,t);return $e(a===l,`You are trying to animate ${t} from "${s}" to "${i}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${i} via the \`style\` property.`),!a||!l?!1:aa(e)||(n==="spring"||l2(n))&&r}const ca=e=>e!==null;function u2(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(ca),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const ua=40;class $9{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=q1.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ua?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&na(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=q1.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!la(t,r,s,i))if(a)this.options.duration=0;else{c&&c(u2(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const C1=(e,t,n)=>e+(t-e)*n;function T2(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function da({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;s=T2(c,l,e+1/3),i=T2(c,l,e),a=T2(c,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function Gt(e,t){return n=>n>0?t:e}const P2=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},fa=[K2,me,Ee],ha=e=>fa.find(t=>t.test(e));function I6(e){const t=ha(e);if($e(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ee&&(n=da(n)),n}const _6=(e,t)=>{const n=I6(e),r=I6(t);if(!n||!r)return Gt(e,t);const s={...n};return i=>(s.red=P2(n.red,r.red,i),s.green=P2(n.green,r.green,i),s.blue=P2(n.blue,r.blue,i),s.alpha=C1(n.alpha,r.alpha,i),me.transform(s))},Ca=(e,t)=>n=>t(e(n)),wt=(...e)=>e.reduce(Ca),Q2=new Set(["none","hidden"]);function pa(e,t){return Q2.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ga(e,t){return n=>C1(e,t,n)}function N3(e){return typeof e=="number"?ga:typeof e=="string"?b3(e)?Gt:P1.test(e)?_6:ya:Array.isArray(e)?W9:typeof e=="object"?P1.test(e)?_6:ma:Gt}function W9(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>N3(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function ma(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=N3(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function va(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],l=e.indexes[a][s[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=c,s[a]++}return r}const ya=(e,t)=>{const n=de.createTransformer(t),r=pt(e),s=pt(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Q2.has(e)&&!s.values.length||Q2.has(t)&&!r.values.length?pa(e,t):wt(W9(va(r,s),s.values),n):($e(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Gt(e,t))};function z9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?C1(e,t,n):N3(e)(e,t)}const xa=5;function G9(e,t,n){const r=Math.max(t-xa,0);return x9(n-e(r),t-r)}const v1={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},E2=.001;function wa({duration:e=v1.duration,bounce:t=v1.bounce,velocity:n=v1.velocity,mass:r=v1.mass}){let s,i;$e(e<=U1(v1.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=re(v1.minDamping,v1.maxDamping,a),e=re(v1.minDuration,v1.maxDuration,Y1(e)),a<1?(s=u=>{const d=u*a,f=d*e,h=d-n,p=J2(u,a),y=Math.exp(-f);return E2-h/p*y},i=u=>{const f=u*a*e,h=f*n+n,p=Math.pow(a,2)*Math.pow(u,2)*e,y=Math.exp(-f),C=J2(Math.pow(u,2),a);return(-s(u)+E2>0?-1:1)*((h-p)*y)/C}):(s=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-E2+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=La(s,i,l);if(e=U1(e),isNaN(c))return{stiffness:v1.stiffness,damping:v1.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const ba=12;function La(e,t,n){let r=n;for(let s=1;s<ba;s++)r=r-e(r)/t(r);return r}function J2(e,t){return e*Math.sqrt(1-t*t)}const Va=["duration","bounce"],Ma=["stiffness","damping","mass"];function B6(e,t){return t.some(n=>e[n]!==void 0)}function ja(e){let t={velocity:v1.velocity,stiffness:v1.stiffness,damping:v1.damping,mass:v1.mass,isResolvedFromDuration:!1,...e};if(!B6(e,Ma)&&B6(e,Va))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*re(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:v1.mass,stiffness:s,damping:i}}else{const n=wa(e);t={...t,...n,mass:v1.mass},t.isResolvedFromDuration=!0}return t}function F3(e=v1.visualDuration,t=v1.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=ja({...n,velocity:-Y1(n.velocity||0)}),y=h||0,C=u/(2*Math.sqrt(c*d)),m=a-i,g=Y1(Math.sqrt(c/d)),w=Math.abs(m)<5;r||(r=w?v1.restSpeed.granular:v1.restSpeed.default),s||(s=w?v1.restDelta.granular:v1.restDelta.default);let H;if(C<1){const b=J2(g,C);H=k=>{const S=Math.exp(-C*g*k);return a-S*((y+C*g*m)/b*Math.sin(b*k)+m*Math.cos(b*k))}}else if(C===1)H=b=>a-Math.exp(-g*b)*(m+(y+g*m)*b);else{const b=g*Math.sqrt(C*C-1);H=k=>{const S=Math.exp(-C*g*k),M=Math.min(b*k,300);return a-S*((y+C*g*m)*Math.sinh(M)+b*m*Math.cosh(M))/b}}const j={calculatedDuration:p&&f||null,next:b=>{const k=H(b);if(p)l.done=b>=f;else{let S=0;C<1&&(S=b===0?U1(y):G9(H,b,k));const M=Math.abs(S)<=r,P=Math.abs(a-k)<=s;l.done=M&&P}return l.value=l.done?a:k,l},toString:()=>{const b=Math.min(P3(j),Wt),k=f9(S=>j.next(b*S).value,b,30);return b+"ms "+k}};return j}function N6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=M=>l!==void 0&&M<l||c!==void 0&&M>c,y=M=>l===void 0?c:c===void 0||Math.abs(l-M)<Math.abs(c-M)?l:c;let C=n*t;const m=f+C,g=a===void 0?m:a(m);g!==m&&(C=g-f);const w=M=>-C*Math.exp(-M/r),H=M=>g+w(M),j=M=>{const P=w(M),B=H(M);h.done=Math.abs(P)<=u,h.value=h.done?g:B};let b,k;const S=M=>{p(h.value)&&(b=M,k=F3({keyframes:[h.value,y(h.value)],velocity:G9(H,M,h.value),damping:s,stiffness:i,restDelta:u,restSpeed:d}))};return S(0),{calculatedDuration:null,next:M=>{let P=!1;return!k&&b===void 0&&(P=!0,j(M),S(M)),b!==void 0&&M>=b?k.next(M-b):(!P&&j(M),h)}}}const Ha=Ge(.42,0,1,1),Sa=Ge(0,0,.58,1),K9=Ge(.42,0,.58,1),Y9=e=>Array.isArray(e)&&typeof e[0]!="number",F6={linear:A1,easeIn:Ha,easeInOut:K9,easeOut:Sa,circIn:A3,circInOut:T9,circOut:S9,backIn:R3,backInOut:j9,backOut:M9,anticipate:H9},e3=e=>{if(E3(e)){Q1(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return Ge(t,n,r,s)}else if(typeof e=="string")return Q1(F6[e]!==void 0,`Invalid easing type '${e}'`),F6[e];return e};function Ta(e,t,n){const r=[],s=n||z9,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||A1:t;l=wt(c,l)}r.push(l)}return r}function X9(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Q1(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Ta(t,r,s),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=we(e[f],e[f+1],d);return l[f](h)};return n?d=>u(re(e[0],e[i-1],d)):u}function q9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=we(0,t,r);e.push(C1(n,1,s))}}function Q9(e){const t=[0];return q9(t,e.length-1),t}function Pa(e,t){return e.map(n=>n*t)}function Ea(e,t){return e.map(()=>t||K9).splice(0,e.length-1)}function Kt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Y9(r)?r.map(e3):e3(r),i={done:!1,value:t[0]},a=Pa(n&&n.length===t.length?n:Q9(t),e),l=X9(a,t,{ease:Array.isArray(s)?s:Ea(t,s)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const ka=e=>{const t=({timestamp:n})=>e(n);return{start:()=>c1.update(t,!0),stop:()=>ne(t),now:()=>T1.isProcessing?T1.timestamp:q1.now()}},Da={decay:N6,inertia:N6,tween:Kt,keyframes:Kt,spring:F3},Za=e=>e/100;class U3 extends $9{constructor(t){super(t),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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,a=(s==null?void 0:s.KeyframeResolver)||B3,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=this.options,l=l2(n)?n:Da[n]||Kt;let c,u;l!==Kt&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Q1(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=wt(Za,z9(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=P3(d));const{calculatedDuration:f}=d,h=f+s,p=h*(r+1)-s;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:y,repeatDelay:C,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?g<0:g>d;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let H=this.currentTime,j=i;if(p){const M=Math.min(this.currentTime,d)/f;let P=Math.floor(M),B=M%1;!B&&M>=1&&(B=1),B===1&&P--,P=Math.min(P,p+1),!!(P%2)&&(y==="reverse"?(B=1-B,C&&(B-=C/f)):y==="mirror"&&(j=a)),H=re(0,1,B)*f}const b=w?{done:!1,value:c[0]}:j.next(H);l&&(b.value=l(b.value));let{done:k}=b;!w&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return S&&s!==void 0&&(b.value=u2(c,this.options,s)),m&&m(b.value),S&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Y1(t.calculatedDuration):0}get time(){return Y1(this.currentTime)}set time(t){t=U1(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Y1(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ka,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const Ra=new Set(["opacity","clipPath","filter","transform"]);function Aa(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=C9(l,s);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}const Oa=p3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Yt=10,Ia=2e4;function _a(e){return l2(e.type)||e.type==="spring"||!h9(e.ease)}function Ba(e,t){const n=new U3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<Ia;)r=n.sample(i),s.push(r.value),i+=Yt;return{times:void 0,keyframes:s,duration:i-Yt,ease:"linear"}}const J9={anticipate:H9,backInOut:j9,circInOut:T9};function Na(e){return e in J9}class U6 extends $9{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new U9(i,(a,l)=>this.onKeyframesResolved(a,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&zt()&&Na(i)&&(i=J9[i]),_a(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:y,...C}=this.options,m=Ba(t,C);t=m.keyframes,t.length===1&&(t[1]=t[0]),r=m.duration,s=m.times,i=m.ease,a="keyframes"}const d=Aa(l.owner.current,c,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(H6(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(u2(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Y1(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Y1(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=U1(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return A1;const{animation:r}=n;H6(r,t)}return A1}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...p}=this.options,y=new U3({...p,keyframes:r,duration:s,type:i,ease:a,times:l,isGenerator:!0}),C=U1(this.time);u.setWithVelocity(y.sample(C-Yt).value,y.sample(C).value,Yt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return Oa()&&r&&Ra.has(r)&&!c&&!u&&!s&&i!=="mirror"&&a!==0&&l!=="inertia"}}const Fa={type:"spring",stiffness:500,damping:25,restSpeed:10},Ua=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$a={type:"keyframes",duration:.8},Wa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},za=(e,{keyframes:t})=>t.length>2?$a:Le.has(e)?e.startsWith("scale")?Ua(t[1]):Fa:Wa;function Ga({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const $3=(e,t,n,r={},s,i)=>a=>{const l=T3(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-U1(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};Ga(l)||(d={...d,...za(e,d)}),d.duration&&(d.duration=U1(d.duration)),d.repeatDelay&&(d.repeatDelay=U1(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const h=u2(d.keyframes,l);if(h!==void 0)return c1.update(()=>{d.onUpdate(h),d.onComplete()}),new d9([])}return!i&&U6.supports(d)?new U6(d):new U3(d)};function Ka({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W3(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const f in c){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=c[f];if(p===void 0||d&&Ka(d,f))continue;const y={delay:n,...T3(a||{},f)};let C=!1;if(window.MotionHandoffAnimation){const g=w9(e);if(g){const w=window.MotionHandoffAnimation(g,f,c1);w!==null&&(y.startTime=w,C=!0)}}G2(e,f),h.start($3(f,h,p,e.shouldReduceMotion&&y9.has(f)?{type:!1}:y,e,C));const m=h.animation;m&&u.push(m)}return l&&Promise.all(u).then(()=>{c1.update(()=>{l&&Pi(e,l)})}),u}function t3(e,t,n={}){var r;const s=a2(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const a=s?()=>Promise.all(W3(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return Ya(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function Ya(e,t,n=0,r=0,s=1,i){const a=[],l=(e.variantChildren.size-1)*r,c=s===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Xa).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(t3(u,t,{...i,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Xa(e,t){return e.sortNodePosition(t)}function qa(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>t3(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=t3(e,t,n);else{const s=typeof t=="function"?a2(e,t,n.custom):t;r=Promise.all(W3(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Qa=m3.length;function en(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?en(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Qa;n++){const r=m3[n],s=e.props[r];(ht(s)||s===!1)&&(t[r]=s)}return t}const Ja=[...g3].reverse(),el=g3.length;function tl(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qa(e,n,r)))}function nl(e){let t=tl(e),n=$6(),r=!0;const s=c=>(u,d)=>{var f;const h=a2(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:y,...C}=h;u={...u,...C,...y}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=en(e.parent)||{},f=[],h=new Set;let p={},y=1/0;for(let m=0;m<el;m++){const g=Ja[m],w=n[g],H=u[g]!==void 0?u[g]:d[g],j=ht(H),b=g===c?w.isActive:null;b===!1&&(y=m);let k=H===d[g]&&H!==u[g]&&j;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),w.protectedKeys={...p},!w.isActive&&b===null||!H&&!w.prevProp||o2(H)||typeof H=="boolean")continue;const S=rl(w.prevProp,H);let M=S||g===c&&w.isActive&&!k&&j||m>y&&j,P=!1;const B=Array.isArray(H)?H:[H];let N=B.reduce(s(g),{});b===!1&&(N={});const{prevResolvedValues:A={}}=w,R={...A,...N},K=U=>{M=!0,h.has(U)&&(P=!0,h.delete(U)),w.needsAnimating[U]=!0;const z=e.getValue(U);z&&(z.liveStyle=!1)};for(const U in R){const z=N[U],n1=A[U];if(p.hasOwnProperty(U))continue;let X=!1;W2(z)&&W2(n1)?X=!u9(z,n1):X=z!==n1,X?z!=null?K(U):h.add(U):z!==void 0&&h.has(U)?K(U):w.protectedKeys[U]=!0}w.prevProp=H,w.prevResolvedValues=N,w.isActive&&(p={...p,...N}),r&&e.blockInitialAnimation&&(M=!1),M&&(!(k&&S)||P)&&f.push(...B.map(U=>({animation:U,options:{type:g}})))}if(h.size){const m={};h.forEach(g=>{const w=e.getBaseTarget(g),H=e.getValue(g);H&&(H.liveStyle=!0),m[g]=w??null}),f.push({animation:m})}let C=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),n[c].isActive=u;const f=a(c);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=$6(),r=!0}}}function rl(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!u9(t,e):!1}function Ce(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $6(){return{animate:Ce(!0),whileInView:Ce(),whileHover:Ce(),whileTap:Ce(),whileDrag:Ce(),whileFocus:Ce(),exit:Ce()}}class fe{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sl extends fe{constructor(t){super(t),t.animationState||(t.animationState=nl(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();o2(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ol=0;class il extends fe{constructor(){super(...arguments),this.id=ol++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const al={animation:{Feature:sl},exit:{Feature:il}};function gt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bt(e){return{point:{x:e.pageX,y:e.pageY}}}const ll=e=>t=>k3(t)&&e(t,bt(t));function lt(e,t,n,r){return gt(e,t,ll(n),r)}const W6=(e,t)=>Math.abs(e-t);function cl(e,t){const n=W6(e.x,t.x),r=W6(e.y,t.y);return Math.sqrt(n**2+r**2)}class tn{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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 f=D2(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=cl(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:y}=f,{timestamp:C}=T1;this.history.push({...y,timestamp:C});const{onStart:m,onMove:g}=this.handlers;h||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=k2(h,this.transformPagePoint),c1.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=D2(f.type==="pointercancel"?this.lastMoveEventInfo:k2(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,m),y&&y(f,m)},!k3(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=bt(t),l=k2(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=T1;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,D2(l,this.history)),this.removeListeners=wt(lt(this.contextWindow,"pointermove",this.handlePointerMove),lt(this.contextWindow,"pointerup",this.handlePointerUp),lt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ne(this.updatePoint)}}function k2(e,t){return t?{point:t(e.point)}:e}function z6(e,t){return{x:e.x-t.x,y:e.y-t.y}}function D2({point:e},t){return{point:e,delta:z6(e,nn(t)),offset:z6(e,ul(t)),velocity:dl(t,.1)}}function ul(e){return e[0]}function nn(e){return e[e.length-1]}function dl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=nn(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>U1(t)));)n--;if(!r)return{x:0,y:0};const i=Y1(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const rn=1e-4,fl=1-rn,hl=1+rn,sn=.01,Cl=0-sn,pl=0+sn;function I1(e){return e.max-e.min}function gl(e,t,n){return Math.abs(e-t)<=n}function G6(e,t,n,r=.5){e.origin=r,e.originPoint=C1(t.min,t.max,e.origin),e.scale=I1(n)/I1(t),e.translate=C1(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fl&&e.scale<=hl||isNaN(e.scale))&&(e.scale=1),(e.translate>=Cl&&e.translate<=pl||isNaN(e.translate))&&(e.translate=0)}function ct(e,t,n,r){G6(e.x,t.x,n.x,r?r.originX:void 0),G6(e.y,t.y,n.y,r?r.originY:void 0)}function K6(e,t,n){e.min=n.min+t.min,e.max=e.min+I1(t)}function ml(e,t,n){K6(e.x,t.x,n.x),K6(e.y,t.y,n.y)}function Y6(e,t,n){e.min=t.min-n.min,e.max=e.min+I1(t)}function ut(e,t,n){Y6(e.x,t.x,n.x),Y6(e.y,t.y,n.y)}function vl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?C1(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?C1(n,e,r.max):Math.min(e,n)),e}function X6(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yl(e,{top:t,left:n,bottom:r,right:s}){return{x:X6(e.x,n,s),y:X6(e.y,t,r)}}function q6(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xl(e,t){return{x:q6(e.x,t.x),y:q6(e.y,t.y)}}function wl(e,t){let n=.5;const r=I1(e),s=I1(t);return s>r?n=we(t.min,t.max-r,e.min):r>s&&(n=we(e.min,e.max-s,t.min)),re(0,1,n)}function bl(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const n3=.35;function Ll(e=n3){return e===!1?e=0:e===!0&&(e=n3),{x:Q6(e,"left","right"),y:Q6(e,"top","bottom")}}function Q6(e,t,n){return{min:J6(e,t),max:J6(e,n)}}function J6(e,t){return typeof e=="number"?e:e[t]||0}const e5=()=>({translate:0,scale:1,origin:0,originPoint:0}),ke=()=>({x:e5(),y:e5()}),t5=()=>({min:0,max:0}),x1=()=>({x:t5(),y:t5()});function N1(e){return[e("x"),e("y")]}function on({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vl({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ml(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Z2(e){return e===void 0||e===1}function r3({scale:e,scaleX:t,scaleY:n}){return!Z2(e)||!Z2(t)||!Z2(n)}function pe(e){return r3(e)||an(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function an(e){return n5(e.x)||n5(e.y)}function n5(e){return e&&e!=="0%"}function Xt(e,t,n){const r=e-n,s=t*r;return n+s}function r5(e,t,n,r,s){return s!==void 0&&(e=Xt(e,s,r)),Xt(e,n,r)+t}function s3(e,t=0,n=1,r,s){e.min=r5(e.min,t,n,r,s),e.max=r5(e.max,t,n,r,s)}function ln(e,{x:t,y:n}){s3(e.x,t.translate,t.scale,t.originPoint),s3(e.y,n.translate,n.scale,n.originPoint)}const s5=.999999999999,o5=1.0000000000001;function jl(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ze(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ln(e,a)),r&&pe(i.latestValues)&&Ze(e,i.latestValues))}t.x<o5&&t.x>s5&&(t.x=1),t.y<o5&&t.y>s5&&(t.y=1)}function De(e,t){e.min=e.min+t,e.max=e.max+t}function i5(e,t,n,r,s=.5){const i=C1(e.min,e.max,s);s3(e,t,n,i,r)}function Ze(e,t){i5(e.x,t.x,t.scaleX,t.scale,t.originX),i5(e.y,t.y,t.scaleY,t.scale,t.originY)}function cn(e,t){return on(Ml(e.getBoundingClientRect(),t))}function Hl(e,t,n){const r=cn(e,n),{scroll:s}=t;return s&&(De(r.x,s.offset.x),De(r.y,s.offset.y)),r}const un=({current:e})=>e?e.ownerDocument.defaultView:null,Sl=new WeakMap;class Tl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=x1(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bt(d).point)},i=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:y}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Mi(h),!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),N1(m=>{let g=this.getAxisMotionValue(m).get()||0;if(X1.test(g)){const{projection:w}=this.visualElement;if(w&&w.layout){const H=w.layout.layoutBox[m];H&&(g=I1(H)*(parseFloat(g)/100))}}this.originPoint[m]=g}),y&&c1.postRender(()=>y(d,f)),G2(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:y,onDrag:C}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:m}=f;if(p&&this.currentDirection===null){this.currentDirection=Pl(m),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),C&&C(d,f)},l=(d,f)=>this.stop(d,f),c=()=>N1(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tn(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:un(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&c1.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Rt(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vl(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Pe(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=yl(s.layoutBox,n):this.constraints=!1,this.elastic=Ll(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&N1(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=bl(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pe(t))return!1;const r=t.current;Q1(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Hl(r,s.root,this.visualElement.getTransformPagePoint());let a=xl(s.layout.layoutBox,i);if(n){const l=n(Vl(a));this.hasMutatedConstraints=!!l,l&&(a=on(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=N1(d=>{if(!Rt(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const h=s?200:1e6,p=s?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return G2(this.visualElement,t),r.start($3(t,r,0,n,this.visualElement,!1))}stopAnimation(){N1(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){N1(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){N1(n=>{const{drag:r}=this.getProps();if(!Rt(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];i.set(t[n]-C1(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pe(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};N1(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();s[a]=wl({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),N1(a=>{if(!Rt(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(C1(c,u,s[a]))})}addListeners(){if(!this.visualElement.current)return;Sl.set(this.visualElement,this);const t=this.visualElement.current,n=lt(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Pe(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),c1.read(r);const a=gt(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(N1(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=n3,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function Rt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Pl(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class El extends fe{constructor(t){super(t),this.removeGroupControls=A1,this.removeListeners=A1,this.controls=new Tl(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A1}unmount(){this.removeGroupControls(),this.removeListeners()}}const a5=e=>(t,n)=>{e&&c1.postRender(()=>e(t,n))};class kl extends fe{constructor(){super(...arguments),this.removePointerDownListener=A1}onPointerDown(t){this.session=new tn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:un(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:a5(t),onStart:a5(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&c1.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=lt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function l5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const tt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(G.test(e))e=parseFloat(e);else return e;const n=l5(e,t.target.x),r=l5(e,t.target.y);return`${n}% ${r}%`}},Dl={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=de.parse(e);if(s.length>5)return r;const i=de.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=c;const u=C1(l,c,.5);return typeof s[2+a]=="number"&&(s[2+a]/=u),typeof s[3+a]=="number"&&(s[3+a]/=u),i(s)}};class Zl extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;oi(Rl),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,s||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||c1.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),y3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function dn(e){const[t,n]=W4(),r=v.useContext(f3);return o.jsx(Zl,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(q4),isPresent:t,safeToRemove:n})}const Rl={borderRadius:{...tt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tt,borderTopRightRadius:tt,borderBottomLeftRadius:tt,borderBottomRightRadius:tt,boxShadow:Dl};function fn(e,t,n){const r=H1(e)?e:_e(e);return r.start($3("",r,t,n)),r.animation}function hn(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Al=(e,t)=>e.depth-t.depth;class Ol{constructor(){this.children=[],this.isDirty=!1}add(t){D3(this.children,t),this.isDirty=!0}remove(t){c2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Al),this.isDirty=!1,this.children.forEach(t)}}function Il(e,t){const n=q1.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(ne(r),e(i-t))};return c1.read(r,!0),()=>ne(r)}const Cn=["TopLeft","TopRight","BottomLeft","BottomRight"],_l=Cn.length,c5=e=>typeof e=="string"?parseFloat(e):e,u5=e=>typeof e=="number"||G.test(e);function Bl(e,t,n,r,s,i){s?(e.opacity=C1(0,n.opacity!==void 0?n.opacity:1,Nl(r)),e.opacityExit=C1(t.opacity!==void 0?t.opacity:1,0,Fl(r))):i&&(e.opacity=C1(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<_l;a++){const l=`border${Cn[a]}Radius`;let c=d5(t,l),u=d5(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||u5(c)===u5(u)?(e[l]=Math.max(C1(c5(c),c5(u),r),0),(X1.test(u)||X1.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=C1(t.rotate||0,n.rotate||0,r))}function d5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Nl=pn(0,.5,S9),Fl=pn(.5,.95,A1);function pn(e,t,n){return r=>r<e?0:r>t?1:n(we(e,t,r))}function f5(e,t){e.min=t.min,e.max=t.max}function B1(e,t){f5(e.x,t.x),f5(e.y,t.y)}function h5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function C5(e,t,n,r,s){return e-=t,e=Xt(e,1/n,r),s!==void 0&&(e=Xt(e,1/s,r)),e}function Ul(e,t=0,n=1,r=.5,s,i=e,a=e){if(X1.test(t)&&(t=parseFloat(t),t=C1(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=C1(i.min,i.max,r);e===i&&(l-=t),e.min=C5(e.min,t,n,l,s),e.max=C5(e.max,t,n,l,s)}function p5(e,t,[n,r,s],i,a){Ul(e,t[n],t[r],t[s],t.scale,i,a)}const $l=["x","scaleX","originX"],Wl=["y","scaleY","originY"];function g5(e,t,n,r){p5(e.x,t,$l,n?n.x:void 0,r?r.x:void 0),p5(e.y,t,Wl,n?n.y:void 0,r?r.y:void 0)}function m5(e){return e.translate===0&&e.scale===1}function gn(e){return m5(e.x)&&m5(e.y)}function v5(e,t){return e.min===t.min&&e.max===t.max}function zl(e,t){return v5(e.x,t.x)&&v5(e.y,t.y)}function y5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mn(e,t){return y5(e.x,t.x)&&y5(e.y,t.y)}function x5(e){return I1(e.x)/I1(e.y)}function w5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Gl{constructor(){this.members=[]}add(t){D3(this.members,t),t.scheduleRender()}remove(t){if(c2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Kl(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:p,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),y&&(r+=`skewY(${y}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ge={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ot=typeof window<"u"&&window.MotionDebug!==void 0,R2=["","X","Y","Z"],Yl={visibility:"hidden"},b5=1e3;let Xl=0;function A2(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function vn(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=w9(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",c1,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&vn(r)}function yn({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=Xl++,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,ot&&(ge.totalNodes=ge.resolvedTargetDeltas=ge.recalculatedProjection=0),this.nodes.forEach(Jl),this.nodes.forEach(sc),this.nodes.forEach(oc),this.nodes.forEach(ec),ot&&window.MotionDebug.record(ge)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ol)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Z3),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hn(a),this.instance=a;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Il(h,250),Nt.hasAnimatedSinceResize&&(Nt.hasAnimatedSinceResize=!1,this.nodes.forEach(V5))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||d.getDefaultTransition()||uc,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=d.getProps(),w=!this.targetLayout||!mn(this.targetLayout,y)||p,H=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||H||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,H);const j={...T3(C,"layout"),onPlay:m,onComplete:g};(d.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else h||V5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ne(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(ic),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&vn(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(L5);return}this.isUpdating||this.nodes.forEach(nc),this.isUpdating=!1,this.nodes.forEach(rc),this.nodes.forEach(ql),this.nodes.forEach(Ql),this.clearAllSnapshots();const l=q1.now();T1.delta=re(0,1e3/60,l-T1.timestamp),T1.timestamp=l,T1.isProcessing=!0,j2.update.process(T1),j2.preRender.process(T1),j2.render.process(T1),T1.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,y3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tc),this.sharedNodes.forEach(ac)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,c1.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){c1.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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=x1(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!gn(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||pe(this.latestValues)||d)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),dc(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return x1();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(fc))){const{scroll:d}=this.root;d&&(De(c.x,d.offset.x),De(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=x1();if(B1(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&B1(c,a),De(c.x,f.offset.x),De(c.y,f.offset.y))}return c}applyTransform(a,l=!1){const c=x1();B1(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ze(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),pe(d.latestValues)&&Ze(c,d.latestValues)}return pe(this.latestValues)&&Ze(c,this.latestValues),c}removeTransform(a){const l=x1();B1(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!pe(u.latestValues))continue;r3(u.latestValues)&&u.updateSnapshot();const d=x1(),f=u.measurePageBox();B1(d,f),g5(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return pe(this.latestValues)&&g5(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==T1.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=T1.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=x1(),this.relativeTargetOrigin=x1(),ut(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),B1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=x1(),this.targetWithTransforms=x1()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ml(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):B1(this.target,this.layout.layoutBox),ln(this.target,this.targetDelta)):B1(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=x1(),this.relativeTargetOrigin=x1(),ut(this.relativeTargetOrigin,this.target,p.target),B1(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ot&&ge.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||r3(this.parent.latestValues)||an(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 a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===T1.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;B1(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;jl(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=x1());const{target:y}=l;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(h5(this.prevProjectionDelta.x,this.projectionDelta.x),h5(this.prevProjectionDelta.y,this.projectionDelta.y)),ct(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!w5(this.projectionDelta.x,this.prevProjectionDelta.x)||!w5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),ot&&ge.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ke(),this.projectionDelta=ke(),this.projectionDeltaWithTransform=ke()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=ke();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=x1(),p=c?c.source:void 0,y=this.layout?this.layout.source:void 0,C=p!==y,m=this.getStack(),g=!m||m.members.length<=1,w=!!(C&&!g&&this.options.crossfade===!0&&!this.path.some(cc));this.animationProgress=0;let H;this.mixTargetDelta=j=>{const b=j/1e3;M5(f.x,a.x,b),M5(f.y,a.y,b),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ut(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lc(this.relativeTarget,this.relativeTargetOrigin,h,b),H&&zl(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=x1()),B1(H,this.relativeTarget)),C&&(this.animationValues=d,Bl(d,u,this.latestValues,b,w,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ne(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=c1.update(()=>{Nt.hasAnimatedSinceResize=!0,this.currentAnimation=fn(0,b5,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(b5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&xn(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||x1();const f=I1(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const h=I1(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}B1(l,c),Ze(l,d),ct(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Gl),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&A2("z",a,u,this.animationValues);for(let d=0;d<R2.length;d++)A2(`rotate${R2[d]}`,a,u,this.animationValues),A2(`skew${R2[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yl;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=_t(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const C={};return this.options.layoutId&&(C.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,C.pointerEvents=_t(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!pe(this.latestValues)&&(C.transform=d?d({},""):"none",this.hasProjected=!1),C}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=Kl(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:p,y}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(c=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const C in $t){if(h[C]===void 0)continue;const{correct:m,applyTo:g}=$t[C],w=u.transform==="none"?h[C]:m(h[C],f);if(g){const H=g.length;for(let j=0;j<H;j++)u[g[j]]=w}else u[C]=w}return this.options.layoutId&&(u.pointerEvents=f===this?_t(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(L5),this.root.sharedNodes.clear()}}}function ql(e){e.updateLayout()}function Ql(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,a=n.source!==e.layout.source;i==="size"?N1(f=>{const h=a?n.measuredBox[f]:n.layoutBox[f],p=I1(h);h.min=r[f].min,h.max=h.min+p}):xn(i,n.layoutBox,r)&&N1(f=>{const h=a?n.measuredBox[f]:n.layoutBox[f],p=I1(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const l=ke();ct(l,r,n.layoutBox);const c=ke();a?ct(c,e.applyTransform(s,!0),n.measuredBox):ct(c,r,n.layoutBox);const u=!gn(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const y=x1();ut(y,n.layoutBox,h.layoutBox);const C=x1();ut(C,r,p.layoutBox),mn(y,C)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Jl(e){ot&&ge.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ec(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tc(e){e.clearSnapshot()}function L5(e){e.clearMeasurements()}function nc(e){e.isLayoutDirty=!1}function rc(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function V5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sc(e){e.resolveTargetDelta()}function oc(e){e.calcProjection()}function ic(e){e.resetSkewAndRotation()}function ac(e){e.removeLeadSnapshot()}function M5(e,t,n){e.translate=C1(t.translate,0,n),e.scale=C1(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function j5(e,t,n,r){e.min=C1(t.min,n.min,r),e.max=C1(t.max,n.max,r)}function lc(e,t,n,r){j5(e.x,t.x,n.x,r),j5(e.y,t.y,n.y,r)}function cc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const uc={duration:.45,ease:[.4,0,.1,1]},H5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),S5=H5("applewebkit/")&&!H5("chrome/")?Math.round:A1;function T5(e){e.min=S5(e.min),e.max=S5(e.max)}function dc(e){T5(e.x),T5(e.y)}function xn(e,t,n){return e==="position"||e==="preserve-aspect"&&!gl(x5(t),x5(n),.2)}function fc(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const hc=yn({attachResizeListener:(e,t)=>gt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),O2={current:void 0},wn=yn({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!O2.current){const e=new hc({});e.mount(window),e.setOptions({layoutScroll:!0}),O2.current=e}return O2.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Cc={pan:{Feature:kl},drag:{Feature:El,ProjectionNode:wn,MeasureLayout:dn}};function P5(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&c1.postRender(()=>i(t,bt(t)))}class pc extends fe{mount(){const{current:t}=this.node;t&&(this.unmount=xi(t,n=>(P5(this.node,n,"Start"),r=>P5(this.node,r,"End"))))}unmount(){}}class gc extends fe{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wt(gt(this.node.current,"focus",()=>this.onFocus()),gt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function E5(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&c1.postRender(()=>i(t,bt(t)))}class mc extends fe{mount(){const{current:t}=this.node;t&&(this.unmount=Vi(t,n=>(E5(this.node,n,"Start"),(r,{success:s})=>E5(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const o3=new WeakMap,I2=new WeakMap,vc=e=>{const t=o3.get(e.target);t&&t(e)},yc=e=>{e.forEach(vc)};function xc({root:e,...t}){const n=e||document;I2.has(n)||I2.set(n,{});const r=I2.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(yc,{root:e,...t})),r[s]}function wc(e,t,n){const r=xc(t);return o3.set(e,n),r.observe(e),()=>{o3.delete(e),r.unobserve(e)}}const bc={some:0,all:1};class Lc extends fe{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:bc[s]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(c)};return wc(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Vc(t,n))&&this.startObserver()}unmount(){}}function Vc({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Mc={inView:{Feature:Lc},tap:{Feature:mc},focus:{Feature:gc},hover:{Feature:pc}},jc={layout:{ProjectionNode:wn,MeasureLayout:dn}},i3={current:null},bn={current:!1};function Hc(){if(bn.current=!0,!!h3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i3.current=e.matches;e.addListener(t),t()}else i3.current=!1}const Sc=[...F9,P1,de],Tc=e=>Sc.find(N9(e)),Ne=new WeakMap;function Pc(e,t,n){for(const r in t){const s=t[r],i=n[r];if(H1(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&r2(s.version==="11.18.2",`Attempting to mix Motion versions ${s.version} with 11.18.2 may not work as expected.`);else if(H1(i))e.addValue(r,_e(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,_e(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ln{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=B3,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 p=q1.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,c1.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=i2(n),this.isVariantNode=Y4(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&H1(y)&&y.set(c[p],!1)}}mount(t){this.current=t,Ne.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bn.current||Hc(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:i3.current,process.env.NODE_ENV!=="production"&&r2(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ne.delete(this.current),this.projection&&this.projection.unmount(),ne(this.notifyUpdate),ne(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Le.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&c1.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ie){const n=Ie[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):x1()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<k5.length;r++){const s=k5[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=Pc(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_e(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(_9(s)||P9(s))?s=parseFloat(s):!Tc(s)&&de.test(n)&&(s=A9(t,n)),this.setBaseTarget(t,H1(s)?s.get():s)),H1(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=w3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!H1(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Z3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Vn extends Ln{constructor(){super(...arguments),this.KeyframeResolver=U9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;H1(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ec(e){return window.getComputedStyle(e)}class Mn extends Vn{constructor(){super(...arguments),this.type="html",this.renderInstance=s9}readValueFromInstance(t,n){if(Le.has(n)){const r=_3(n);return r&&r.default||0}else{const r=Ec(t),s=(t9(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return cn(t,n)}build(t,n,r){V3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return S3(t,n,r)}}class jn extends Vn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=x1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Le.has(n)){const r=_3(n);return r&&r.default||0}return n=o9.has(n)?n:v3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return l9(t,n,r)}build(t,n,r){M3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){i9(t,n,r,s)}mount(t){this.isSVGTag=H3(t.tagName),super.mount(t)}}const kc=(e,t)=>x3(e)?new jn(t):new Mn(t,{allowProjection:e!==v.Fragment}),Dc=Ci({...al,...Mc,...Cc,...jc},kc),z3=To(Dc);function Hn(e){const t=xe(()=>_e(e)),{isStatic:n}=v.useContext(n2);if(n){const[,r]=v.useState(e);v.useEffect(()=>t.on("change",r),[])}return t}function Sn(e,t){const n=Hn(t()),r=()=>n.set(t());return r(),C3(()=>{const s=()=>c1.preRender(r,!1,!0),i=e.map(a=>a.on("change",s));return()=>{i.forEach(a=>a()),ne(r)}}),n}const Zc=e=>e&&typeof e=="object"&&e.mix,Rc=e=>Zc(e)?e.mix:void 0;function Ac(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],s=e[1+n],i=e[2+n],a=e[3+n],l=X9(s,i,{mixer:Rc(i[0]),...a});return t?l(r):l}function Oc(e){it.current=[],e();const t=Sn(it.current,e);return it.current=void 0,t}function Ic(e,t,n,r){if(typeof e=="function")return Oc(e);const s=typeof t=="function"?t:Ac(t,n,r);return Array.isArray(e)?D5(e,s):D5([e],([i])=>s(i))}function D5(e,t){const n=xe(()=>[]);return Sn(e,()=>{n.length=0;const r=e.length;for(let s=0;s<r;s++)n[s]=e[s].get();return t(n)})}function _c(e){return v.useEffect(()=>()=>e(),[])}const Bc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Tn(e,t){return Y9(e)?e[Bc(0,e.length,t)]:e}function G3(e){return typeof e=="object"&&!Array.isArray(e)}function Pn(e,t,n,r){return typeof e=="string"&&G3(t)?g9(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Nc(e,t,n){return e*(t+1)}function Z5(e,t,n,r){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=r.get(t))!==null&&s!==void 0?s:e}function Fc(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(c2(e,s),r--)}}function Uc(e,t,n,r,s,i){Fc(e,s,i);for(let a=0;a<t.length;a++)e.push({value:t[a],at:C1(s,i,r[a]),easing:Tn(n,a)})}function $c(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Wc(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const zc="easeInOut",Gc=20;function Kc(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,a=new Map,l=new Map,c={},u=new Map;let d=0,f=0,h=0;for(let p=0;p<e.length;p++){const y=e[p];if(typeof y=="string"){u.set(y,f);continue}else if(!Array.isArray(y)){u.set(y.name,Z5(f,y.at,d,u));continue}let[C,m,g={}]=y;g.at!==void 0&&(f=Z5(f,g.at,d,u));let w=0;const H=(j,b,k,S=0,M=0)=>{const P=Yc(j),{delay:B=0,times:N=Q9(P),type:A="keyframes",repeat:R,repeatType:K,repeatDelay:t1=0,...Q}=b;let{ease:U=t.ease||"easeOut",duration:z}=b;const n1=typeof B=="function"?B(S,M):B,X=P.length,l1=l2(A)?A:s==null?void 0:s[A];if(X<=2&&l1){let p1=100;if(X===2&&Qc(P)){const b1=P[1]-P[0];p1=Math.abs(b1)}const M1={...Q};z!==void 0&&(M1.duration=U1(z));const E1=mi(M1,p1,l1);U=E1.ease,z=E1.duration}z??(z=i);const V1=f+n1;N.length===1&&N[0]===0&&(N[1]=1);const i1=N.length-P.length;if(i1>0&&q9(N,i1),P.length===1&&P.unshift(null),R){Q1(R<Gc,"Repeat count too high, must be less than 20"),z=Nc(z,R);const p1=[...P],M1=[...N];U=Array.isArray(U)?[...U]:[U];const E1=[...U];for(let b1=0;b1<R;b1++){P.push(...p1);for(let k1=0;k1<p1.length;k1++)N.push(M1[k1]+(b1+1)),U.push(k1===0?"linear":Tn(E1,k1-1))}$c(N,R)}const f1=V1+z;Uc(k,P,U,N,V1,f1),w=Math.max(n1+z,w),h=Math.max(f1,h)};if(H1(C)){const j=R5(C,l);H(m,g,A5("default",j))}else{const j=Pn(C,m,r,c),b=j.length;for(let k=0;k<b;k++){m=m,g=g;const S=j[k],M=R5(S,l);for(const P in m)H(m[P],Xc(g,P),A5(P,M),k,b)}}d=f,f+=w}return l.forEach((p,y)=>{for(const C in p){const m=p[C];m.sort(Wc);const g=[],w=[],H=[];for(let b=0;b<m.length;b++){const{at:k,value:S,easing:M}=m[b];g.push(S),w.push(we(0,h,k)),H.push(M||"easeOut")}w[0]!==0&&(w.unshift(0),g.unshift(g[0]),H.unshift(zc)),w[w.length-1]!==1&&(w.push(1),g.push(null)),a.has(y)||a.set(y,{keyframes:{},transition:{}});const j=a.get(y);j.keyframes[C]=g,j.transition[C]={...t,duration:h,ease:H,times:w,...n}}}),a}function R5(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function A5(e,t){return t[e]||(t[e]=[]),t[e]}function Yc(e){return Array.isArray(e)?e:[e]}function Xc(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const qc=e=>typeof e=="number",Qc=e=>e.every(qc);function Jc(e,t){return e in t}class eu extends Ln{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Jc(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return x1()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function tu(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=hn(e)?new jn(t):new Mn(t);n.mount(e),Ne.set(e,n)}function nu(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new eu(t);n.mount(e),Ne.set(e,n)}function ru(e,t){return H1(e)||typeof e=="number"||typeof e=="string"&&!G3(t)}function En(e,t,n,r){const s=[];if(ru(e,t))s.push(fn(e,G3(t)&&t.default||t,n&&(n.default||n)));else{const i=Pn(e,t,r),a=i.length;Q1(!!a,"No valid elements provided.");for(let l=0;l<a;l++){const c=i[l],u=c instanceof Element?tu:nu;Ne.has(c)||u(c);const d=Ne.get(c),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(l,a)),s.push(...W3(d,{...t,transition:f},{}))}}return s}function su(e,t,n){const r=[];return Kc(e,t,n,{spring:F3}).forEach(({keyframes:i,transition:a},l)=>{r.push(...En(l,i,a))}),r}function ou(e){return Array.isArray(e)&&e.some(Array.isArray)}function iu(e){function t(n,r,s){let i=[];ou(n)?i=su(n,r,e):i=En(n,r,s,e);const a=new d9(i);return e&&e.animations.push(a),a}return t}function au(){const e=xe(()=>({current:null,animations:[]})),t=xe(()=>iu(e));return _c(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}function lu(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function At(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(s,i)=>{const a=typeof n=="number"?n:lu(n,i),l=Math.abs(a-s);let c=e*l;if(r){const u=i*e;c=e3(r)(c/u)*u}return t+c}}const cu=({isMobile:e,isLogoHovered:t,maskUrl:n})=>{const[r]=v.useState("https://garden-bucket-cdn.s3.eu-central-1.amazonaws.com/flowers_bg.mp4"),[s,i]=v.useState("initial"),a=v.useRef(null),l=v.useRef(null),c=Hn(45),u=Ic(c,d=>`${d}% center`);return v.useEffect(()=>{if(t)i("visible");else{i("exit");const d=setTimeout(()=>{i("initial")},800);return()=>clearTimeout(d)}},[t]),o.jsxs(o.Fragment,{children:[o.jsx("video",{ref:a,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-screen gf-object-cover gf-opacity-0"},"video-flowers"),o.jsx(wo,{mode:"wait",children:o.jsx(z3.div,{animate:s,variants:{initial:{maskPosition:"45%",opacity:0},visible:{maskPosition:"10%",opacity:1},exit:{maskPosition:"-60%",opacity:0,transition:{duration:1.2,ease:[0,.77,.3,1],opacity:{delay:.4}}}},transition:{duration:1,ease:[.22,.68,.88,.96],delay:.15,opacity:{times:[0,1,1,1]}},style:{maskImage:`linear-gradient(black, black), url('${n}')`,maskComposite:"exclude",maskSize:e?"1200% 200%":"820% 600%",maskPosition:u},className:"gf-pointer-events-none gf-absolute gf-left-0 gf-top-0 gf-z-0 gf-h-full gf-w-full gf-overflow-hidden gf-opacity-0",children:o.jsx("video",{ref:l,src:r,autoPlay:!0,loop:!0,muted:!0,controls:!1,preload:"metadata",playsInline:!0,className:"gf-pointer-events-none gf-h-full gf-w-screen gf-object-cover",onCanPlayThrough:()=>{l.current&&l.current.play().catch(console.error)},onLoadStart:()=>{l.current&&l.current.play().catch(console.error)}},"video-flowers-animated")},"hovered")})]})},uu=({children:e,triggerAnimation:t})=>{const n={animation:{scaleY:[0,1],opacity:[0,1],transition:{duration:.5,ease:Ge(.84,0,.16,1),opacity:{duration:.2,ease:"easeInOut"},once:!0}},idle:{scaleY:1,opacity:1}};return o.jsx(z3.div,{animate:t?"animation":"idle",variants:n,style:{transformOrigin:"bottom"},children:e})},du=({children:e})=>o.jsx(z3.div,{className:"gf-relative gf-inline-block gf-overflow-hidden gf-rounded-xl gf-w-[300px] before:gf-z-50 before:gf-absolute before:gf-bg-gradient-to-r before:gf-from-transparent before:gf-via-white/50 before:gf-via-50% before:gf-to-transparent before:gf-top-0 before:gf-left-0 before:gf-w-[168px] before:gf-h-full before:gf-animate-shine before:gf-opacity-0",children:e}),Re=v.forwardRef(({value:e,isHovered:t,className:n,delay:r},s)=>{const i=e.split(""),[a,l]=au(),c=()=>{l([[".gf-letter",{y:"-100%"},{duration:.5,delay:r?At(.014,{startDelay:r}):At(.014),ease:[.76,0,.24,1]}]])},u=()=>{l([[".gf-letter",{y:"0%"},{duration:.5,delay:r?At(.014,{startDelay:r}):At(.014),ease:[.76,0,.24,1]}]])};return v.useImperativeHandle(s,()=>({startAnimation:c,stopAnimation:u})),v.useEffect(()=>{t?c():u()},[t]),v.useEffect(()=>{const d=()=>{t||c()},f=()=>{t||u()},h=a.current;if(h)return h.addEventListener("mouseenter",d),h.addEventListener("mouseleave",f),()=>{h.removeEventListener("mouseenter",d),h.removeEventListener("mouseleave",f)}},[a,t]),o.jsx("div",{ref:a,children:o.jsx("span",{className:y1("gf-flex gf-h-5 gf-items-center gf-justify-start gf-overflow-hidden gf-pr-0.5",n),children:i.map((d,f)=>o.jsx("span",{"data-letter":d,className:"gf-letter gf-relative gf-h-5 gf-whitespace-pre gf-leading-5 after:gf-absolute after:gf-left-0 after:gf-top-full after:gf-h-5 after:gf-leading-5 after:gf-content-[attr(data-letter)]",children:d},`${d}-${f}`))})})});Re.displayName="RollingText";const nt=({title:e,links:t,hoveredIndex:n,onHover:r,className:s="gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:i="gf-flex gf-flex-col gf-gap-1",isRoutes:a=!1})=>o.jsxs("div",{className:s,children:[o.jsx(R1,{size:"h4",weight:"medium",className:"gf-flex gf-items-center gf-gap-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",children:o.jsx("span",{children:e})}),o.jsx("ul",{className:i,children:Object.values(t).map((l,c)=>l.link&&o.jsx("li",{className:a?"gf-w-fit":"",onMouseEnter:()=>{r==null||r(c)},onMouseLeave:()=>{r==null||r(null)},children:o.jsxs(R1,{as:"a",href:l.link,target:"_blank",size:"h4",weight:"regular",className:`gf-cursor-pointer gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit ${a?"gf-flex gf-w-fit gf-gap-0.5 gf-items-end gf-transition-colors gf-duration-500 gf-ease-in-out":""}`,children:[l.inputAsset&&o.jsx(Re,{delay:.2,value:l.inputAsset||"",isHovered:n===c}),a&&l.inputChain&&o.jsx(Re,{delay:.3,className:"gf-text-xs gf-italic gf-translate-y-[0.6px]",value:l.inputChain,isHovered:n===c}),o.jsx(Re,{delay:.35,value:l.title,isHovered:n===c}),a&&l.chain&&o.jsx(Re,{delay:.5,className:"gf-text-xs gf-italic gf-translate-y-[0.6px] -gf-translate-x-[2px]",value:l.chain,isHovered:n===c})]})},c))})]}),fu="data:image/svg+xml,%3csvg%20width='3956'%20height='906'%20viewBox='0%200%203956%20906'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='3956'%20height='906'%20fill='url(%23paint0_linear_579_2)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_579_2'%20x1='1465.5'%20y1='731.406'%20x2='2604.91'%20y2='227.235'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-opacity='0'/%3e%3cstop%20offset='0.115385'/%3e%3cstop%20offset='0.88'/%3e%3cstop%20offset='1'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",hu=({className:e,network:t="mainnet",maskUrl:n=fu,...r})=>{const[s,i]=v.useState(!1),[a,l]=v.useState(null),c=z5(),u=v.useRef(null);v.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]);const d=t&&t==="testnet"?"https://testnet.garden.finance":"https://app.garden.finance",f="https://garden.finance",h={Products:{swap:{title:"Swap",link:t&&t==="testnet"?`${d}/?input-chain=bitcoin_testnet&input-asset=BTC`:`${d}/?input-chain=bitcoin&input-asset=BTC`,isExternal:!0},stake:{title:"Stake",link:t&&t==="testnet"?void 0:`${d}/stake`,isExternal:!0},explorer:{title:"Explorer",link:t&&t==="testnet"?"https://testnet-explorer.garden.finance/":"https://explorer.garden.finance/",isExternal:!0}},Resources:{blog:{title:"Blog",link:`${f}/blog`,isExternal:!0},routes:{title:"Routes",link:`${f}/routes`,isExternal:!0},faq:{title:"FAQs",link:`${f}/faq`,isExternal:!0},brandKit:{title:"Brand kit",link:`${f}/brand-kit`,isExternal:!0},analytics:{title:"Analytics",link:"https://dune.com/garden_finance/gardenfinance",isExternal:!0},Governance:{title:"Governance",link:"https://docs.garden.finance/home/governance",isExternal:!0}},Developers:{docs:{title:"Docs",link:"https://docs.garden.finance/",isExternal:!0},api:{title:"API",link:"https://docs.garden.finance/developers/api/overview",isExternal:!0},sdk:{title:"SDK",link:"https://docs.garden.finance/developers/sdk/overview",isExternal:!0},security:{title:"Security",link:`${f}/security`,isExternal:!0}}},p={btcToSol:{title:"BTC to SOL",link:f+"/routes/bridge-btc-to-sol",chain:"Solana",isExternal:!0},btcToEth:{title:"BTC to ETH",link:f+"/routes/bridge-btc-to-eth",chain:"Ethereum",isExternal:!0},btcToUsdc:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-arbitrum",chain:"Arbitrum",isExternal:!0},btctoUsdcEth:{title:"BTC to USDC",link:f+"/routes/bridge-btc-to-usdc-ethereum",chain:"Ethereum",isExternal:!0},btcToWbtc:{title:"BTC to WBTC",link:f+"/routes/bridge-btc-to-wbtc-ethereum",chain:"Ethereum",isExternal:!0},btcTocbBtc:{title:"BTC to cbBTC",link:f+"/routes/bridge-btc-to-cbbtc-base",chain:"Base",isExternal:!0},btcToSui:{title:"BTC to SUI",link:f+"/routes/bridge-btc-to-sui",chain:"Sui",isExternal:!0},btcToBnb:{title:"BTC to BNB",link:f+"/routes/bridge-btc-to-bnb",chain:"BNB Chain",isExternal:!0},btcToMon:{title:"BTC to MON",link:f+"/routes/bridge-btc-to-mon",chain:"Monad",isExternal:!0},cbBtcBaseTocbBtcSolana:{title:" to cbBTC",link:f+"/routes/bridge-cbbtc-base-to-cbbtc-solana",inputAsset:"cbBTC",inputChain:"Base",chain:"Solana",isExternal:!0},usdcBnbToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-bnb-to-btc",inputAsset:"USDC",inputChain:"BNB Chain",isExternal:!0},btcToUsdtEthereum:{title:" to USDT",link:f+"/routes/bridge-btc-to-usdt-ethereum",inputAsset:"BTC",chain:"Ethereum",isExternal:!0},usdtEthereumToBtc:{title:" to BTC",link:f+"/routes/bridge-usdt-to-btc",inputAsset:"USDT",isExternal:!0},btcToUsdcSolana:{title:" to USDC",link:f+"/routes/bridge-btc-to-usdc-solana",inputAsset:"BTC",chain:"Solana",isExternal:!0},usdcEthereumToBtc:{title:" to BTC",link:f+"/routes/bridge-usdc-ethereum-to-btc",inputAsset:"USDC",inputChain:"Ethereum",isExternal:!0},solToBtc:{title:" to BTC",link:f+"/routes/bridge-sol-to-btc",inputAsset:"SOL",inputChain:"Solana",isExternal:!0},usdcEthereumToUsdcBase:{title:" to USDC",link:f+"/routes/bridge-usdc-ethereum-to-usdc-base",inputAsset:"USDC",inputChain:"Ethereum",chain:"Base",isExternal:!0}},y={discord:"https://discord.gg/7feudTFMXB",x:"https://x.com/gardenfi"},{Products:C,Resources:m,Developers:g}=h;return o.jsxs("footer",{className:y1("gf-z-10 gf-relative gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-center gf-justify-center gf-bg-white gf-px-6 gf-pb-10 gf-pt-20 md:gf-px-10",e,s?"gf-text-white":"gf-text-dark-grey"),...r,children:[o.jsxs("div",{className:"gf-z-30 gf-w-full gf-max-w-screen-2xl",children:[o.jsxs("div",{className:"gf-mx-auto gf-flex gf-w-full gf-flex-col gf-items-start gf-justify-between gf-gap-8",children:[o.jsxs("div",{className:"gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-6",children:[o.jsx(U4,{onMouseEnter:()=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{i(!0)},300)},onMouseLeave:()=>{u.current&&(clearTimeout(u.current),u.current=null),i(!1)},className:"gf-h-8 gf-w-8 gf-cursor-pointer gf-duration-500 gf-ease-in-out",onClick:w=>w.preventDefault()}),o.jsxs("div",{className:"gf-flex gf-items-center gf-gap-4",children:[o.jsx(F4,{onClick:()=>{c&&window.open(y.x,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"}),o.jsx(N4,{onClick:()=>{c&&window.open(y.discord,"_blank")},className:"gf-cursor-pointer gf-duration-500 gf-ease-in-out"})]})]}),o.jsxs("div",{className:"gf-flex gf-w-full gf-max-w-screen-2xl gf-flex-col-reverse gf-items-start gf-justify-between gf-gap-6 md:gf-flex-row",children:[o.jsxs("div",{className:"gf-flex gf-w-full gf-flex-col sm:gf-flex-row gf-gap-6 gf-items-start gf-justify-between sm:gf-gap-3 md:gf-w-fit",children:[o.jsx("div",{className:"gf-w-full md:gf-hidden",children:o.jsx(nt,{title:"Resources",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-2"})}),o.jsx("div",{className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",children:o.jsx(nt,{title:"Routes",links:p,hoveredIndex:a,onHover:l,className:"gf-flex gf-w-full gf-max-w-[400px] gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-grid gf-w-full gf-grid-cols-1 gf-gap-1 gf-gap-x-8 md:gf-grid-cols-2 md:gf-grid-rows-2",isRoutes:!0})})]}),o.jsxs("div",{className:"gf-flex gf-w-full gf-items-start gf-justify-between gf-gap-3 md:gf-w-fit md:gf-gap-16",children:[o.jsx(nt,{title:"Products",links:C,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-w-fit gf-flex-col gf-gap-1 gf-gap-x-6"}),o.jsx(nt,{title:"Developers",links:g,className:"gf-flex gf-w-full gf-flex-col gf-gap-3 md:gf-w-fit",listClassName:"gf-flex gf-flex-col gf-gap-1"}),o.jsx("div",{className:"gf-hidden md:gf-flex",children:o.jsx(nt,{title:"Resources",links:m,className:"gf-flex gf-w-full gf-flex-col gf-gap-3",listClassName:"gf-flex gf-flex-col gf-gap-1"})})]})]})]}),o.jsxs("div",{className:"gf-relative gf-mt-6 gf-flex gf-w-full gf-max-w-screen-2xl gf-items-center gf-justify-center",children:[o.jsx("div",{className:`gf-absolute gf-left-0 gf-top-0 gf-h-[1px] gf-w-full gf-transition-all gf-duration-500 gf-ease-in-out ${s?"gf-bg-white":"gf-bg-dark-grey"}`}),o.jsxs("div",{className:"gf-z-10 gf-my-6 gf-flex gf-w-full gf-items-center gf-justify-between gf-gap-4",children:[o.jsx("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-start gf-gap-6",children:o.jsxs(R1,{size:"h5",className:"gf-flex gf-items-center gf-gap-1 gf-transition-all gf-duration-500 gf-ease-in-out gf-text-inherit",weight:"regular",children:[o.jsx(B4,{}),o.jsx("span",{children:"Garden"}),o.jsx("span",{children:"2026"})]})}),o.jsxs("div",{className:"gf-flex gf-w-fit gf-items-center gf-justify-end gf-gap-6",children:[o.jsx(R1,{size:"h5",as:"a",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"https://garden.finance/privacy.pdf",target:"_blank",children:"Privacy Policy"}),o.jsx(R1,{as:"a",size:"h5",className:"gf-cursor-pointer gf-underline-offset-2 gf-transition-all gf-duration-500 gf-ease-in-out gf-hover:underline gf-text-inherit",weight:"regular",href:"https://garden.finance/terms.pdf",target:"_blank",children:"Terms of Service"})]})]})]})]}),o.jsx(cu,{isMobile:!1,isLogoHovered:s,maskUrl:n})]})};var kn={exports:{}};(()=>{var e={296:(s,i,a)=>{var l=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,p=typeof self=="object"&&self&&self.Object===Object&&self,y=h||p||Function("return this")(),C=Object.prototype.toString,m=Math.max,g=Math.min,w=function(){return y.Date.now()};function H(b){var k=typeof b;return!!b&&(k=="object"||k=="function")}function j(b){if(typeof b=="number")return b;if(function(M){return typeof M=="symbol"||function(P){return!!P&&typeof P=="object"}(M)&&C.call(M)=="[object Symbol]"}(b))return NaN;if(H(b)){var k=typeof b.valueOf=="function"?b.valueOf():b;b=H(k)?k+"":k}if(typeof b!="string")return b===0?b:+b;b=b.replace(l,"");var S=u.test(b);return S||d.test(b)?f(b.slice(2),S?2:8):c.test(b)?NaN:+b}s.exports=function(b,k,S){var M,P,B,N,A,R,K=0,t1=!1,Q=!1,U=!0;if(typeof b!="function")throw new TypeError("Expected a function");function z(i1){var f1=M,p1=P;return M=P=void 0,K=i1,N=b.apply(p1,f1)}function n1(i1){var f1=i1-R;return R===void 0||f1>=k||f1<0||Q&&i1-K>=B}function X(){var i1=w();if(n1(i1))return l1(i1);A=setTimeout(X,function(f1){var p1=k-(f1-R);return Q?g(p1,B-(f1-K)):p1}(i1))}function l1(i1){return A=void 0,U&&M?z(i1):(M=P=void 0,N)}function V1(){var i1=w(),f1=n1(i1);if(M=arguments,P=this,R=i1,f1){if(A===void 0)return function(p1){return K=p1,A=setTimeout(X,k),t1?z(p1):N}(R);if(Q)return A=setTimeout(X,k),z(R)}return A===void 0&&(A=setTimeout(X,k)),N}return k=j(k)||0,H(S)&&(t1=!!S.leading,B=(Q="maxWait"in S)?m(j(S.maxWait)||0,k):B,U="trailing"in S?!!S.trailing:U),V1.cancel=function(){A!==void 0&&clearTimeout(A),K=0,M=R=P=A=void 0},V1.flush=function(){return A===void 0?N:l1(w())},V1}},96:(s,i,a)=>{var l="Expected a function",c=NaN,u="[object Symbol]",d=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,y=parseInt,C=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,m=typeof self=="object"&&self&&self.Object===Object&&self,g=C||m||Function("return this")(),w=Object.prototype.toString,H=Math.max,j=Math.min,b=function(){return g.Date.now()};function k(M){var P=typeof M;return!!M&&(P=="object"||P=="function")}function S(M){if(typeof M=="number")return M;if(function(N){return typeof N=="symbol"||function(A){return!!A&&typeof A=="object"}(N)&&w.call(N)==u}(M))return c;if(k(M)){var P=typeof M.valueOf=="function"?M.valueOf():M;M=k(P)?P+"":P}if(typeof M!="string")return M===0?M:+M;M=M.replace(d,"");var B=h.test(M);return B||p.test(M)?y(M.slice(2),B?2:8):f.test(M)?c:+M}s.exports=function(M,P,B){var N=!0,A=!0;if(typeof M!="function")throw new TypeError(l);return k(B)&&(N="leading"in B?!!B.leading:N,A="trailing"in B?!!B.trailing:A),function(R,K,t1){var Q,U,z,n1,X,l1,V1=0,i1=!1,f1=!1,p1=!0;if(typeof R!="function")throw new TypeError(l);function M1(h1){var D1=Q,S1=U;return Q=U=void 0,V1=h1,n1=R.apply(S1,D1)}function E1(h1){var D1=h1-l1;return l1===void 0||D1>=K||D1<0||f1&&h1-V1>=z}function b1(){var h1=b();if(E1(h1))return k1(h1);X=setTimeout(b1,function(D1){var S1=K-(D1-l1);return f1?j(S1,z-(D1-V1)):S1}(h1))}function k1(h1){return X=void 0,p1&&Q?M1(h1):(Q=U=void 0,n1)}function _1(){var h1=b(),D1=E1(h1);if(Q=arguments,U=this,l1=h1,D1){if(X===void 0)return function(S1){return V1=S1,X=setTimeout(b1,K),i1?M1(S1):n1}(l1);if(f1)return X=setTimeout(b1,K),M1(l1)}return X===void 0&&(X=setTimeout(b1,K)),n1}return K=S(K)||0,k(t1)&&(i1=!!t1.leading,z=(f1="maxWait"in t1)?H(S(t1.maxWait)||0,K):z,p1="trailing"in t1?!!t1.trailing:p1),_1.cancel=function(){X!==void 0&&clearTimeout(X),V1=0,Q=l1=U=X=void 0},_1.flush=function(){return X===void 0?n1:k1(b())},_1}(M,P,{leading:N,maxWait:P,trailing:A})}},703:(s,i,a)=>{var l=a(414);function c(){}function u(){}u.resetWarningCache=c,s.exports=function(){function d(p,y,C,m,g,w){if(w!==l){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}}function f(){return d}d.isRequired=d;var h={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:c};return h.PropTypes=h,h}},697:(s,i,a)=>{s.exports=a(703)()},414:s=>{s.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(s){var i=t[s];if(i!==void 0)return i.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.n=s=>{var i=s&&s.__esModule?()=>s.default:()=>s;return n.d(i,{a:i}),i},n.d=(s,i)=>{for(var a in i)n.o(i,a)&&!n.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:i[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(s,i)=>Object.prototype.hasOwnProperty.call(s,i),n.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>D1,LazyLoadImage:()=>f2,trackWindowScroll:()=>n1});const s=v;var i=n.n(s),a=n(697);function l(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(E){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},c(E)}function u(E,x){var Z=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);x&&(D=D.filter(function(J){return Object.getOwnPropertyDescriptor(E,J).enumerable})),Z.push.apply(Z,D)}return Z}function d(E,x,Z){return(x=h(x))in E?Object.defineProperty(E,x,{value:Z,enumerable:!0,configurable:!0,writable:!0}):E[x]=Z,E}function f(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,h(D.key),D)}}function h(E){var x=function(Z,D){if(c(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var r1=J.call(Z,"string");if(c(r1)!=="object")return r1;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(E);return c(x)==="symbol"?x:String(x)}function p(E,x){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},p(E,x)}function y(E){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},y(E)}var C=function(E){E.forEach(function(x){x.isIntersecting&&x.target.onVisible()})},m={},g=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&p(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=y(D);if(J){var F=y(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(c(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){var T;if(function(_,I){if(!(_ instanceof I))throw new TypeError("Cannot call a class as a function")}(this,a1),(T=r1.call(this,V)).supportsObserver=!V.scrollPosition&&V.useIntersectionObserver&&l(),T.supportsObserver){var F=V.threshold;T.observer=function(_){return m[_]=m[_]||new IntersectionObserver(C,{rootMargin:_+"px"}),m[_]}(F)}return T}return x=a1,Z=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,T=this.placeholder.getBoundingClientRect(),F=this.placeholder.style,_=parseInt(F.getPropertyValue("margin-left"),10)||0,I=parseInt(F.getPropertyValue("margin-top"),10)||0;return{bottom:V.y+T.bottom+I,left:V.x+T.left+_,right:V.x+T.right+_,top:V.y+T.top+I}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var V=this.props,T=V.scrollPosition,F=V.threshold,_=this.getPlaceholderBoundingBox(T),I=T.y+window.innerHeight,s1=T.x,u1=T.x+window.innerWidth,O=T.y;return O-F<=_.bottom&&I+F>=_.top&&s1-F<=_.right&&u1+F>=_.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var V=this,T=this.props,F=T.className,_=T.height,I=T.placeholder,s1=T.style,u1=T.width;if(I&&typeof I.type!="function")return i().cloneElement(I,{ref:function($){return V.placeholder=$}});var O=function($){for(var Y=1;Y<arguments.length;Y++){var W=arguments[Y]!=null?arguments[Y]:{};Y%2?u(Object(W),!0).forEach(function(o1){d($,o1,W[o1])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(W)):u(Object(W)).forEach(function(o1){Object.defineProperty($,o1,Object.getOwnPropertyDescriptor(W,o1))})}return $}({display:"inline-block"},s1);return u1!==void 0&&(O.width=u1),_!==void 0&&(O.height=_),i().createElement("span",{className:F,ref:function($){return V.placeholder=$},style:O},I)}}],Z&&f(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);g.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},g.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const w=g;var H=n(296),j=n.n(H),b=n(96),k=n.n(b),S=function(E){var x=getComputedStyle(E,null);return x.getPropertyValue("overflow")+x.getPropertyValue("overflow-y")+x.getPropertyValue("overflow-x")};const M=function(E){if(!(E instanceof HTMLElement))return window;for(var x=E;x&&x instanceof HTMLElement;){if(/(scroll|auto)/.test(S(x)))return x;x=x.parentNode}return window};function P(E){return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},P(E)}var B=["delayMethod","delayTime"];function N(){return N=Object.assign?Object.assign.bind():function(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x];for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(E[D]=Z[D])}return E},N.apply(this,arguments)}function A(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(P(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(P(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),P(J)==="symbol"?J:String(J)),D)}var J}function R(E,x){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},R(E,x)}function K(E,x){if(x&&(P(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t1(E)}function t1(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function Q(E){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},Q(E)}var U=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},z=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const n1=function(E){var x=function(Z){(function(F,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(_&&_.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),Object.defineProperty(F,"prototype",{writable:!1}),_&&R(F,_)})(T,Z);var D,J,r1,a1,V=(r1=T,a1=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var F,_=Q(r1);if(a1){var I=Q(this).constructor;F=Reflect.construct(_,arguments,I)}else F=_.apply(this,arguments);return K(this,F)});function T(F){var _;if(function(s1,u1){if(!(s1 instanceof u1))throw new TypeError("Cannot call a class as a function")}(this,T),(_=V.call(this,F)).useIntersectionObserver=F.useIntersectionObserver&&l(),_.useIntersectionObserver)return K(_);var I=_.onChangeScroll.bind(t1(_));return F.delayMethod==="debounce"?_.delayedScroll=j()(I,F.delayTime):F.delayMethod==="throttle"&&(_.delayedScroll=k()(I,F.delayTime)),_.state={scrollPosition:{x:U(),y:z()}},_.baseComponentRef=i().createRef(),_}return D=T,(J=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||M(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=M(this.baseComponentRef.current),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:U(),y:z()}})}},{key:"render",value:function(){var F=this.props,_=(F.delayMethod,F.delayTime,function(s1,u1){if(s1==null)return{};var O,$,Y=function(o1,w1){if(o1==null)return{};var g1,O1,Z1={},W1=Object.keys(o1);for(O1=0;O1<W1.length;O1++)g1=W1[O1],w1.indexOf(g1)>=0||(Z1[g1]=o1[g1]);return Z1}(s1,u1);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(s1);for($=0;$<W.length;$++)O=W[$],u1.indexOf(O)>=0||Object.prototype.propertyIsEnumerable.call(s1,O)&&(Y[O]=s1[O])}return Y}(F,B)),I=this.useIntersectionObserver?null:this.state.scrollPosition;return i().createElement(E,N({forwardRef:this.baseComponentRef,scrollPosition:I},_))}}])&&A(D.prototype,J),Object.defineProperty(D,"prototype",{writable:!1}),T}(i().Component);return x.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},x.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},x};function X(E){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},X(E)}function l1(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(X(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(X(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),X(J)==="symbol"?J:String(J)),D)}var J}function V1(E,x){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},V1(E,x)}function i1(E){return i1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},i1(E)}var f1=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&V1(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=i1(D);if(J){var F=i1(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(X(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){return function(T,F){if(!(T instanceof F))throw new TypeError("Cannot call a class as a function")}(this,a1),r1.call(this,V)}return x=a1,(Z=[{key:"render",value:function(){return i().createElement(w,this.props)}}])&&l1(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);const p1=n1(f1);function M1(E){return M1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},M1(E)}function E1(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,(J=function(r1,a1){if(M1(r1)!=="object"||r1===null)return r1;var V=r1[Symbol.toPrimitive];if(V!==void 0){var T=V.call(r1,"string");if(M1(T)!=="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r1)}(D.key),M1(J)==="symbol"?J:String(J)),D)}var J}function b1(E,x){return b1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},b1(E,x)}function k1(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _1(E){return _1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},_1(E)}var h1=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&b1(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=_1(D);if(J){var F=_1(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(M1(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k1(_)}(this,V)});function a1(V){var T;(function(u1,O){if(!(u1 instanceof O))throw new TypeError("Cannot call a class as a function")})(this,a1),T=r1.call(this,V);var F=V.afterLoad,_=V.beforeLoad,I=V.scrollPosition,s1=V.visibleByDefault;return T.state={visible:s1},s1&&(_(),F()),T.onVisible=T.onVisible.bind(k1(T)),T.isScrollTracked=!!(I&&Number.isFinite(I.x)&&I.x>=0&&Number.isFinite(I.y)&&I.y>=0),T}return x=a1,(Z=[{key:"componentDidUpdate",value:function(V,T){T.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var V=this.props,T=V.className,F=V.delayMethod,_=V.delayTime,I=V.height,s1=V.placeholder,u1=V.scrollPosition,O=V.style,$=V.threshold,Y=V.useIntersectionObserver,W=V.width;return this.isScrollTracked||Y&&l()?i().createElement(w,{className:T,height:I,onVisible:this.onVisible,placeholder:s1,scrollPosition:u1,style:O,threshold:$,useIntersectionObserver:Y,width:W}):i().createElement(p1,{className:T,delayMethod:F,delayTime:_,height:I,onVisible:this.onVisible,placeholder:s1,style:O,threshold:$,width:W})}}])&&E1(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);h1.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},h1.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const D1=h1;function S1(E){return S1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},S1(E)}var q=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Ke(E,x){var Z=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);x&&(D=D.filter(function(J){return Object.getOwnPropertyDescriptor(E,J).enumerable})),Z.push.apply(Z,D)}return Z}function Ye(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x]!=null?arguments[x]:{};x%2?Ke(Object(Z),!0).forEach(function(D){Xe(E,D,Z[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(Z)):Ke(Object(Z)).forEach(function(D){Object.defineProperty(E,D,Object.getOwnPropertyDescriptor(Z,D))})}return E}function Xe(E,x,Z){return(x=J1(x))in E?Object.defineProperty(E,x,{value:Z,enumerable:!0,configurable:!0,writable:!0}):E[x]=Z,E}function Ve(){return Ve=Object.assign?Object.assign.bind():function(E){for(var x=1;x<arguments.length;x++){var Z=arguments[x];for(var D in Z)Object.prototype.hasOwnProperty.call(Z,D)&&(E[D]=Z[D])}return E},Ve.apply(this,arguments)}function d2(E,x){for(var Z=0;Z<x.length;Z++){var D=x[Z];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,J1(D.key),D)}}function J1(E){var x=function(Z,D){if(S1(Z)!=="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var r1=J.call(Z,"string");if(S1(r1)!=="object")return r1;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Z)}(E);return S1(x)==="symbol"?x:String(x)}function Me(E,x){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,D){return Z.__proto__=D,Z},Me(E,x)}function je(E){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},je(E)}var ee=function(E){(function(V,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(T&&T.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),T&&Me(V,T)})(a1,E);var x,Z,D,J,r1=(D=a1,J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var V,T=je(D);if(J){var F=je(this).constructor;V=Reflect.construct(T,arguments,F)}else V=T.apply(this,arguments);return function(_,I){if(I&&(S1(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(s1){if(s1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s1}(_)}(this,V)});function a1(V){var T;return function(F,_){if(!(F instanceof _))throw new TypeError("Cannot call a class as a function")}(this,a1),(T=r1.call(this,V)).state={loaded:!1},T}return x=a1,(Z=[{key:"onImageLoad",value:function(){var V=this;return this.state.loaded?null:function(T){V.props.onLoad(T),V.props.afterLoad(),V.setState({loaded:!0})}}},{key:"getImg",value:function(){var V=this.props,T=(V.afterLoad,V.beforeLoad,V.delayMethod,V.delayTime,V.effect,V.placeholder,V.placeholderSrc,V.scrollPosition,V.threshold,V.useIntersectionObserver,V.visibleByDefault,V.wrapperClassName,V.wrapperProps,function(F,_){if(F==null)return{};var I,s1,u1=function($,Y){if($==null)return{};var W,o1,w1={},g1=Object.keys($);for(o1=0;o1<g1.length;o1++)W=g1[o1],Y.indexOf(W)>=0||(w1[W]=$[W]);return w1}(F,_);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(F);for(s1=0;s1<O.length;s1++)I=O[s1],_.indexOf(I)>=0||Object.prototype.propertyIsEnumerable.call(F,I)&&(u1[I]=F[I])}return u1}(V,q));return i().createElement("img",Ve({},T,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var V=this.props,T=V.beforeLoad,F=V.className,_=V.delayMethod,I=V.delayTime,s1=V.height,u1=V.placeholder,O=V.scrollPosition,$=V.style,Y=V.threshold,W=V.useIntersectionObserver,o1=V.visibleByDefault,w1=V.width;return i().createElement(D1,{beforeLoad:T,className:F,delayMethod:_,delayTime:I,height:s1,placeholder:u1,scrollPosition:O,style:$,threshold:Y,useIntersectionObserver:W,visibleByDefault:o1,width:w1},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(V){var T=this.props,F=T.effect,_=T.height,I=T.placeholderSrc,s1=T.width,u1=T.wrapperClassName,O=T.wrapperProps,$=this.state.loaded,Y=$?" lazy-load-image-loaded":"",W=$||!I?{}:{backgroundImage:"url(".concat(I,")"),backgroundSize:"100% 100%"};return i().createElement("span",Ve({className:u1+" lazy-load-image-background "+F+Y,style:Ye(Ye({},W),{},{color:"transparent",display:"inline-block",height:_,width:s1})},O),V)}},{key:"render",value:function(){var V=this.props,T=V.effect,F=V.placeholderSrc,_=V.visibleByDefault,I=V.wrapperClassName,s1=V.wrapperProps,u1=this.getLazyLoadImage();return(T||F)&&!_||I||s1?this.getWrappedLazyLoadImage(u1):u1}}])&&d2(x.prototype,Z),Object.defineProperty(x,"prototype",{writable:!1}),a1}(i().Component);ee.propTypes={onLoad:a.PropTypes.func,afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},ee.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const f2=ee})(),kn.exports=r})();var Cu=kn.exports;const _2="data:image/svg+xml,%3csvg%20width='384'%20height='216'%20viewBox='0%200%20384%20216'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_11648_9381)'%3e%3crect%20width='384'%20height='216'%20fill='%2359BB99'/%3e%3ccircle%20cx='-7'%20cy='184'%20r='87'%20fill='url(%23paint0_radial_11648_9381)'/%3e%3ccircle%20cx='368'%20cy='33'%20r='87'%20fill='url(%23paint1_radial_11648_9381)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M136%2078C141.959%2078%20146.986%2081.9942%20148.548%2087.4516C154.006%2089.014%20158%2094.0405%20158%2099.9999C158%20105.959%20154.006%20110.986%20148.548%20112.548C146.986%20118.006%20141.959%20122%20136%20122C130.04%20122%20125.014%20118.006%20123.452%20112.548C117.994%20110.986%20114%20105.959%20114%2099.9999C114%2094.0406%20117.994%2089.0142%20123.452%2087.4517C125.014%2081.9943%20130.04%2078%20136%2078Z'%20fill='%23F7CFDB'/%3e%3cpath%20d='M139.954%2095.3616C139.923%2097.884%20135.962%2097.5421%20134.7%2097.5267L134.755%2093.063C136.016%2093.0784%20139.985%2092.7277%20139.954%2095.3616ZM140.906%20102.316C140.874%20105.09%20136.128%20104.716%20134.611%20104.698L134.688%2099.7811C136.2%2099.8017%20140.958%2099.4226%20140.922%20102.32L140.906%20102.316ZM144.148%2094.4178C143.928%2091.7661%20141.653%2090.8548%20138.771%2090.5621L138.816%2086.8898L136.578%2086.8608L136.533%2090.4382C135.948%2090.4302%20135.347%2090.4347%20134.75%2090.4401L134.775%2086.845L132.543%2086.8093L132.499%2090.4777C132.013%2090.4841%20131.538%2090.4848%20131.075%2090.4809L127.993%2090.4406L127.964%2092.8313C127.964%2092.8313%20129.621%2092.8205%20129.584%2092.8518C130.21%2092.7802%20130.777%2093.2229%20130.86%2093.8471L130.822%2098.0175C130.901%2098.0184%20130.979%2098.0242%20131.057%2098.035L130.822%2098.034L130.737%20103.891C130.7%20104.329%20130.317%20104.655%20129.88%20104.621C129.914%20104.63%20128.256%20104.6%20128.256%20104.6L127.778%20107.263L130.688%20107.298L132.289%20107.314L132.246%20111.024L134.48%20111.052L134.512%20107.397C135.106%20107.419%20135.702%20107.43%20136.296%20107.436L136.25%20111.096L138.484%20111.124L138.535%20107.416C142.302%20107.247%20144.938%20106.332%20145.307%20102.809C145.601%2099.9679%20144.29%2098.6862%20142.168%2098.1466C143.474%2097.504%20144.303%2096.3533%20144.132%2094.4136L144.148%2094.4178Z'%20fill='%23DB6A93'/%3e%3cpath%20d='M170%2098.8577C170%2094.4242%20172.859%2090.9544%20177.421%2090.9544C179.959%2090.9544%20181.919%2092.111%20182.915%2094.0708L183.14%2091.4042H185.839V106.472C185.839%20111.42%20182.787%20114.568%20177.968%20114.568C173.695%20114.568%20170.771%20112.158%20170.193%20108.175H173.213C173.598%20110.488%20175.333%20111.837%20177.968%20111.837C180.923%20111.837%20182.851%20109.91%20182.851%20106.922V103.773C181.823%20105.604%20179.767%20106.697%20177.293%20106.697C172.827%20106.697%20170%20103.259%20170%2098.8577ZM173.02%2098.7935C173.02%20101.749%20174.851%20104.062%20177.807%20104.062C180.859%20104.062%20182.722%20101.878%20182.722%2098.7935C182.722%2095.7735%20180.923%2093.5889%20177.839%2093.5889C174.819%2093.5889%20173.02%2095.902%20173.02%2098.7935Z'%20fill='white'/%3e%3cpath%20d='M194.791%20107.5C191.418%20107.5%20189.426%20105.604%20189.426%20102.745C189.426%2099.8537%20191.579%2098.0545%20195.273%2097.7654L200.221%2097.3799V96.9301C200.221%2094.2957%20198.647%2093.364%20196.526%2093.364C193.988%2093.364%20192.542%2094.4884%20192.542%2096.3839H189.908C189.908%2093.1069%20192.607%2090.9544%20196.655%2090.9544C200.542%2090.9544%20203.176%2093.0106%20203.176%2097.2514V107.114H200.606L200.285%20104.576C199.482%20106.376%20197.329%20107.5%20194.791%20107.5ZM195.659%20105.155C198.518%20105.155%20200.253%20103.291%20200.253%20100.336V99.5003L196.237%2099.8216C193.57%20100.079%20192.478%20101.107%20192.478%20102.649C192.478%20104.319%20193.699%20105.155%20195.659%20105.155Z'%20fill='white'/%3e%3cpath%20d='M216.354%2091.2757V94.0386H215.005C212.146%2094.0386%20210.379%2095.7735%20210.379%2098.7935V107.114H207.359V91.4363H210.186L210.379%2093.8137C211.021%2092.1753%20212.596%2091.0829%20214.748%2091.0829C215.294%2091.0829%20215.744%2091.1472%20216.354%2091.2757Z'%20fill='white'/%3e%3cpath%20d='M224.919%20107.5C220.357%20107.5%20217.594%20104.094%20217.594%2099.3075C217.594%2094.4884%20220.389%2090.9544%20225.048%2090.9544C227.457%2090.9544%20229.481%2092.0146%20230.541%2093.9423V83.4688H233.529V107.114H230.831L230.574%20104.255C229.545%20106.408%20227.425%20107.5%20224.919%20107.5ZM225.53%20104.769C228.614%20104.769%20230.509%20102.488%20230.509%2099.2111C230.509%2095.9984%20228.614%2093.6852%20225.53%2093.6852C222.445%2093.6852%20220.646%2095.9984%20220.646%2099.2111C220.646%20102.456%20222.445%20104.769%20225.53%20104.769Z'%20fill='white'/%3e%3cpath%20d='M244.665%20107.5C240.039%20107.5%20236.858%20104.159%20236.858%2099.2754C236.858%2094.3599%20239.974%2090.9544%20244.536%2090.9544C249.002%2090.9544%20251.926%2094.0386%20251.926%2098.6971V99.8216L239.782%2099.8537C240.006%20103.163%20241.741%20104.994%20244.729%20104.994C247.074%20104.994%20248.617%20104.03%20249.131%20102.231H251.958C251.187%20105.604%20248.552%20107.5%20244.665%20107.5ZM244.536%2093.4925C241.902%2093.4925%20240.231%2095.0667%20239.846%2097.8297H248.906C248.906%2095.2273%20247.203%2093.4925%20244.536%2093.4925Z'%20fill='white'/%3e%3cpath%20d='M258.319%20107.114H255.299V91.4042H258.03L258.351%2093.8137C259.347%2092.0146%20261.339%2090.9544%20263.555%2090.9544C267.7%2090.9544%20269.595%2093.4925%20269.595%2097.5084V107.114H266.575V98.1831C266.575%2095.0025%20265.098%2093.7174%20262.784%2093.7174C259.957%2093.7174%20258.319%2095.7414%20258.319%2098.7935V107.114Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(-7%20184)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_11648_9381'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(368%2033)%20rotate(90)%20scale(87)'%3e%3cstop%20offset='0.380208'%20stop-color='%239BC8FF'/%3e%3cstop%20offset='1'%20stop-color='%239BC8FF'%20stop-opacity='0.2'/%3e%3c/radialGradient%3e%3cclipPath%20id='clip0_11648_9381'%3e%3crect%20width='384'%20height='216'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pu=({thumbnail:e,category:t,date:n,title:r,className:s,thumbnailClassName:i})=>{const[a,l]=v.useState(!1),[c,u]=v.useState(e??_2);v.useEffect(()=>{u(e??_2)},[e]);const d=()=>{u(_2)};return o.jsx(vt,{level:"semi-dark",className:"gf-rounded-2xl h-full",children:o.jsxs("div",{className:y1(s,"gf-overflow-hidden gf-rounded-2xl"),children:[o.jsx("div",{className:y1(i,`${a?"":"gf-filter gf-blur-md"}`),children:o.jsx(Cu.LazyLoadImage,{alt:r,effect:"blur",src:c,onLoad:()=>l(!0),onError:d})}),o.jsxs("div",{className:"gf-px-4 gf-pt-4 gf-pb-5 gf-md:px-5 gf-md:pb-11",children:[o.jsxs("div",{className:"gf-flex gf-justify-between gf-mb-3",children:[o.jsx(R1,{size:"h5",weight:"medium",className:"gf-bg-rose gf-px-3 gf-py-1 gf-rounded-full",children:t}),o.jsx(R1,{size:"h5",weight:"medium",className:"gf-px-3 gf-py-1",children:n})]}),o.jsx(R1,{size:"h3",weight:"bold",children:r})]})]})})},gu=Fe(["gf-w-full gf-max-w-96 gf-p-4 gf-pb-5 md:gf-p-6 md:gf-pb-8 gf-rounded-2xl"],{variants:{variant:{locked:"gf-bg-white gf-bg-opacity-25",default:"gf-bg-white gf-bg-opacity-50"}},defaultVariants:{variant:"locked"}}),mu=({variant:e,title:t,description:n,chipContent:r,logo:s})=>o.jsxs("div",{className:y1(gu({variant:e})),children:[o.jsxs("div",{className:"gf-flex gf-justify-between gf-items-center gf-mb-4",children:[o.jsxs(G1,{className:"gf-cursor-pointer gf-px-2 gf-py-1",children:[o.jsx(G1.Logo,{children:s}),t,o.jsx(G1.CheckBox,{checked:!1})]}),e==="default"?o.jsx(R4,{className:"gf-cursor-pointer",height:"20px",width:"20px"}):o.jsx(Z4,{className:"gf-cursor-pointer",height:"20px",width:"20px"})]}),o.jsx("div",{className:"gf-mb-3 md:gf-mb-8",children:o.jsx(R1,{size:"h3",weight:"medium",children:n})}),o.jsxs("div",{className:"gf-flex gf-justify-end gf-space-x-2",children:[o.jsxs(G1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[o.jsx(R1,{size:"h4",weight:"medium",children:"Quest Access"}),o.jsx(G1.CheckBox,{checked:!1})]}),o.jsxs(G1,{className:"gf-pl-3 gf-pr-2 gf-py-1",children:[o.jsx(R1,{size:"h4",weight:"medium",children:r}),o.jsx(G1.CheckBox,{checked:!1})]})]})]});exports.APIIcon=Wr;exports.AddIcon=X8;exports.ArbitrumLogo=Hs;exports.ArrowDownwardIcon=z8;exports.ArrowEastIcon=Vr;exports.ArrowInwardIcon=ds;exports.ArrowLeftIcon=K8;exports.ArrowNorthEastIcon=q8;exports.ArrowNorthWestIcon=Q8;exports.ArrowRightIcon=Y8;exports.ArrowSouthEastIcon=J8;exports.ArrowSouthWestIcon=er;exports.ArrowSyncIcon=Fr;exports.ArrowUpwardIcon=G8;exports.BTCLogo=Ss;exports.BlogCard=pu;exports.BlogIcon=zr;exports.BooksIcon=Ls;exports.BottomSheet=$8;exports.BrandKitIcon=Gr;exports.BtcIcon=hs;exports.Button=M0;exports.Camelot=Ks;exports.CancelIcon=Nr;exports.CatalogLogo=Ts;exports.ChainflipIcon=Zr;exports.CheckBox=uo;exports.CheckCircleIcon=Mr;exports.CheckIcon=tr;exports.Checked=I4;exports.Chip=G1;exports.ClientOnly=mt;exports.ClockIcon=nr;exports.CloseIcon=rr;exports.CodeBlockIcon=$r;exports.Coinbase=Ps;exports.CompareArrowsIcon=Hr;exports.ConsoleIcon=Kr;exports.Container=W8;exports.CopyIcon=sr;exports.CopyrightsIcon=B4;exports.DLCBTC=Ws;exports.Debridge=Gs;exports.DeleteIcon=Or;exports.DigitalWellbeingIcon=xs;exports.DiscordIcon=N4;exports.DistanceIcon=ys;exports.Dodo=Qs;exports.DollarChipIcon=is;exports.DraftIcon=Yr;exports.EditIcon=or;exports.EncryptedIcon=rs;exports.EthereumLogo=Es;exports.ExchangeAltIcon=js;exports.ExchangeIcon=ir;exports.FaqIcon=fs;exports.FeesIcon=br;exports.FillDownIcon=ps;exports.FillUpIcon=Cs;exports.FingerprintIcon=jr;exports.FlowChartIcon=ms;exports.FolderIcon=us;exports.Footer=hu;exports.GMX=Ys;exports.GMXLogo=Os;exports.GardenDocs=oo;exports.GardenExplorer=ks;exports.GardenExplorerAlt=so;exports.GardenFullLogo=Ds;exports.GardenIcon=U4;exports.GardenIconOutline=no;exports.GardenLogo=Zs;exports.GardenLogoDark=lo;exports.GardenLogoLight=co;exports.GardenLogoMarkDark=io;exports.GardenLogoMarkLight=ao;exports.GardenLogoText=Rs;exports.GardenStrokeIcon=As;exports.GasStationIcon=Br;exports.GiftBoxIcon=as;exports.GradientScroll=go;exports.HorizontalSwap=os;exports.HubIcon=Ur;exports.InfinityIcon=Er;exports.InfoBadge=Co;exports.InfoIcon=ar;exports.KeyboardDownIcon=D4;exports.KeyboardLeftIcon=lr;exports.KeyboardRightIcon=cr;exports.KeyboardUpIcon=ur;exports.LanguageIcon=dr;exports.LinkIcon=fr;exports.LocationPointerIcon=Vs;exports.LockIcon=Z4;exports.LogoutIcon=hr;exports.MailIcon=Ms;exports.MenuIcon=Cr;exports.MinusIcon=Sr;exports.Modal=e4;exports.NFTIcon=ro;exports.Opacity=vt;exports.OpenInFullIcon=R4;exports.OpenInNewIcon=Lr;exports.OtterSecIcon=Xr;exports.PageInfoIcon=pr;exports.PancakeSwap=qs;exports.PasskeyIcon=Dr;exports.PaymentsIcon=bs;exports.PhantomIcon=Is;exports.PlusIcon=Tr;exports.PolygonLogo=_s;exports.QuestCard=mu;exports.Radiant=eo;exports.RadiantLogo=Bs;exports.RadioCheckedIcon=A4;exports.RadioUncheckedIcon=O4;exports.RaiseHandIcon=ls;exports.ReferralIcon=wr;exports.RelayLinkIcon=Rr;exports.RemoveIcon=gr;exports.RewardsIcon=gs;exports.RollingText=Re;exports.Rotate360Icon=ns;exports.RoutingIcon=ss;exports.RowInfoIcon=cs;exports.SDKIcon=qr;exports.ScaleY=uu;exports.SearchIcon=yr;exports.SearchIconThin=ts;exports.ShapesIcon=vs;exports.Share=Pr;exports.Shine=du;exports.Sidebar=u7;exports.Solv=Xs;exports.StakeIcon=Qr;exports.StarIcon=mr;exports.SwapHorizontalIcon=_r;exports.SwellBTC=$s;exports.ThorswapIcon=Ar;exports.TimerIcon=xr;exports.TokenInfo=po;exports.TokenNetworkLogos=$4;exports.TraderJoe=zs;exports.TrailOfBits=Ns;exports.TrustWallet=Fs;exports.Typography=R1;exports.Unchecked=_4;exports.UserGroupsIcon=ws;exports.Vertex=Js;exports.WalletConnect=Us;exports.WalletIcon=vr;exports.WalletIconRose=kr;exports.WarningIcon=Ir;exports.XIcon=F4;exports.XSolidIcon=Jr;exports.ZellicIcon=es;
|