",t=t.removeChild(t.firstChild)):typeof f.is=="string"?t=_.createElement(a,{is:f.is}):(t=_.createElement(a),a==="select"&&(_=t,f.multiple?_.multiple=!0:f.size&&(_.size=f.size))):t=_.createElementNS(t,a),t[oi]=s,t[Oa]=f,Ag(t,s,!1,!1),s.stateNode=t;e:{switch(_=Yn(a,f),a){case"dialog":gt("cancel",t),gt("close",t),h=f;break;case"iframe":case"object":case"embed":gt("load",t),h=f;break;case"video":case"audio":for(h=0;hLo&&(s.flags|=128,f=!0,Ha(y,!1),s.lanes=4194304)}else{if(!f)if(t=Su(_),t!==null){if(s.flags|=128,f=!0,a=t.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),Ha(y,!0),y.tail===null&&y.tailMode==="hidden"&&!_.alternate&&!_t)return bn(s),null}else 2*Ve()-y.renderingStartTime>Lo&&a!==1073741824&&(s.flags|=128,f=!0,Ha(y,!1),s.lanes=4194304);y.isBackwards?(_.sibling=s.child,s.child=_):(a=y.last,a!==null?a.sibling=_:s.child=_,y.last=_)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=Ve(),s.sibling=null,a=bt.current,pt(bt,f?a&1|2:a&1),s):(bn(s),null);case 22:case 23:return Id(),f=s.memoizedState!==null,t!==null&&t.memoizedState!==null!==f&&(s.flags|=8192),f&&(s.mode&1)!==0?(gr&1073741824)!==0&&(bn(s),s.subtreeFlags&6&&(s.flags|=8192)):bn(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function vk(t,s){switch(Yf(s),s.tag){case 1:return qn(s.type)&&du(),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return Ao(),yt(Kn),yt(kn),sd(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 5:return rd(s),null;case 13:if(yt(bt),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Po()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return yt(bt),null;case 4:return Ao(),null;case 10:return Zf(s.type._context),null;case 22:case 23:return Id(),null;case 24:return null;default:return null}}var Au=!1,Tn=!1,xk=typeof WeakSet=="function"?WeakSet:Set,pe=null;function jo(t,s){var a=t.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(f){Rt(t,s,f)}else a.current=null}function Td(t,s,a){try{a()}catch(f){Rt(t,s,f)}}var Og=!1;function _k(t,s){if(If=Zl,t=h0(),Mf(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var h=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var _=0,C=-1,R=-1,U=0,Q=0,Z=t,q=null;t:for(;;){for(var fe;Z!==a||h!==0&&Z.nodeType!==3||(C=_+h),Z!==y||f!==0&&Z.nodeType!==3||(R=_+f),Z.nodeType===3&&(_+=Z.nodeValue.length),(fe=Z.firstChild)!==null;)q=Z,Z=fe;for(;;){if(Z===t)break t;if(q===a&&++U===h&&(C=_),q===y&&++Q===f&&(R=_),(fe=Z.nextSibling)!==null)break;Z=q,q=Z.parentNode}Z=fe}a=C===-1||R===-1?null:{start:C,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(zf={focusedElem:t,selectionRange:a},Zl=!1,pe=s;pe!==null;)if(s=pe,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,pe=t;else for(;pe!==null;){s=pe;try{var ge=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ge!==null){var we=ge.memoizedProps,Lt=ge.memoizedState,V=s.stateNode,j=V.getSnapshotBeforeUpdate(s.elementType===s.type?we:qr(s.type,we),Lt);V.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var F=s.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(te){Rt(s,s.return,te)}if(t=s.sibling,t!==null){t.return=s.return,pe=t;break}pe=s.return}return ge=Og,Og=!1,ge}function Ya(t,s,a){var f=s.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var h=f=f.next;do{if((h.tag&t)===t){var y=h.destroy;h.destroy=void 0,y!==void 0&&Td(s,a,y)}h=h.next}while(h!==f)}}function Du(t,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&t)===t){var f=a.create;a.destroy=f()}a=a.next}while(a!==s)}}function Cd(t){var s=t.ref;if(s!==null){var a=t.stateNode;switch(t.tag){case 5:t=a;break;default:t=a}typeof s=="function"?s(t):s.current=t}}function Lg(t){var s=t.alternate;s!==null&&(t.alternate=null,Lg(s)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(s=t.stateNode,s!==null&&(delete s[oi],delete s[Oa],delete s[Wf],delete s[nk],delete s[rk])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ig(t){return t.tag===5||t.tag===3||t.tag===4}function zg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ig(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ed(t,s,a){var f=t.tag;if(f===5||f===6)t=t.stateNode,s?a.nodeType===8?a.parentNode.insertBefore(t,s):a.insertBefore(t,s):(a.nodeType===8?(s=a.parentNode,s.insertBefore(t,a)):(s=a,s.appendChild(t)),a=a._reactRootContainer,a!=null||s.onclick!==null||(s.onclick=cu));else if(f!==4&&(t=t.child,t!==null))for(Ed(t,s,a),t=t.sibling;t!==null;)Ed(t,s,a),t=t.sibling}function Pd(t,s,a){var f=t.tag;if(f===5||f===6)t=t.stateNode,s?a.insertBefore(t,s):a.appendChild(t);else if(f!==4&&(t=t.child,t!==null))for(Pd(t,s,a),t=t.sibling;t!==null;)Pd(t,s,a),t=t.sibling}var pn=null,Qr=!1;function Ji(t,s,a){for(a=a.child;a!==null;)Vg(t,s,a),a=a.sibling}function Vg(t,s,a){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(ii,a)}catch{}switch(a.tag){case 5:Tn||jo(a,s);case 6:var f=pn,h=Qr;pn=null,Ji(t,s,a),pn=f,Qr=h,pn!==null&&(Qr?(t=pn,a=a.stateNode,t.nodeType===8?t.parentNode.removeChild(a):t.removeChild(a)):pn.removeChild(a.stateNode));break;case 18:pn!==null&&(Qr?(t=pn,a=a.stateNode,t.nodeType===8?Bf(t.parentNode,a):t.nodeType===1&&Bf(t,a),ba(t)):Bf(pn,a.stateNode));break;case 4:f=pn,h=Qr,pn=a.stateNode.containerInfo,Qr=!0,Ji(t,s,a),pn=f,Qr=h;break;case 0:case 11:case 14:case 15:if(!Tn&&(f=a.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){h=f=f.next;do{var y=h,_=y.destroy;y=y.tag,_!==void 0&&((y&2)!==0||(y&4)!==0)&&Td(a,s,_),h=h.next}while(h!==f)}Ji(t,s,a);break;case 1:if(!Tn&&(jo(a,s),f=a.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(C){Rt(a,s,C)}Ji(t,s,a);break;case 21:Ji(t,s,a);break;case 22:a.mode&1?(Tn=(f=Tn)||a.memoizedState!==null,Ji(t,s,a),Tn=f):Ji(t,s,a);break;default:Ji(t,s,a)}}function Fg(t){var s=t.updateQueue;if(s!==null){t.updateQueue=null;var a=t.stateNode;a===null&&(a=t.stateNode=new xk),s.forEach(function(f){var h=Mk.bind(null,t,f);a.has(f)||(a.add(f),f.then(h,h))})}}function Zr(t,s){var a=s.deletions;if(a!==null)for(var f=0;fh&&(h=_),f&=~y}if(f=h,f=Ve()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*kk(f/1960))-f,10t?16:t,ts===null)var f=!1;else{if(t=ts,ts=null,zu=0,(Ge&6)!==0)throw Error(n(331));var h=Ge;for(Ge|=4,pe=t.current;pe!==null;){var y=pe,_=y.child;if((pe.flags&16)!==0){var C=y.deletions;if(C!==null){for(var R=0;RVe()-Rd?zs(t,0):Nd|=a),Jn(t,s)}function Jg(t,s){s===0&&((t.mode&1)===0?s=1:(s=Xl,Xl<<=1,(Xl&130023424)===0&&(Xl=4194304)));var a=On();t=Pi(t,s),t!==null&&(xa(t,s,a),Jn(t,a))}function Pk(t){var s=t.memoizedState,a=0;s!==null&&(a=s.retryLane),Jg(t,a)}function Mk(t,s){var a=0;switch(t.tag){case 13:var f=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:f=t.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(s),Jg(t,a)}var ey;ey=function(t,s,a){if(t!==null)if(t.memoizedProps!==s.pendingProps||Kn.current)Qn=!0;else{if((t.lanes&a)===0&&(s.flags&128)===0)return Qn=!1,gk(t,s,a);Qn=(t.flags&131072)!==0}else Qn=!1,_t&&(s.flags&1048576)!==0&&D0(s,gu,s.index);switch(s.lanes=0,s.tag){case 2:var f=s.type;Ru(t,s),t=s.pendingProps;var h=To(s,kn.current);Ro(s,a),h=ld(null,s,f,t,h,a);var y=ud();return s.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,qn(f)?(y=!0,hu(s)):y=!1,s.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,td(s),h.updater=Mu,s.stateNode=h,h._reactInternals=s,md(s,f,t,a),s=xd(null,s,f,!0,y,a)):(s.tag=0,_t&&y&&Hf(s),jn(null,s,h,a),s=s.child),s;case 16:f=s.elementType;e:{switch(Ru(t,s),t=s.pendingProps,h=f._init,f=h(f._payload),s.type=f,h=s.tag=Rk(f),t=qr(f,t),h){case 0:s=vd(null,s,f,t,a);break e;case 1:s=Cg(null,s,f,t,a);break e;case 11:s=wg(null,s,f,t,a);break e;case 14:s=kg(null,s,f,qr(f.type,t),a);break e}throw Error(n(306,f,""))}return s;case 0:return f=s.type,h=s.pendingProps,h=s.elementType===f?h:qr(f,h),vd(t,s,f,h,a);case 1:return f=s.type,h=s.pendingProps,h=s.elementType===f?h:qr(f,h),Cg(t,s,f,h,a);case 3:e:{if(Eg(s),t===null)throw Error(n(387));f=s.pendingProps,y=s.memoizedState,h=y.element,W0(t,s),ku(s,f,null,a);var _=s.memoizedState;if(f=_.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){h=Do(Error(n(423)),s),s=Pg(t,s,f,a,h);break e}else if(f!==h){h=Do(Error(n(424)),s),s=Pg(t,s,f,a,h);break e}else for(mr=Gi(s.stateNode.containerInfo.firstChild),pr=s,_t=!0,Kr=null,a=F0(s,null,f,a),s.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Po(),f===h){s=Ni(t,s,a);break e}jn(t,s,f,a)}s=s.child}return s;case 5:return H0(s),t===null&&Xf(s),f=s.type,h=s.pendingProps,y=t!==null?t.memoizedProps:null,_=h.children,Vf(f,h)?_=null:y!==null&&Vf(f,y)&&(s.flags|=32),Tg(t,s),jn(t,s,_,a),s.child;case 6:return t===null&&Xf(s),null;case 13:return Mg(t,s,a);case 4:return nd(s,s.stateNode.containerInfo),f=s.pendingProps,t===null?s.child=Mo(s,null,f,a):jn(t,s,f,a),s.child;case 11:return f=s.type,h=s.pendingProps,h=s.elementType===f?h:qr(f,h),wg(t,s,f,h,a);case 7:return jn(t,s,s.pendingProps,a),s.child;case 8:return jn(t,s,s.pendingProps.children,a),s.child;case 12:return jn(t,s,s.pendingProps.children,a),s.child;case 10:e:{if(f=s.type._context,h=s.pendingProps,y=s.memoizedProps,_=h.value,pt(xu,f._currentValue),f._currentValue=_,y!==null)if(Xr(y.value,_)){if(y.children===h.children&&!Kn.current){s=Ni(t,s,a);break e}}else for(y=s.child,y!==null&&(y.return=s);y!==null;){var C=y.dependencies;if(C!==null){_=y.child;for(var R=C.firstContext;R!==null;){if(R.context===f){if(y.tag===1){R=Mi(-1,a&-a),R.tag=2;var U=y.updateQueue;if(U!==null){U=U.shared;var Q=U.pending;Q===null?R.next=R:(R.next=Q.next,Q.next=R),U.pending=R}}y.lanes|=a,R=y.alternate,R!==null&&(R.lanes|=a),Jf(y.return,a,s),C.lanes|=a;break}R=R.next}}else if(y.tag===10)_=y.type===s.type?null:y.child;else if(y.tag===18){if(_=y.return,_===null)throw Error(n(341));_.lanes|=a,C=_.alternate,C!==null&&(C.lanes|=a),Jf(_,a,s),_=y.sibling}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===s){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}jn(t,s,h.children,a),s=s.child}return s;case 9:return h=s.type,f=s.pendingProps.children,Ro(s,a),h=jr(h),f=f(h),s.flags|=1,jn(t,s,f,a),s.child;case 14:return f=s.type,h=qr(f,s.pendingProps),h=qr(f.type,h),kg(t,s,f,h,a);case 15:return Sg(t,s,s.type,s.pendingProps,a);case 17:return f=s.type,h=s.pendingProps,h=s.elementType===f?h:qr(f,h),Ru(t,s),s.tag=1,qn(f)?(t=!0,hu(s)):t=!1,Ro(s,a),pg(s,f,h),md(s,f,h,a),xd(null,s,f,!0,t,a);case 19:return Rg(t,s,a);case 22:return bg(t,s,a)}throw Error(n(156,s.tag))};function ty(t,s){return Bt(t,s)}function Nk(t,s,a,f){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ir(t,s,a,f){return new Nk(t,s,a,f)}function Vd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Rk(t){if(typeof t=="function")return Vd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===G)return 11;if(t===le)return 14}return 2}function is(t,s){var a=t.alternate;return a===null?(a=Ir(t.tag,s,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=s,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&14680064,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,s=t.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a}function Wu(t,s,a,f,h,y){var _=2;if(f=t,typeof t=="function")Vd(t)&&(_=1);else if(typeof t=="string")_=5;else e:switch(t){case I:return Fs(a.children,h,y,s);case O:_=8,h|=8;break;case B:return t=Ir(12,a,s,h|2),t.elementType=B,t.lanes=y,t;case de:return t=Ir(13,a,s,h),t.elementType=de,t.lanes=y,t;case ae:return t=Ir(19,a,s,h),t.elementType=ae,t.lanes=y,t;case J:return Uu(a,h,y,s);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:_=10;break e;case re:_=9;break e;case G:_=11;break e;case le:_=14;break e;case K:_=16,f=null;break e}throw Error(n(130,t==null?t:typeof t,""))}return s=Ir(_,a,s,h),s.elementType=t,s.type=f,s.lanes=y,s}function Fs(t,s,a,f){return t=Ir(7,t,f,s),t.lanes=a,t}function Uu(t,s,a,f){return t=Ir(22,t,f,s),t.elementType=J,t.lanes=a,t.stateNode={isHidden:!1},t}function Fd(t,s,a){return t=Ir(6,t,null,s),t.lanes=a,t}function Bd(t,s,a){return s=Ir(4,t.children!==null?t.children:[],t.key,s),s.lanes=a,s.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},s}function Ak(t,s,a,f,h){this.tag=s,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pf(0),this.expirationTimes=pf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pf(0),this.identifierPrefix=f,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function Wd(t,s,a,f,h,y,_,C,R){return t=new Ak(t,s,a,C,R),s===1?(s=1,y===!0&&(s|=8)):s=0,y=Ir(3,null,null,s),t.current=y,y.stateNode=t,y.memoizedState={element:f,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},td(y),t}function Dk(t,s,a){var f=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),Xd.exports=$k(),Xd.exports}var my;function Hk(){if(my)return qu;my=1;var r=M1();return qu.createRoot=r.createRoot,qu.hydrateRoot=r.hydrateRoot,qu}var Yk=Hk(),Y=Pp();const se=P1(Y);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gk=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Xk=r=>r.replace(/^([A-Z])|[s-_]+(w)/g,(e,n,i)=>i?i.toUpperCase():n.toLowerCase()),gy=r=>{const e=Xk(r);return e.charAt(0).toUpperCase()+e.slice(1)},N1=(...r)=>r.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Kk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qk=Y.forwardRef(({color:r="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...c},d)=>Y.createElement("svg",{ref:d,...Kk,width:e,height:e,stroke:r,strokeWidth:i?Number(n)*24/Number(e):n,className:N1("lucide",o),...c},[...u.map(([p,m])=>Y.createElement(p,m)),...Array.isArray(l)?l:[l]]));/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rt=(r,e)=>{const n=Y.forwardRef(({className:i,...o},l)=>Y.createElement(qk,{ref:l,iconNode:e,className:N1(`lucide-${Gk(gy(r))}`,`lucide-${r}`,i),...o}));return n.displayName=gy(r),n};/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qk=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Zk=rt("arrow-left",Qk);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jk=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],eS=rt("at-sign",Jk);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tS=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],nS=rt("award",tS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rS=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],iS=rt("calendar",rS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oS=rt("check",sS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],lS=rt("chevron-down",aS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],cS=rt("clock",uS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fS=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],dS=rt("cloud",fS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hS=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],pS=rt("earth",hS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mS=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],gS=rt("flame",mS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yS=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],vS=rt("heart-handshake",yS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xS=[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],_S=rt("hotel",xS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wS=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]],Mp=rt("mail",wS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kS=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Np=rt("map-pin",kS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SS=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],bS=rt("menu",SS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TS=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],CS=rt("moon",TS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ES=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]],PS=rt("phone-call",ES);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const MS=[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]],Rp=rt("phone",MS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NS=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],Ap=rt("plane",NS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RS=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],AS=rt("send",RS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],jS=rt("shield",DS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OS=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],R1=rt("star",OS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],IS=rt("sun",LS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zS=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],VS=rt("tag",zS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const FS=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],Dp=rt("tree-palm",FS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const BS=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]],WS=rt("user-check",BS);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const US=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],A1=rt("user",US);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $S=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],HS=rt("wallet",$S);/** * @license lucide-react v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const YS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],jp=rt("x",YS);function yy(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function GS(...r){return e=>{let n=!1;const i=r.map(o=>{const l=yy(o,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o{const{children:n,...i}=r,o=Y.Children.toArray(n),l=o.find(KS);if(l){const u=l.props.children,c=o.map(d=>d===l?Y.Children.count(u)>1?Y.Children.only(null):Y.isValidElement(u)?u.props.children:null:d);return S.jsx(Mh,{...i,ref:e,children:Y.isValidElement(u)?Y.cloneElement(u,void 0,c):null})}return S.jsx(Mh,{...i,ref:e,children:n})});D1.displayName="Slot";var Mh=Y.forwardRef((r,e)=>{const{children:n,...i}=r;if(Y.isValidElement(n)){const o=QS(n),l=qS(i,n.props);return n.type!==Y.Fragment&&(l.ref=e?GS(e,o):o),Y.cloneElement(n,l)}return Y.Children.count(n)>1?Y.Children.only(null):null});Mh.displayName="SlotClone";var XS=({children:r})=>S.jsx(S.Fragment,{children:r});function KS(r){return Y.isValidElement(r)&&r.type===XS}function qS(r,e){const n={...e};for(const i in e){const o=r[i],l=e[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...c)=>{l(...c),o(...c)}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...r,...n}}function QS(r){var i,o;let e=(i=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:i.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?r.ref:(e=(o=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:o.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?r.props.ref:r.props.ref||r.ref)}function j1(r){var e,n,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var o=r.length;for(e=0;etypeof r=="boolean"?`${r}`:r===0?"0":r,xy=O1,ZS=(r,e)=>n=>{var i;if((e==null?void 0:e.variants)==null)return xy(r,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=e,u=Object.keys(o).map(p=>{const m=n==null?void 0:n[p],g=l==null?void 0:l[p];if(m===null)return null;const v=vy(m)||vy(g);return o[p][v]}),c=n&&Object.entries(n).reduce((p,m)=>{let[g,v]=m;return v===void 0||(p[g]=v),p},{}),d=e==null||(i=e.compoundVariants)===null||i===void 0?void 0:i.reduce((p,m)=>{let{class:g,className:v,...x}=m;return Object.entries(x).every(k=>{let[w,b]=k;return Array.isArray(b)?b.includes({...l,...c}[w]):{...l,...c}[w]===b})?[...p,g,v]:p},[]);return xy(r,u,d,n==null?void 0:n.class,n==null?void 0:n.className)},Op="-",JS=r=>{const e=tb(r),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=r;return{getClassGroupId:u=>{const c=u.split(Op);return c[0]===""&&c.length!==1&&c.shift(),L1(c,e)||eb(u)},getConflictingClassGroupIds:(u,c)=>{const d=n[u]||[];return c&&i[u]?[...d,...i[u]]:d}}},L1=(r,e)=>{var u;if(r.length===0)return e.classGroupId;const n=r[0],i=e.nextPart.get(n),o=i?L1(r.slice(1),i):void 0;if(o)return o;if(e.validators.length===0)return;const l=r.join(Op);return(u=e.validators.find(({validator:c})=>c(l)))==null?void 0:u.classGroupId},_y=/^[(.+)]$/,eb=r=>{if(_y.test(r)){const e=_y.exec(r)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},tb=r=>{const{theme:e,classGroups:n}=r,i={nextPart:new Map,validators:[]};for(const o in n)Nh(n[o],i,o,e);return i},Nh=(r,e,n,i)=>{r.forEach(o=>{if(typeof o=="string"){const l=o===""?e:wy(e,o);l.classGroupId=n;return}if(typeof o=="function"){if(nb(o)){Nh(o(i),e,n,i);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{Nh(u,wy(e,l),n,i)})})},wy=(r,e)=>{let n=r;return e.split(Op).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},nb=r=>r.isThemeGetter,rb=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const o=(l,u)=>{n.set(l,u),e++,e>r&&(e=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},Rh="!",Ah=":",ib=Ah.length,sb=r=>{const{prefix:e,experimentalParseClassName:n}=r;let i=o=>{const l=[];let u=0,c=0,d=0,p;for(let k=0;kd?p-d:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:x}};if(e){const o=e+Ah,l=i;i=u=>u.startsWith(o)?l(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const o=i;i=l=>n({className:l,parseClassName:o})}return i},ob=r=>r.endsWith(Rh)?r.substring(0,r.length-1):r.startsWith(Rh)?r.substring(1):r,ab=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let l=[];return i.forEach(u=>{u[0]==="["||e[u]?(o.push(...l.sort(),u),l=[]):l.push(u)}),o.push(...l.sort()),o}},lb=r=>({cache:rb(r.cacheSize),parseClassName:sb(r),sortModifiers:ab(r),...JS(r)}),ub=/s+/,cb=(r,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:l}=e,u=[],c=r.trim().split(ub);let d="";for(let p=c.length-1;p>=0;p-=1){const m=c[p],{isExternal:g,modifiers:v,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:w}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let b=!!w,P=i(b?k.substring(0,w):k);if(!P){if(!b){d=m+(d.length>0?" "+d:d);continue}if(P=i(k),!P){d=m+(d.length>0?" "+d:d);continue}b=!1}const N=l(v).join(":"),A=x?N+Rh:N,M=A+P;if(u.includes(M))continue;u.push(M);const D=o(P,b);for(let H=0;H0?" "+d:d)}return d};function fb(){let r=0,e,n,i="";for(;r{if(typeof r=="string")return r;let e,n="";for(let i=0;ig(m),r());return n=lb(p),i=n.cache.get,o=n.cache.set,l=c,c(d)}function c(d){const p=i(d);if(p)return p;const m=cb(d,n);return o(d,m),m}return function(){return l(fb.apply(null,arguments))}}const en=r=>{const e=n=>n[r]||[];return e.isThemeGetter=!0,e},z1=/^[(?:(w[w-]*):)?(.+)]$/i,V1=/^((?:(w[w-]*):)?(.+))$/i,hb=/^d+/d+$/,pb=/^(d+(.d+)?)?(xs|sm|md|lg|xl)$/,mb=/d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|b(calc|min|max|clamp)(.+)|^0$/,gb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))(.+)$/,yb=/^(inset_)?-?((d+)?.?(d+)[a-z]+|0)_-?((d+)?.?(d+)[a-z]+|0)/,vb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)(.+)$/,zo=r=>hb.test(r),Le=r=>!!r&&!Number.isNaN(Number(r)),os=r=>!!r&&Number.isInteger(Number(r)),Qd=r=>r.endsWith("%")&&Le(r.slice(0,-1)),Ai=r=>pb.test(r),xb=()=>!0,_b=r=>mb.test(r)&&!gb.test(r),F1=()=>!1,wb=r=>yb.test(r),kb=r=>vb.test(r),Sb=r=>!ye(r)&&!ve(r),bb=r=>ha(r,U1,F1),ye=r=>z1.test(r),Bs=r=>ha(r,$1,_b),Zd=r=>ha(r,Mb,Le),ky=r=>ha(r,B1,F1),Tb=r=>ha(r,W1,kb),Qu=r=>ha(r,H1,wb),ve=r=>V1.test(r),Za=r=>pa(r,$1),Cb=r=>pa(r,Nb),Sy=r=>pa(r,B1),Eb=r=>pa(r,U1),Pb=r=>pa(r,W1),Zu=r=>pa(r,H1,!0),ha=(r,e,n)=>{const i=z1.exec(r);return i?i[1]?e(i[1]):n(i[2]):!1},pa=(r,e,n=!1)=>{const i=V1.exec(r);return i?i[1]?e(i[1]):n:!1},B1=r=>r==="position"||r==="percentage",W1=r=>r==="image"||r==="url",U1=r=>r==="length"||r==="size"||r==="bg-size",$1=r=>r==="length",Mb=r=>r==="number",Nb=r=>r==="family-name",H1=r=>r==="shadow",Rb=()=>{const r=en("color"),e=en("font"),n=en("text"),i=en("font-weight"),o=en("tracking"),l=en("leading"),u=en("breakpoint"),c=en("container"),d=en("spacing"),p=en("radius"),m=en("shadow"),g=en("inset-shadow"),v=en("text-shadow"),x=en("drop-shadow"),k=en("blur"),w=en("perspective"),b=en("aspect"),P=en("ease"),N=en("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...M(),ve,ye],H=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],O=()=>[ve,ye,d],B=()=>[zo,"full","auto",...O()],z=()=>[os,"none","subgrid",ve,ye],re=()=>["auto",{span:["full",os,ve,ye]},os,ve,ye],G=()=>[os,"auto",ve,ye],de=()=>["auto","min","max","fr",ve,ye],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...O()],J=()=>[zo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],L=()=>[r,ve,ye],X=()=>[...M(),Sy,ky,{position:[ve,ye]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",Eb,bb,{size:[ve,ye]}],W=()=>[Qd,Za,Bs],ee=()=>["","none","full",p,ve,ye],ne=()=>["",Le,Za,Bs],_e=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Le,Qd,Sy,ky],be=()=>["","none",k,ve,ye],Te=()=>["none",Le,ve,ye],Ye=()=>["none",Le,ve,ye],ct=()=>[Le,ve,ye],ft=()=>[zo,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ai],breakpoint:[Ai],color:[xb],container:[Ai],"drop-shadow":[Ai],ease:["in","out","in-out"],font:[Sb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ai],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ai],shadow:[Ai],spacing:["px",Le],text:[Ai],"text-shadow":[Ai],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zo,ye,ve,b]}],container:["container"],columns:[{columns:[Le,ye,ve,c]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[os,"auto",ve,ye]}],basis:[{basis:[zo,"full","auto",c,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,zo,"auto","initial","none",ye]}],grow:[{grow:["",Le,ve,ye]}],shrink:[{shrink:["",Le,ve,ye]}],order:[{order:[os,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[c,"screen",...J()]}],"min-w":[{"min-w":[c,"screen","none",...J()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,Za,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,Zd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qd,ye]}],"font-family":[{font:[Cb,ye,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ve,ye]}],"line-clamp":[{"line-clamp":[Le,"none",ve,Zd]}],leading:[{leading:[l,...O()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ve,Bs]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Le,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},os,ve,ye],radial:["",ve,ye],conic:[os,ve,ye]},Pb,Tb]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ve,ye]}],"outline-w":[{outline:["",Le,Za,Bs]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",m,Zu,Qu]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",g,Zu,Qu]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Le,Bs]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",v,Zu,Qu]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Le,ve,ye]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:be()}],brightness:[{brightness:[Le,ve,ye]}],contrast:[{contrast:[Le,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",x,Zu,Qu]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Le,ve,ye]}],"hue-rotate":[{"hue-rotate":[Le,ve,ye]}],invert:[{invert:["",Le,ve,ye]}],saturate:[{saturate:[Le,ve,ye]}],sepia:[{sepia:["",Le,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Le,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ve,ye]}],ease:[{ease:["linear","initial",P,ve,ye]}],delay:[{delay:[Le,ve,ye]}],animate:[{animate:["none",N,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ve,ye]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Te()}],"rotate-x":[{"rotate-x":Te()}],"rotate-y":[{"rotate-y":Te()}],"rotate-z":[{"rotate-z":Te()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ve,ye]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Le,Za,Bs,Zd]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ab=db(Rb);function Y1(...r){return Ab(O1(r))}const Db=ZS("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});function Pr({className:r,variant:e,size:n,asChild:i=!1,...o}){const l=i?D1:"button";return S.jsx(l,{"data-slot":"button",className:Y1(Db({variant:e,size:n,className:r})),...o})}const jb={sm:{brand:28,tag:10},md:{brand:36,tag:11},lg:{brand:44,tag:12}};function G1({variant:r="dark",size:e="md"}){const n=jb[e],i=r==="light"?"text-white":"text-slate-900",o=r==="light"?"text-white/70":"text-slate-500";return S.jsxs("div",{className:"inline-flex flex-col items-start leading-none",children:[S.jsxs("span",{className:i,style:{fontFamily:"Outfit, sans-serif",fontSize:n.brand,fontWeight:600,letterSpacing:"-0.035em",lineHeight:1},children:["wefly",S.jsx("span",{className:"text-orange-500",children:"."})]}),S.jsx("span",{className:`mt-1.5 ${o}`,style:{fontSize:n.tag,letterSpacing:"0.22em",textTransform:"uppercase",fontWeight:500},children:"by adi tours"})]})}const by=["דף הבית","חבילות נופש","טיסות","מלונות","שירותים","אודות","צור קשר"];function Ob(){const[r,e]=Y.useState(!1),[n,i]=Y.useState(!1);return Y.useEffect(()=>{const o=()=>e(window.scrollY>30);return window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)},[]),S.jsxs("header",{className:`fixed top-0 inset-x-0 z-50 transition-all duration-300 ${r?"bg-white/95 backdrop-blur shadow-sm":"bg-transparent"}`,children:[S.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-6 flex items-center justify-between",children:[S.jsx("a",{href:"#",children:S.jsx(G1,{variant:r?"dark":"light",size:"md"})}),S.jsx("nav",{className:"hidden lg:flex items-center gap-9",children:by.map(o=>S.jsx("a",{href:"#",className:`text-[15px] transition-colors hover:text-orange-500 ${r?"text-slate-700":"text-white"}`,children:o},o))}),S.jsx("div",{className:"hidden lg:block",children:S.jsx(Pr,{className:"bg-orange-500 hover:bg-orange-600 text-white px-7 h-11 rounded-full text-[15px]",children:"לתכנון החופשה"})}),S.jsx("button",{onClick:()=>i(!n),className:`lg:hidden p-2 ${r?"text-slate-900":"text-white"}`,"aria-label":"תפריט",children:n?S.jsx(jp,{}):S.jsx(bS,{})})]}),n&&S.jsx("div",{className:"lg:hidden bg-white shadow-lg border-t",children:S.jsxs("div",{className:"px-6 py-4 flex flex-col gap-3",children:[by.map(o=>S.jsx("a",{href:"#",className:"text-slate-700 py-1 text-right",children:o},o)),S.jsx(Pr,{className:"bg-orange-500 hover:bg-orange-600 text-white mt-2 rounded-full",children:"לתכנון החופשה"})]})})]})}const Lb="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";function zi(r){const[e,n]=Y.useState(!1),i=()=>{n(!0)},{src:o,alt:l,style:u,className:c,...d}=r;return e?S.jsx("div",{className:`inline-block bg-gray-100 text-center align-middle ${c??""}`,style:u,children:S.jsx("div",{className:"flex items-center justify-center w-full h-full",children:S.jsx("img",{src:Lb,alt:"Error loading image",...d,"data-original-url":o})})}):S.jsx("img",{src:o,alt:l,className:c,style:u,...d,onError:i})}const Lp=Y.createContext({});function Ip(r){const e=Y.useRef(null);return e.current===null&&(e.current=r()),e.current}const Ib=typeof window<"u",X1=Ib?Y.useLayoutEffect:Y.useEffect,rf=Y.createContext(null);function zp(r,e){r.indexOf(e)===-1&&r.push(e)}function Lc(r,e){const n=r.indexOf(e);n>-1&&r.splice(n,1)}const _i=(r,e,n)=>n>e?e:n{};const xs={},K1=r=>/^-?(?:d+(?:.d+)?|.d+)$/u.test(r);function q1(r){return typeof r=="object"&&r!==null}const Q1=r=>/^0[^.s]+$/u.test(r);function Z1(r){let e;return()=>(e===void 0&&(e=r()),e)}const $r=r=>r,zb=(r,e)=>n=>e(r(n)),Wl=(...r)=>r.reduce(zb),Pl=(r,e,n)=>{const i=e-r;return i===0?1:(n-r)/i};class Fp{constructor(){this.subscriptions=[]}add(e){return zp(this.subscriptions,e),()=>Lc(this.subscriptions,e)}notify(e,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](e,n,i);else for(let l=0;lr*1e3,Br=r=>r/1e3;function J1(r,e){return e?r*(1e3/e):0}const ex=(r,e,n)=>(((1-3*n+3*e)*r+(3*n-6*e))*r+3*e)*r,Vb=1e-7,Fb=12;function Bb(r,e,n,i,o){let l,u,c=0;do u=e+(n-e)/2,l=ex(u,i,o)-r,l>0?n=u:e=u;while(Math.abs(l)>Vb&&++cBb(l,0,1,r,n);return l=>l===0||l===1?l:ex(o(l),e,i)}const tx=r=>e=>e<=.5?r(2*e)/2:(2-r(2*(1-e)))/2,nx=r=>e=>1-r(1-e),rx=Ul(.33,1.53,.69,.99),Bp=nx(rx),ix=tx(Bp),sx=r=>r>=1?1:(r*=2)<1?.5*Bp(r):.5*(2-Math.pow(2,-10*(r-1))),Wp=r=>1-Math.sin(Math.acos(r)),ox=nx(Wp),ax=tx(Wp),Wb=Ul(.42,0,1,1),Ub=Ul(0,0,.58,1),lx=Ul(.42,0,.58,1),$b=r=>Array.isArray(r)&&typeof r[0]!="number",ux=r=>Array.isArray(r)&&typeof r[0]=="number",Hb={linear:$r,easeIn:Wb,easeInOut:lx,easeOut:Ub,circIn:Wp,circInOut:ax,circOut:ox,backIn:Bp,backInOut:ix,backOut:rx,anticipate:sx},Yb=r=>typeof r=="string",Ty=r=>{if(ux(r)){Vp(r.length===4);const[e,n,i,o]=r;return Ul(e,n,i,o)}else if(Yb(r))return Hb[r];return r},Ju=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Gb(r,e){let n=new Set,i=new Set,o=!1,l=!1;const u=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){u.has(m)&&(p.schedule(m),r()),m(c)}const p={schedule:(m,g=!1,v=!1)=>{const k=v&&o?n:i;return g&&u.add(m),k.add(m),m},cancel:m=>{i.delete(m),u.delete(m)},process:m=>{if(c=m,o){l=!0;return}o=!0;const g=n;n=i,i=g,n.forEach(d),n.clear(),o=!1,l&&(l=!1,p.process(m))}};return p}const Xb=40;function cx(r,e){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Ju.reduce((A,M)=>(A[M]=Gb(l),A),{}),{setup:c,read:d,resolveKeyframes:p,preUpdate:m,update:g,preRender:v,render:x,postRender:k}=u,w=()=>{const A=xs.useManualTiming,M=A?o.timestamp:performance.now();n=!1,A||(o.delta=i?1e3/60:Math.max(Math.min(M-o.timestamp,Xb),1)),o.timestamp=M,o.isProcessing=!0,c.process(o),d.process(o),p.process(o),m.process(o),g.process(o),v.process(o),x.process(o),k.process(o),o.isProcessing=!1,n&&e&&(i=!1,r(w))},b=()=>{n=!0,i=!0,o.isProcessing||r(w)};return{schedule:Ju.reduce((A,M)=>{const D=u[M];return A[M]=(H,I=!1,O=!1)=>(n||b(),D.schedule(H,I,O)),A},{}),cancel:A=>{for(let M=0;M(vc===void 0&&Wn.set(gn.isProcessing||xs.useManualTiming?gn.timestamp:performance.now()),vc),set:r=>{vc=r,queueMicrotask(Kb)}},fx=r=>e=>typeof e=="string"&&e.startsWith(r),dx=fx("--"),qb=fx("var(--"),Up=r=>qb(r)?Qb.test(r.split("/*")[0].trim()):!1,Qb=/var(--(?:[w-]+s*|[w-]+s*,(?:s*[^)(s]|s*((?:[^)(]|([^)(]*))*))+s*))$/iu;function Cy(r){return typeof r!="string"?!1:r.split("/*")[0].includes("var(--")}const ma={test:r=>typeof r=="number",parse:parseFloat,transform:r=>r},Ml={...ma,transform:r=>_i(0,1,r)},ec={...ma,default:1},fl=r=>Math.round(r*1e5)/1e5,$p=/-?(?:d+(?:.d+)?|.d+)/gu;function Zb(r){return r==null}const Jb=/^(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))$/iu,Hp=(r,e)=>n=>!!(typeof n=="string"&&Jb.test(n)&&n.startsWith(r)||e&&!Zb(n)&&Object.prototype.hasOwnProperty.call(n,e)),hx=(r,e,n)=>i=>{if(typeof i!="string")return i;const[o,l,u,c]=i.match($p);return{[r]:parseFloat(o),[e]:parseFloat(l),[n]:parseFloat(u),alpha:c!==void 0?parseFloat(c):1}},eT=r=>_i(0,255,r),eh={...ma,transform:r=>Math.round(eT(r))},Ks={test:Hp("rgb","red"),parse:hx("red","green","blue"),transform:({red:r,green:e,blue:n,alpha:i=1})=>"rgba("+eh.transform(r)+", "+eh.transform(e)+", "+eh.transform(n)+", "+fl(Ml.transform(i))+")"};function tT(r){let e="",n="",i="",o="";return r.length>5?(e=r.substring(1,3),n=r.substring(3,5),i=r.substring(5,7),o=r.substring(7,9)):(e=r.substring(1,2),n=r.substring(2,3),i=r.substring(3,4),o=r.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const Dh={test:Hp("#"),parse:tT,transform:Ks.transform},$l=r=>({test:e=>typeof e=="string"&&e.endsWith(r)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${r}`}),as=$l("deg"),vi=$l("%"),xe=$l("px"),nT=$l("vh"),rT=$l("vw"),Ey={...vi,parse:r=>vi.parse(r)/100,transform:r=>vi.transform(r*100)},Yo={test:Hp("hsl","hue"),parse:hx("hue","saturation","lightness"),transform:({hue:r,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(r)+", "+vi.transform(fl(e))+", "+vi.transform(fl(n))+", "+fl(Ml.transform(i))+")"},$t={test:r=>Ks.test(r)||Dh.test(r)||Yo.test(r),parse:r=>Ks.test(r)?Ks.parse(r):Yo.test(r)?Yo.parse(r):Dh.parse(r),transform:r=>typeof r=="string"?r:r.hasOwnProperty("red")?Ks.transform(r):Yo.transform(r),getAnimatableNone:r=>{const e=$t.parse(r);return e.alpha=0,$t.transform(e)}},iT=/(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))/giu;function sT(r){var e,n;return isNaN(r)&&typeof r=="string"&&(((e=r.match($p))==null?void 0:e.length)||0)+(((n=r.match(iT))==null?void 0:n.length)||0)>0}const px="number",mx="color",oT="var",aT="var(",Py="${}",lT=/vars*(s*--(?:[w-]+s*|[w-]+s*,(?:s*[^)(s]|s*((?:[^)(]|([^)(]*))*))+s*))|#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?)|-?(?:d+(?:.d+)?|.d+)/giu;function sa(r){const e=r.toString(),n=[],i={color:[],number:[],var:[]},o=[];let l=0;const c=e.replace(lT,d=>($t.test(d)?(i.color.push(l),o.push(mx),n.push($t.parse(d))):d.startsWith(aT)?(i.var.push(l),o.push(oT),n.push(d)):(i.number.push(l),o.push(px),n.push(parseFloat(d))),++l,Py)).split(Py);return{values:n,split:c,indexes:i,types:o}}function uT(r){return sa(r).values}function gx({split:r,types:e}){const n=r.length;return i=>{let o="";for(let l=0;ltypeof r=="number"?0:$t.test(r)?$t.getAnimatableNone(r):r,dT=(r,e)=>typeof r=="number"?e!=null&&e.trim().endsWith("/")?r:0:fT(r);function hT(r){const e=sa(r);return gx(e)(e.values.map((i,o)=>dT(i,e.split[o])))}const ri={test:sT,parse:uT,createTransformer:cT,getAnimatableNone:hT};function th(r,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?r+(e-r)*6*n:n<1/2?e:n<2/3?r+(e-r)*(2/3-n)*6:r}function pT({hue:r,saturation:e,lightness:n,alpha:i}){r/=360,e/=100,n/=100;let o=0,l=0,u=0;if(!e)o=l=u=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;o=th(d,c,r+1/3),l=th(d,c,r),u=th(d,c,r-1/3)}return{red:Math.round(o*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:i}}function Ic(r,e){return n=>n>0?e:r}const vt=(r,e,n)=>r+(e-r)*n,nh=(r,e,n)=>{const i=r*r,o=n*(e*e-i)+i;return o<0?0:Math.sqrt(o)},mT=[Dh,Ks,Yo],gT=r=>mT.find(e=>e.test(r));function My(r){const e=gT(r);if(!e)return!1;let n=e.parse(r);return e===Yo&&(n=pT(n)),n}const Ny=(r,e)=>{const n=My(r),i=My(e);if(!n||!i)return Ic(r,e);const o={...n};return l=>(o.red=nh(n.red,i.red,l),o.green=nh(n.green,i.green,l),o.blue=nh(n.blue,i.blue,l),o.alpha=vt(n.alpha,i.alpha,l),Ks.transform(o))},jh=new Set(["none","hidden"]);function yT(r,e){return jh.has(r)?n=>n<=0?r:e:n=>n>=1?e:r}function vT(r,e){return n=>vt(r,e,n)}function Yp(r){return typeof r=="number"?vT:typeof r=="string"?Up(r)?Ic:$t.test(r)?Ny:wT:Array.isArray(r)?yx:typeof r=="object"?$t.test(r)?Ny:xT:Ic}function yx(r,e){const n=[...r],i=n.length,o=r.map((l,u)=>Yp(l)(l,e[u]));return l=>{for(let u=0;u{for(const l in i)n[l]=i[l](o);return n}}function _T(r,e){const n=[],i={color:0,var:0,number:0};for(let o=0;o{const n=ri.createTransformer(e),i=sa(r),o=sa(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?jh.has(r)&&!o.values.length||jh.has(e)&&!i.values.length?yT(r,e):Wl(yx(_T(i,o),o.values),n):Ic(r,e)};function vx(r,e,n){return typeof r=="number"&&typeof e=="number"&&typeof n=="number"?vt(r,e,n):Yp(r)(r,e)}const kT=r=>{const e=({timestamp:n})=>r(n);return{start:(n=!0)=>ut.update(e,n),stop:()=>_s(e),now:()=>gn.isProcessing?gn.timestamp:Wn.now()}},xx=(r,e,n=10)=>{let i="";const o=Math.max(Math.round(e/n),2);for(let l=0;l=zc?1/0:e}function ST(r,e=100,n){const i=n({...r,keyframes:[0,e]}),o=Math.min(Gp(i),zc);return{type:"keyframes",ease:l=>i.next(o*l).value/e,duration:Br(o)}}const At={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};function Oh(r,e){return r*Math.sqrt(1-e*e)}const bT=12;function TT(r,e,n){let i=n;for(let o=1;o{const m=p*u,g=m*r,v=m-n,x=Oh(p,u),k=Math.exp(-g);return rh-v/x*k},l=p=>{const g=p*u*r,v=g*n+n,x=Math.pow(u,2)*Math.pow(p,2)*r,k=Math.exp(-g),w=Oh(Math.pow(p,2),u);return(-o(p)+rh>0?-1:1)*((v-x)*k)/w}):(o=p=>{const m=Math.exp(-p*r),g=(p-n)*r+1;return-rh+m*g},l=p=>{const m=Math.exp(-p*r),g=(n-p)*(r*r);return m*g});const c=5/r,d=TT(o,l,c);if(r=Cr(r),isNaN(d))return{stiffness:At.stiffness,damping:At.damping,duration:r};{const p=Math.pow(d,2)*i;return{stiffness:p,damping:u*2*Math.sqrt(i*p),duration:r}}}const ET=["duration","bounce"],PT=["stiffness","damping","mass"];function Ry(r,e){return e.some(n=>r[n]!==void 0)}function MT(r){let e={velocity:At.velocity,stiffness:At.stiffness,damping:At.damping,mass:At.mass,isResolvedFromDuration:!1,...r};if(!Ry(r,PT)&&Ry(r,ET))if(e.velocity=0,r.visualDuration){const n=r.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,l=2*_i(.05,1,1-(r.bounce||0))*Math.sqrt(o);e={...e,mass:At.mass,stiffness:o,damping:l}}else{const n=CT({...r,velocity:0});e={...e,...n,mass:At.mass},e.isResolvedFromDuration=!0}return e}function Vc(r=At.visualDuration,e=At.bounce){const n=typeof r!="object"?{visualDuration:r,keyframes:[0,1],bounce:e}:r;let{restSpeed:i,restDelta:o}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],c={done:!1,value:l},{stiffness:d,damping:p,mass:m,duration:g,velocity:v,isResolvedFromDuration:x}=MT({...n,velocity:-Br(n.velocity||0)}),k=v||0,w=p/(2*Math.sqrt(d*m)),b=u-l,P=Br(Math.sqrt(d/m)),N=Math.abs(b)<5;i||(i=N?At.restSpeed.granular:At.restSpeed.default),o||(o=N?At.restDelta.granular:At.restDelta.default);let A,M,D,H,I,O;if(w<1)D=Oh(P,w),H=(k+w*P*b)/D,A=z=>{const re=Math.exp(-w*P*z);return u-re*(H*Math.sin(D*z)+b*Math.cos(D*z))},I=w*P*H+b*D,O=w*P*b-H*D,M=z=>Math.exp(-w*P*z)*(I*Math.sin(D*z)+O*Math.cos(D*z));else if(w===1){A=re=>u-Math.exp(-P*re)*(b+(k+P*b)*re);const z=k+P*b;M=re=>Math.exp(-P*re)*(P*z*re-k)}else{const z=P*Math.sqrt(w*w-1);A=ae=>{const le=Math.exp(-w*P*ae),K=Math.min(z*ae,300);return u-le*((k+w*P*b)*Math.sinh(K)+z*b*Math.cosh(K))/z};const re=(k+w*P*b)/z,G=w*P*re-b*z,de=w*P*b-re*z;M=ae=>{const le=Math.exp(-w*P*ae),K=Math.min(z*ae,300);return le*(G*Math.sinh(K)+de*Math.cosh(K))}}const B={calculatedDuration:x&&g||null,velocity:z=>Cr(M(z)),next:z=>{if(!x&&w<1){const G=Math.exp(-w*P*z),de=Math.sin(D*z),ae=Math.cos(D*z),le=u-G*(H*de+b*ae),K=Cr(G*(I*de+O*ae));return c.done=Math.abs(K)<=i&&Math.abs(u-le)<=o,c.value=c.done?u:le,c}const re=A(z);if(x)c.done=z>=g;else{const G=Cr(M(z));c.done=Math.abs(G)<=i&&Math.abs(u-re)<=o}return c.value=c.done?u:re,c},toString:()=>{const z=Math.min(Gp(B),zc),re=xx(G=>B.next(z*G).value,z,30);return z+"ms "+re},toTransition:()=>{}};return B}Vc.applyToOptions=r=>{const e=ST(r,100,Vc);return r.ease=e.ease,r.duration=Cr(e.duration),r.type="keyframes",r};const NT=5;function _x(r,e,n){const i=Math.max(e-NT,0);return J1(n-r(i),e-i)}function Lh({keyframes:r,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:d,restDelta:p=.5,restSpeed:m}){const g=r[0],v={done:!1,value:g},x=O=>c!==void 0&&Od,k=O=>c===void 0?d:d===void 0||Math.abs(c-O)-w*Math.exp(-O/i),A=O=>P+N(O),M=O=>{const B=N(O),z=A(O);v.done=Math.abs(B)<=p,v.value=v.done?P:z};let D,H;const I=O=>{x(v.value)&&(D=O,H=Vc({keyframes:[v.value,k(v.value)],velocity:_x(A,O,v.value),damping:o,stiffness:l,restDelta:p,restSpeed:m}))};return I(0),{calculatedDuration:null,next:O=>{let B=!1;return!H&&D===void 0&&(B=!0,M(O),I(O)),D!==void 0&&O>=D?H.next(O-D):(!B&&M(O),v)}}}function RT(r,e,n){const i=[],o=n||xs.mix||vx,l=r.length-1;for(let u=0;ue[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=r[0]===r[1];r[0]>r[l-1]&&(r=[...r].reverse(),e=[...e].reverse());const c=RT(e,i,o),d=c.length,p=m=>{if(u&&m1)for(;gp(_i(r[0],r[l-1],m)):p}function DT(r,e){const n=r[r.length-1];for(let i=1;i<=e;i++){const o=Pl(0,e,i);r.push(vt(n,1,o))}}function jT(r){const e=[0];return DT(e,r.length-1),e}function OT(r,e){return r.map(n=>n*e)}function LT(r,e){return r.map(()=>e||lx).splice(0,r.length-1)}function dl({duration:r=300,keyframes:e,times:n,ease:i="easeInOut"}){const o=$b(i)?i.map(Ty):Ty(i),l={done:!1,value:e[0]},u=OT(n&&n.length===e.length?n:jT(e),r),c=AT(u,e,{ease:Array.isArray(o)?o:LT(e,o)});return{calculatedDuration:r,next:d=>(l.value=c(d),l.done=d>=r,l)}}const IT=r=>r!==null;function sf(r,{repeat:e,repeatType:n="loop"},i,o=1){const l=r.filter(IT),c=o<0||e&&n!=="loop"&&e%2===1?0:l.length-1;return!c||i===void 0?l[c]:i}const zT={decay:Lh,inertia:Lh,tween:dl,keyframes:dl,spring:Vc};function wx(r){typeof r.type=="string"&&(r.type=zT[r.type])}class Xp{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const VT=r=>r/100;class Fc extends Xp{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var i,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Wn.now()&&this.tick(Wn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(i=this.options).onStop)==null||o.call(i))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;wx(e);const{type:n=dl,repeat:i=0,repeatDelay:o=0,repeatType:l,velocity:u=0}=e;let{keyframes:c}=e;const d=n||dl;d!==dl&&typeof c[0]!="number"&&(this.mixKeyframes=Wl(VT,vx(c[0],c[1])),c=[0,100]);const p=d({...e,keyframes:c});l==="mirror"&&(this.mirroredGenerator=d({...e,keyframes:[...c].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=Gp(p));const{calculatedDuration:m}=p;this.calculatedDuration=m,this.resolvedDuration=m+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=p}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:i,totalDuration:o,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:c,calculatedDuration:d}=this;if(this.startTime===null)return i.next(0);const{delay:p=0,keyframes:m,repeat:g,repeatType:v,repeatDelay:x,type:k,onUpdate:w,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-o/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const P=this.currentTime-p*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?P<0:P>o;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,M=i;if(g){const O=Math.min(this.currentTime,o)/c;let B=Math.floor(O),z=O%1;!z&&O>=1&&(z=1),z===1&&B--,B=Math.min(B,g+1),!!(B%2)&&(v==="reverse"?(z=1-z,x&&(z-=x/c)):v==="mirror"&&(M=u)),A=_i(0,1,z)*c}let D;N?(this.delayState.value=m[0],D=this.delayState):D=M.next(A),l&&!N&&(D.value=l(D.value));let{done:H}=D;!N&&d!==null&&(H=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&H);return I&&k!==Lh&&(D.value=sf(m,this.options,b,this.speed)),w&&w(D.value),I&&this.finish(),D}then(e,n){return this.finished.then(e,n)}get duration(){return Br(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Br(e)}get time(){return Br(this.currentTime)}set time(e){e=Cr(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return _x(i=>this.generator.next(i).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(Wn.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=Br(this.currentTime))}play(){var o,l;if(this.isStopped)return;const{driver:e=kT,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(l=(o=this.options).onPlay)==null||l.call(o);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function FT(r){for(let e=1;er*180/Math.PI,Ih=r=>{const e=qs(Math.atan2(r[1],r[0]));return zh(e)},BT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:r=>(Math.abs(r[0])+Math.abs(r[3]))/2,rotate:Ih,rotateZ:Ih,skewX:r=>qs(Math.atan(r[1])),skewY:r=>qs(Math.atan(r[2])),skew:r=>(Math.abs(r[1])+Math.abs(r[2]))/2},zh=r=>(r=r%360,r<0&&(r+=360),r),Ay=Ih,Dy=r=>Math.sqrt(r[0]*r[0]+r[1]*r[1]),jy=r=>Math.sqrt(r[4]*r[4]+r[5]*r[5]),WT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dy,scaleY:jy,scale:r=>(Dy(r)+jy(r))/2,rotateX:r=>zh(qs(Math.atan2(r[6],r[5]))),rotateY:r=>zh(qs(Math.atan2(-r[2],r[0]))),rotateZ:Ay,rotate:Ay,skewX:r=>qs(Math.atan(r[4])),skewY:r=>qs(Math.atan(r[1])),skew:r=>(Math.abs(r[1])+Math.abs(r[4]))/2};function Vh(r){return r.includes("scale")?1:0}function Fh(r,e){if(!r||r==="none")return Vh(e);const n=r.match(/^matrix3d(([-d.es,]+))$/u);let i,o;if(n)i=WT,o=n;else{const c=r.match(/^matrix(([-d.es,]+))$/u);i=BT,o=c}if(!o)return Vh(e);const l=i[e],u=o[1].split(",").map($T);return typeof l=="function"?l(u):u[l]}const UT=(r,e)=>{const{transform:n="none"}=getComputedStyle(r);return Fh(n,e)};function $T(r){return parseFloat(r.trim())}const ga=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ya=new Set(ga),Oy=r=>r===ma||r===xe,HT=new Set(["x","y","z"]),YT=ga.filter(r=>!HT.has(r));function GT(r){const e=[];return YT.forEach(n=>{const i=r.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const cs={width:({x:r},{paddingLeft:e="0",paddingRight:n="0",boxSizing:i})=>{const o=r.max-r.min;return i==="border-box"?o:o-parseFloat(e)-parseFloat(n)},height:({y:r},{paddingTop:e="0",paddingBottom:n="0",boxSizing:i})=>{const o=r.max-r.min;return i==="border-box"?o:o-parseFloat(e)-parseFloat(n)},top:(r,{top:e})=>parseFloat(e),left:(r,{left:e})=>parseFloat(e),bottom:({y:r},{top:e})=>parseFloat(e)+(r.max-r.min),right:({x:r},{left:e})=>parseFloat(e)+(r.max-r.min),x:(r,{transform:e})=>Fh(e,"x"),y:(r,{transform:e})=>Fh(e,"y")};cs.translateX=cs.x;cs.translateY=cs.y;const Js=new Set;let Bh=!1,Wh=!1,Uh=!1;function kx(){if(Wh){const r=Array.from(Js).filter(i=>i.needsMeasurement),e=new Set(r.map(i=>i.element)),n=new Map;e.forEach(i=>{const o=GT(i);o.length&&(n.set(i,o),i.render())}),r.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([l,u])=>{var c;(c=i.getValue(l))==null||c.set(u)})}),r.forEach(i=>i.measureEndState()),r.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Wh=!1,Bh=!1,Js.forEach(r=>r.complete(Uh)),Js.clear()}function Sx(){Js.forEach(r=>{r.readKeyframes(),r.needsMeasurement&&(Wh=!0)})}function XT(){Uh=!0,Sx(),kx(),Uh=!1}class Kp{constructor(e,n,i,o,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=o,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Js.add(this),Bh||(Bh=!0,ut.read(Sx),ut.resolveKeyframes(kx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:o}=this;if(e[0]===null){const l=o==null?void 0:o.get(),u=e[e.length-1];if(l!==void 0)e[0]=l;else if(i&&n){const c=i.readValue(n,u);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=u),o&&l===void 0&&o.set(e[0])}FT(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Js.delete(this)}cancel(){this.state==="scheduled"&&(Js.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const KT=r=>r.startsWith("--");function bx(r,e,n){KT(e)?r.style.setProperty(e,n):r.style[e]=n}const qT={};function Tx(r,e){const n=Z1(r);return()=>qT[e]??n()}const QT=Tx(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Cx=Tx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),rl=([r,e,n,i])=>`cubic-bezier(${r}, ${e}, ${n}, ${i})`,Ly={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rl([0,.65,.55,1]),circOut:rl([.55,0,1,.45]),backIn:rl([.31,.01,.66,-.59]),backOut:rl([.33,1.53,.69,.99])};function Ex(r,e){if(r)return typeof r=="function"?Cx()?xx(r,e):"ease-out":ux(r)?rl(r):Array.isArray(r)?r.map(n=>Ex(n,e)||Ly.easeOut):Ly[r]}function ZT(r,e,n,{delay:i=0,duration:o=300,repeat:l=0,repeatType:u="loop",ease:c="easeOut",times:d}={},p=void 0){const m={[e]:n};d&&(m.offset=d);const g=Ex(c,o);Array.isArray(g)&&(m.easing=g);const v={delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),r.animate(m,v)}function Px(r){return typeof r=="function"&&"applyToOptions"in r}function JT({type:r,...e}){return Px(r)&&Cx()?r.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Mx extends Xp{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:i,keyframes:o,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:c,onComplete:d}=e;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=e,Vp(typeof e.type!="string");const p=JT(e);this.animation=ZT(n,i,o,p,l),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const m=sf(o,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),bx(n,i,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,o;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((o=(i=this.animation).commitStyles)==null||o.call(i))}get duration(){var n,i;const e=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return Br(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Br(e)}get time(){return Br(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cr(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:i,observe:o}){var l;return this.allowFlatten&&((l=this.animation.effect)==null||l.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&QT()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),$r):o(this)}}const Nx={anticipate:sx,backInOut:ix,circInOut:ax};function eC(r){return r in Nx}function tC(r){typeof r.ease=="string"&&eC(r.ease)&&(r.ease=Nx[r.ease])}const ih=10;class nC extends Mx{constructor(e){tC(e),wx(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:i,onComplete:o,element:l,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const c=new Fc({...u,autoplay:!1}),d=Math.max(ih,Wn.now()-this.startTime),p=_i(0,ih,d-ih),m=c.sample(d).value,{name:g}=this.options;l&&g&&bx(l,g,m),n.setWithVelocity(c.sample(Math.max(0,d-p)).value,m,p),c.stop()}}const Iy=(r,e)=>e==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(ri.test(r)||r==="0")&&!r.startsWith("url("));function rC(r){const e=r[0];if(r.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function uC(r){var g;const{motionValue:e,name:n,repeatDelay:i,repeatType:o,damping:l,type:u,keyframes:c}=r;if(!(((g=e==null?void 0:e.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:m}=e.owner.getProps();return lC()&&n&&(Rx.has(n)||aC.has(n)&&oC(c))&&(n!=="transform"||!m)&&!p&&!i&&o!=="mirror"&&l!==0&&u!=="inertia"}const cC=40;class fC extends Xp{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:o=0,repeatDelay:l=0,repeatType:u="loop",keyframes:c,name:d,motionValue:p,element:m,...g}){var k;super(),this.stop=()=>{var w,b;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=Wn.now();const v={autoplay:e,delay:n,type:i,repeat:o,repeatDelay:l,repeatType:u,name:d,motionValue:p,element:m,...g},x=(m==null?void 0:m.KeyframeResolver)||Kp;this.keyframeResolver=new x(c,(w,b,P)=>this.onKeyframesResolved(w,b,v,!P),d,p,m),(k=this.keyframeResolver)==null||k.scheduleResolve()}onKeyframesResolved(e,n,i,o){var P,N;this.keyframeResolver=void 0;const{name:l,type:u,velocity:c,delay:d,isHandoff:p,onUpdate:m}=i;this.resolvedAt=Wn.now();let g=!0;iC(e,l,u,c)||(g=!1,(xs.instantAnimations||!d)&&(m==null||m(sf(e,i,n))),e[0]=e[e.length-1],$h(i),i.repeat=0);const x={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>cC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:e},k=g&&!p&&uC(x),w=(N=(P=x.motionValue)==null?void 0:P.owner)==null?void 0:N.current;let b;if(k)try{b=new nC({...x,element:w})}catch{b=new Fc(x)}else b=new Fc(x);b.finished.then(()=>{this.notifyFinished()}).catch($r),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),XT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Ax(r,e,n,i=0,o=1){const l=Array.from(r).sort((p,m)=>p.sortNodePosition(m)).indexOf(e),u=r.size,c=(u-1)*i;return typeof n=="function"?n(l,u):o===1?l*i:c-l*i}const dC=/^var(--(?:([w-]+)|([w-]+), ?([a-zA-Zd ()%#.,-]+)))/u;function hC(r){const e=dC.exec(r);if(!e)return[,];const[,n,i,o]=e;return[`--${n??i}`,o]}function Dx(r,e,n=1){const[i,o]=hC(r);if(!i)return;const l=window.getComputedStyle(e).getPropertyValue(i);if(l){const u=l.trim();return K1(u)?parseFloat(u):u}return Up(o)?Dx(o,e,n+1):o}const pC={type:"spring",stiffness:500,damping:25,restSpeed:10},mC=r=>({type:"spring",stiffness:550,damping:r===0?2*Math.sqrt(550):30,restSpeed:10}),gC={type:"keyframes",duration:.8},yC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vC=(r,{keyframes:e})=>e.length>2?gC:ya.has(r)?r.startsWith("scale")?mC(e[1]):pC:yC;function jx(r,e){if(r!=null&&r.inherit&&e){const{inherit:n,...i}=r;return{...e,...i}}return r}function qp(r,e){const n=(r==null?void 0:r[e])??(r==null?void 0:r.default)??r;return n!==r?jx(n,r):n}const xC=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function _C(r){for(const e in r)if(!xC.has(e))return!0;return!1}const Qp=(r,e,n,i={},o,l)=>u=>{const c=qp(i,r)||{},d=c.delay||i.delay||0;let{elapsed:p=0}=i;p=p-Cr(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:v=>{e.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{u(),c.onComplete&&c.onComplete()},name:r,motionValue:e,element:l?void 0:o};_C(c)||Object.assign(m,vC(r,m)),m.duration&&(m.duration=Cr(m.duration)),m.repeatDelay&&(m.repeatDelay=Cr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&($h(m),m.delay===0&&(g=!0)),(xs.instantAnimations||xs.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(g=!0,$h(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!l&&e.get()!==void 0){const v=sf(m.keyframes,c);if(v!==void 0){ut.update(()=>{m.onUpdate(v),m.onComplete()});return}}return c.isSync?new Fc(m):new fC(m)};function zy(r){const e=[{},{}];return r==null||r.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Zp(r,e,n,i){if(typeof e=="function"){const[o,l]=zy(i);e=e(n!==void 0?n:r.custom,o,l)}if(typeof e=="string"&&(e=r.variants&&r.variants[e]),typeof e=="function"){const[o,l]=zy(i);e=e(n!==void 0?n:r.custom,o,l)}return e}function eo(r,e,n){const i=r.getProps();return Zp(i,e,n!==void 0?n:i.custom,r)}const Ox=new Set(["width","height","top","left","right","bottom",...ga]),Vy=30,wC=r=>!isNaN(parseFloat(r));class kC{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var l;const o=Wn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Wn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wC(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Fp);const i=this.events[e].add(n);return e==="change"?()=>{i(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vy);return J1(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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function oa(r,e){return new kC(r,e)}const Hh=r=>Array.isArray(r);function SC(r,e,n){r.hasValue(e)?r.getValue(e).set(n):r.addValue(e,oa(n))}function bC(r){return Hh(r)?r[r.length-1]||0:r}function TC(r,e){const n=eo(r,e);let{transitionEnd:i={},transition:o={},...l}=n||{};l={...l,...i};for(const u in l){const c=bC(l[u]);SC(r,u,c)}}const yn=r=>!!(r&&r.getVelocity);function CC(r){return!!(yn(r)&&r.add)}function Yh(r,e){const n=r.getValue("willChange");if(CC(n))return n.add(e);if(!n&&xs.WillChange){const i=new xs.WillChange("auto");r.addValue("willChange",i),i.add(e)}}function Jp(r){return r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const EC="framerAppearId",Lx="data-"+Jp(EC);function Ix(r){return r.props[Lx]}function PC({protectedKeys:r,needsAnimating:e},n){const i=r.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function zx(r,e,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:l,transitionEnd:u,...c}=e;const d=r.getDefaultTransition();l=l?jx(l,d):d;const p=l==null?void 0:l.reduceMotion;i&&(l=i);const m=[],g=o&&r.animationState&&r.animationState.getState()[o];for(const v in c){const x=r.getValue(v,r.latestValues[v]??null),k=c[v];if(k===void 0||g&&PC(g,v))continue;const w={delay:n,...qp(l||{},v)},b=x.get();if(b!==void 0&&!x.isAnimating()&&!Array.isArray(k)&&k===b&&!w.velocity){ut.update(()=>x.set(k));continue}let P=!1;if(window.MotionHandoffAnimation){const M=Ix(r);if(M){const D=window.MotionHandoffAnimation(M,v,ut);D!==null&&(w.startTime=D,P=!0)}}Yh(r,v);const N=p??r.shouldReduceMotion;x.start(Qp(v,x,k,N&&Ox.has(v)?{type:!1}:w,r,P));const A=x.animation;A&&m.push(A)}if(u){const v=()=>ut.update(()=>{u&&TC(r,u)});m.length?Promise.all(m).then(v):v()}return m}function Gh(r,e,n={}){var d;const i=eo(r,e,n.type==="exit"?(d=r.presenceContext)==null?void 0:d.custom:void 0);let{transition:o=r.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const l=i?()=>Promise.all(zx(r,i,n)):()=>Promise.resolve(),u=r.variantChildren&&r.variantChildren.size?(p=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:v}=o;return MC(r,e,p,m,g,v,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[p,m]=c==="beforeChildren"?[l,u]:[u,l];return p().then(()=>m())}else return Promise.all([l(),u(n.delay)])}function MC(r,e,n=0,i=0,o=0,l=1,u){const c=[];for(const d of r.variantChildren)d.notify("AnimationStart",e),c.push(Gh(d,e,{...u,delay:n+(typeof i=="function"?0:i)+Ax(r.variantChildren,d,i,o,l)}).then(()=>d.notify("AnimationComplete",e)));return Promise.all(c)}function NC(r,e,n={}){r.notify("AnimationStart",e);let i;if(Array.isArray(e)){const o=e.map(l=>Gh(r,l,n));i=Promise.all(o)}else if(typeof e=="string")i=Gh(r,e,n);else{const o=typeof e=="function"?eo(r,e,n.custom):e;i=Promise.all(zx(r,o,n))}return i.then(()=>{r.notify("AnimationComplete",e)})}const RC={test:r=>r==="auto",parse:r=>r},Vx=r=>e=>e.test(r),Fx=[ma,xe,vi,as,rT,nT,RC],Fy=r=>Fx.find(Vx(r));function AC(r){return typeof r=="number"?r===0:r!==null?r==="none"||r==="0"||Q1(r):!0}const DC=new Set(["brightness","contrast","saturate","opacity"]);function jC(r){const[e,n]=r.slice(0,-1).split("(");if(e==="drop-shadow")return r;const[i]=n.match($p)||[];if(!i)return r;const o=n.replace(i,"");let l=DC.has(e)?1:0;return i!==n&&(l*=100),e+"("+l+o+")"}const OC=/b([a-z-]*)(.*?)/gu,Xh={...ri,getAnimatableNone:r=>{const e=r.match(OC);return e?e.map(jC).join(" "):r}},Kh={...ri,getAnimatableNone:r=>{const e=ri.parse(r);return ri.createTransformer(r)(e.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},By={...ma,transform:Math.round},LC={rotate:as,rotateX:as,rotateY:as,rotateZ:as,scale:ec,scaleX:ec,scaleY:ec,scaleZ:ec,skew:as,skewX:as,skewY:as,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:Ml,originX:Ey,originY:Ey,originZ:xe},em={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...LC,zIndex:By,fillOpacity:Ml,strokeOpacity:Ml,numOctaves:By},IC={...em,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:Xh,WebkitFilter:Xh,mask:Kh,WebkitMask:Kh},Bx=r=>IC[r],zC=new Set([Xh,Kh]);function Wx(r,e){let n=Bx(r);return zC.has(n)||(n=ri),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const VC=new Set(["auto","none","0"]);function FC(r,e,n){let i=0,o;for(;i{e.getValue(d).set(p)}),this.resolveNoneKeyframes()}}function tm(r,e,n){if(r==null)return[];if(r instanceof EventTarget)return[r];if(typeof r=="string"){const o=document.querySelectorAll(r);return o?Array.from(o):[]}return Array.from(r).filter(i=>i!=null)}const Ux=(r,e)=>e&&typeof r=="number"?e.transform(r):r;function xc(r){return q1(r)&&"offsetHeight"in r&&!("ownerSVGElement"in r)}const{schedule:nm}=cx(queueMicrotask,!1),ni={x:!1,y:!1};function $x(){return ni.x||ni.y}function WC(r){return r==="x"||r==="y"?ni[r]?null:(ni[r]=!0,()=>{ni[r]=!1}):ni.x||ni.y?null:(ni.x=ni.y=!0,()=>{ni.x=ni.y=!1})}function Hx(r,e){const n=tm(r),i=new AbortController,o={passive:!0,...e,signal:i.signal};return[n,o,()=>i.abort()]}function UC(r){return!(r.pointerType==="touch"||$x())}function $C(r,e,n={}){const[i,o,l]=Hx(r,n);return i.forEach(u=>{let c=!1,d=!1,p;const m=()=>{u.removeEventListener("pointerleave",k)},g=b=>{p&&(p(b),p=void 0),m()},v=b=>{c=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),d&&(d=!1,g(b))},x=()=>{c=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},k=b=>{if(b.pointerType!=="touch"){if(c){d=!0;return}g(b)}},w=b=>{if(!UC(b))return;d=!1;const P=e(u,b);typeof P=="function"&&(p=P,u.addEventListener("pointerleave",k,o))};u.addEventListener("pointerenter",w,o),u.addEventListener("pointerdown",x,o)}),l}const Yx=(r,e)=>e?r===e?!0:Yx(r,e.parentElement):!1,rm=r=>r.pointerType==="mouse"?typeof r.button!="number"||r.button<=0:r.isPrimary!==!1,HC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YC(r){return HC.has(r.tagName)||r.isContentEditable===!0}const GC=new Set(["INPUT","SELECT","TEXTAREA"]);function XC(r){return GC.has(r.tagName)||r.isContentEditable===!0}const _c=new WeakSet;function Wy(r){return e=>{e.key==="Enter"&&r(e)}}function sh(r,e){r.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const KC=(r,e)=>{const n=r.currentTarget;if(!n)return;const i=Wy(()=>{if(_c.has(n))return;sh(n,"down");const o=Wy(()=>{sh(n,"up")}),l=()=>sh(n,"cancel");n.addEventListener("keyup",o,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)};function Uy(r){return rm(r)&&!$x()}const $y=new WeakSet;function qC(r,e,n={}){const[i,o,l]=Hx(r,n),u=c=>{const d=c.currentTarget;if(!Uy(c)||$y.has(c))return;_c.add(d),n.stopPropagation&&$y.add(c);const p=e(d,c),m=(x,k)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),_c.has(d)&&_c.delete(d),Uy(x)&&typeof p=="function"&&p(x,{success:k})},g=x=>{m(x,d===window||d===document||n.useGlobalTarget||Yx(d,x.target))},v=x=>{m(x,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",v,o)};return i.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",u,o),xc(c)&&(c.addEventListener("focus",p=>KC(p,o)),!YC(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),l}function im(r){return q1(r)&&"ownerSVGElement"in r}const wc=new WeakMap;let ls;const Gx=(r,e,n)=>(i,o)=>o&&o[0]?o[0][r+"Size"]:im(i)&&"getBBox"in i?i.getBBox()[e]:i[n],QC=Gx("inline","width","offsetWidth"),ZC=Gx("block","height","offsetHeight");function JC({target:r,borderBoxSize:e}){var n;(n=wc.get(r))==null||n.forEach(i=>{i(r,{get width(){return QC(r,e)},get height(){return ZC(r,e)}})})}function eE(r){r.forEach(JC)}function tE(){typeof ResizeObserver>"u"||(ls=new ResizeObserver(eE))}function nE(r,e){ls||tE();const n=tm(r);return n.forEach(i=>{let o=wc.get(i);o||(o=new Set,wc.set(i,o)),o.add(e),ls==null||ls.observe(i)}),()=>{n.forEach(i=>{const o=wc.get(i);o==null||o.delete(e),o!=null&&o.size||ls==null||ls.unobserve(i)})}}const kc=new Set;let Go;function rE(){Go=()=>{const r={get width(){return window.innerWidth},get height(){return window.innerHeight}};kc.forEach(e=>e(r))},window.addEventListener("resize",Go)}function iE(r){return kc.add(r),Go||rE(),()=>{kc.delete(r),!kc.size&&typeof Go=="function"&&(window.removeEventListener("resize",Go),Go=void 0)}}function Hy(r,e){return typeof r=="function"?iE(r):nE(r,e)}function sE(r){return im(r)&&r.tagName==="svg"}const oE=[...Fx,$t,ri],aE=r=>oE.find(Vx(r)),Yy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xo=()=>({x:Yy(),y:Yy()}),Gy=()=>({min:0,max:0}),nn=()=>({x:Gy(),y:Gy()}),lE=new WeakMap;function of(r){return r!==null&&typeof r=="object"&&typeof r.start=="function"}function Nl(r){return typeof r=="string"||Array.isArray(r)}const sm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],om=["initial",...sm];function af(r){return of(r.animate)||om.some(e=>Nl(r[e]))}function Xx(r){return!!(af(r)||r.variants)}function uE(r,e,n){for(const i in e){const o=e[i],l=n[i];if(yn(o))r.addValue(i,o);else if(yn(l))r.addValue(i,oa(o,{owner:r}));else if(l!==o)if(r.hasValue(i)){const u=r.getValue(i);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=r.getStaticValue(i);r.addValue(i,oa(u!==void 0?u:o,{owner:r}))}}for(const i in n)e[i]===void 0&&r.removeValue(i);return e}const qh={current:null},Kx={current:!1},cE=typeof window<"u";function fE(){if(Kx.current=!0,!!cE)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),e=()=>qh.current=r.matches;r.addEventListener("change",e),e()}else qh.current=!1}const Xy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Bc={};function qx(r){Bc=r}function dE(){return Bc}class hE{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:o,skipAnimations:l,blockInitialAnimation:u,visualState:c},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Kp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 x=Wn.now();this.renderScheduledAtthis.bindToMotionValue(l,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Kx.current||fE(),this.shouldReduceMotion=qh.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),_s(this.notifyUpdate),_s(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Rx.has(e)&&this.current instanceof HTMLElement){const{factory:u,keyframes:c,times:d,ease:p,duration:m}=n.accelerate,g=new Mx({element:this.current,name:e,keyframes:c,times:d,ease:p,duration:Cr(m)}),v=u(g);this.valueSubscriptions.set(e,()=>{v(),g.cancel()});return}const i=ya.has(e);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&ut.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Bc){const n=Bc[e];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[e]&&o&&i(this.props)&&(this.features[e]=new o(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nn()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=oa(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(K1(i)||Q1(i))?i=parseFloat(i):!aE(i)&&ri.test(n)&&(i=Wx(e,n)),this.setBaseTarget(e,yn(i)?i.get():i)),yn(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var l;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const u=Zp(this.props,n,(l=this.presenceContext)==null?void 0:l.custom);u&&(i=u[e])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!yn(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Fp),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){nm.render(this.render)}}class Qx extends hE{constructor(){super(...arguments),this.KeyframeResolver=BC}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const i=e.style;return i?i[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;yn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Ts{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Zx({top:r,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:r,max:i}}}function pE({x:r,y:e}){return{top:e.min,right:r.max,bottom:e.max,left:r.min}}function mE(r,e){if(!e)return r;const n=e({x:r.left,y:r.top}),i=e({x:r.right,y:r.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function oh(r){return r===void 0||r===1}function Qh({scale:r,scaleX:e,scaleY:n}){return!oh(r)||!oh(e)||!oh(n)}function Hs(r){return Qh(r)||Jx(r)||r.z||r.rotate||r.rotateX||r.rotateY||r.skewX||r.skewY}function Jx(r){return Ky(r.x)||Ky(r.y)}function Ky(r){return r&&r!=="0%"}function Wc(r,e,n){const i=r-n,o=e*i;return n+o}function qy(r,e,n,i,o){return o!==void 0&&(r=Wc(r,o,i)),Wc(r,n,i)+e}function Zh(r,e=0,n=1,i,o){r.min=qy(r.min,e,n,i,o),r.max=qy(r.max,e,n,i,o)}function e_(r,{x:e,y:n}){Zh(r.x,e.translate,e.scale,e.originPoint),Zh(r.y,n.translate,n.scale,n.originPoint)}const Qy=.999999999999,Zy=1.0000000000001;function gE(r,e,n,i=!1){var c;const o=n.length;if(!o)return;e.x=e.y=1;let l,u;for(let d=0;dQy&&(e.x=1),e.yQy&&(e.y=1)}function pi(r,e){r.min+=e,r.max+=e}function Jy(r,e,n,i,o=.5){const l=vt(r.min,r.max,o);Zh(r,e,n,l,i)}function ev(r,e){return typeof r=="string"?parseFloat(r)/100*(e.max-e.min):r}function Sc(r,e,n){const i=n??r;Jy(r.x,ev(e.x,i.x),e.scaleX,e.scale,e.originX),Jy(r.y,ev(e.y,i.y),e.scaleY,e.scale,e.originY)}function t_(r,e){return Zx(mE(r.getBoundingClientRect(),e))}function yE(r,e,n){const i=t_(r,n),{scroll:o}=e;return o&&(pi(i.x,o.offset.x),pi(i.y,o.offset.y)),i}const vE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xE=ga.length;function _E(r,e,n){let i="",o=!0;for(let l=0;l{if(!e.target)return r;if(typeof r=="string")if(xe.test(r))r=parseFloat(r);else return r;const n=tv(r,e.target.x),i=tv(r,e.target.y);return`${n}% ${i}%`}},wE={correct:(r,{treeScale:e,projectionDelta:n})=>{const i=r,o=ri.parse(r);if(o.length>5)return i;const l=ri.createTransformer(r),u=typeof o[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;o[0+u]/=c,o[1+u]/=d;const p=vt(c,d,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),l(o)}},Jh={borderRadius:{...Ja,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ja,borderTopRightRadius:Ja,borderBottomLeftRadius:Ja,borderBottomRightRadius:Ja,boxShadow:wE};function r_(r,{layout:e,layoutId:n}){return ya.has(r)||r.startsWith("origin")||(e||n!==void 0)&&(!!Jh[r]||r==="opacity")}function lm(r,e,n){var u;const i=r.style,o=e==null?void 0:e.style,l={};if(!i)return l;for(const c in i)(yn(i[c])||o&&yn(o[c])||r_(c,r)||((u=n==null?void 0:n.getValue(c))==null?void 0:u.liveStyle)!==void 0)&&(l[c]=i[c]);return l}function kE(r){return window.getComputedStyle(r)}class SE extends Qx{constructor(){super(...arguments),this.type="html",this.renderInstance=n_}readValueFromInstance(e,n){var i;if(ya.has(n))return(i=this.projection)!=null&&i.isProjecting?Vh(n):UT(e,n);{const o=kE(e),l=(dx(n)?o.getPropertyValue(n):o[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(e,{transformPagePoint:n}){return t_(e,n)}build(e,n,i){am(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return lm(e,n,i)}}const bE={offset:"stroke-dashoffset",array:"stroke-dasharray"},TE={offset:"strokeDashoffset",array:"strokeDasharray"};function CE(r,e,n=1,i=0,o=!0){r.pathLength=1;const l=o?bE:TE;r[l.offset]=`${-i}`,r[l.array]=`${e} ${n}`}const EE=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function i_(r,{attrX:e,attrY:n,attrScale:i,pathLength:o,pathSpacing:l=1,pathOffset:u=0,...c},d,p,m){if(am(r,c,p),d){r.style.viewBox&&(r.attrs.viewBox=r.style.viewBox);return}r.attrs=r.style,r.style={};const{attrs:g,style:v}=r;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete g.transformBox);for(const x of EE)g[x]!==void 0&&(v[x]=g[x],delete g[x]);e!==void 0&&(g.x=e),n!==void 0&&(g.y=n),i!==void 0&&(g.scale=i),o!==void 0&&CE(g,o,l,u,!1)}const s_=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"]),o_=r=>typeof r=="string"&&r.toLowerCase()==="svg";function PE(r,e,n,i){n_(r,e,void 0,i);for(const o in e.attrs)r.setAttribute(s_.has(o)?o:Jp(o),e.attrs[o])}function a_(r,e,n){const i=lm(r,e,n);for(const o in r)if(yn(r[o])||yn(e[o])){const l=ga.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[l]=r[o]}return i}class ME extends Qx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nn}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ya.has(n)){const i=Bx(n);return i&&i.default||0}return n=s_.has(n)?n:Jp(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return a_(e,n,i)}build(e,n,i){i_(e,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,n,i,o){PE(e,n,i,o)}mount(e){this.isSVGTag=o_(e.tagName),super.mount(e)}}const NE=om.length;function l_(r){if(!r)return;if(!r.isControllingVariants){const n=r.parent?l_(r.parent)||{}:{};return r.props.initial!==void 0&&(n.initial=r.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:i})=>NC(r,n,i)))}function jE(r){let e=DE(r),n=nv(),i=!0,o=!1;const l=p=>(m,g)=>{var x;const v=eo(r,g,p==="exit"?(x=r.presenceContext)==null?void 0:x.custom:void 0);if(v){const{transition:k,transitionEnd:w,...b}=v;m={...m,...b,...w}}return m};function u(p){e=p(r)}function c(p){const{props:m}=r,g=l_(r.parent)||{},v=[],x=new Set;let k={},w=1/0;for(let P=0;Pw&&D,z=!1;const re=Array.isArray(M)?M:[M];let G=re.reduce(l(N),{});H===!1&&(G={});const{prevResolvedValues:de={}}=A,ae={...de,...G},le=L=>{B=!0,x.has(L)&&(z=!0,x.delete(L)),A.needsAnimating[L]=!0;const X=r.getValue(L);X&&(X.liveStyle=!1)};for(const L in ae){const X=G[L],T=de[L];if(k.hasOwnProperty(L))continue;let E=!1;Hh(X)&&Hh(T)?E=!u_(X,T):E=X!==T,E?X!=null?le(L):x.add(L):X!==void 0&&x.has(L)?le(L):A.protectedKeys[L]=!0}A.prevProp=M,A.prevResolvedValues=G,A.isActive&&(k={...k,...G}),(i||o)&&r.blockInitialAnimation&&(B=!1);const K=I&&O;B&&(!K||z)&&v.push(...re.map(L=>{const X={type:N};if(typeof L=="string"&&(i||o)&&!K&&r.manuallyAnimateOnMount&&r.parent){const{parent:T}=r,E=eo(T,L);if(T.enteringChildren&&E){const{delayChildren:W}=E.transition||{};X.delay=Ax(T.enteringChildren,r,W)}}return{animation:L,options:X}}))}if(x.size){const P={};if(typeof m.initial!="boolean"){const N=eo(r,Array.isArray(m.initial)?m.initial[0]:m.initial);N&&N.transition&&(P.transition=N.transition)}x.forEach(N=>{const A=r.getBaseTarget(N),M=r.getValue(N);M&&(M.liveStyle=!0),P[N]=A??null}),v.push({animation:P})}let b=!!v.length;return i&&(m.initial===!1||m.initial===m.animate)&&!r.manuallyAnimateOnMount&&(b=!1),i=!1,o=!1,b?e(v):Promise.resolve()}function d(p,m){var v;if(n[p].isActive===m)return Promise.resolve();(v=r.variantChildren)==null||v.forEach(x=>{var k;return(k=x.animationState)==null?void 0:k.setActive(p,m)}),n[p].isActive=m;const g=c(p);for(const x in n)n[x].protectedKeys={};return g}return{animateChanges:c,setActive:d,setAnimateFunction:u,getState:()=>n,reset:()=>{n=nv(),o=!0}}}function OE(r,e){return typeof e=="string"?e!==r:Array.isArray(e)?!u_(e,r):!1}function Ws(r=!1){return{isActive:r,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nv(){return{animate:Ws(!0),whileInView:Ws(),whileHover:Ws(),whileTap:Ws(),whileDrag:Ws(),whileFocus:Ws(),exit:Ws()}}function ep(r,e){r.min=e.min,r.max=e.max}function ei(r,e){ep(r.x,e.x),ep(r.y,e.y)}function rv(r,e){r.translate=e.translate,r.scale=e.scale,r.originPoint=e.originPoint,r.origin=e.origin}const c_=1e-4,LE=1-c_,IE=1+c_,f_=.01,zE=0-f_,VE=0+f_;function Un(r){return r.max-r.min}function FE(r,e,n){return Math.abs(r-e)<=n}function iv(r,e,n,i=.5){r.origin=i,r.originPoint=vt(e.min,e.max,r.origin),r.scale=Un(n)/Un(e),r.translate=vt(n.min,n.max,r.origin)-r.originPoint,(r.scale>=LE&&r.scale<=IE||isNaN(r.scale))&&(r.scale=1),(r.translate>=zE&&r.translate<=VE||isNaN(r.translate))&&(r.translate=0)}function hl(r,e,n,i){iv(r.x,e.x,n.x,i?i.originX:void 0),iv(r.y,e.y,n.y,i?i.originY:void 0)}function sv(r,e,n,i=0){const o=i?vt(n.min,n.max,i):n.min;r.min=o+e.min,r.max=r.min+Un(e)}function BE(r,e,n,i){sv(r.x,e.x,n.x,i==null?void 0:i.x),sv(r.y,e.y,n.y,i==null?void 0:i.y)}function ov(r,e,n,i=0){const o=i?vt(n.min,n.max,i):n.min;r.min=e.min-o,r.max=r.min+Un(e)}function Uc(r,e,n,i){ov(r.x,e.x,n.x,i==null?void 0:i.x),ov(r.y,e.y,n.y,i==null?void 0:i.y)}function av(r,e,n,i,o){return r-=e,r=Wc(r,1/n,i),o!==void 0&&(r=Wc(r,1/o,i)),r}function WE(r,e=0,n=1,i=.5,o,l=r,u=r){if(vi.test(e)&&(e=parseFloat(e),e=vt(u.min,u.max,e/100)-u.min),typeof e!="number")return;let c=vt(l.min,l.max,i);r===l&&(c-=e),r.min=av(r.min,e,n,c,o),r.max=av(r.max,e,n,c,o)}function lv(r,e,[n,i,o],l,u){WE(r,e[n],e[i],e[o],e.scale,l,u)}const UE=["x","scaleX","originX"],$E=["y","scaleY","originY"];function uv(r,e,n,i){lv(r.x,e,UE,n?n.x:void 0,i?i.x:void 0),lv(r.y,e,$E,n?n.y:void 0,i?i.y:void 0)}function cv(r){return r.translate===0&&r.scale===1}function d_(r){return cv(r.x)&&cv(r.y)}function fv(r,e){return r.min===e.min&&r.max===e.max}function HE(r,e){return fv(r.x,e.x)&&fv(r.y,e.y)}function dv(r,e){return Math.round(r.min)===Math.round(e.min)&&Math.round(r.max)===Math.round(e.max)}function h_(r,e){return dv(r.x,e.x)&&dv(r.y,e.y)}function hv(r){return Un(r.x)/Un(r.y)}function pv(r,e){return r.translate===e.translate&&r.scale===e.scale&&r.originPoint===e.originPoint}function fi(r){return[r("x"),r("y")]}function YE(r,e,n){let i="";const o=r.x.translate/e.x,l=r.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((o||l||u)&&(i=`translate3d(${o}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:m,rotateX:g,rotateY:v,skewX:x,skewY:k}=n;p&&(i=`perspective(${p}px) ${i}`),m&&(i+=`rotate(${m}deg) `),g&&(i+=`rotateX(${g}deg) `),v&&(i+=`rotateY(${v}deg) `),x&&(i+=`skewX(${x}deg) `),k&&(i+=`skewY(${k}deg) `)}const c=r.x.scale*e.x,d=r.y.scale*e.y;return(c!==1||d!==1)&&(i+=`scale(${c}, ${d})`),i||"none"}const p_=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],GE=p_.length,mv=r=>typeof r=="string"?parseFloat(r):r,gv=r=>typeof r=="number"||xe.test(r);function XE(r,e,n,i,o,l){o?(r.opacity=vt(0,n.opacity??1,KE(i)),r.opacityExit=vt(e.opacity??1,0,qE(i))):l&&(r.opacity=vt(e.opacity??1,n.opacity??1,i));for(let u=0;uie?1:n(Pl(r,e,i))}function QE(r,e,n){const i=yn(r)?r:oa(r);return i.start(Qp("",i,e,n)),i.animation}function Rl(r,e,n,i={passive:!0}){return r.addEventListener(e,n,i),()=>r.removeEventListener(e,n)}const ZE=(r,e)=>r.depth-e.depth;class JE{constructor(){this.children=[],this.isDirty=!1}add(e){zp(this.children,e),this.isDirty=!0}remove(e){Lc(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ZE),this.isDirty=!1,this.children.forEach(e)}}function eP(r,e){const n=Wn.now(),i=({timestamp:o})=>{const l=o-n;l>=e&&(_s(i),r(l-e))};return ut.setup(i,!0),()=>_s(i)}function bc(r){return yn(r)?r.get():r}class tP{constructor(){this.members=[]}add(e){zp(this.members,e);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===e||i===this.lead||i===this.prevLead)continue;const o=i.instance;(!o||o.isConnected===!1)&&!i.snapshot&&(Lc(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(Lc(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let i=this.members.indexOf(e)-1;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1&&((n=o.instance)==null?void 0:n.isConnected)!==!1)return this.promote(o),!0}return!1}promote(e,n){var o;const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();const{layoutDependency:l}=i.options,{layoutDependency:u}=e.options;(l===void 0||l!==u)&&(e.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),(o=e.root)!=null&&o.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,i,o,l,u;(i=(n=e.options).onExitComplete)==null||i.call(n),(u=(o=e.resumingFrom)==null?void 0:(l=o.options).onExitComplete)==null||u.call(l)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const Tc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ah=["","X","Y","Z"],nP=1e3;let rP=0;function lh(r,e,n,i){const{latestValues:o}=e;o[r]&&(n[r]=o[r],e.setStaticValue(r,0),i&&(i[r]=0))}function g_(r){if(r.hasCheckedOptimisedAppear=!0,r.root===r)return;const{visualElement:e}=r.options;if(!e)return;const n=Ix(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:l}=r.options;window.MotionCancelOptimisedAnimation(n,"transform",ut,!(o||l))}const{parent:i}=r;i&&!i.hasCheckedOptimisedAppear&&g_(i)}function y_({attachResizeListener:r,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(u={},c=e==null?void 0:e()){this.id=rP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oP),this.nodes.forEach(dP),this.nodes.forEach(hP),this.nodes.forEach(aP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;ut.read(()=>{g=window.innerWidth}),r(u,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,m&&m(),m=eP(v,250),Tc.hasAnimatedSinceResize&&(Tc.hasAnimatedSinceResize=!1,this.nodes.forEach(_v)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||p.getDefaultTransition()||vP,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=p.getProps(),P=!this.targetLayout||!h_(this.targetLayout,x),N=!g&&v;if(this.options.layoutRoot||this.resumeFrom||N||g&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...qp(k,"layout"),onPlay:w,onComplete:b};(p.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(m,N)}else g||_v(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_s(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(pP),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&g_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Un(this.snapshot.measuredBox.x)&&!Un(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const D=M/1e3;wv(g.x,u.x,D),wv(g.y,u.y,D),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gP(this.relativeTarget,this.relativeTargetOrigin,v,D),A&&HE(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=nn()),ei(A,this.relativeTarget)),w&&(this.animationValues=m,XE(m,p,this.latestValues,D,N,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=D},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var c,d,p;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(p=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||p.stop(),this.pendingAnimation&&(_s(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{Tc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=oa(0)),this.motionValue.jump(0,!1),this.currentAnimation=QE(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nP),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:m}=u;if(!(!c||!d||!p)){if(this!==u&&this.layout&&p&&v_(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||nn();const g=Un(this.layout.layoutBox.x);d.x.min=u.target.x.min,d.x.max=d.x.min+g;const v=Un(this.layout.layoutBox.y);d.y.min=u.target.y.min,d.y.max=d.y.min+v}ei(c,d),Sc(c,m),hl(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(u,c){this.sharedNodes.has(u)||this.sharedNodes.set(u,new tP),this.sharedNodes.get(u).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var c;const{layoutId:u}=this.options;return u?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:u}=this.options;return u?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),u&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let c=!1;const{latestValues:d}=u;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const p={};d.z&&lh("z",u,p,this.animationValues);for(let m=0;m{var c;return(c=u.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(vv),this.root.sharedNodes.clear()}}}function iP(r){r.updateLayout()}function sP(r){var n;const e=((n=r.resumeFrom)==null?void 0:n.snapshot)||r.snapshot;if(r.isLead()&&r.layout&&e&&r.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:o}=r.layout,{animationType:l}=r.options,u=e.source!==r.layout.source;if(l==="size")fi(g=>{const v=u?e.measuredBox[g]:e.layoutBox[g],x=Un(v);v.min=i[g].min,v.max=v.min+x});else if(l==="x"||l==="y"){const g=l==="x"?"y":"x";ep(u?e.measuredBox[g]:e.layoutBox[g],i[g])}else v_(l,e.layoutBox,i)&&fi(g=>{const v=u?e.measuredBox[g]:e.layoutBox[g],x=Un(i[g]);v.max=v.min+x,r.relativeTarget&&!r.currentAnimation&&(r.isProjectionDirty=!0,r.relativeTarget[g].max=r.relativeTarget[g].min+x)});const c=Xo();hl(c,i,e.layoutBox);const d=Xo();u?hl(d,r.applyTransform(o,!0),e.measuredBox):hl(d,i,e.layoutBox);const p=!d_(c);let m=!1;if(!r.resumeFrom){const g=r.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:x}=g;if(v&&x){const k=r.options.layoutAnchor||void 0,w=nn();Uc(w,e.layoutBox,v.layoutBox,k);const b=nn();Uc(b,i,x.layoutBox,k),h_(w,b)||(m=!0),g.options.layoutRoot&&(r.relativeTarget=b,r.relativeTargetOrigin=w,r.relativeParent=g)}}}r.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeLayoutChanged:m})}else if(r.isLead()){const{onExitComplete:i}=r.options;i&&i()}r.options.transition=void 0}function oP(r){r.parent&&(r.isProjecting()||(r.isProjectionDirty=r.parent.isProjectionDirty),r.isSharedProjectionDirty||(r.isSharedProjectionDirty=!!(r.isProjectionDirty||r.parent.isProjectionDirty||r.parent.isSharedProjectionDirty)),r.isTransformDirty||(r.isTransformDirty=r.parent.isTransformDirty))}function aP(r){r.isProjectionDirty=r.isSharedProjectionDirty=r.isTransformDirty=!1}function lP(r){r.clearSnapshot()}function vv(r){r.clearMeasurements()}function uP(r){r.isLayoutDirty=!0,r.updateLayout()}function xv(r){r.isLayoutDirty=!1}function cP(r){r.isAnimationBlocked&&r.layout&&!r.isLayoutDirty&&(r.snapshot=r.layout,r.isLayoutDirty=!0)}function fP(r){const{visualElement:e}=r.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),r.resetTransform()}function _v(r){r.finishAnimation(),r.targetDelta=r.relativeTarget=r.target=void 0,r.isProjectionDirty=!0}function dP(r){r.resolveTargetDelta()}function hP(r){r.calcProjection()}function pP(r){r.resetSkewAndRotation()}function mP(r){r.removeLeadSnapshot()}function wv(r,e,n){r.translate=vt(e.translate,0,n),r.scale=vt(e.scale,1,n),r.origin=e.origin,r.originPoint=e.originPoint}function kv(r,e,n,i){r.min=vt(e.min,n.min,i),r.max=vt(e.max,n.max,i)}function gP(r,e,n,i){kv(r.x,e.x,n.x,i),kv(r.y,e.y,n.y,i)}function yP(r){return r.animationValues&&r.animationValues.opacityExit!==void 0}const vP={duration:.45,ease:[.4,0,.1,1]},Sv=r=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(r),bv=Sv("applewebkit/")&&!Sv("chrome/")?Math.round:$r;function Tv(r){r.min=bv(r.min),r.max=bv(r.max)}function xP(r){Tv(r.x),Tv(r.y)}function v_(r,e,n){return r==="position"||r==="preserve-aspect"&&!FE(hv(e),hv(n),.2)}function _P(r){var e;return r!==r.root&&((e=r.scroll)==null?void 0:e.wasRoot)}const wP=y_({attachResizeListener:(r,e)=>Rl(r,"resize",e),measureScroll:()=>{var r,e;return{x:document.documentElement.scrollLeft||((r=document.body)==null?void 0:r.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),uh={current:void 0},x_=y_({measureScroll:r=>({x:r.scrollLeft,y:r.scrollTop}),defaultParent:()=>{if(!uh.current){const r=new wP({});r.mount(window),r.setOptions({layoutScroll:!0}),uh.current=r}return uh.current},resetTransform:(r,e)=>{r.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:r=>window.getComputedStyle(r).position==="fixed"}),um=Y.createContext({transformPagePoint:r=>r,isStatic:!1,reducedMotion:"never"});function Cv(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function kP(...r){return e=>{let n=!1;const i=r.map(o=>{const l=Cv(o,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o{const{width:x,height:k,top:w,left:b,right:P,bottom:N}=d.current;if(e||l===!1||!c.current||!x||!k)return;const A=n==="left"?`left: ${b}`:`right: ${P}`,M=i==="bottom"?`bottom: ${N}`:`top: ${w}`;c.current.dataset.motionPopId=u;const D=document.createElement("style");p&&(D.nonce=p);const H=o??document.head;return H.appendChild(D),D.sheet&&D.sheet.insertRule(` [data-motion-pop-id="${u}"] { position: absolute !important; width: ${x}px !important; height: ${k}px !important; ${A}px !important; ${M}px !important; } `),()=>{var I;(I=c.current)==null||I.removeAttribute("data-motion-pop-id"),H.contains(D)&&H.removeChild(D)}},[e]),S.jsx(bP,{isPresent:e,childRef:c,sizeRef:d,pop:l,children:l===!1?r:Y.cloneElement(r,{ref:g})})}const CP=({children:r,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:l,mode:u,anchorX:c,anchorY:d,root:p})=>{const m=Ip(EP),g=Y.useId();let v=!0,x=Y.useMemo(()=>(v=!1,{id:g,initial:e,isPresent:n,custom:o,onExitComplete:k=>{m.set(k,!0);for(const w of m.values())if(!w)return;i&&i()},register:k=>(m.set(k,!1),()=>m.delete(k))}),[n,m,i]);return l&&v&&(x={...x}),Y.useMemo(()=>{m.forEach((k,w)=>m.set(w,!1))},[n]),Y.useEffect(()=>{!n&&!m.size&&i&&i()},[n]),r=S.jsx(TP,{pop:u==="popLayout",isPresent:n,anchorX:c,anchorY:d,root:p,children:r}),S.jsx(rf.Provider,{value:x,children:r})};function EP(){return new Map}function __(r=!0){const e=Y.useContext(rf);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=e,l=Y.useId();Y.useEffect(()=>{if(r)return o(l)},[r]);const u=Y.useCallback(()=>r&&i&&i(l),[l,i,r]);return!n&&i?[!1,u]:[!0]}const tc=r=>r.key||"";function Ev(r){const e=[];return Y.Children.forEach(r,n=>{Y.isValidElement(n)&&e.push(n)}),e}const pl=({children:r,custom:e,initial:n=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:l="sync",propagate:u=!1,anchorX:c="left",anchorY:d="top",root:p})=>{const[m,g]=__(u),v=Y.useMemo(()=>Ev(r),[r]),x=u&&!m?[]:v.map(tc),k=Y.useRef(!0),w=Y.useRef(v),b=Ip(()=>new Map),P=Y.useRef(new Set),[N,A]=Y.useState(v),[M,D]=Y.useState(v);X1(()=>{k.current=!1,w.current=v;for(let O=0;O{const B=tc(O),z=u&&!m?!1:v===M||x.includes(B),re=()=>{if(P.current.has(B))return;if(b.has(B))P.current.add(B),b.set(B,!0);else return;let G=!0;b.forEach(de=>{de||(G=!1)}),G&&(I==null||I(),D(w.current),u&&(g==null||g()),i&&i())};return S.jsx(CP,{isPresent:z,initial:!k.current||n?void 0:!1,custom:e,presenceAffectsLayout:o,mode:l,root:p,onExitComplete:z?void 0:re,anchorX:c,anchorY:d,children:O},B)})})},w_=Y.createContext({strict:!1}),Pv={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"]};let Mv=!1;function PP(){if(Mv)return;const r={};for(const e in Pv)r[e]={isEnabled:n=>Pv[e].some(i=>!!n[i])};qx(r),Mv=!0}function k_(){return PP(),dE()}function MP(r){const e=k_();for(const n in r)e[n]={...e[n],...r[n]};qx(e)}const NP=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","propagate","ignoreStrict","viewport"]);function $c(r){return r.startsWith("while")||r.startsWith("drag")&&r!=="draggable"||r.startsWith("layout")||r.startsWith("onTap")||r.startsWith("onPan")||r.startsWith("onLayout")||NP.has(r)}let S_=r=>!$c(r);function RP(r){typeof r=="function"&&(S_=e=>e.startsWith("on")?!$c(e):r(e))}try{RP(require("@emotion/is-prop-valid").default)}catch{}function AP(r,e,n){const i={};for(const o in r)o==="values"&&typeof r.values=="object"||yn(r[o])||(S_(o)||n===!0&&$c(o)||!e&&!$c(o)||r.draggable&&o.startsWith("onDrag"))&&(i[o]=r[o]);return i}const lf=Y.createContext({});function DP(r,e){if(af(r)){const{initial:n,animate:i}=r;return{initial:n===!1||Nl(n)?n:void 0,animate:Nl(i)?i:void 0}}return r.inherit!==!1?e:{}}function jP(r){const{initial:e,animate:n}=DP(r,Y.useContext(lf));return Y.useMemo(()=>({initial:e,animate:n}),[Nv(e),Nv(n)])}function Nv(r){return Array.isArray(r)?r.join(" "):r}const cm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function b_(r,e,n){for(const i in e)!yn(e[i])&&!r_(i,n)&&(r[i]=e[i])}function OP({transformTemplate:r},e){return Y.useMemo(()=>{const n=cm();return am(n,e,r),Object.assign({},n.vars,n.style)},[e])}function LP(r,e){const n=r.style||{},i={};return b_(i,n,r),Object.assign(i,OP(r,e)),i}function IP(r,e){const n={},i=LP(r,e);return r.drag&&r.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`),r.tabIndex===void 0&&(r.onTap||r.onTapStart||r.whileTap)&&(n.tabIndex=0),n.style=i,n}const T_=()=>({...cm(),attrs:{}});function zP(r,e,n,i){const o=Y.useMemo(()=>{const l=T_();return i_(l,e,o_(i),r.transformTemplate,r.style),{...l.attrs,style:{...l.style}}},[e]);if(r.style){const l={};b_(l,r.style,r),o.style={...l,...o.style}}return o}const VP=["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 fm(r){return typeof r!="string"||r.includes("-")?!1:!!(VP.indexOf(r)>-1||/[A-Z]/u.test(r))}function FP(r,e,n,{latestValues:i},o,l=!1,u){const d=(u??fm(r)?zP:IP)(e,i,o,r),p=AP(e,typeof r=="string",l),m=r!==Y.Fragment?{...p,...d,ref:n}:{},{children:g}=e,v=Y.useMemo(()=>yn(g)?g.get():g,[g]);return Y.createElement(r,{...m,children:v})}function BP({scrapeMotionValuesFromProps:r,createRenderState:e},n,i,o){return{latestValues:WP(n,i,o,r),renderState:e()}}function WP(r,e,n,i){const o={},l=i(r,{});for(const v in l)o[v]=bc(l[v]);let{initial:u,animate:c}=r;const d=af(r),p=Xx(r);e&&p&&!d&&r.inherit!==!1&&(u===void 0&&(u=e.initial),c===void 0&&(c=e.animate));let m=n?n.initial===!1:!1;m=m||u===!1;const g=m?c:u;if(g&&typeof g!="boolean"&&!of(g)){const v=Array.isArray(g)?g:[g];for(let x=0;x(e,n)=>{const i=Y.useContext(lf),o=Y.useContext(rf),l=()=>BP(r,e,i,o);return n?l():Ip(l)},UP=C_({scrapeMotionValuesFromProps:lm,createRenderState:cm}),$P=C_({scrapeMotionValuesFromProps:a_,createRenderState:T_}),HP=Symbol.for("motionComponentSymbol");function YP(r,e,n){const i=Y.useRef(n);Y.useInsertionEffect(()=>{i.current=n});const o=Y.useRef(null);return Y.useCallback(l=>{var c;l&&((c=r.onMount)==null||c.call(r,l));const u=i.current;if(typeof u=="function")if(l){const d=u(l);typeof d=="function"&&(o.current=d)}else o.current?(o.current(),o.current=null):u(l);else u&&(u.current=l);e&&(l?e.mount(l):e.unmount())},[e])}const E_=Y.createContext({});function Uo(r){return r&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"current")}function GP(r,e,n,i,o,l){var A,M;const{visualElement:u}=Y.useContext(lf),c=Y.useContext(w_),d=Y.useContext(rf),p=Y.useContext(um),m=p.reducedMotion,g=p.skipAnimations,v=Y.useRef(null),x=Y.useRef(!1);i=i||c.renderer,!v.current&&i&&(v.current=i(r,{visualState:e,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:m,skipAnimations:g,isSVG:l}),x.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const k=v.current,w=Y.useContext(E_);k&&!k.projection&&o&&(k.type==="html"||k.type==="svg")&&XP(v.current,n,o,w);const b=Y.useRef(!1);Y.useInsertionEffect(()=>{k&&b.current&&k.update(n,d)});const P=n[Lx],N=Y.useRef(!!P&&typeof window<"u"&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,P))&&((M=window.MotionHasOptimisedAnimation)==null?void 0:M.call(window,P)));return X1(()=>{x.current=!0,k&&(b.current=!0,window.MotionIsMounted=!0,k.updateFeatures(),k.scheduleRenderMicrotask(),N.current&&k.animationState&&k.animationState.animateChanges())}),Y.useEffect(()=>{k&&(!N.current&&k.animationState&&k.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var D;(D=window.MotionHandoffMarkAsComplete)==null||D.call(window,P)}),N.current=!1),k.enteringChildren=void 0)}),k}function XP(r,e,n,i){const{layoutId:o,layout:l,drag:u,dragConstraints:c,layoutScroll:d,layoutRoot:p,layoutAnchor:m,layoutCrossfade:g}=e;r.projection=new n(r.latestValues,e["data-framer-portal-id"]?void 0:P_(r.parent)),r.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!u||c&&Uo(c),visualElement:r,animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,crossfade:g,layoutScroll:d,layoutRoot:p,layoutAnchor:m})}function P_(r){if(r)return r.options.allowProjection!==!1?r.projection:P_(r.parent)}function ch(r,{forwardMotionProps:e=!1,type:n}={},i,o){i&&MP(i);const l=n?n==="svg":fm(r),u=l?$P:UP;function c(p,m){let g;const v={...Y.useContext(um),...p,layoutId:KP(p)},{isStatic:x}=v,k=jP(p),w=u(p,x);if(!x&&typeof window<"u"){qP();const b=QP(v);g=b.MeasureLayout,k.visualElement=GP(r,w,v,o,b.ProjectionNode,l)}return S.jsxs(lf.Provider,{value:k,children:[g&&k.visualElement?S.jsx(g,{visualElement:k.visualElement,...v}):null,FP(r,p,YP(w,k.visualElement,m),w,x,e,l)]})}c.displayName=`motion.${typeof r=="string"?r:`create(${r.displayName??r.name??""})`}`;const d=Y.forwardRef(c);return d[HP]=r,d}function KP({layoutId:r}){const e=Y.useContext(Lp).id;return e&&r!==void 0?e+"-"+r:r}function qP(r,e){Y.useContext(w_).strict}function QP(r){const e=k_(),{drag:n,layout:i}=e;if(!n&&!i)return{};const o={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(r)||i!=null&&i.isEnabled(r)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function ZP(r,e){if(typeof Proxy>"u")return ch;const n=new Map,i=(l,u)=>ch(l,u,r,e),o=(l,u)=>i(l,u);return new Proxy(o,{get:(l,u)=>u==="create"?i:(n.has(u)||n.set(u,ch(u,void 0,r,e)),n.get(u))})}const JP=(r,e)=>e.isSVG??fm(r)?new ME(e):new SE(e,{allowProjection:r!==Y.Fragment});class e5 extends Ts{constructor(e){super(e),e.animationState||(e.animationState=jE(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();of(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let t5=0;class n5 extends Ts{constructor(){super(...arguments),this.id=t5++,this.isExitComplete=!1}update(){var l;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&i===!1){if(this.isExitComplete){const{initial:u,custom:c}=this.node.getProps();if(typeof u=="string"){const d=eo(this.node,u,c);if(d){const{transition:p,transitionEnd:m,...g}=d;for(const v in g)(l=this.node.getValue(v))==null||l.jump(g[v])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!e);n&&!e&&o.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const r5={animation:{Feature:e5},exit:{Feature:n5}};function Hl(r){return{point:{x:r.pageX,y:r.pageY}}}const i5=r=>e=>rm(e)&&r(e,Hl(e));function ml(r,e,n,i){return Rl(r,e,i5(n),i)}const M_=({current:r})=>r?r.ownerDocument.defaultView:null,Rv=(r,e)=>Math.abs(r-e);function s5(r,e){const n=Rv(r.x,e.x),i=Rv(r.y,e.y);return Math.sqrt(n**2+i**2)}const Av=new Set(["auto","scroll"]);class N_{constructor(e,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nc(this.lastRawMoveEventInfo,this.transformPagePoint));const x=fh(this.lastMoveEventInfo,this.history),k=this.startEvent!==null,w=s5(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!k&&!w)return;const{point:b}=x,{timestamp:P}=gn;this.history.push({...b,timestamp:P});const{onStart:N,onMove:A}=this.handlers;k||(N&&N(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,x)},this.handlePointerMove=(x,k)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=k,this.lastMoveEventInfo=nc(k,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(x,k)=>{this.end();const{onEnd:w,onSessionEnd:b,resumeAnimation:P}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=fh(x.type==="pointercancel"?this.lastMoveEventInfo:nc(k,this.transformPagePoint),this.history);this.startEvent&&w&&w(x,N),b&&b(x,N)},!rm(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=o||window;const d=Hl(e),p=nc(d,this.transformPagePoint),{point:m}=p,{timestamp:g}=gn;this.history=[{...m,timestamp:g}];const{onSessionStart:v}=n;v&&v(e,fh(p,this.history)),this.removeListeners=Wl(ml(this.contextWindow,"pointermove",this.handlePointerMove),ml(this.contextWindow,"pointerup",this.handlePointerUp),ml(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(e){let n=e.parentElement;for(;n;){const i=getComputedStyle(n);(Av.has(i.overflowX)||Av.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const i=e===window,o=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},l={x:o.x-n.x,y:o.y-n.y};l.x===0&&l.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(e,o),ut.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_s(this.updatePoint)}}function nc(r,e){return e?{point:e(r.point)}:r}function Dv(r,e){return{x:r.x-e.x,y:r.y-e.y}}function fh({point:r},e){return{point:r,delta:Dv(r,R_(e)),offset:Dv(r,o5(e)),velocity:a5(e,.1)}}function o5(r){return r[0]}function R_(r){return r[r.length-1]}function a5(r,e){if(r.length<2)return{x:0,y:0};let n=r.length-1,i=null;const o=R_(r);for(;n>=0&&(i=r[n],!(o.timestamp-i.timestamp>Cr(e)));)n--;if(!i)return{x:0,y:0};i===r[0]&&r.length>2&&o.timestamp-i.timestamp>Cr(e)*2&&(i=r[1]);const l=Br(o.timestamp-i.timestamp);if(l===0)return{x:0,y:0};const u={x:(o.x-i.x)/l,y:(o.y-i.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function l5(r,{min:e,max:n},i){return e!==void 0&&rn&&(r=i?vt(n,r,i.max):Math.min(r,n)),r}function jv(r,e,n){return{min:e!==void 0?r.min+e:void 0,max:n!==void 0?r.max+n-(r.max-r.min):void 0}}function u5(r,{top:e,left:n,bottom:i,right:o}){return{x:jv(r.x,n,o),y:jv(r.y,e,i)}}function Ov(r,e){let n=e.min-r.min,i=e.max-r.max;return e.max-e.mini?n=Pl(e.min,e.max-i,r.min):i>o&&(n=Pl(r.min,r.max-o,e.min)),_i(0,1,n)}function d5(r,e){const n={};return e.min!==void 0&&(n.min=e.min-r.min),e.max!==void 0&&(n.max=e.max-r.min),n}const tp=.35;function h5(r=tp){return r===!1?r=0:r===!0&&(r=tp),{x:Lv(r,"left","right"),y:Lv(r,"top","bottom")}}function Lv(r,e,n){return{min:Iv(r,e),max:Iv(r,n)}}function Iv(r,e){return typeof r=="number"?r:r[e]||0}const p5=new WeakMap;class m5{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const l=g=>{n&&this.snapToCursor(Hl(g).point),this.stopAnimation()},u=(g,v)=>{const{drag:x,dragPropagation:k,onDragStart:w}=this.getProps();if(x&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=WC(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fi(P=>{let N=this.getAxisMotionValue(P).get()||0;if(vi.test(N)){const{projection:A}=this.visualElement;if(A&&A.layout){const M=A.layout.layoutBox[P];M&&(N=Un(M)*(parseFloat(N)/100))}}this.originPoint[P]=N}),w&&ut.update(()=>w(g,v),!1,!0),Yh(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:x,dragDirectionLock:k,onDirectionLock:w,onDrag:b}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:P}=v;if(k&&this.currentDirection===null){this.currentDirection=y5(P),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",v.point,P),this.updateAxis("y",v.point,P),this.visualElement.render(),b&&ut.update(()=>b(g,v),!1,!0)},d=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:g}=this.getProps();(g||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new N_(e,{onSessionStart:l,onStart:u,onMove:c,onSessionEnd:d,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:i,contextWindow:M_(this.visualElement),element:this.visualElement.current})}stop(e,n){const i=e||this.latestPointerEvent,o=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!o||!i)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:c}=this.getProps();c&&ut.postRender(()=>c(i,o))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,i){const{drag:o}=this.getProps();if(!i||!rc(e,o,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(u=l5(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,o=this.constraints;e&&Uo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=u5(i.layoutBox,e):this.constraints=!1,this.elastic=h5(n),o!==this.constraints&&!Uo(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&fi(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=d5(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Uo(e))return!1;const i=e.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const l=yE(i,o.root,this.visualElement.getTransformPagePoint());let u=c5(o.layout.layoutBox,l);if(n){const c=n(pE(u));this.hasMutatedConstraints=!!c,c&&(u=Zx(c))}return u}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=fi(m=>{if(!rc(m,n,this.currentDirection))return;let g=d&&d[m]||{};(u===!0||u===m)&&(g={min:0,max:0});const v=o?200:1e6,x=o?40:1e7,k={type:"inertia",velocity:i?e[m]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...l,...g};return this.startAxisValueAnimation(m,k)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return Yh(this.visualElement,e),i.start(Qp(e,i,0,n,this.visualElement,!1))}stopAnimation(){fi(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){fi(n=>{const{drag:i}=this.getProps();if(!rc(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,l=this.getAxisMotionValue(n);if(o&&o.layout){const{min:u,max:c}=o.layout.layoutBox[n],d=l.get()||0;l.set(e[n]-vt(u,c,.5)+d)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Uo(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fi(u=>{const c=this.getAxisMotionValue(u);if(c&&this.constraints!==!1){const d=c.get();o[u]=f5({min:d,max:d},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),fi(u=>{if(!rc(u,e,null))return;const c=this.getAxisMotionValue(u),{min:d,max:p}=this.constraints[u];c.set(vt(d,p,o[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;p5.set(this.visualElement,this);const e=this.visualElement.current,n=ml(e,"pointerdown",p=>{const{drag:m,dragListener:g=!0}=this.getProps(),v=p.target,x=v!==e&&XC(v);m&&g&&!x&&this.start(p)});let i;const o=()=>{const{dragConstraints:p}=this.getProps();Uo(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),i||(i=g5(e,p.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,u=l.addEventListener("measure",o);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),ut.read(o);const c=Rl(window,"resize",()=>this.scalePositionWithinConstraints()),d=l.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:m})=>{this.isDragging&&m&&(fi(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=p[g].translate,v.set(v.get()+p[g].translate))}),this.visualElement.render())}));return()=>{c(),n(),u(),d&&d(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:l=!1,dragElastic:u=tp,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:l,dragElastic:u,dragMomentum:c}}}function zv(r){let e=!0;return()=>{if(e){e=!1;return}r()}}function g5(r,e,n){const i=Hy(r,zv(n)),o=Hy(e,zv(n));return()=>{i(),o()}}function rc(r,e,n){return(e===!0||e===r)&&(n===null||n===r)}function y5(r,e=10){let n=null;return Math.abs(r.y)>e?n="y":Math.abs(r.x)>e&&(n="x"),n}class v5 extends Ts{constructor(e){super(e),this.removeGroupControls=$r,this.removeListeners=$r,this.controls=new m5(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$r}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const dh=r=>(e,n)=>{r&&ut.update(()=>r(e,n),!1,!0)};class x5 extends Ts{constructor(){super(...arguments),this.removePointerDownListener=$r}onPointerDown(e){this.session=new N_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:M_(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:dh(e),onStart:dh(n),onMove:dh(i),onEnd:(l,u)=>{delete this.session,o&&ut.postRender(()=>o(l,u))}}}mount(){this.removePointerDownListener=ml(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hh=!1;class _5 extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:l}=e;l&&(n.group&&n.group.add(l),i&&i.register&&o&&i.register(l),hh&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Tc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:o,isPresent:l}=this.props,{projection:u}=i;return u&&(u.isPresent=l,e.layoutDependency!==n&&u.setOptions({...u.options,layoutDependency:n}),hh=!0,o||e.layoutDependency!==n||n===void 0||e.isPresent!==l?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||ut.postRender(()=>{const c=u.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),nm.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=e;hh=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function A_(r){const[e,n]=__(),i=Y.useContext(Lp);return S.jsx(_5,{...r,layoutGroup:i,switchLayoutGroup:Y.useContext(E_),isPresent:e,safeToRemove:n})}const w5={pan:{Feature:x5},drag:{Feature:v5,ProjectionNode:x_,MeasureLayout:A_}};function Vv(r,e,n){const{props:i}=r;r.animationState&&i.whileHover&&r.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,l=i[o];l&&ut.postRender(()=>l(e,Hl(e)))}class k5 extends Ts{mount(){const{current:e}=this.node;e&&(this.unmount=$C(e,(n,i)=>(Vv(this.node,i,"Start"),o=>Vv(this.node,o,"End"))))}unmount(){}}class S5 extends Ts{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Wl(Rl(this.node.current,"focus",()=>this.onFocus()),Rl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Fv(r,e,n){const{props:i}=r;if(r.current instanceof HTMLButtonElement&&r.current.disabled)return;r.animationState&&i.whileTap&&r.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),l=i[o];l&&ut.postRender(()=>l(e,Hl(e)))}class b5 extends Ts{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=qC(e,(o,l)=>(Fv(this.node,l,"Start"),(u,{success:c})=>Fv(this.node,u,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const np=new WeakMap,ph=new WeakMap,T5=r=>{const e=np.get(r.target);e&&e(r)},C5=r=>{r.forEach(T5)};function E5({root:r,...e}){const n=r||document;ph.has(n)||ph.set(n,{});const i=ph.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(C5,{root:r,...e})),i[o]}function P5(r,e,n){const i=E5(e);return np.set(r,n),i.observe(r),()=>{np.delete(r),i.unobserve(r)}}const M5={some:0,all:1};class N5 extends Ts{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var d;(d=this.stopObserver)==null||d.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:M5[o]},c=p=>{const{isIntersecting:m}=p;if(this.isInView===m||(this.isInView=m,l&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),x=m?g:v;x&&x(p)};this.stopObserver=P5(this.node.current,u,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(R5(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function R5({viewport:r={}},{viewport:e={}}={}){return n=>r[n]!==e[n]}const A5={inView:{Feature:N5},tap:{Feature:b5},focus:{Feature:S5},hover:{Feature:k5}},D5={layout:{ProjectionNode:x_,MeasureLayout:A_}},j5={...r5,...A5,...w5,...D5},He=ZP(j5,JP),O5={some:0,all:1};function L5(r,e,{root:n,margin:i,amount:o="some"}={}){const l=tm(r),u=new WeakMap,c=p=>{p.forEach(m=>{const g=u.get(m.target);if(m.isIntersecting!==!!g)if(m.isIntersecting){const v=e(m.target,m);typeof v=="function"?u.set(m.target,v):d.unobserve(m.target)}else typeof g=="function"&&(g(m),u.delete(m.target))})},d=new IntersectionObserver(c,{root:n,rootMargin:i,threshold:typeof o=="number"?o:O5[o]});return l.forEach(p=>d.observe(p)),()=>d.disconnect()}function I5(r,{root:e,margin:n,amount:i,once:o=!1,initial:l=!1}={}){const[u,c]=Y.useState(l);return Y.useEffect(()=>{if(!r.current||o&&u)return;const d=()=>(c(!0),o?void 0:()=>c(!1)),p={root:e&&e.current||void 0,margin:n,amount:i};return L5(r.current,d,p)},[e,r,n,o,i]),u}const Bv=["https://images.unsplash.com/photo-1618912043460-9e5621b7f7af?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000","https://images.unsplash.com/photo-1683481920223-20f4813683a4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000","https://images.unsplash.com/photo-1760797057472-1b7ec0b452bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000","https://images.unsplash.com/photo-1746456690324-818911743479?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000","https://images.unsplash.com/photo-1764098711213-e8797a78eb8d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=2000"];function z5(){const[r,e]=Y.useState(0);return Y.useEffect(()=>{const n=setInterval(()=>e(i=>(i+1)%Bv.length),5500);return()=>clearInterval(n)},[]),S.jsxs("section",{className:"relative w-full h-[100dvh] min-h-[680px] overflow-hidden bg-slate-900",children:[S.jsx("div",{className:"absolute inset-0 w-full h-full",children:S.jsx(pl,{mode:"sync",children:S.jsx(He.div,{initial:{opacity:0,scale:1.12},animate:{opacity:1,scale:1},exit:{opacity:0,scale:1},transition:{opacity:{duration:1.6,ease:"easeInOut"},scale:{duration:7,ease:"easeOut"}},className:"absolute inset-0",children:S.jsx(zi,{src:Bv[r],alt:"travel atmosphere",className:"absolute inset-0 w-full h-full object-cover"})},r)})}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-sky-900/55 via-slate-900/30 to-slate-900/85"}),S.jsx(He.div,{animate:{y:[0,-14,0]},transition:{duration:6,repeat:1/0,ease:"easeInOut"},className:"absolute top-28 left-10 hidden md:block",children:S.jsx(Ap,{className:"w-12 h-12 text-white/35 -rotate-12",strokeWidth:1.5})}),S.jsx(He.div,{animate:{rotate:[0,360]},transition:{duration:60,repeat:1/0,ease:"linear"},className:"absolute top-32 right-10 hidden md:block",children:S.jsx(IS,{className:"w-16 h-16 text-yellow-300/45",strokeWidth:1.2})}),S.jsx(He.div,{animate:{y:[0,10,0]},transition:{duration:5,repeat:1/0,ease:"easeInOut"},className:"absolute bottom-24 left-12 hidden md:block",children:S.jsx(Dp,{className:"w-14 h-14 text-emerald-300/40",strokeWidth:1.5})}),S.jsx(He.div,{animate:{x:[0,30,0]},transition:{duration:12,repeat:1/0,ease:"easeInOut"},className:"absolute top-1/3 right-1/4 hidden lg:block",children:S.jsx(dS,{className:"w-20 h-20 text-white/25",strokeWidth:1})}),S.jsxs("div",{className:"relative z-10 h-full flex flex-col items-center justify-center text-center px-6 text-white",children:[S.jsxs(He.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.35},className:"flex flex-col items-center",children:[S.jsxs("span",{className:"text-white tracking-tight",style:{fontFamily:"Outfit, sans-serif",fontSize:"clamp(72px, 13vw, 160px)",fontWeight:600,lineHeight:1,letterSpacing:"-0.035em"},children:["wefly",S.jsx("span",{className:"text-orange-400",children:"."})]}),S.jsx("span",{className:"mt-4 text-white/85",style:{fontSize:"clamp(15px, 1.8vw, 22px)",letterSpacing:"0.32em",textTransform:"uppercase",fontWeight:500},children:"by adi tours"})]}),S.jsx(He.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.5},className:"mt-4 max-w-2xl",style:{fontFamily:"Outfit, sans-serif",fontSize:"clamp(22px, 3vw, 36px)",fontWeight:500},children:"החופשה הבאה שלך מתחילה כאן"}),S.jsxs(He.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.8},className:"mt-8 flex flex-col sm:flex-row gap-4",children:[S.jsx(Pr,{className:"bg-orange-500 hover:bg-orange-600 text-white px-8 h-12 rounded-full",children:"לתכנון החופשה שלי"}),S.jsx(Pr,{variant:"outline",className:"bg-white/10 border-white/40 text-white hover:bg-white/20 hover:text-white px-8 h-12 rounded-full",children:"דברו איתי בווטסאפ"})]}),S.jsxs(He.div,{animate:{y:[0,8,0]},transition:{duration:1.6,repeat:1/0,ease:"easeInOut"},className:"absolute bottom-10 flex flex-col items-center gap-2",children:[S.jsx("span",{className:"text-white/60 text-xs tracking-widest",children:"גללו למטה"}),S.jsx(lS,{className:"w-6 h-6 text-white/80",strokeWidth:2})]})]})]})}const V5=[{title:"מלונות בארץ ובחו״ל",desc:"מבחר מלונות בוטיק, יוקרה ומשפחה",img:"https://images.unsplash.com/photo-1738407282253-979e31f45785?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1200",Icon:_S},{title:"טיסות בארץ ובחו״ל",desc:"מחירים מעולים לכל יעד בעולם",img:"https://images.unsplash.com/photo-1663007714483-2fe4742a6a3c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1200",Icon:Ap},{title:"חבילות נופש בהתאמה אישית",desc:"תכנון מלא מהדלת אל היעד",img:"https://images.unsplash.com/photo-1651270782736-2caac1399861?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1200",Icon:Dp}];function F5(){return S.jsx("section",{className:"relative -mt-24 z-20 px-6",children:S.jsx("div",{className:"max-w-7xl mx-auto grid md:grid-cols-3 gap-6",children:V5.map(({title:r,desc:e,img:n,Icon:i},o)=>S.jsxs(He.a,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.3},transition:{duration:.6,delay:o*.12,ease:[.22,1,.36,1]},whileHover:{y:-6},href:"#",className:"group relative h-72 overflow-hidden shadow-xl rounded-2xl",children:[S.jsx(zi,{src:n,alt:r,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110"}),S.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-slate-900/90 via-slate-900/45 to-slate-900/10"}),S.jsx(i,{className:"absolute top-5 right-5 w-9 h-9 text-white drop-shadow-lg",strokeWidth:1.5}),S.jsxs("div",{className:"relative h-full flex flex-col justify-end p-6 text-white",children:[S.jsx("h3",{style:{fontFamily:"Outfit, sans-serif",fontSize:26,fontWeight:600},children:r}),S.jsx("p",{className:"text-white/85 text-sm mt-1",children:e}),S.jsxs("div",{className:"mt-4 flex items-center gap-2 text-orange-300 text-sm group-hover:gap-3 transition-all",children:["לפרטים נוספים ",S.jsx(Zk,{className:"w-4 h-4",strokeWidth:2.2})]})]})]},r))})})}function fo({ghost:r,eyebrow:e,title:n,subtitle:i,align:o="center",ghostColor:l,invert:u=!1}){const c=o==="center",d=c?"text-center items-center":"text-right items-start";return S.jsxs("div",{className:`relative flex flex-col ${d} mb-12`,children:[S.jsx("span",{"aria-hidden":!0,className:"select-none pointer-events-none absolute -top-10 leading-none uppercase whitespace-nowrap",style:{fontFamily:"Outfit, sans-serif",fontSize:"clamp(70px, 11vw, 160px)",fontWeight:700,letterSpacing:"-0.04em",color:l??(u?"rgba(255,255,255,0.07)":"rgba(15,23,42,0.05)"),right:c?"50%":"0",transform:c?"translateX(50%)":"none"},children:r}),S.jsxs(He.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.4},transition:{duration:.6},className:`relative ${c?"items-center":"items-start"} flex flex-col`,children:[S.jsx("span",{className:`text-xs tracking-[0.35em] uppercase ${u?"text-orange-300":"text-orange-500"}`,children:e}),S.jsx("h2",{className:u?"text-white":"text-slate-900",style:{fontFamily:"Outfit, sans-serif",fontSize:"clamp(34px, 4.6vw, 56px)",fontWeight:600,lineHeight:1.1,letterSpacing:"-0.02em"},children:n}),i&&S.jsx("p",{className:`mt-5 max-w-2xl leading-relaxed ${u?"text-white/80":"text-slate-600"}`,children:i})]})]})}const Wv=[{value:10,suffix:"+",label:"שנות ניסיון"},{value:1200,suffix:"",label:"לקוחות מרוצים"},{value:60,suffix:"+",label:"יעדים בעולם"}];function B5({to:r,duration:e=1800}){const n=Y.useRef(null),i=I5(n,{once:!0,amount:.4}),[o,l]=Y.useState(0);return Y.useEffect(()=>{if(!i)return;const u=performance.now();let c=0;const d=p=>{const m=Math.min((p-u)/e,1),g=1-Math.pow(1-m,3);l(Math.round(r*g)),m<1&&(c=requestAnimationFrame(d))};return c=requestAnimationFrame(d),()=>cancelAnimationFrame(c)},[i,r,e]),S.jsx("span",{ref:n,children:o.toLocaleString("en-US")})}function W5(){return S.jsxs("section",{className:"relative py-28 px-6 overflow-hidden","data-gsap-fade":!0,children:[S.jsx(He.div,{animate:{y:[0,-16,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},className:"absolute top-32 left-10 w-16 h-16 rounded-full bg-orange-100/70 hidden lg:block"}),S.jsx(He.div,{animate:{y:[0,18,0]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},className:"absolute bottom-20 right-10 w-24 h-24 rounded-full bg-sky-100/80 hidden lg:block"}),S.jsxs("div",{className:"relative max-w-7xl mx-auto grid lg:grid-cols-2 gap-16 items-center",children:[S.jsx(He.div,{initial:{opacity:0,x:-40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.7},className:"relative",children:S.jsxs("div",{className:"relative max-w-md mx-auto",children:[S.jsx(He.div,{animate:{rotate:[-3,-1,-3]},transition:{duration:6,repeat:1/0,ease:"easeInOut"},className:"absolute -top-6 -right-6 w-32 h-40 bg-sky-100 rounded-md hidden md:block"}),S.jsx("div",{className:"relative overflow-hidden aspect-[4/5] rounded-md shadow-xl",children:S.jsx(zi,{src:"https://images.unsplash.com/photo-1758613171322-69e26a63b796?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=900",alt:"couple traveling",className:"absolute inset-0 w-full h-full object-cover"})})]})}),S.jsxs(He.div,{initial:{opacity:0,x:40},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.3},transition:{duration:.7},children:[S.jsx(fo,{ghost:"ABOUT",eyebrow:"ABOUT WEFLY",title:"קצת עלינו",align:"right"}),S.jsx("p",{className:"text-slate-600 leading-loose",children:"אני מאמינה שחופשה טובה מתחילה הרבה לפני הטיסה — בשיחה אישית, בהקשבה, ובהבנה מי אתם ומה תגרום לכם להרגיש בבית גם 4,000 ק״מ מהבית. ב־Wefly אין חבילות מוכנות מראש או מסכי הזמנה אוטומטיים — יש שיחה, היכרות, והרבה אהבה לפרטים הקטנים."}),S.jsx("p",{className:"text-slate-600 leading-loose mt-4",children:'ירח דבש, חופשה משפחתית, נסיעת עסקים או "פשוט להעלם לכמה ימים" — אני כאן בשבילכם לפני, במהלך ואחרי, כי בשבילי כל לקוח הוא לקוח אחד, לא מספר בטבלה.'}),S.jsx("div",{className:"mt-10 grid grid-cols-3 gap-4 max-w-xl",children:Wv.map((r,e)=>S.jsxs("div",{className:`text-right pl-4 ${e