urbi-exhibitions
Version:
9 lines • 129 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),m=require("react"),Bt=require("../cn-DVpdMN67.cjs"),qs=require("../geolocationContext-Dg153HmT.cjs"),Ys=require("../mapContext-BXdviyXK.cjs"),An=require("../index--ts_8_Sq.cjs"),Eo=require("@2gis/mapgl"),Ro=require("@2gis/mapgl-gltf"),Lo=require("../clientSW-CJdh8tVb.cjs");function Io(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Mt=Io(m),ko=500,Xs=m.memo(({children:t,className:e})=>{const[n,s]=m.useState(),i=m.useRef(void 0),r=m.useMemo(()=>{if(n)return t!==n?"opacity-0 animate-fadeOut":"opacity-1 animate-fadeIn"},[t,n]);return m.useEffect(()=>{if(clearTimeout(i.current),!n){s(t);return}t!==n&&(i.current=setTimeout(()=>{s(t)},ko))},[n,t]),C.jsx("div",{className:Bt.cn(r,e),children:n})}),Ne=m.createContext({});function _e(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const ee=m.createContext(null),Ue=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Oo extends Mt.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=s instanceof HTMLElement&&s.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Fo({children:t,isPresent:e,anchorX:n}){const s=m.useId(),i=m.useRef(null),r=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(Ue);return m.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:c,right:h}=r.current;if(e||!i.current||!a||!l)return;const f=n==="left"?`left: ${c}`:`right: ${h}`;i.current.dataset.motionPopId=s;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${a}px !important;
height: ${l}px !important;
${f}px !important;
top: ${u}px !important;
}
`),()=>{document.head.removeChild(d)}},[e]),C.jsx(Oo,{isPresent:e,childRef:i,sizeRef:r,children:Mt.cloneElement(t,{ref:i})})}const Bo=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a})=>{const l=_e(jo),u=m.useId(),c=m.useCallback(f=>{l.set(f,!0);for(const d of l.values())if(!d)return;s&&s()},[l,s]),h=m.useMemo(()=>({id:u,initial:e,isPresent:n,custom:i,onExitComplete:c,register:f=>(l.set(f,!1),()=>l.delete(f))}),r?[Math.random(),c]:[n,c]);return m.useMemo(()=>{l.forEach((f,d)=>l.set(d,!1))},[n]),Mt.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),o==="popLayout"&&(t=C.jsx(Fo,{isPresent:n,anchorX:a,children:t})),C.jsx(ee.Provider,{value:h,children:t})};function jo(){return new Map}function Zs(t=!0){const e=m.useContext(ee);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=m.useId();m.useEffect(()=>{if(t)return i(r)},[t]);const o=m.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const Kt=t=>t.key||"";function wn(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const Ke=typeof window<"u",Js=Ke?m.useLayoutEffect:m.useEffect,No=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,u]=Zs(o),c=m.useMemo(()=>wn(t),[t]),h=o&&!l?[]:c.map(Kt),f=m.useRef(!0),d=m.useRef(c),p=_e(()=>new Map),[g,x]=m.useState(c),[y,v]=m.useState(c);Js(()=>{f.current=!1,d.current=c;for(let P=0;P<y.length;P++){const b=Kt(y[P]);h.includes(b)?p.delete(b):p.get(b)!==!0&&p.set(b,!1)}},[y,h.length,h.join("-")]);const T=[];if(c!==g){let P=[...c];for(let b=0;b<y.length;b++){const V=y[b],A=Kt(V);h.includes(A)||(P.splice(b,0,V),T.push(V))}return r==="wait"&&T.length&&(P=T),v(wn(P)),x(c),null}process.env.NODE_ENV!=="production"&&r==="wait"&&y.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:w}=m.useContext(Ne);return C.jsx(C.Fragment,{children:y.map(P=>{const b=Kt(P),V=o&&!l?!1:c===y||h.includes(b),A=()=>{if(p.has(b))p.set(b,!0);else return;let M=!0;p.forEach(I=>{I||(M=!1)}),M&&(w==null||w(),v(d.current),o&&(u==null||u()),s&&s())};return C.jsx(Bo,{isPresent:V,initial:!f.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,onExitComplete:V?void 0:A,anchorX:a,children:P},b)})})},_=t=>t;let yt=_,J=_;process.env.NODE_ENV!=="production"&&(yt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},J=(t,e)=>{if(!t)throw new Error(e)});const _o={useManualTiming:!1},$t=["read","resolveKeyframes","update","preRender","render","postRender"],Cn={value:null};function Uo(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(h){o.has(h)&&(c.schedule(h),t()),l++,h(a)}const c={schedule:(h,f=!1,d=!1)=>{const g=d&&i?n:s;return f&&o.add(h),g.has(h)||g.add(h),h},cancel:h=>{s.delete(h),o.delete(h)},process:h=>{if(a=h,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),e&&Cn.value&&Cn.value.frameloop[e].push(l),l=0,n.clear(),i=!1,r&&(r=!1,c.process(h))}};return c}const Ko=40;function Qs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=$t.reduce((y,v)=>(y[v]=Uo(r,e?v:void 0),y),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:f}=o,d=()=>{const y=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(y-i.timestamp,Ko),1),i.timestamp=y,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(d))},p=()=>{n=!0,s=!0,i.isProcessing||t(d)};return{schedule:$t.reduce((y,v)=>{const T=o[v];return y[v]=(w,P=!1,b=!1)=>(n||p(),T.schedule(w,P,b)),y},{}),cancel:y=>{for(let v=0;v<$t.length;v++)o[$t[v]].cancel(y)},state:i,steps:o}}const{schedule:D,cancel:Q,state:k,steps:ce}=Qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0),ti=m.createContext({strict:!1}),Vn={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"]},mt={};for(const t in Vn)mt[t]={isEnabled:e=>Vn[t].some(n=>!!e[n])};function $o(t){for(const e in t)mt[e]={...mt[e],...t[e]}}const Go=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Xt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Go.has(t)}let ei=t=>!Xt(t);function Wo(t){t&&(ei=e=>e.startsWith("on")?!Xt(e):t(e))}try{Wo(require("@emotion/is-prop-valid").default)}catch{}function zo(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(ei(i)||n===!0&&Xt(i)||!e&&!Xt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Dn=new Set;function ne(t,e,n){t||Dn.has(e)||(console.warn(e),Dn.add(e))}function Ho(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&ne(!1,"motion() is deprecated. Use motion.create() instead."),t(...s));return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const se=m.createContext({});function ie(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Et(t){return typeof t=="string"||Array.isArray(t)}const $e=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ge=["initial",...$e];function oe(t){return ie(t.animate)||Ge.some(e=>Et(t[e]))}function ni(t){return!!(oe(t)||t.variants)}function qo(t,e){if(oe(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Et(n)?n:void 0,animate:Et(s)?s:void 0}}return t.inherit!==!1?e:{}}function Yo(t){const{initial:e,animate:n}=qo(t,m.useContext(se));return m.useMemo(()=>({initial:e,animate:n}),[Mn(e),Mn(n)])}function Mn(t){return Array.isArray(t)?t.join(" "):t}const Xo=Symbol.for("motionComponentSymbol");function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Zo(t,e,n){return m.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}const We=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jo="framerAppearId",si="data-"+We(Jo),{schedule:ze}=Qs(queueMicrotask,!1),ii=m.createContext({});function Qo(t,e,n,s,i){var r,o;const{visualElement:a}=m.useContext(se),l=m.useContext(ti),u=m.useContext(ee),c=m.useContext(Ue).reducedMotion,h=m.useRef(null);s=s||l.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=h.current,d=m.useContext(ii);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&tr(h.current,n,i,d);const p=m.useRef(!1);m.useInsertionEffect(()=>{f&&p.current&&f.update(n,u)});const g=n[si],x=m.useRef(!!g&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,g))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,g)));return Js(()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ze.render(f.render),x.current&&f.animationState&&f.animationState.animateChanges())}),m.useEffect(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),x.current=!1))}),f}function tr(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:oi(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&<(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}function oi(t){if(t)return t.options.allowProjection!==!1?t.projection:oi(t.parent)}function er({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){var r,o;t&&$o(t);function a(u,c){let h;const f={...m.useContext(Ue),...u,layoutId:nr(u)},{isStatic:d}=f,p=Yo(u),g=s(u,d);if(!d&&Ke){sr(f,t);const x=ir(f);h=x.MeasureLayout,p.visualElement=Qo(i,g,f,e,x.ProjectionNode)}return C.jsxs(se.Provider,{value:p,children:[h&&p.visualElement?C.jsx(h,{visualElement:p.visualElement,...f}):null,n(i,u,Zo(g,p.visualElement,c),g,d,p.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(r=i.displayName)!==null&&r!==void 0?r:i.name)!==null&&o!==void 0?o:""})`}`;const l=m.forwardRef(a);return l[Xo]=i,l}function nr({layoutId:t}){const e=m.useContext(Ne).id;return e&&t!==void 0?e+"-"+t:t}function sr(t,e){const n=m.useContext(ti).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?yt(!1,s):J(!1,s)}}function ir(t){const{drag:e,layout:n}=mt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const ri=t=>e=>typeof e=="string"&&e.startsWith(t),He=ri("--"),or=ri("var(--"),qe=t=>or(t)?rr.test(t.split("/*")[0].trim()):!1,rr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Rt={};function ar(t){for(const e in t)Rt[e]=t[e],He(e)&&(Rt[e].isCSSVariable=!0)}const vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],rt=new Set(vt);function ai(t,{layout:e,layoutId:n}){return rt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Rt[t]||t==="opacity")}const F=t=>!!(t&&t.getVelocity),li=(t,e)=>e&&typeof t=="number"?e.transform(t):t,X=(t,e,n)=>n>e?e:n<t?t:n,xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Lt={...xt,transform:t=>X(0,1,t)},Gt={...xt,default:1},jt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=jt("deg"),W=jt("%"),S=jt("px"),lr=jt("vh"),cr=jt("vw"),En={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(t*100)},ur={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,backgroundPositionX:S,backgroundPositionY:S},hr={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:Z,skewX:Z,skewY:Z,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Lt,originX:En,originY:En,originZ:S},Rn={...xt,transform:Math.round},Ye={...ur,...hr,zIndex:Rn,size:S,fillOpacity:Lt,strokeOpacity:Lt,numOctaves:Rn},fr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dr=vt.length;function mr(t,e,n){let s="",i=!0;for(let r=0;r<dr;r++){const o=vt[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=li(a,Ye[o]);if(!l){i=!1;const c=fr[o]||o;s+=`${c}(${u}) `}n&&(e[o]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Xe(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(rt.has(l)){o=!0;continue}else if(He(l)){i[l]=u;continue}else{const c=li(u,Ye[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(e.transform||(o||n?s.transform=mr(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}const Ze=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ci(t,e,n){for(const s in e)!F(e[s])&&!ai(s,n)&&(t[s]=e[s])}function pr({transformTemplate:t},e){return m.useMemo(()=>{const n=Ze();return Xe(n,e,t),Object.assign({},n.vars,n.style)},[e])}function gr(t,e){const n=t.style||{},s={};return ci(s,n,t),Object.assign(s,pr(t,e)),s}function yr(t,e){const n={},s=gr(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const vr=["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 Je(t){return typeof t!="string"||t.includes("-")?!1:!!(vr.indexOf(t)>-1||/[A-Z]/u.test(t))}const xr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Tr={offset:"strokeDashoffset",array:"strokeDasharray"};function Pr(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?xr:Tr;t[r.offset]=S.transform(-s);const o=S.transform(e),a=S.transform(n);t[r.array]=`${o} ${a}`}function Ln(t,e,n){return typeof t=="string"?t:S.transform(e+n*t)}function Sr(t,e,n){const s=Ln(e,t.x,t.width),i=Ln(n,t.y,t.height);return`${s} ${i}`}function Qe(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(Xe(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(i!==void 0||r!==void 0||d.transform)&&(d.transformOrigin=Sr(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&Pr(f,o,a,l,!1)}const ui=()=>({...Ze(),attrs:{}}),tn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function br(t,e,n,s){const i=m.useMemo(()=>{const r=ui();return Qe(r,e,tn(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};ci(r,t.style,t),i.style={...r,...i.style}}return i}function Ar(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Je(n)?br:yr)(s,r,o,n),u=zo(s,typeof n=="string",t),c=n!==m.Fragment?{...u,...l,ref:i}:{},{children:h}=s,f=m.useMemo(()=>F(h)?h.get():h,[h]);return m.createElement(n,{...c,children:f})}}function In(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function en(t,e,n,s){if(typeof e=="function"){const[i,r]=In(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=In(s);e=e(n!==void 0?n:t.custom,i,r)}return e}const Se=t=>Array.isArray(t),wr=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Cr=t=>Se(t)?t[t.length-1]||0:t;function Ht(t){const e=F(t)?t.get():t;return wr(e)?e.toValue():e}function Vr({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},s,i,r){const o={latestValues:Dr(s,i,r,t),renderState:e()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const hi=t=>(e,n)=>{const s=m.useContext(se),i=m.useContext(ee),r=()=>Vr(t,e,s,i);return n?r():_e(r)};function Dr(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Ht(r[f]);let{initial:o,animate:a}=t;const l=oe(t),u=ni(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!ie(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const p=en(t,f[d]);if(p){const{transitionEnd:g,transition:x,...y}=p;for(const v in y){let T=y[v];if(Array.isArray(T)){const w=c?T.length-1:0;T=T[w]}T!==null&&(i[v]=T)}for(const v in g)i[v]=g[v]}}}return i}function nn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(F(i[o])||e.style&&F(e.style[o])||ai(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}const Mr={useVisualState:hi({scrapeMotionValuesFromProps:nn,createRenderState:Ze})};function fi(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function di(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const mi=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 pi(t,e,n,s){di(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(mi.has(i)?i:We(i),e.attrs[i])}function gi(t,e,n){const s=nn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const r=vt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}const kn=["x","y","width","height","cx","cy","r"],Er={useVisualState:hi({scrapeMotionValuesFromProps:gi,createRenderState:ui,onUpdate:({props:t,prevProps:e,current:n,renderState:s,latestValues:i})=>{if(!n)return;let r=!!t.drag;if(!r){for(const a in i)if(rt.has(a)){r=!0;break}}if(!r)return;let o=!e;if(e)for(let a=0;a<kn.length;a++){const l=kn[a];t[l]!==e[l]&&(o=!0)}o&&D.read(()=>{fi(n,s),D.render(()=>{Qe(s,i,tn(n.tagName),t.transformTemplate),pi(n,s)})})}})};function Rr(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Je(s)?Er:Mr,preloadedFeatures:t,useRender:Ar(i),createVisualElement:e,Component:s};return er(o)}}function It(t,e,n){const s=t.getProps();return en(s,e,n!==void 0?n:s.custom,t)}function sn(t,e){return t?t[e]||t.default||t:void 0}const yi=new Set(["width","height","top","left","right","bottom",...vt]);let qt;function Lr(){qt=void 0}const z={now:()=>(qt===void 0&&z.set(k.isProcessing||_o.useManualTiming?k.timestamp:performance.now()),qt),set:t=>{qt=t,queueMicrotask(Lr)}};function on(t,e){t.indexOf(e)===-1&&t.push(e)}function rn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class an{constructor(){this.subscriptions=[]}add(e){return on(this.subscriptions,e),()=>rn(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vi(t,e){return e?t*(1e3/e):0}const On=30,Ir=t=>!isNaN(parseFloat(t));class kr{constructor(e,n={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=z.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ir(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&ne(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new an);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>On)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,On);return vi(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kt(t,e){return new kr(t,e)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,kt(n))}function Fr(t,e){const n=It(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Cr(r[o]);Or(t,o,a)}}function Br(t){return!!(F(t)&&t.add)}function be(t,e){const n=t.getValue("willChange");if(Br(n))return n.add(e)}function xi(t){return t.props[si]}function ln(t){let e;return()=>(e===void 0&&(e=t()),e)}const jr=ln(()=>window.ScrollTimeline!==void 0);class Nr{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(jr()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class _r extends Nr{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const H=t=>t*1e3,Y=t=>t/1e3;function cn(t){return typeof t=="function"}function Fn(t,e){t.timeline=e,t.onfinish=null}const un=t=>Array.isArray(t)&&typeof t[0]=="number",Ur={linearEasing:void 0};function Kr(t,e){const n=ln(t);return()=>{var s;return(s=Ur[e])!==null&&s!==void 0?s:n()}}const Zt=Kr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),pt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},Ti=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=t(pt(0,i-1,r))+", ";return`linear(${s.substring(0,s.length-2)})`};function Pi(t){return!!(typeof t=="function"&&Zt()||!t||typeof t=="string"&&(t in Ae||Zt())||un(t)||Array.isArray(t)&&t.every(Pi))}const St=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ae={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:St([0,.65,.55,1]),circOut:St([.55,0,1,.45]),backIn:St([.31,.01,.66,-.59]),backOut:St([.33,1.53,.69,.99])};function Si(t,e){if(t)return typeof t=="function"&&Zt()?Ti(t,e):un(t)?St(t):Array.isArray(t)?t.map(n=>Si(n,e)||Ae.easeOut):Ae[t]}const bi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$r=1e-7,Gr=12;function Wr(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=bi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>$r&&++a<Gr);return o}function Nt(t,e,n,s){if(t===e&&n===s)return _;const i=r=>Wr(r,0,1,t,n);return r=>r===0||r===1?r:bi(i(r),e,s)}const Ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,wi=t=>e=>1-t(1-e),Ci=Nt(.33,1.53,.69,.99),hn=wi(Ci),Vi=Ai(hn),Di=t=>(t*=2)<1?.5*hn(t):.5*(2-Math.pow(2,-10*(t-1))),fn=t=>1-Math.sin(Math.acos(t)),Mi=wi(fn),Ei=Ai(fn),Ri=t=>/^0[^.\s]+$/u.test(t);function zr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ri(t):!0}const At=t=>Math.round(t*1e5)/1e5,dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Hr(t){return t==null}const qr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mn=(t,e)=>n=>!!(typeof n=="string"&&qr.test(n)&&n.startsWith(t)||e&&!Hr(n)&&Object.prototype.hasOwnProperty.call(n,e)),Li=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(dn);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Yr=t=>X(0,255,t),ue={...xt,transform:t=>Math.round(Yr(t))},it={test:mn("rgb","red"),parse:Li("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ue.transform(t)+", "+ue.transform(e)+", "+ue.transform(n)+", "+At(Lt.transform(s))+")"};function Xr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const we={test:mn("#"),parse:Xr,transform:it.transform},ct={test:mn("hsl","hue"),parse:Li("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+W.transform(At(e))+", "+W.transform(At(n))+", "+At(Lt.transform(s))+")"},O={test:t=>it.test(t)||we.test(t)||ct.test(t),parse:t=>it.test(t)?it.parse(t):ct.test(t)?ct.parse(t):we.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?it.transform(t):ct.transform(t)},Zr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(dn))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Zr))===null||n===void 0?void 0:n.length)||0)>0}const Ii="number",ki="color",Qr="var",ta="var(",Bn="${}",ea=/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 Ot(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(ea,l=>(O.test(l)?(s.color.push(r),i.push(ki),n.push(O.parse(l))):l.startsWith(ta)?(s.var.push(r),i.push(Qr),n.push(l)):(s.number.push(r),i.push(Ii),n.push(parseFloat(l))),++r,Bn)).split(Bn);return{values:n,split:a,indexes:s,types:i}}function Oi(t){return Ot(t).values}function Fi(t){const{split:e,types:n}=Ot(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Ii?r+=At(i[o]):a===ki?r+=O.transform(i[o]):r+=i[o]}return r}}const na=t=>typeof t=="number"?0:t;function sa(t){const e=Oi(t);return Fi(t)(e.map(na))}const tt={test:Jr,parse:Oi,createTransformer:Fi,getAnimatableNone:sa},ia=new Set(["brightness","contrast","saturate","opacity"]);function oa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(dn)||[];if(!s)return t;const i=n.replace(s,"");let r=ia.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const ra=/\b([a-z-]*)\(.*?\)/gu,Ce={...tt,getAnimatableNone:t=>{const e=t.match(ra);return e?e.map(oa).join(" "):t}},aa={...Ye,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:Ce,WebkitFilter:Ce},pn=t=>aa[t];function Bi(t,e){let n=pn(t);return n!==Ce&&(n=tt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const la=new Set(["auto","none","0"]);function ca(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!la.has(r)&&Ot(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Bi(n,i)}const jn=t=>t===xt||t===S,Nn=(t,e)=>parseFloat(t.split(", ")[e]),_n=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return Nn(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?Nn(r[1],t):0}},ua=new Set(["x","y","z"]),ha=vt.filter(t=>!ua.has(t));function fa(t){const e=[];return ha.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:_n(4,13),y:_n(5,14)};gt.translateX=gt.x;gt.translateY=gt.y;const ot=new Set;let Ve=!1,De=!1;function ji(){if(De){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=fa(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}De=!1,Ve=!1,ot.forEach(t=>t.complete()),ot.clear()}function Ni(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function da(){Ni(),ji()}class gn{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ot.add(this),Ve||(Ve=!0,D.read(Ni),D.resolveKeyframes(ji))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ot.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ot.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pa(t){const e=ma.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const ga=4;function Ui(t,e,n=1){J(n<=ga,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=pa(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return _i(o)?parseFloat(o):o}return qe(i)?Ui(i,e,n+1):i}const Ki=t=>e=>e.test(t),ya={test:t=>t==="auto",parse:t=>t},$i=[xt,S,W,Z,cr,lr,ya],Un=t=>$i.find(Ki(t));class Gi extends gn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),qe(u))){const c=Ui(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!yi.has(s)||e.length!==2)return;const[i,r]=e,o=Un(i),a=Un(r);if(o!==a)if(jn(o)&&jn(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)zr(e[i])&&s.push(i);s.length&&ca(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=gt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(tt.test(t)||t==="0")&&!t.startsWith("url("));function va(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function xa(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Kn(i,e),a=Kn(r,e);return yt(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:va(t)||(n==="spring"||cn(n))&&s}const Ta=t=>t!==null;function re(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Ta),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const Pa=40;class Wi{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=z.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Pa?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&da(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=z.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!xa(e,s,i,r))if(o)this.options.duration=0;else{l&&l(re(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Me=2e4;function zi(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Me;)e+=n,s=t.next(e);return e>=Me?1/0:e}const R=(t,e,n)=>t+(e-t)*n;function he(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Sa({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=he(l,a,t+1/3),r=he(l,a,t),o=he(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const fe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ba=[we,it,ct],Aa=t=>ba.find(e=>e.test(t));function $n(t){const e=Aa(t);if(yt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===ct&&(n=Sa(n)),n}const Gn=(t,e)=>{const n=$n(t),s=$n(e);if(!n||!s)return Jt(t,e);const i={...n};return r=>(i.red=fe(n.red,s.red,r),i.green=fe(n.green,s.green,r),i.blue=fe(n.blue,s.blue,r),i.alpha=R(n.alpha,s.alpha,r),it.transform(i))},wa=(t,e)=>n=>e(t(n)),_t=(...t)=>t.reduce(wa),Ee=new Set(["none","hidden"]);function Ca(t,e){return Ee.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Va(t,e){return n=>R(t,e,n)}function yn(t){return typeof t=="number"?Va:typeof t=="string"?qe(t)?Jt:O.test(t)?Gn:Ea:Array.isArray(t)?Hi:typeof t=="object"?O.test(t)?Gn:Da:Jt}function Hi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>yn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Da(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=yn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ma(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const Ea=(t,e)=>{const n=tt.createTransformer(e),s=Ot(t),i=Ot(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ee.has(t)&&!i.values.length||Ee.has(e)&&!s.values.length?Ca(t,e):_t(Hi(Ma(s,i),i.values),n):(yt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Jt(t,e))};function qi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?R(t,e,n):yn(t)(t,e)}const Ra=5;function Yi(t,e,n){const s=Math.max(e-Ra,0);return vi(n-t(s),e-s)}const E={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},Wn=.001;function La({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:s=E.mass}){let i,r;yt(t<=H(E.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=X(E.minDamping,E.maxDamping,o),t=X(E.minDuration,E.maxDuration,Y(t)),o<1?(i=u=>{const c=u*o,h=c*t,f=c-n,d=Re(u,o),p=Math.exp(-h);return Wn-f/d*p},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-h),g=Re(Math.pow(u,2),o);return(-i(u)+Wn>0?-1:1)*((f-d)*p)/g}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-.001+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=ka(i,r,a);if(t=H(t),isNaN(l))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Ia=12;function ka(t,e,n){let s=n;for(let i=1;i<Ia;i++)s=s-t(s)/e(s);return s}function Re(t,e){return t*Math.sqrt(1-e*e)}const Oa=["duration","bounce"],Fa=["stiffness","damping","mass"];function zn(t,e){return e.some(n=>t[n]!==void 0)}function Ba(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!zn(t,Fa)&&zn(t,Oa))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:E.mass,stiffness:i,damping:r}}else{const n=La(t);e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function Xi(t=E.visualDuration,e=E.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Ba({...n,velocity:-Y(n.velocity||0)}),p=f||0,g=u/(2*Math.sqrt(l*c)),x=o-r,y=Y(Math.sqrt(l/c)),v=Math.abs(x)<5;s||(s=v?E.restSpeed.granular:E.restSpeed.default),i||(i=v?E.restDelta.granular:E.restDelta.default);let T;if(g<1){const P=Re(y,g);T=b=>{const V=Math.exp(-g*y*b);return o-V*((p+g*y*x)/P*Math.sin(P*b)+x*Math.cos(P*b))}}else if(g===1)T=P=>o-Math.exp(-y*P)*(x+(p+y*x)*P);else{const P=y*Math.sqrt(g*g-1);T=b=>{const V=Math.exp(-g*y*b),A=Math.min(P*b,300);return o-V*((p+g*y*x)*Math.sinh(A)+P*x*Math.cosh(A))/P}}const w={calculatedDuration:d&&h||null,next:P=>{const b=T(P);if(d)a.done=P>=h;else{let V=0;g<1&&(V=P===0?H(p):Yi(T,P,b));const A=Math.abs(V)<=s,M=Math.abs(o-b)<=i;a.done=A&&M}return a.value=a.done?o:b,a},toString:()=>{const P=Math.min(zi(w),Me),b=Ti(V=>w.next(P*V).value,P,30);return P+"ms "+b}};return w}function Hn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,p=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let g=n*e;const x=h+g,y=o===void 0?x:o(x);y!==x&&(g=y-h);const v=A=>-g*Math.exp(-A/s),T=A=>y+v(A),w=A=>{const M=v(A),I=T(A);f.done=Math.abs(M)<=u,f.value=f.done?y:I};let P,b;const V=A=>{d(f.value)&&(P=A,b=Xi({keyframes:[f.value,p(f.value)],velocity:Yi(T,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return V(0),{calculatedDuration:null,next:A=>{let M=!1;return!b&&P===void 0&&(M=!0,w(A),V(A)),P!==void 0&&A>=P?b.next(A-P):(!M&&w(A),f)}}}const ja=Nt(.42,0,1,1),Na=Nt(0,0,.58,1),Zi=Nt(.42,0,.58,1),_a=t=>Array.isArray(t)&&typeof t[0]!="number",qn={linear:_,easeIn:ja,easeInOut:Zi,easeOut:Na,circIn:fn,circInOut:Ei,circOut:Mi,backIn:hn,backInOut:Vi,backOut:Ci,anticipate:Di},Yn=t=>{if(un(t)){J(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return Nt(e,n,s,i)}else if(typeof t=="string")return J(qn[t]!==void 0,`Invalid easing type '${t}'`),qn[t];return t};function Ua(t,e,n){const s=[],i=n||qi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||_:e;a=_t(l,a)}s.push(a)}return s}function Ka(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(J(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ua(e,s,i),l=a.length,u=c=>{if(o&&c<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(c<t[h+1]);h++);const f=pt(t[h],t[h+1],c);return a[h](f)};return n?c=>u(X(t[0],t[r-1],c)):u}function $a(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=pt(0,e,s);t.push(R(n,1,i))}}function Ga(t){const e=[0];return $a(e,t.length-1),e}function Wa(t,e){return t.map(n=>n*e)}function za(t,e){return t.map(()=>e||Zi).splice(0,t.length-1)}function wt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=_a(s)?s.map(Yn):Yn(s),r={done:!1,value:e[0]},o=Wa(n&&n.length===e.length?n:Ga(e),t),a=Ka(o,e,{ease:Array.isArray(i)?i:za(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ha=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>Q(e),now:()=>k.isProcessing?k.timestamp:z.now()}},qa={decay:Hn,inertia:Hn,tween:wt,keyframes:wt,spring:Xi},Ya=t=>t/100;class vn extends Wi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||gn,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=cn(n)?n:qa[n]||wt;let l,u;process.env.NODE_ENV!=="production"&&a!==wt&&J(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==wt&&typeof e[0]!="number"&&(l=_t(Ya,qi(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=zi(c));const{calculatedDuration:h}=c,f=h+i,d=f*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:g,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>c;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,w=r;if(d){const A=Math.min(this.currentTime,c)/h;let M=Math.floor(A),I=A%1;!I&&A>=1&&(I=1),I===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(p==="reverse"?(I=1-I,g&&(I-=g/h)):p==="mirror"&&(w=o)),T=X(0,1,I)*h}const P=v?{done:!1,value:l[0]}:w.next(T);a&&(P.value=a(P.value));let{done:b}=P;!v&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return V&&i!==void 0&&(P.value=re(l,this.options,i)),x&&x(P.value),V&&this.finish(),P}get duration(){const{resolved:e}=this;return e?Y(e.calculatedDuration):0}get time(){return Y(this.currentTime)}set time(e){e=H(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Y(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Ha,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Xa=new Set(["opaci