From 91ee1cdcb357904d27131ef4701bbc017f8632f5 Mon Sep 17 00:00:00 2001 From: Lynx1 Date: Wed, 11 Oct 2023 13:33:16 +0300 Subject: [PATCH] Updates --- assets/{index-056ff635.js => index-31f21fc2.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-056ff635.js => index-31f21fc2.js} (99%) diff --git a/assets/index-056ff635.js b/assets/index-31f21fc2.js similarity index 99% rename from assets/index-056ff635.js rename to assets/index-31f21fc2.js index cfb62f3..f04e337 100644 --- a/assets/index-056ff635.js +++ b/assets/index-31f21fc2.js @@ -37,4 +37,4 @@ `+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Nr(e):""}function Xv(e){switch(e.tag){case 5:return Nr(e.type);case 16:return Nr("Lazy");case 13:return Nr("Suspense");case 19:return Nr("SuspenseList");case 0:case 2:case 15:return e=zs(e.type,!1),e;case 11:return e=zs(e.type.render,!1),e;case 1:return e=zs(e.type,!0),e;default:return""}}function Al(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case zn:return"Portal";case Ml:return"Profiler";case Qa:return"StrictMode";case jl:return"Suspense";case Ll:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pp:return(e.displayName||"Context")+".Consumer";case kp:return(e._context.displayName||"Context")+".Provider";case Ka:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ya:return t=e.displayName||null,t!==null?t:Al(e.type)||"Memo";case zt:t=e._payload,e=e._init;try{return Al(e(t))}catch{}}return null}function Zv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Al(t);case 8:return t===Qa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qv(e){var t=Cp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vi(e){e._valueTracker||(e._valueTracker=qv(e))}function Ep(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Cp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Po(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ol(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=rn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _p(e,t){t=t.checked,t!=null&&Ga(e,"checked",t,!1)}function Nl(e,t){_p(e,t);var n=rn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rl(e,t.type,rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rl(e,t,n){(t!=="number"||Po(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rr=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ir={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jv=["Webkit","ms","Moz","O"];Object.keys(Ir).forEach(function(e){Jv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ir[t]=Ir[e]})});function Ap(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ir.hasOwnProperty(e)&&Ir[e]?(""+t).trim():t+"px"}function Op(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ap(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ey=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vl(e,t){if(t){if(ey[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Il(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zl=null;function Xa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,nr=null,rr=null;function Pc(e){if(e=xi(e)){if(typeof Fl!="function")throw Error(E(280));var t=e.stateNode;t&&(t=us(t),Fl(e.stateNode,e.type,t))}}function Np(e){nr?rr?rr.push(e):rr=[e]:nr=e}function Rp(){if(nr){var e=nr,t=rr;if(rr=nr=null,Pc(e),t)for(e=0;e>>=0,e===0?32:31-(fy(e)/dy|0)|0}var zi=64,Fi=4194304;function br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _o(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=br(l):(o&=s,o!==0&&(r=br(o)))}else s=n&~i,s!==0?r=br(s):o!==0&&(r=br(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-st(t),e[t]=n}function gy(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fr),Oc=String.fromCharCode(32),Nc=!1;function eh(e,t){switch(e){case"keyup":return Hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function th(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function Gy(e,t){switch(e){case"compositionend":return th(t);case"keypress":return t.which!==32?null:(Nc=!0,Oc);case"textInput":return e=t.data,e===Oc&&Nc?null:e;default:return null}}function Qy(e,t){if(Bn)return e==="compositionend"||!iu&&eh(e,t)?(e=qp(),fo=tu=Ht=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vc(n)}}function oh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sh(){for(var e=window,t=Po();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Po(e.document)}return t}function ou(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function n0(e){var t=sh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oh(n.ownerDocument.documentElement,n)){if(r!==null&&ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Ic(n,o);var s=Ic(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,$n=null,Gl=null,$r=null,Ql=!1;function zc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ql||$n==null||$n!==Po(r)||(r=$n,"selectionStart"in r&&ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),$r&&ii($r,r)||($r=r,r=Lo(Gl,"onSelect"),0Wn||(e.current=Jl[Wn],Jl[Wn]=null,Wn--)}function K(e,t){Wn++,Jl[Wn]=e.current,e.current=t}var on={},Ce=un(on),Re=un(!1),_n=on;function ar(e,t){var n=e.type.contextTypes;if(!n)return on;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function be(e){return e=e.childContextTypes,e!=null}function Oo(){q(Re),q(Ce)}function Gc(e,t,n){if(Ce.current!==on)throw Error(E(168));K(Ce,t),K(Re,n)}function mh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,Zv(e)||"Unknown",i));return le({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,_n=Ce.current,K(Ce,e),K(Re,Re.current),!0}function Qc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=mh(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,q(Re),q(Ce),K(Ce,e)):q(Re),K(Re,n)}var xt=null,cs=!1,Js=!1;function gh(e){xt===null?xt=[e]:xt.push(e)}function h0(e){cs=!0,gh(e)}function cn(){if(!Js&&xt!==null){Js=!0;var e=0,t=Q;try{var n=xt;for(Q=1;e>=s,i-=s,St=1<<32-st(t)+i|n<T?(R=C,C=null):R=C.sibling;var b=d(g,C,m[T],w);if(b===null){C===null&&(C=R);break}e&&C&&b.alternate===null&&t(g,C),p=o(b,p,T),P===null?S=b:P.sibling=b,P=b,C=R}if(T===m.length)return n(g,C),te&&gn(g,T),S;if(C===null){for(;TT?(R=C,C=null):R=C.sibling;var L=d(g,C,b.value,w);if(L===null){C===null&&(C=R);break}e&&C&&L.alternate===null&&t(g,C),p=o(L,p,T),P===null?S=L:P.sibling=L,P=L,C=R}if(b.done)return n(g,C),te&&gn(g,T),S;if(C===null){for(;!b.done;T++,b=m.next())b=f(g,b.value,w),b!==null&&(p=o(b,p,T),P===null?S=b:P.sibling=b,P=b);return te&&gn(g,T),S}for(C=r(g,C);!b.done;T++,b=m.next())b=h(C,g,T,b.value,w),b!==null&&(e&&b.alternate!==null&&C.delete(b.key===null?T:b.key),p=o(b,p,T),P===null?S=b:P.sibling=b,P=b);return e&&C.forEach(function(M){return t(g,M)}),te&&gn(g,T),S}function k(g,p,m,w){if(typeof m=="object"&&m!==null&&m.type===Fn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Di:e:{for(var S=m.key,P=p;P!==null;){if(P.key===S){if(S=m.type,S===Fn){if(P.tag===7){n(g,P.sibling),p=i(P,m.props.children),p.return=g,g=p;break e}}else if(P.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===zt&&ef(S)===P.type){n(g,P.sibling),p=i(P,m.props),p.ref=Cr(g,P,m),p.return=g,g=p;break e}n(g,P);break}else t(g,P);P=P.sibling}m.type===Fn?(p=En(m.props.children,g.mode,w,m.key),p.return=g,g=p):(w=xo(m.type,m.key,m.props,null,g.mode,w),w.ref=Cr(g,p,m),w.return=g,g=w)}return s(g);case zn:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(g,p.sibling),p=i(p,m.children||[]),p.return=g,g=p;break e}else{n(g,p);break}else t(g,p);p=p.sibling}p=ll(m,g.mode,w),p.return=g,g=p}return s(g);case zt:return P=m._init,k(g,p,P(m._payload),w)}if(Rr(m))return v(g,p,m,w);if(xr(m))return y(g,p,m,w);Qi(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(g,p.sibling),p=i(p,m),p.return=g,g=p):(n(g,p),p=sl(m,g.mode,w),p.return=g,g=p),s(g)):n(g,p)}return k}var cr=Th(!0),Ch=Th(!1),Si={},gt=un(Si),ai=un(Si),ui=un(Si);function kn(e){if(e===Si)throw Error(E(174));return e}function hu(e,t){switch(K(ui,t),K(ai,e),K(gt,Si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dl(t,e)}q(gt),K(gt,t)}function fr(){q(gt),q(ai),q(ui)}function Eh(e){kn(ui.current);var t=kn(gt.current),n=Dl(t,e.type);t!==n&&(K(ai,e),K(gt,n))}function mu(e){ai.current===e&&(q(gt),q(ai))}var ie=un(0);function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=[];function gu(){for(var e=0;en?n:4,e(!0);var r=tl.transition;tl.transition={};try{e(!1),t()}finally{Q=n,tl.transition=r}}function $h(){return et().memoizedState}function y0(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Uh(e))Hh(t,n);else if(n=xh(e,t,n,r),n!==null){var i=je();lt(n,e,r,i),Wh(n,t,r)}}function w0(e,t,n){var r=qt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uh(e))Hh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,at(l,s)){var a=t.interleaved;a===null?(i.next=i,du(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=xh(e,t,i,r),n!==null&&(i=je(),lt(n,e,r,i),Wh(n,t,r))}}function Uh(e){var t=e.alternate;return e===se||t!==null&&t===se}function Hh(e,t){Ur=Fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qa(e,n)}}var Bo={readContext:Je,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},x0={readContext:Je,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:nf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,Vh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=y0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:tf,useDebugValue:Su,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=tf(!1),t=e[0];return e=v0.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,i=ct();if(te){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ye===null)throw Error(E(349));jn&30||jh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,nf(Ah.bind(null,r,o,e),[e]),r.flags|=2048,di(9,Lh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ct(),t=ye.identifierPrefix;if(te){var n=kt,r=St;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ci++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[pt]=t,e[li]=r,em(e,t,!1,!1),t.stateNode=e;e:{switch(s=Il(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;ipr&&(t.flags|=128,r=!0,Er(o,!1),t.lanes=4194304)}else{if(!r)if(e=zo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Er(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!te)return Pe(t),null}else 2*fe()-o.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Er(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fe(),t.sibling=null,n=ie.current,K(ie,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return _u(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function M0(e,t){switch(lu(t),t.tag){case 1:return be(t.type)&&Oo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),q(Re),q(Ce),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(q(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ie),null;case 4:return fr(),null;case 10:return fu(t.type._context),null;case 22:case 23:return _u(),null;case 24:return null;default:return null}}var Yi=!1,Te=!1,j0=typeof WeakSet=="function"?WeakSet:Set,j=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function fa(e,t,n){try{n()}catch(r){ue(e,t,r)}}var df=!1;function L0(e,t){if(Kl=Mo,e=sh(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yl={focusedElem:e,selectionRange:n},Mo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,k=v.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:rt(t.type,y),k);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=df,df=!1,v}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&fa(t,n,o)}i=i.next}while(i!==r)}}function ps(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rm(e){var t=e.alternate;t!==null&&(e.alternate=null,rm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[li],delete t[ql],delete t[d0],delete t[p0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function im(e){return e.tag===5||e.tag===3||e.tag===4}function pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||im(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ao));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ha(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}var we=null,it=!1;function Rt(e,t,n){for(n=n.child;n!==null;)om(e,t,n),n=n.sibling}function om(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(os,n)}catch{}switch(n.tag){case 5:Te||Yn(n,t);case 6:var r=we,i=it;we=null,Rt(e,t,n),we=r,it=i,we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?qs(e.parentNode,n):e.nodeType===1&&qs(e,n),ni(e)):qs(we,n.stateNode));break;case 4:r=we,i=it,we=n.stateNode.containerInfo,it=!0,Rt(e,t,n),we=r,it=i;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&fa(n,t,s),i=i.next}while(i!==r)}Rt(e,t,n);break;case 1:if(!Te&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ue(n,t,l)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Rt(e,t,n),Te=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j0),t.forEach(function(r){var i=z0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O0(r/1960))-r,10e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,Ho=0,G&6)throw Error(E(331));var i=G;for(G|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;afe()-Cu?Cn(e,0):Tu|=n),De(e,t)}function pm(e,t){t===0&&(e.mode&1?(t=Fi,Fi<<=1,!(Fi&130023424)&&(Fi=4194304)):t=1);var n=je();e=jt(e,t),e!==null&&(yi(e,t,n),De(e,n))}function I0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pm(e,n)}function z0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),pm(e,n)}var hm;hm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,E0(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,te&&t.flags&1048576&&vh(t,bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vo(e,t),e=t.pendingProps;var i=ar(t,Ce.current);or(t,n),i=yu(null,t,r,e,i,n);var o=wu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,No(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pu(t),i.updater=fs,t.stateNode=i,i._reactInternals=t,ia(t,r,e,n),t=la(null,t,r,!0,o,n)):(t.tag=0,te&&o&&su(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=B0(r),e=rt(r,e),i){case 0:t=sa(null,t,r,e,n);break e;case 1:t=uf(null,t,r,e,n);break e;case 11:t=lf(null,t,r,e,n);break e;case 14:t=af(null,t,r,rt(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),sa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),uf(e,t,r,i,n);case 3:e:{if(Zh(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Sh(e,t),Io(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=dr(Error(E(423)),t),t=cf(e,t,r,n,i);break e}else if(r!==i){i=dr(Error(E(424)),t),t=cf(e,t,r,n,i);break e}else for(Be=Yt(t.stateNode.containerInfo.firstChild),$e=t,te=!0,ot=null,n=Ch(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===i){t=Lt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Eh(t),e===null&&ta(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Xl(r,i)?s=null:o!==null&&Xl(r,o)&&(t.flags|=32),Xh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&ta(t),null;case 13:return qh(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),lf(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(Do,r._currentValue),r._currentValue=s,o!==null)if(at(o.value,s)){if(o.children===i.children&&!Re.current){t=Lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Tt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),na(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(E(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),na(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,or(t,n),i=Je(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),af(e,t,r,i,n);case 15:return Kh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),vo(e,t),t.tag=1,be(r)?(e=!0,No(t)):e=!1,or(t,n),Ph(t,r,i),ia(t,r,i,n),la(null,t,r,!0,e,n);case 19:return Jh(e,t,n);case 22:return Yh(e,t,n)}throw Error(E(156,t.tag))};function mm(e,t){return Bp(e,t)}function F0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new F0(e,t,n,r)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B0(e){if(typeof e=="function")return ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ka)return 11;if(e===Ya)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ju(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return En(n.children,i,o,t);case Qa:s=8,i|=8;break;case Ml:return e=Ze(12,n,t,i|2),e.elementType=Ml,e.lanes=o,e;case jl:return e=Ze(13,n,t,i),e.elementType=jl,e.lanes=o,e;case Ll:return e=Ze(19,n,t,i),e.elementType=Ll,e.lanes=o,e;case Tp:return ms(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kp:s=10;break e;case Pp:s=9;break e;case Ka:s=11;break e;case Ya:s=14;break e;case zt:s=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ze(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function En(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function ms(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=Tp,e.lanes=n,e.stateNode={isHidden:!1},e}function sl(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bs(0),this.expirationTimes=Bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,o,s,l,a){return e=new $0(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pu(o),e}function U0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wm)}catch(e){console.error(e)}}wm(),vp.exports=We;var xm=vp.exports,kf=xm;El.createRoot=kf.createRoot,El.hydrateRoot=kf.hydrateRoot;function K0(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set:function(s,l){n.has(s)?n.set(s,l):i(s,l)}}}var Pm="!";function t1(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(s){for(var l=[],a=0,u=0,c,f=0;fu?c-u:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:k}}}function n1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function r1(e){return{cache:e1(e.cacheSize),splitModifiers:t1(e),...Y0(e)}}var i1=/\s+/;function o1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(i1).map(function(s){var l=n(s),a=l.modifiers,u=l.hasImportantModifier,c=l.baseClassName,f=l.maybePostfixModifierPosition,d=r(f?c.substring(0,f):c),h=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:s};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:s};h=!1}var v=n1(a).join(":"),y=u?v+Pm:v;return{isTailwindClass:!0,modifierId:y,classGroupId:d,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,a=s.classGroupId,u=s.hasPostfixModifier,c=l+a;return o.has(c)?!1:(o.add(c),i(a,u).forEach(function(f){return o.add(l+f)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function xa(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=t||C<0||f&&T>=o}function g(){var P=al();if(k(P))return p(P);l=setTimeout(g,y(P))}function p(P){return l=void 0,d&&r?h(P):(r=i=void 0,s)}function m(){l!==void 0&&clearTimeout(l),u=0,r=a=i=l=void 0}function w(){return l===void 0?s:p(al())}function S(){var P=al(),C=k(P);if(r=arguments,i=this,a=P,C){if(l===void 0)return v(a);if(f)return l=setTimeout(g,t),h(a)}return l===void 0&&(l=setTimeout(g,t)),s}return S.cancel=m,S.flush=w,S}function I1(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(jm);return Qo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),V1(e,t,{leading:r,maxWait:t,trailing:i})}function Qo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function z1(e){return!!e&&typeof e=="object"}function F1(e){return typeof e=="symbol"||z1(e)&&R1.call(e)==T1}function _f(e){if(typeof e=="number")return e;if(F1(e))return Ef;if(Qo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(C1,"");var n=_1.test(e);return n||M1.test(e)?j1(e.slice(2),n?2:8):E1.test(e)?Ef:+e}var B1=I1,Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.addPassiveEventListener=function(t,n,r){var i=function(){var o=!1;try{var s=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,s)}catch{}return o}();t.addEventListener(n,r,i?{passive:!0}:!1)};Ti.removePassiveEventListener=function(t,n,r){t.removeEventListener(n,r)};Object.defineProperty(Pi,"__esModule",{value:!0});var $1=B1,U1=W1($1),H1=Ti;function W1(e){return e&&e.__esModule?e:{default:e}}var G1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,U1.default)(t,n)},ne={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,n){if(t){var r=G1(function(i){ne.scrollHandler(t)},n);ne.scrollSpyContainers.push(t),(0,H1.addPassiveEventListener)(t,"scroll",r)}},isMounted:function(t){return ne.scrollSpyContainers.indexOf(t)!==-1},currentPositionX:function(t){if(t===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return t.scrollLeft},currentPositionY:function(t){if(t===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return t.scrollTop},scrollHandler:function(t){var n=ne.scrollSpyContainers[ne.scrollSpyContainers.indexOf(t)].spyCallbacks||[];n.forEach(function(r){return r(ne.currentPositionX(t),ne.currentPositionY(t))})},addStateHandler:function(t){ne.spySetState.push(t)},addSpyHandler:function(t,n){var r=ne.scrollSpyContainers[ne.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t),t(ne.currentPositionX(n),ne.currentPositionY(n))},updateStates:function(){ne.spySetState.forEach(function(t){return t()})},unmount:function(t,n){ne.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),ne.spySetState&&ne.spySetState.length&&ne.spySetState.indexOf(t)>-1&&ne.spySetState.splice(ne.spySetState.indexOf(t),1),document.removeEventListener("scroll",ne.scrollHandler)},update:function(){return ne.scrollSpyContainers.forEach(function(t){return ne.scrollHandler(t)})}};Pi.default=ne;var wr={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});var Q1=function(t,n){var r=t.indexOf("#")===0?t.substring(1):t,i=r?"#"+r:"",o=window&&window.location,s=i?o.pathname+o.search+i:o.pathname+o.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},K1=function(){return window.location.hash.replace(/^#/,"")},Y1=function(t){return function(n){return t.contains?t!=n&&t.contains(n):!!(t.compareDocumentPosition(n)&16)}},X1=function(t){return getComputedStyle(t).position!=="static"},ul=function(t,n){for(var r=t.offsetTop,i=t.offsetParent;i&&!n(i);)r+=i.offsetTop,i=i.offsetParent;return{offsetTop:r,offsetParent:i}},Z1=function(t,n,r){if(r)return t===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(t).position!=="static"?n.offsetLeft:n.offsetLeft-t.offsetLeft;if(t===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(X1(t)){if(n.offsetParent!==t){var i=function(c){return c===t||c===document},o=ul(n,i),s=o.offsetTop,l=o.offsetParent;if(l!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===t.offsetParent)return n.offsetTop-t.offsetTop;var a=function(c){return c===document};return ul(n,a).offsetTop-ul(t,a).offsetTop};Ci.default={updateHash:Q1,getHash:K1,filterElementInContainer:Y1,scrollOffset:Z1};var xs={},Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default={defaultEasing:function(t){return t<.5?Math.pow(t*2,2)/2:1-Math.pow((1-t)*2,2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var q1=Ti,J1=["mousedown","mousewheel","touchmove","keydown"];Iu.default={subscribe:function(t){return typeof document<"u"&&J1.forEach(function(n){return(0,q1.addPassiveEventListener)(document,n,t)})}};var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});var Pa={registered:{},scrollEvent:{register:function(t,n){Pa.registered[t]=n},remove:function(t){Pa.registered[t]=null}}};Ei.default=Pa;Object.defineProperty(xs,"__esModule",{value:!0});var ew=Object.assign||function(e){for(var t=1;t=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,n);Ta.call(window,o);return}dt.default.registered.end&&dt.default.registered.end(i.to,i.target,i.currentPosition)},zu=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},_i=function(t,n,r,i){if(n.data=n.data||Am(),window.clearTimeout(n.data.delayTimeout),iw.default.subscribe(function(){n.data.cancel=!0}),zu(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?Om(n):Nm(n),n.data.targetPosition=n.absolute?t:t+n.data.startPosition,n.data.startPosition===n.data.targetPosition){dt.default.registered.end&&dt.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=sw(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=i;var o=Lm(n),s=cw.bind(null,o,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){dt.default.registered.begin&&dt.default.registered.begin(n.data.to,n.data.target),Ta.call(window,s)},n.delay);return}dt.default.registered.begin&&dt.default.registered.begin(n.data.to,n.data.target),Ta.call(window,s)},ks=function(t){return t=ew({},t),t.data=t.data||Am(),t.absolute=!0,t},fw=function(t){_i(0,ks(t))},dw=function(t,n){_i(t,ks(n))},pw=function(t){t=ks(t),zu(t),_i(t.horizontal?aw(t):uw(t),t)},hw=function(t,n){n=ks(n),zu(n);var r=n.horizontal?Om(n):Nm(n);_i(t+r,n)};xs.default={animateTopScroll:_i,getAnimationType:Lm,scrollToTop:fw,scrollToBottom:pw,scrollTo:dw,scrollMore:hw};Object.defineProperty(wr,"__esModule",{value:!0});var mw=Object.assign||function(e){for(var t=1;t=Math.floor(y)&&w=Math.floor(k)}else{var S=0,P=0,C=0;if(u.getBoundingClientRect){var T=u.getBoundingClientRect();C=T.top}if(!d||s.props.isDynamic){if(d=n.get(f),!d)return;var R=d.getBoundingClientRect();S=R.top-C+a,P=S+R.height}var b=a-s.props.offset;h=b>=Math.floor(S)&&b=Math.floor(P)}var L=n.getActiveLink();if(v){if(f===L&&n.setActiveLink(void 0),s.props.hashSpy&&Dt.default.getHash()===f){var M=s.props.saveHashHistory,V=M===void 0?!1:M;Dt.default.changeHash("",V)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(f,d))}if(h&&(L!==f||s.state.active===!1)){n.setActiveLink(f);var N=s.props.saveHashHistory,D=N===void 0?!1:N;s.props.hashSpy&&Dt.default.changeHash(f,D),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(f,d))}}}};return r.propTypes=Af,r.defaultProps={offset:0},r};Object.defineProperty(Du,"__esModule",{value:!0});var Iw=F,Of=Vm(Iw),zw=ki,Fw=Vm(zw);function Vm(e){return e&&e.__esModule?e:{default:e}}function Bw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nf(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function $w(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Uw=function(e){$w(t,e);function t(){var n,r,i,o;Bw(this,t);for(var s=arguments.length,l=Array(s),a=0;a"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(o){this.props.name!==o.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Df.default.unregister(this.props.name)}},{key:"registerElems",value:function(o){Df.default.register(o,this.childBindings.domNode)}},{key:"render",value:function(){return bf.default.createElement(e,qw({},this.props,{parentBindings:this.childBindings}))}}]),r}(bf.default.Component);return t.propTypes={name:Vf.default.string,id:Vf.default.string},t};Object.defineProperty($u,"__esModule",{value:!0});var If=Object.assign||function(e){for(var t=1;t=Math.floor(d)&&g=Math.floor(h),w=r.getActiveLink();if(m)return c===w&&r.setActiveLink(void 0),l.props.hashSpy&&Vt.getHash()===c&&Vt.changeHash(),l.props.spy&&l.state.active&&(l.setState({active:!1}),l.props.onSetInactive&&l.props.onSetInactive()),hn.updateStates();if(p&&w!==c)return r.setActiveLink(c),l.props.hashSpy&&Vt.changeHash(c),l.props.spy&&(l.setState({active:!0}),l.props.onSetActive&&l.props.onSetActive(c)),hn.updateStates()}}};return i.propTypes=Wf,i.defaultProps={offset:0},i},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Hf(i,r);function i(o){$f(this,i);var s=Uf(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o));return s.childBindings={domNode:null},s}return Bf(i,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;dl.unregister(this.props.name)}},{key:"registerElems",value:function(s){dl.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return ro.createElement(t,fl({},this.props,{parentBindings:this.childBindings}))}}]),i}(ro.Component);return n.propTypes={name:re.string,id:re.string},n}},gx=mx;Object.defineProperty(ae,"__esModule",{value:!0});ae.Helpers=ae.ScrollElement=ae.ScrollLink=ae.animateScroll=ae.scrollSpy=ae.Events=ae.scroller=Hu=ae.Element=ae.Button=Ca=ae.Link=void 0;var vx=Du,Fm=yt(vx),yx=Bu,Bm=yt(yx),wx=$u,$m=yt(wx),xx=wr,Um=yt(xx),Sx=Ei,Hm=yt(Sx),kx=Pi,Wm=yt(kx),Px=xs,Gm=yt(Px),Tx=ki,Qm=yt(Tx),Cx=Cs,Km=yt(Cx),Ex=gx,Ym=yt(Ex);function yt(e){return e&&e.__esModule?e:{default:e}}var Ca=ae.Link=Fm.default;ae.Button=Bm.default;var Hu=ae.Element=$m.default;ae.scroller=Um.default;ae.Events=Hm.default;ae.scrollSpy=Wm.default;ae.animateScroll=Gm.default;ae.ScrollLink=Qm.default;ae.ScrollElement=Km.default;ae.Helpers=Ym.default;ae.default={Link:Fm.default,Button:Bm.default,Element:$m.default,scroller:Um.default,Events:Hm.default,scrollSpy:Wm.default,animateScroll:Gm.default,ScrollLink:Qm.default,ScrollElement:Km.default,Helpers:Ym.default};function On({children:e,name:t,dark:n}){return x.jsx(Hu,{id:t,name:t,className:bu("bg-gray-800 py-10 lg:py-24",{"bg-gray-900":n}),children:x.jsx("div",{className:"flex w-full justify-center",children:x.jsx("div",{className:"container px-2 lg:px-10",children:e})})})}On.Heading=({text:e,backgroundText:t})=>x.jsxs("div",{className:"relative mb-16 flex items-center justify-center text-center",children:[x.jsx("h1",{className:"section-heading relative z-20 text-3xl font-[800] lg:text-4xl",children:e}),x.jsx("span",{className:"absolute z-10 text-[70px] font-[800] uppercase tracking-wider opacity-[0.03] lg:text-[102px]",children:t})]});var Gf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ee=e=>!e||typeof e!="object"||Object.keys(e).length===0,_x=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Xm(e,t){e.forEach(function(n){Array.isArray(n)?Xm(n,t):t.push(n)})}function Zm(e){let t=[];return Xm(e,t),t}var Mx=(...e)=>Zm(e).filter(Boolean),qm=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let o of r)if(i.includes(o)){let s=e[o],l=t[o];typeof s=="object"&&typeof l=="object"?n[o]=qm(s,l):n[o]=l+" "+s}else n[o]=e[o];for(let o of i)r.includes(o)||(n[o]=t[o]);return n},Qf=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim(),jx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Jm=e=>e||void 0,Ko=(...e)=>Jm(Zm(e).filter(Boolean).join(" ")),pl=null,Yo={},Ea=!1,Lr=(...e)=>t=>t.twMerge?((!pl||Ea)&&(Ea=!1,pl=Ee(Yo)?_m:k1(Yo)),Jm(pl(Ko(e)))):Ko(e),Kf=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Ko(e[n],t[n]):e[n]=t[n];return e},Lx=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:l={}}=e,a={...jx,...t},u=n!=null&&n.base?Ko(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Ee(n.variants)?qm(i,n.variants):i,f=n!=null&&n.defaultVariants&&!Ee(n.defaultVariants)?{...n.defaultVariants,...l}:l;!Ee(a.twMergeConfig)&&!_x(a.twMergeConfig,Yo)&&(Ea=!0,Yo=a.twMergeConfig);let d=Ee(r)?{}:{base:e==null?void 0:e.base,...r},h=Ee(n==null?void 0:n.slots)?d:Kf(n==null?void 0:n.slots,Ee(d)?{base:e==null?void 0:e.base}:d),v=k=>{if(Ee(c)&&Ee(r)&&Ee(n==null?void 0:n.slots))return Lr(u,k==null?void 0:k.class,k==null?void 0:k.className)(a);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof o}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let g=(L,M,V=[],N)=>{let D=V;if(typeof M=="string")D=D.concat(Qf(M).split(" ").map(B=>`${L}:${B}`));else if(Array.isArray(M))D=D.concat(M.reduce((B,$)=>B.concat(`${L}:${$}`),[]));else if(typeof M=="object"&&typeof N=="string"){for(let B in M)if(M.hasOwnProperty(B)&&B===N){let $=M[B];if($&&typeof $=="string"){let _=Qf($);D[N]?D[N]=D[N].concat(_.split(" ").map(A=>`${L}:${A}`)):D[N]=_.split(" ").map(A=>`${L}:${A}`)}else Array.isArray($)&&$.length>0&&(D[N]=$.reduce((_,A)=>_.concat(`${L}:${A}`),[]))}}return D},p=(L,M=c,V=null,N=null)=>{var D;let B=M[L];if(!B||Ee(B))return null;let $=(D=N==null?void 0:N[L])!=null?D:k==null?void 0:k[L];if($===null)return null;let _=Gf($),A=Array.isArray(a.responsiveVariants)&&a.responsiveVariants.length>0||a.responsiveVariants===!0,I=f==null?void 0:f[L],O=[];if(typeof _=="object"&&A)for(let[Y,Ie]of Object.entries(_)){let Nt=B[Ie];if(Y==="initial"){I=Ie;continue}Array.isArray(a.responsiveVariants)&&!a.responsiveVariants.includes(Y)||(O=g(Y,Nt,O,V))}let W=B[_]||B[Gf(I)];return typeof O=="object"&&typeof V=="string"&&O[V]?Kf(O,W):O.length>0?(O.push(W),O):W},m=()=>c?Object.keys(c).map(L=>p(L,c)):null,w=(L,M)=>{if(!c||typeof c!="object")return null;let V=new Array;for(let N in c){let D=p(N,c,L,M),B=L==="base"&&typeof D=="string"?D:D&&D[L];B&&(V[V.length]=B)}return V},S={};for(let L in k)k[L]!==void 0&&(S[L]=k[L]);let P=(L,M)=>{var V;let N=typeof(k==null?void 0:k[L])=="object"?{[L]:(V=k[L])==null?void 0:V.initial}:{};return{...f,...S,...N,...M}},C=(L=[],M)=>{let V=[];for(let{class:N,className:D,...B}of L){let $=!0;for(let[_,A]of Object.entries(B)){let I=P(_,M);if(Array.isArray(A)){if(!A.includes(I[_])){$=!1;break}}else if(I[_]!==A){$=!1;break}}$&&(N&&V.push(N),D&&V.push(D))}return V},T=L=>{let M=C(o,L),V=C(n==null?void 0:n.compoundVariants,L);return Mx(V,M)},R=L=>{let M=T(L);if(!Array.isArray(M))return M;let V={};for(let N of M)if(typeof N=="string"&&(V.base=Lr(V.base,N)(a)),typeof N=="object")for(let[D,B]of Object.entries(N))V[D]=Lr(V[D],B)(a);return V},b=L=>{if(s.length<1)return null;let M={};for(let{slots:V=[],class:N,className:D,...B}of s){if(!Ee(B)){let $=!0;for(let _ of Object.keys(B)){let A=P(_,L)[_];if(A===void 0||A!==B[_]){$=!1;break}}if(!$)continue}for(let $ of V)M[$]=M[$]||[],M[$].push([N,D])}return M};if(!Ee(r)||!Ee(n==null?void 0:n.slots)){let L={};if(typeof h=="object"&&!Ee(h))for(let M of Object.keys(h))L[M]=V=>{var N,D;return Lr(h[M],w(M,V),((N=R(V))!=null?N:[])[M],((D=b(V))!=null?D:[])[M],V==null?void 0:V.class,V==null?void 0:V.className)(a)};return L}return Lr(u,m(),T(),k==null?void 0:k.class,k==null?void 0:k.className)(a)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return v.variantKeys=y(),v.extend=n,v.base=u,v.slots=h,v.variants=c,v.defaultVariants=f,v.compoundSlots=s,v.compoundVariants=o,v};const Ax=Lx({base:"rounded-full px-10 py-3 w-fit duration-200",variants:{variant:{default:"bg-indigo-600 hover:bg-indigo-700",outlined:"border border-indigo-600 hover:bg-indigo-600"}},defaultVariants:{variant:"default"}});function Ox({children:e,className:t,variant:n,...r}){return x.jsx("button",{className:bu(Ax({variant:n}),t),...r,children:e})}function Nx(){return x.jsxs(On,{name:"about",dark:!0,children:[x.jsx(On.Heading,{text:"Know Me More",backgroundText:"About Me"}),x.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5",children:[x.jsxs("div",{className:"col-span-3 flex flex-col gap-4 text-center lg:text-start",children:[x.jsxs("h1",{className:"text-2xl font-[600]",children:["I'm ",x.jsx("span",{className:"text-highlight",children:"Lynx1"}),", a Web Developer"]}),x.jsx("p",{className:"opacity-50",children:"I specialize in creating full-stack web applications, dynamic and creative solutions using modern technologies like TypeScript, React, Next.js, Astro.js and various backend technologies."}),x.jsx("p",{className:"opacity-50",children:"My code is all about best practices, clean aesthetics, and functionality. I believe well-organized code is key for project success and team collaboration."}),x.jsx("p",{className:"opacity-50",children:"Beyond programming I'm passionate about active recreation."}),x.jsx("p",{className:"opacity-50",children:"I'm always open to new opportunities and ready to engage in exciting projects where I can apply my skills and learn new ones."})]}),x.jsx("div",{className:"col-span-2 flex flex-col items-center justify-center gap-3 lg:items-end",children:x.jsxs("div",{className:"flex flex-col items-center gap-4 lg:items-start",children:[x.jsxs("ul",{className:"about-info text-center text-lg lg:text-start",children:[x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Name:"})," Vladyslav Lopuha"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Email:"})," skr.vladyslav99@gmail.com"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Age:"})," 23"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"From:"})," Kyiv, Ukraine"]})]}),x.jsx(Ox,{children:"Download CV"})]})})]})]})}function Rx(){return x.jsx(Hu,{id:"home",name:"home",className:"home-bg min-h-screen",children:x.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center gap-6 text-center",children:[x.jsx("h1",{className:"text-2xl lg:text-3xl",children:"Welcome"}),x.jsx("p",{className:"text-2xl font-[700] lg:text-4xl",children:"I'm a Web/Software Developer"}),x.jsx("p",{className:"text-xl lg:text-2xl",children:"based in Ukraine."})]})})}const bx="/portfolio/assets/Screenshot-c26fc296.png",Dx="/portfolio/assets/Screenshot2-ea8d5f4f.png",Vx="/portfolio/assets/Screenshot3-ecb21047.png",Ix="/portfolio/assets/Screenshot4-d1e7c052.png";function zx(){return x.jsxs(On,{name:"portfolio",dark:!0,children:[x.jsx(On.Heading,{text:"My Work",backgroundText:"Portfolio"}),x.jsxs("div",{className:"grid grid-cols-1 items-center justify-center gap-8 lg:grid-cols-2 lg:items-start lg:justify-center",children:[x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:bx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Dx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Vx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Ix,alt:"screenshot",draggable:!1})]})]})]})}function Qe({title:e,percent:t}){return x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsxs("div",{className:"flex w-full justify-between",children:[x.jsx("p",{children:e}),x.jsxs("p",{children:[t,"%"]})]}),x.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-gray-900",children:x.jsx("div",{className:"h-2.5 bg-highlight",style:{width:`${t}%`}})})]})}function Fx(){return x.jsxs(On,{name:"resume",children:[x.jsx(On.Heading,{text:"Resume",backgroundText:"Summary"}),x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h1",{className:"mb-2 text-2xl font-bold",children:"My Education"}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2018-2019"}),x.jsx("h1",{className:"text-xl",children:"Web Development"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"IT Future School"})]}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2019-2022"}),x.jsx("h1",{className:"text-xl",children:"Bachelor of Computer Science"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"National Transport University"})]}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2022-2024"}),x.jsx("h1",{className:"text-xl",children:"Master Degree of Computer Science"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"National Transport University"})]}),x.jsx("h1",{className:"my-2 text-2xl font-bold",children:"My Skills"}),x.jsxs("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2",children:[x.jsx(Qe,{title:"Web development",percent:93}),x.jsx(Qe,{title:"Software development",percent:63}),x.jsx(Qe,{title:"Android development",percent:43}),x.jsx(Qe,{title:"Linux administration",percent:72}),x.jsx(Qe,{title:"Database administration",percent:89}),x.jsx(Qe,{title:"Node.js",percent:82}),x.jsx(Qe,{title:"REST API",percent:80}),x.jsx(Qe,{title:"Reverse engineering",percent:13}),x.jsx(Qe,{title:"Python",percent:76}),x.jsx(Qe,{title:"PHP",percent:28}),x.jsx(Qe,{title:"Java",percent:37}),x.jsx(Qe,{title:"Web Design",percent:20})]})]})]})}const Yf="/portfolio/assets/photo2-9f815fb0.jpg";var eg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xf=ht.createContext&&ht.createContext(eg),en=globalThis&&globalThis.__assign||function(){return en=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne,isStatic:!1,reducedMotion:"never"}),Ms=F.createContext({}),Wu=F.createContext(null),js=typeof document<"u",Ux=js?F.useLayoutEffect:F.useEffect,rg=F.createContext({strict:!1});function Hx(e,t,n,r){const{visualElement:i}=F.useContext(Ms),o=F.useContext(rg),s=F.useContext(Wu),l=F.useContext(ng).reducedMotion,a=F.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;F.useInsertionEffect(()=>{u&&u.update(n,s)});const c=F.useRef(!!window.HandoffAppearAnimations);return Ux(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),F.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wx(e,t,n){return F.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Zn(n)&&(n.current=r))},[t])}function hi(e){return typeof e=="string"||Array.isArray(e)}function Ls(e){return typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qu=["initial",...Gu];function As(e){return Ls(e.animate)||Qu.some(t=>hi(e[t]))}function ig(e){return!!(As(e)||e.variants)}function Gx(e,t){if(As(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hi(n)?n:void 0,animate:hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function Qx(e){const{initial:t,animate:n}=Gx(e,F.useContext(Ms));return F.useMemo(()=>({initial:t,animate:n}),[nd(t),nd(n)])}function nd(e){return Array.isArray(e)?e.join(" "):e}const rd={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"]},mi={};for(const e in rd)mi[e]={isEnabled:t=>rd[e].some(n=>!!t[n])};function Kx(e){for(const t in e)mi[t]={...mi[t],...e[t]}}const og=F.createContext({}),sg=F.createContext({}),Yx=Symbol.for("motionComponentSymbol");function Xx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Kx(e);function o(l,a){let u;const c={...F.useContext(ng),...l,layoutId:Zx(l)},{isStatic:f}=c,d=Qx(l),h=r(l,f);if(!f&&js){d.visualElement=Hx(i,h,c,t);const v=F.useContext(sg),y=F.useContext(rg).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,y,e,v))}return F.createElement(Ms.Provider,{value:d},u&&d.visualElement?F.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,Wx(h,d.visualElement,a),h,f,d.visualElement))}const s=F.forwardRef(o);return s[Yx]=i,s}function Zx({layoutId:e}){const t=F.useContext(og).id;return t&&e!==void 0?t+"-"+e:e}function qx(e){function t(r,i={}){return Xx(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Jx=["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 Ku(e){return typeof e!="string"||e.includes("-")?!1:!!(Jx.indexOf(e)>-1||/[A-Z]/.test(e))}const Xo={};function eS(e){Object.assign(Xo,e)}const ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(ji);function lg(e,{layout:t,layoutId:n}){return Dn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xo[e]||e==="opacity")}const Ve=e=>!!(e&&e.getVelocity),tS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nS=ji.length;function rS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ug=ag("--"),_a=ag("var(--"),iS=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,oS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sn=(e,t,n)=>Math.min(Math.max(n,e),t),Vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qr={...Vn,transform:e=>sn(0,1,e)},io={...Vn,default:1},Kr=e=>Math.round(e*1e5)/1e5,Os=/(-)?([\d]*\.?[\d])+/g,cg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Li(e){return typeof e=="string"}const Ai=e=>({test:t=>Li(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ai("deg"),vt=Ai("%"),z=Ai("px"),lS=Ai("vh"),aS=Ai("vw"),id={...vt,parse:e=>vt.parse(e)/100,transform:e=>vt.transform(e*100)},od={...Vn,transform:Math.round},fg={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,size:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:io,scaleX:io,scaleY:io,scaleZ:io,skew:It,skewX:It,skewY:It,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Qr,originX:id,originY:id,originZ:z,zIndex:od,fillOpacity:Qr,strokeOpacity:Qr,numOctaves:od};function Yu(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(ug(f)){o[f]=d;continue}const h=fg[f],v=oS(d,h);if(Dn.has(f)){if(a=!0,s[f]=v,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=v):i[f]=v}if(t.transform||(a||r?i.transform=rS(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=l;i.transformOrigin=`${f} ${d} ${h}`}}const Xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dg(e,t,n){for(const r in t)!Ve(t[r])&&!lg(r,n)&&(e[r]=t[r])}function uS({transformTemplate:e},t,n){return F.useMemo(()=>{const r=Xu();return Yu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function cS(e,t,n){const r=e.style||{},i={};return dg(i,r,e),Object.assign(i,uS(e,t,n)),e.transformValues?e.transformValues(i):i}function fS(e,t,n){const r={},i=cS(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const dS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Zo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||dS.has(e)}let pg=e=>!Zo(e);function pS(e){e&&(pg=t=>t.startsWith("on")?!Zo(t):e(t))}try{pS(require("@emotion/is-prop-valid").default)}catch{}function hS(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pg(i)||n===!0&&Zo(i)||!t&&!Zo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function sd(e,t,n){return typeof e=="string"?e:z.transform(t+n*e)}function mS(e,t,n){const r=sd(t,e.x,e.width),i=sd(n,e.y,e.height);return`${r} ${i}`}const gS={offset:"stroke-dashoffset",array:"stroke-dasharray"},vS={offset:"strokeDashoffset",array:"strokeDasharray"};function yS(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?gS:vS;e[o.offset]=z.transform(-r);const s=z.transform(t),l=z.transform(n);e[o.array]=`${s} ${l}`}function Zu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Yu(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:y}=e;h.transform&&(y&&(v.transform=h.transform),delete h.transform),y&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=mS(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&yS(h,s,l,a,!1)}const hg=()=>({...Xu(),attrs:{}}),qu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wS(e,t,n,r){const i=F.useMemo(()=>{const o=hg();return Zu(o,t,{enableHardwareAcceleration:!1},qu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};dg(o,e.style,e),i.style={...o,...i.style}}return i}function xS(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Ku(n)?wS:fS)(r,o,s,n),c={...hS(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=F.useMemo(()=>Ve(f)?f.get():f,[f]);return F.createElement(n,{...c,children:d})}}const Ju=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function mg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vg(e,t,n,r){mg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gg.has(i)?i:Ju(i),t.attrs[i])}function ec(e,t){const{style:n}=e,r={};for(const i in n)(Ve(n[i])||t.style&&Ve(t.style[i])||lg(i,e))&&(r[i]=n[i]);return r}function yg(e,t){const n=ec(e,t);for(const r in e)if(Ve(e[r])||Ve(t[r])){const i=ji.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function tc(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function SS(e){const t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}const qo=e=>Array.isArray(e),kS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),PS=e=>qo(e)?e[e.length-1]||0:e;function So(e){const t=Ve(e)?e.get():e;return kS(t)?t.toValue():t}function TS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:CS(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const wg=e=>(t,n)=>{const r=F.useContext(Ms),i=F.useContext(Wu),o=()=>TS(e,t,r,i);return n?o():SS(o)};function CS(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=So(o[d]);let{initial:s,animate:l}=e;const a=As(e),u=ig(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;return f&&typeof f!="boolean"&&!Ls(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=tc(e,h);if(!v)return;const{transitionEnd:y,transition:k,...g}=v;for(const p in g){let m=g[p];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(i[p]=m)}for(const p in y)i[p]=y[p]}),i}const ce=e=>e;class ld{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ES(e){let t=new ld,n=new ld,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(a),d.add(a)&&f&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=ES(()=>n=!0),f),{}),s=f=>o[f].process(i),l=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,_S),1),i.timestamp=f,i.isProcessing=!0,oo.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:oo.reduce((f,d)=>{const h=o[d];return f[d]=(v,y=!1,k=!1)=>(n||a(),h.schedule(v,y,k)),f},{}),cancel:f=>oo.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:J,cancel:At,state:ge,steps:hl}=MS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0),jS={useVisualState:wg({scrapeMotionValuesFromProps:yg,createRenderState:hg,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{Zu(n,r,{enableHardwareAcceleration:!1},qu(t.tagName),e.transformTemplate),vg(t,n)})}})},LS={useVisualState:wg({scrapeMotionValuesFromProps:ec,createRenderState:Xu})};function AS(e,{forwardMotionProps:t=!1},n,r){return{...Ku(e)?jS:LS,preloadedFeatures:n,useRender:xS(t),createVisualElement:r,Component:e}}function Pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const xg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ns(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const OS=e=>t=>xg(t)&&e(t,Ns(t));function Ct(e,t,n,r){return Pt(e,t,OS(n),r)}const NS=(e,t)=>n=>t(e(n)),tn=(...e)=>e.reduce(NS);function Sg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ad=Sg("dragHorizontal"),ud=Sg("dragVertical");function kg(e){let t=!1;if(e==="y")t=ud();else if(e==="x")t=ad();else{const n=ad(),r=ud();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pg(){const e=kg(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Pg())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&J.update(()=>l[r](o,s))};return Ct(e.current,n,i,{passive:!e.getProps()[r]})}class RS extends fn{mount(){this.unmount=tn(cd(this.node,!0),cd(this.node,!1))}unmount(){}}class bS extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tn(Pt(this.node.current,"focus",()=>this.onFocus()),Pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tg=(e,t)=>t?e===t?!0:Tg(e,t.parentElement):!1;function ml(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ns(n))}class DS extends fn{constructor(){super(...arguments),this.removeStartListeners=ce,this.removeEndListeners=ce,this.removeAccessibleListeners=ce,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=Ct(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();J.update(()=>{Tg(this.node.current,l.target)?u&&u(l,a):c&&c(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ct(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||ml("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&J.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=Pt(this.node.current,"keyup",s),ml("down",(l,a)=>{this.startPress(l,a)})},n=Pt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ml("cancel",(o,s)=>this.cancelPress(o,s))},i=Pt(this.node.current,"blur",r);this.removeAccessibleListeners=tn(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&J.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ct(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Pt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ma=new WeakMap,gl=new WeakMap,VS=e=>{const t=Ma.get(e.target);t&&t(e)},IS=e=>{e.forEach(VS)};function zS({root:e,...t}){const n=e||document;gl.has(n)||gl.set(n,{});const r=gl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(IS,{root:e,...t})),r[i]}function FS(e,t,n){const r=zS(t);return Ma.set(e,n),r.observe(e),()=>{Ma.delete(e),r.unobserve(e)}}const BS={some:0,all:1};class $S extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BS[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return FS(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(US(t,n))&&this.startObserver()}unmount(){}}function US({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HS={inView:{Feature:$S},tap:{Feature:DS},focus:{Feature:bS},hover:{Feature:RS}};function Cg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function GS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Rs(e,t,n){const r=e.getProps();return tc(r,t,n!==void 0?n:r.custom,WS(e),GS(e))}const QS="framerAppearId",KS="data-"+Ju(QS);let YS=ce,nc=ce;const nn=e=>e*1e3,Et=e=>e/1e3,XS={current:!1},Eg=e=>Array.isArray(e)&&typeof e[0]=="number";function _g(e){return!!(!e||typeof e=="string"&&Mg[e]||Eg(e)||Array.isArray(e)&&e.every(_g))}const Vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function jg(e){if(e)return Eg(e)?Vr(e):Array.isArray(e)?e.map(jg):Mg[e]}function ZS(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=jg(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function qS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JS=1e-7,ek=12;function tk(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Lg(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>JS&&++ltk(o,0,1,e,n);return o=>o===0||o===1?o:Lg(i(o),t,r)}const nk=Oi(.42,0,1,1),rk=Oi(0,0,.58,1),Ag=Oi(.42,0,.58,1),ik=e=>Array.isArray(e)&&typeof e[0]!="number",Og=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ng=e=>t=>1-e(1-t),Rg=e=>1-Math.sin(Math.acos(e)),rc=Ng(Rg),ok=Og(rc),bg=Oi(.33,1.53,.69,.99),ic=Ng(bg),sk=Og(ic),lk=e=>(e*=2)<1?.5*ic(e):.5*(2-Math.pow(2,-10*(e-1))),ak={linear:ce,easeIn:nk,easeInOut:Ag,easeOut:rk,circIn:Rg,circInOut:ok,circOut:rc,backIn:ic,backInOut:sk,backOut:bg,anticipate:lk},fd=e=>{if(Array.isArray(e)){nc(e.length===4);const[t,n,r,i]=e;return Oi(t,n,r,i)}else if(typeof e=="string")return ak[e];return e},oc=(e,t)=>n=>!!(Li(n)&&sS.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Dg=(e,t,n)=>r=>{if(!Li(r))return r;const[i,o,s,l]=r.match(Os);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},uk=e=>sn(0,255,e),vl={...Vn,transform:e=>Math.round(uk(e))},Tn={test:oc("rgb","red"),parse:Dg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vl.transform(e)+", "+vl.transform(t)+", "+vl.transform(n)+", "+Kr(Qr.transform(r))+")"};function ck(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ja={test:oc("#"),parse:ck,transform:Tn.transform},qn={test:oc("hsl","hue"),parse:Dg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vt.transform(Kr(t))+", "+vt.transform(Kr(n))+", "+Kr(Qr.transform(r))+")"},_e={test:e=>Tn.test(e)||ja.test(e)||qn.test(e),parse:e=>Tn.test(e)?Tn.parse(e):qn.test(e)?qn.parse(e):ja.parse(e),transform:e=>Li(e)?e:e.hasOwnProperty("red")?Tn.transform(e):qn.transform(e)},oe=(e,t,n)=>-n*e+n*t+e;function yl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=yl(a,l,e+1/3),o=yl(a,l,e),s=yl(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const wl=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},dk=[ja,Tn,qn],pk=e=>dk.find(t=>t.test(e));function dd(e){const t=pk(e);let n=t.parse(e);return t===qn&&(n=fk(n)),n}const Vg=(e,t)=>{const n=dd(e),r=dd(t),i={...n};return o=>(i.red=wl(n.red,r.red,o),i.green=wl(n.green,r.green,o),i.blue=wl(n.blue,r.blue,o),i.alpha=oe(n.alpha,r.alpha,o),Tn.transform(i))};function hk(e){var t,n;return isNaN(e)&&Li(e)&&(((t=e.match(Os))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cg))===null||n===void 0?void 0:n.length)||0)>0}const Ig={regex:iS,countKey:"Vars",token:"${v}",parse:ce},zg={regex:cg,countKey:"Colors",token:"${c}",parse:_e.parse},Fg={regex:Os,countKey:"Numbers",token:"${n}",parse:Vn.parse};function xl(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Jo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xl(n,Ig),xl(n,zg),xl(n,Fg),n}function Bg(e){return Jo(e).values}function $g(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Jo(e),o=t.length;return s=>{let l=i;for(let a=0;atypeof e=="number"?0:e;function gk(e){const t=Bg(e);return $g(e)(t.map(mk))}const ln={test:hk,parse:Bg,createTransformer:$g,getAnimatableNone:gk},Ug=(e,t)=>n=>`${n>0?t:e}`;function Hg(e,t){return typeof e=="number"?n=>oe(e,t,n):_e.test(e)?Vg(e,t):e.startsWith("var(")?Ug(e,t):Gg(e,t)}const Wg=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Hg(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hg(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Gg=(e,t)=>{const n=ln.createTransformer(t),r=Jo(e),i=Jo(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tn(Wg(r.values,i.values),n):Ug(e,t)},gi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},pd=(e,t)=>n=>oe(e,t,n);function yk(e){return typeof e=="number"?pd:typeof e=="string"?_e.test(e)?Vg:Gg:Array.isArray(e)?Wg:typeof e=="object"?vk:pd}function wk(e,t,n){const r=[],i=n||yk(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=wk(t,r,i),l=s.length,a=u=>{let c=0;if(l>1)for(;ca(sn(e[0],e[o-1],u)):a}function xk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=gi(0,t,r);e.push(oe(n,1,i))}}function Sk(e){const t=[0];return xk(t,e.length-1),t}function kk(e,t){return e.map(n=>n*t)}function Pk(e,t){return e.map(()=>t||Ag).splice(0,e.length-1)}function es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ik(r)?r.map(fd):fd(r),o={done:!1,value:t[0]},s=kk(n&&n.length===t.length?n:Sk(t),e),l=Qg(s,t,{ease:Array.isArray(i)?i:Pk(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Kg(e,t){return t?e*(1e3/t):0}const Tk=5;function Yg(e,t,n){const r=Math.max(t-Tk,0);return Kg(n-e(r),t-r)}const Sl=.001,Ck=.01,hd=10,Ek=.05,_k=1;function Mk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;YS(e<=nn(hd));let s=1-t;s=sn(Ek,_k,s),e=sn(Ck,hd,Et(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=La(u,s),v=Math.exp(-f);return Sl-d/h*v},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=La(Math.pow(u,2),s);return(-i(u)+Sl>0?-1:1)*((d-h)*v)/y}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Sl+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=Lk(i,o,l);if(e=nn(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const jk=12;function Lk(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Nk(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!md(e,Ok)&&md(e,Ak)){const n=Mk(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xg({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=Nk(r),h=c?-Et(c):0,v=a/(2*Math.sqrt(l*u)),y=o-i,k=Et(Math.sqrt(l/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(v<1){const m=La(k,v);p=w=>{const S=Math.exp(-v*k*w);return o-S*((h+v*k*y)/m*Math.sin(m*w)+y*Math.cos(m*w))}}else if(v===1)p=m=>o-Math.exp(-k*m)*(y+(h+k*y)*m);else{const m=k*Math.sqrt(v*v-1);p=w=>{const S=Math.exp(-v*k*w),P=Math.min(m*w,300);return o-S*((h+v*k*y)*Math.sinh(P)+m*y*Math.cosh(P))/m}}return{calculatedDuration:d&&f||null,next:m=>{const w=p(m);if(d)s.done=m>=f;else{let S=h;m!==0&&(v<1?S=Yg(p,m,w):S=0);const P=Math.abs(S)<=n,C=Math.abs(o-w)<=t;s.done=P&&C}return s.value=s.done?o:w,s}}}function gd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=T=>l!==void 0&&Ta,v=T=>l===void 0?a:a===void 0||Math.abs(l-T)-y*Math.exp(-T/r),m=T=>g+p(T),w=T=>{const R=p(T),b=m(T);d.done=Math.abs(R)<=u,d.value=d.done?g:b};let S,P;const C=T=>{h(d.value)&&(S=T,P=Xg({keyframes:[d.value,v(d.value)],velocity:Yg(m,T,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:T=>{let R=!1;return!P&&S===void 0&&(R=!0,w(T),C(T)),S!==void 0&&T>S?P.next(T-S):(!R&&w(T),d)}}}const Rk=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>At(t),now:()=>ge.isProcessing?ge.timestamp:performance.now()}},vd=2e4;function yd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=vd?1/0:t}const bk={decay:gd,inertia:gd,tween:es,keyframes:es,spring:Xg};function ts({autoplay:e=!0,delay:t=0,driver:n=Rk,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,v=!1,y,k;const g=()=>{k=new Promise(O=>{y=O})};g();let p;const m=bk[i]||es;let w;m!==es&&typeof r[0]!="number"&&(w=Qg([0,100],r,{clamp:!1}),r=[0,100]);const S=m({...d,keyframes:r});let P;l==="mirror"&&(P=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let C="idle",T=null,R=null,b=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=yd(S));const{calculatedDuration:L}=S;let M=1/0,V=1/0;L!==null&&(M=L+s,V=M*(o+1)-s);let N=0;const D=O=>{if(R===null)return;h>0&&(R=Math.min(R,O)),h<0&&(R=Math.min(O-V/h,R)),T!==null?N=T:N=Math.round(O-R)*h;const W=N-t*(h>=0?1:-1),Y=h>=0?W<0:W>V;N=Math.max(W,0),C==="finished"&&T===null&&(N=V);let Ie=N,Nt=S;if(o){const bs=N/M;let Ni=Math.floor(bs),pn=bs%1;!pn&&bs>=1&&(pn=1),pn===1&&Ni--,Ni=Math.min(Ni,o+1);const fc=!!(Ni%2);fc&&(l==="reverse"?(pn=1-pn,s&&(pn-=s/M)):l==="mirror"&&(Nt=P));let dc=sn(0,1,pn);N>V&&(dc=l==="reverse"&&fc?1:0),Ie=dc*M}const ze=Y?{done:!1,value:r[0]}:Nt.next(Ie);w&&(ze.value=w(ze.value));let{done:dn}=ze;!Y&&L!==null&&(dn=h>=0?N>=V:N<=0);const kv=T===null&&(C==="finished"||C==="running"&&dn);return f&&f(ze.value),kv&&_(),ze},B=()=>{p&&p.stop(),p=void 0},$=()=>{C="idle",B(),y(),g(),R=b=null},_=()=>{C="finished",c&&c(),B(),y()},A=()=>{if(v)return;p||(p=n(D));const O=p.now();a&&a(),T!==null?R=O-T:(!R||C==="finished")&&(R=O),C==="finished"&&g(),b=R,T=null,C="running",p.start()};e&&A();const I={then(O,W){return k.then(O,W)},get time(){return Et(N)},set time(O){O=nn(O),N=O,T!==null||!p||h===0?T=O:R=p.now()-O/h},get duration(){const O=S.calculatedDuration===null?yd(S):S.calculatedDuration;return Et(O)},get speed(){return h},set speed(O){O===h||!p||(h=O,I.time=Et(N))},get state(){return C},play:A,pause:()=>{C="paused",T=N},stop:()=>{v=!0,C!=="idle"&&(C="idle",u&&u(),$())},cancel:()=>{b!==null&&D(b),$()},complete:()=>{C="finished"},sample:O=>(R=0,D(O))};return I}function Dk(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vk=Dk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ik=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),so=10,zk=2e4,Fk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!_g(t.ease);function Bk(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Vk()&&Ik.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a;const u=()=>{a=new Promise(p=>{l=p})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Fk(t,i)){const p=ts({...i,repeat:0,delay:0});let m={done:!1,value:c[0]};const w=[];let S=0;for(;!m.done&&Sv.cancel(),k=()=>{J.update(y),l(),u()};return v.onfinish=()=>{e.set(qS(c,i)),r&&r(),k()},{then(p,m){return a.then(p,m)},attachTimeline(p){return v.timeline=p,v.onfinish=null,ce},get time(){return Et(v.currentTime||0)},set time(p){v.currentTime=nn(p)},get speed(){return v.playbackRate},set speed(p){v.playbackRate=p},get duration(){return Et(f)},play:()=>{s||(v.play(),At(y))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:p}=v;if(p){const m=ts({...i,autoplay:!1});e.setWithVelocity(m.sample(p-so).value,m.sample(p).value,so)}k()},complete:()=>v.finish(),cancel:k}}function $k({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ce,pause:ce,stop:ce,then:o=>(o(),Promise.resolve()),cancel:ce,complete:ce});return t?ts({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Uk={type:"spring",stiffness:500,damping:25,restSpeed:10},Hk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wk={type:"keyframes",duration:.8},Gk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Qk=(e,{keyframes:t})=>t.length>2?Wk:Dn.has(e)?e.startsWith("scale")?Hk(t[1]):Uk:Gk,Aa=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ln.test(t)||t==="0")&&!t.startsWith("url(")),Kk=new Set(["brightness","contrast","saturate","opacity"]);function Yk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Os)||[];if(!r)return e;const i=n.replace(r,"");let o=Kk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Xk=/([a-z-]*)\(.*?\)/g,Oa={...ln,getAnimatableNone:e=>{const t=e.match(Xk);return t?t.map(Yk).join(" "):e}},Zk={...fg,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:Oa,WebkitFilter:Oa},sc=e=>Zk[e];function Zg(e,t){let n=sc(e);return n!==Oa&&(n=ln),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qg=e=>/^0[^.\s]+$/.test(e);function qk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||qg(e)}function Jk(e,t,n,r){const i=Aa(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;ui=>{const o=Jg(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-nn(s);const a=Jk(t,e,n,o),u=a[0],c=a[a.length-1],f=Aa(e,u),d=Aa(e,c);let h={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:v=>{t.set(v),o.onUpdate&&o.onUpdate(v)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(eP(o)||(h={...h,...Qk(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||XS.current||o.type===!1)return $k(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=Bk(t,e,h);if(v)return v}return ts(h)};function ns(e){return!!(Ve(e)&&e.add)}const ev=e=>/^\-?\d*\.?\d+$/.test(e);function ac(e,t){e.indexOf(t)===-1&&e.push(t)}function uc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class cc{constructor(){this.subscriptions=[]}add(t){return ac(this.subscriptions,t),()=>uc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class nP{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ge;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,J.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>J.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=tP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cc);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Kg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hr(e,t){return new nP(e,t)}const tv=e=>t=>t.test(e),rP={test:e=>e==="auto",parse:e=>e},nv=[Vn,z,vt,It,aS,lS,rP],Ar=e=>nv.find(tv(e)),iP=[...nv,_e,ln],oP=e=>iP.find(tv(e));function sP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hr(n))}function lP(e,t){const n=Rs(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=PS(o[s]);sP(e,s,l)}}function aP(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;la.remove(f))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&lP(e,s)}),u}function Na(e,t,n={}){const r=Rs(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(rv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return dP(e,t,u+a,c,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function dP(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(pP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Na(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function pP(e,t){return e.sortNodePosition(t)}function hP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Na(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Na(e,t,n);else{const i=typeof t=="function"?Rs(e,t,n.custom):t;r=Promise.all(rv(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const mP=[...Gu].reverse(),gP=Gu.length;function vP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hP(e,n,r)))}function yP(e){let t=vP(e);const n=xP();let r=!0;const i=(a,u)=>{const c=Rs(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;a={...a,...h,...d}}return a};function o(a){t=a(e)}function s(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let v={},y=1/0;for(let g=0;gy&&S;const b=Array.isArray(w)?w:[w];let L=b.reduce(i,{});P===!1&&(L={});const{prevResolvedValues:M={}}=m,V={...M,...L},N=D=>{R=!0,h.delete(D),m.needsAnimating[D]=!0};for(const D in V){const B=L[D],$=M[D];v.hasOwnProperty(D)||(B!==$?qo(B)&&qo($)?!Cg(B,$)||T?N(D):m.protectedKeys[D]=!0:B!==void 0?N(D):h.add(D):B!==void 0&&h.has(D)?N(D):m.protectedKeys[D]=!0)}m.prevProp=w,m.prevResolvedValues=L,m.isActive&&(v={...v,...L}),r&&e.blockInitialAnimation&&(R=!1),R&&!C&&d.push(...b.map(D=>({animation:D,options:{type:p,...a}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),d.push({animation:g})}let k=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?t(d):Promise.resolve()}function l(a,u,c){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(a,u)}),n[a].isActive=u;const d=s(c,a);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function wP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cg(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xP(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class SP extends fn{constructor(t){super(t),t.animationState||(t.animationState=yP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ls(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let kP=0;class PP extends fn{constructor(){super(...arguments),this.id=kP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const TP={animation:{Feature:SP},exit:{Feature:PP}},wd=(e,t)=>Math.abs(e-t);function CP(e,t){const n=wd(e.x,t.x),r=wd(e.y,t.y);return Math.sqrt(n**2+r**2)}class iv{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Pl(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=CP(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=ge;this.history.push({...d,timestamp:h});const{onStart:v,onMove:y}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=kl(c,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Pl(u.type==="pointercancel"?this.lastMoveEventInfo:kl(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!xg(t))return;this.handlers=n,this.transformPagePoint=r;const i=Ns(t),o=kl(i,this.transformPagePoint),{point:s}=o,{timestamp:l}=ge;this.history=[{...s,timestamp:l}];const{onSessionStart:a}=n;a&&a(t,Pl(o,this.history)),this.removeListeners=tn(Ct(window,"pointermove",this.handlePointerMove),Ct(window,"pointerup",this.handlePointerUp),Ct(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),At(this.updatePoint)}}function kl(e,t){return t?{point:t(e.point)}:e}function xd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pl({point:e},t){return{point:e,delta:xd(e,ov(t)),offset:xd(e,EP(t)),velocity:_P(t,.1)}}function EP(e){return e[0]}function ov(e){return e[e.length-1]}function _P(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ov(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>nn(t)));)n--;if(!r)return{x:0,y:0};const o=Et(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function He(e){return e.max-e.min}function Ra(e,t=0,n=.01){return Math.abs(e-t)<=n}function Sd(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=He(n)/He(t),(Ra(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(Ra(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Yr(e,t,n,r){Sd(e.x,t.x,n.x,r?r.originX:void 0),Sd(e.y,t.y,n.y,r?r.originY:void 0)}function kd(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function MP(e,t,n){kd(e.x,t.x,n.x),kd(e.y,t.y,n.y)}function Pd(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function Xr(e,t,n){Pd(e.x,t.x,n.x),Pd(e.y,t.y,n.y)}function jP(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function Td(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LP(e,{top:t,left:n,bottom:r,right:i}){return{x:Td(e.x,n,i),y:Td(e.y,t,r)}}function Cd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=gi(t.min,t.max-r,e.min):r>i&&(n=gi(e.min,e.max-i,t.min)),sn(0,1,n)}function NP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ba=.35;function RP(e=ba){return e===!1?e=0:e===!0&&(e=ba),{x:Ed(e,"left","right"),y:Ed(e,"top","bottom")}}function Ed(e,t,n){return{min:_d(e,t),max:_d(e,n)}}function _d(e,t){return typeof e=="number"?e:e[t]||0}const Md=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jn=()=>({x:Md(),y:Md()}),jd=()=>({min:0,max:0}),de=()=>({x:jd(),y:jd()});function ft(e){return[e("x"),e("y")]}function sv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Tl(e){return e===void 0||e===1}function Da({scale:e,scaleX:t,scaleY:n}){return!Tl(e)||!Tl(t)||!Tl(n)}function yn(e){return Da(e)||lv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function lv(e){return Ld(e.x)||Ld(e.y)}function Ld(e){return e&&e!=="0%"}function rs(e,t,n){const r=e-n,i=t*r;return n+i}function Ad(e,t,n,r,i){return i!==void 0&&(e=rs(e,i,r)),rs(e,n,r)+t}function Va(e,t=0,n=1,r,i){e.min=Ad(e.min,t,n,r,i),e.max=Ad(e.max,t,n,r,i)}function av(e,{x:t,y:n}){Va(e.x,t.translate,t.scale,t.originPoint),Va(e.y,n.translate,n.scale,n.originPoint)}function VP(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function Bt(e,t){e.min=e.min+t,e.max=e.max+t}function Nd(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=oe(e.min,e.max,o);Va(e,t[n],t[r],s,t.scale)}const IP=["x","scaleX","originX"],zP=["y","scaleY","originY"];function er(e,t){Nd(e.x,t,IP),Nd(e.y,t,zP)}function uv(e,t){return sv(DP(e.getBoundingClientRect(),t))}function FP(e,t,n){const r=uv(e,n),{scroll:i}=t;return i&&(Bt(r.x,i.offset.x),Bt(r.y,i.offset.y)),r}const BP=new WeakMap;class $P{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=a=>{this.stopAnimation(),n&&this.snapToCursor(Ns(a,"page").point)},o=(a,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kg(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ft(v=>{let y=this.getAxisMotionValue(v).get()||0;if(vt.test(y)){const{projection:k}=this.visualElement;if(k&&k.layout){const g=k.layout.layoutBox[v];g&&(y=He(g)*(parseFloat(y)/100))}}this.originPoint[v]=y}),d&&J.update(()=>d(a,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(a,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(f&&this.currentDirection===null){this.currentDirection=UP(v),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),h&&h(a,u)},l=(a,u)=>this.stop(a,u);this.panSession=new iv(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&J.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!lo(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=jP(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=LP(r.layoutBox,t):this.constraints=!1,this.elastic=RP(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ft(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=NP(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=FP(r,i.root,this.visualElement.getTransformPagePoint());let s=AP(i.layout.layoutBox,o);if(n){const l=n(bP(s));this.hasMutatedConstraints=!!l,l&&(s=sv(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=ft(c=>{if(!lo(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(lc(t,r,0,n))}stopAnimation(){ft(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ft(n=>{const{drag:r}=this.getProps();if(!lo(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-oe(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ft(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=OP({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ft(s=>{if(!lo(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(oe(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;BP.set(this.visualElement,this);const t=this.visualElement.current,n=Ct(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Zn(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Pt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(ft(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=ba,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function lo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HP extends fn{constructor(t){super(t),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new $P(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Rd=e=>(t,n)=>{e&&J.update(()=>e(t,n))};class WP extends fn{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(t){this.session=new iv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Rd(t),onStart:Rd(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&J.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Ct(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function GP(){const e=F.useContext(Wu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=F.useId();return F.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Or={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=bd(e,t.target.x),r=bd(e,t.target.y);return`${n}% ${r}%`}},QP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ln.parse(e);if(i.length>5)return r;const o=ln.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=oe(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class KP extends ht.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;eS(YP),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||J.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cv(e){const[t,n]=GP(),r=F.useContext(og);return ht.createElement(KP,{...e,layoutGroup:r,switchLayoutGroup:F.useContext(sg),isPresent:t,safeToRemove:n})}const YP={borderRadius:{...Or,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Or,borderTopRightRadius:Or,borderBottomLeftRadius:Or,borderBottomRightRadius:Or,boxShadow:QP},fv=["TopLeft","TopRight","BottomLeft","BottomRight"],XP=fv.length,Dd=e=>typeof e=="string"?parseFloat(e):e,Vd=e=>typeof e=="number"||z.test(e);function ZP(e,t,n,r,i,o){i?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,qP(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,JP(r))):o&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(gi(e,t,r))}function zd(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){zd(e.x,t.x),zd(e.y,t.y)}function Fd(e,t,n,r,i){return e-=t,e=rs(e,1/n,r),i!==void 0&&(e=rs(e,1/i,r)),e}function e2(e,t=0,n=1,r=.5,i,o=e,s=e){if(vt.test(t)&&(t=parseFloat(t),t=oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=oe(o.min,o.max,r);e===o&&(l-=t),e.min=Fd(e.min,t,n,l,i),e.max=Fd(e.max,t,n,l,i)}function Bd(e,t,[n,r,i],o,s){e2(e,t[n],t[r],t[i],t.scale,o,s)}const t2=["x","scaleX","originX"],n2=["y","scaleY","originY"];function $d(e,t,n,r){Bd(e.x,t,t2,n?n.x:void 0,r?r.x:void 0),Bd(e.y,t,n2,n?n.y:void 0,r?r.y:void 0)}function Ud(e){return e.translate===0&&e.scale===1}function pv(e){return Ud(e.x)&&Ud(e.y)}function r2(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function hv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Hd(e){return He(e.x)/He(e.y)}class i2{constructor(){this.members=[]}add(t){ac(this.members,t),t.scheduleRender()}remove(t){if(uc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wd(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const o2=(e,t)=>e.depth-t.depth;class s2{constructor(){this.children=[],this.isDirty=!1}add(t){ac(this.children,t),this.isDirty=!0}remove(t){uc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o2),this.isDirty=!1,this.children.forEach(t)}}function l2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(At(r),e(o-t))};return J.read(r,!0),()=>At(r)}function a2(e){window.MotionDebug&&window.MotionDebug.record(e)}function u2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function c2(e,t,n){const r=Ve(e)?e:hr(e);return r.start(lc("",r,t,n)),r.animation}const Gd=["","X","Y","Z"],Qd=1e3;let f2=0;const wn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=f2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{wn.totalNodes=wn.resolvedTargetDeltas=wn.recalculatedProjection=0,this.nodes.forEach(h2),this.nodes.forEach(w2),this.nodes.forEach(x2),this.nodes.forEach(m2),a2(wn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=l2(d,250),ko.hasAnimatedSinceResize&&(ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Yd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||C2,{onLayoutAnimationStart:k,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!hv(this.targetLayout,v)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const w={...Jg(y,"layout"),onPlay:k,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Yd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,At(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(S2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(g2),this.sharedNodes.forEach(k2)}scheduleUpdateProjection(){J.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const S=w/1e3;Xd(f.x,s.x,S),Xd(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P2(this.relativeTarget,this.relativeTargetOrigin,d,S),m&&r2(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=de()),Ke(m,this.relativeTarget)),y&&(this.animationValues=c,ZP(c,u,this.latestValues,S,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(At(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{ko.hasAnimatedSinceResize=!0,this.currentAnimation=c2(0,Qd,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&gv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||de();const f=He(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=He(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Ke(l,a),er(l,c),Yr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new i2),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Kd),this.root.sharedNodes.clear()}}}function d2(e){e.updateLayout()}function p2(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=He(d);d.min=r[f].min,d.max=d.min+h}):gv(o,n.layoutBox,r)&&ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=He(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Jn();Yr(l,r,n.layoutBox);const a=Jn();s?Yr(a,e.applyTransform(i,!0),n.measuredBox):Yr(a,r,n.layoutBox);const u=!pv(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const v=de();Xr(v,n.layoutBox,d.layoutBox);const y=de();Xr(y,r,h.layoutBox),hv(v,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function h2(e){wn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function m2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g2(e){e.clearSnapshot()}function Kd(e){e.clearMeasurements()}function v2(e){e.isLayoutDirty=!1}function y2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function w2(e){e.resolveTargetDelta()}function x2(e){e.calcProjection()}function S2(e){e.resetRotation()}function k2(e){e.removeLeadSnapshot()}function Xd(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zd(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function P2(e,t,n,r){Zd(e.x,t.x,n.x,r),Zd(e.y,t.y,n.y,r)}function T2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const C2={duration:.45,ease:[.4,0,.1,1]},qd=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Jd=qd("applewebkit/")&&!qd("chrome/")?Math.round:ce;function ep(e){e.min=Jd(e.min),e.max=Jd(e.max)}function E2(e){ep(e.x),ep(e.y)}function gv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ra(Hd(t),Hd(n),.2)}const _2=mv({attachResizeListener:(e,t)=>Pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cl={current:void 0},vv=mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cl.current){const e=new _2({});e.mount(window),e.setOptions({layoutScroll:!0}),Cl.current=e}return Cl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),M2={pan:{Feature:WP},drag:{Feature:HP,ProjectionNode:vv,MeasureLayout:cv}},j2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function L2(e){const t=j2.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ia(e,t,n=1){const[r,i]=L2(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ev(s)?parseFloat(s):s}else return _a(i)?Ia(i,t,n+1):i}function A2(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!_a(o))return;const s=Ia(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!_a(o))continue;const s=Ia(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const O2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),yv=e=>O2.has(e),N2=e=>Object.keys(e).some(yv),tp=e=>e===Vn||e===z,np=(e,t)=>parseFloat(e.split(", ")[t]),rp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return np(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?np(o[1],e):0}},R2=new Set(["x","y","z"]),b2=ji.filter(e=>!R2.has(e));function D2(e){const t=[];return b2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rp(4,13),y:rp(5,14)};mr.translateX=mr.x;mr.translateY=mr.y;const V2=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=mr[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=mr[u](a,o)}),e},I2=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(yv);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],f=Ar(c);const d=t[a];let h;if(qo(d)){const v=d.length,y=d[0]===null?1:0;c=d[y],f=Ar(c);for(let k=y;k=0?window.pageYOffset:null,u=V2(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),js&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function z2(e,t,n,r){return N2(t)?I2(e,t,n,r):{target:t,transitionEnd:r}}const F2=(e,t,n,r)=>{const i=A2(e,t,r);return t=i.target,r=i.transitionEnd,z2(e,t,n,r)},za={current:null},wv={current:!1};function B2(){if(wv.current=!0,!!js)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>za.current=e.matches;e.addListener(t),t()}else za.current=!1}function $2(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ve(o))e.addValue(i,o),ns(r)&&r.add(i);else if(Ve(s))e.addValue(i,hr(o,{owner:e})),ns(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,hr(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const ip=new WeakMap,xv=Object.keys(mi),U2=xv.length,op=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],H2=Qu.length;class W2{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>J.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=As(n),this.isVariantNode=ig(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];l[f]!==void 0&&Ve(d)&&(d.set(l[f],!1),ns(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,ip.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),wv.current||B2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:za.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ip.delete(this.current),this.projection&&this.projection.unmount(),At(this.notifyUpdate),At(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Dn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&J.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=tc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ve(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sv extends W2{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=cP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){aP(this,r,s);const l=F2(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function G2(e){return window.getComputedStyle(e)}class Q2 extends Sv{readValueFromInstance(t,n){if(Dn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=G2(t),i=(ug(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uv(t,n)}build(t,n,r,i){Yu(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return ec(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){mg(t,n,r,i)}}class K2 extends Sv{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dn.has(n)){const r=sc(n);return r&&r.default||0}return n=gg.has(n)?n:Ju(n),t.getAttribute(n)}measureInstanceViewportBox(){return de()}scrapeMotionValuesFromProps(t,n){return yg(t,n)}build(t,n,r,i){Zu(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){vg(t,n,r,i)}mount(t){this.isSVGTag=qu(t.tagName),super.mount(t)}}const Y2=(e,t)=>Ku(e)?new K2(t,{enableHardwareAcceleration:!1}):new Q2(t,{enableHardwareAcceleration:!0}),X2={layout:{ProjectionNode:vv,MeasureLayout:cv}},Z2={...TP,...HS,...M2,...X2},sp=qx((e,t)=>AS(e,t,Z2,Y2));function q2(){const[e,t]=F.useState(!1);return x.jsxs("aside",{className:"block h-[60px] w-full bg-black lg:h-screen lg:w-[300px]",children:[x.jsxs("div",{className:"hidden lg:flex lg:h-full lg:flex-col lg:justify-between lg:p-5 lg:text-center",children:[x.jsxs("div",{className:"flex flex-col items-center gap-2",children:[x.jsx("div",{className:"relative aspect-square w-full overflow-hidden rounded-full border-8 border-indigo-950",children:x.jsx("img",{className:"h-full w-full object-cover",src:Yf,alt:"photo"})}),x.jsx("h1",{className:"text-xl font-[500]",children:"Vladyslav Lopuha"}),x.jsx("span",{className:"text-sm opacity-60",children:"@Lynx1"})]}),x.jsx("ul",{className:"flex flex-col gap-4",children:td.map(n=>x.jsx("li",{children:x.jsx(Ca,{containerId:"sectionsContainer",to:n.id,smooth:!0,duration:500,className:"cursor-pointer select-none duration-200 hover:text-highlight",children:n.name})},n.id))}),x.jsxs("div",{className:"flex justify-center gap-4",children:[x.jsx("a",{href:"https://discordapp.com/users/346916032633503745",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#5865F2] hover:opacity-100",children:x.jsx(Jf,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://twitter.com/lynx1qq",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#00acee] hover:opacity-100",children:x.jsx(qf,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://linkedin.com/in/lynx1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#0072b1] hover:opacity-100",children:x.jsx(ed,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://github.com/LynxN1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:opacity-100",children:x.jsx(Zf,{className:"h-5 w-5",color:"white"})})]})]}),x.jsxs("div",{className:"flex h-full w-full items-center justify-end px-4 lg:hidden",children:[x.jsxs("div",{className:"flex w-[35px] cursor-pointer flex-col gap-2",onClick:()=>t(!e),children:[x.jsx("span",{className:"h-0.5 bg-white"}),x.jsx("span",{className:"h-0.5 w-3/4 bg-white"}),x.jsx("span",{className:"h-0.5 w-1/2 bg-white"})]}),x.jsx(sp.div,{className:bu("fixed left-0 top-[60px] z-20 hidden h-screen w-full",{block:e}),animate:{backdropFilter:e?"blur(5px)":"blur(0px)"}}),x.jsx(sp.div,{className:"fixed top-0 z-50 h-screen w-3/4 bg-black",animate:{left:e?"-0%":"-100%"},transition:{duration:.3,ease:"easeOut"},children:x.jsxs("div",{className:"flex h-full flex-col justify-between px-10 py-4 text-center",children:[x.jsxs("div",{className:"flex flex-col items-center gap-2 pt-12",children:[x.jsx("div",{className:"relative aspect-square max-w-[200px] overflow-hidden rounded-full border-8 border-indigo-950",children:x.jsx("img",{className:"h-full w-full object-cover",src:Yf,alt:"photo"})}),x.jsx("h1",{className:"text-xl font-[500]",children:"Vladyslav Lopuha"}),x.jsx("span",{className:"text-md opacity-60",children:"@Lynx1"})]}),x.jsx("ul",{className:"flex flex-col gap-6 text-2xl",children:td.map(n=>x.jsx("li",{children:x.jsx(Ca,{containerId:"sectionsContainer",to:n.id,smooth:!0,duration:500,className:"cursor-pointer select-none duration-200 hover:text-highlight",children:n.name})},n.id))}),x.jsxs("div",{className:"flex justify-center gap-4",children:[x.jsx("a",{href:"https://discordapp.com/users/346916032633503745",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#5865F2] hover:opacity-100",children:x.jsx(Jf,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://twitter.com/lynx1qq",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#00acee] hover:opacity-100",children:x.jsx(qf,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://linkedin.com/in/lynx1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#0072b1] hover:opacity-100",children:x.jsx(ed,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://github.com/LynxN1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:opacity-100",children:x.jsx(Zf,{className:"h-8 w-8",color:"white"})})]})]})})]})]})}function J2(){return x.jsxs("div",{className:"flex flex-col lg:flex-row",children:[x.jsx(q2,{}),x.jsxs("main",{id:"sectionsContainer",className:"relative max-h-screen w-full overflow-y-auto",children:[x.jsx(Rx,{}),x.jsx(Nx,{}),x.jsx(Fx,{}),x.jsx(zx,{})]})]})}El.createRoot(document.getElementById("root")).render(x.jsx(ht.StrictMode,{children:x.jsx(J2,{})})); +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function il(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function oa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var P0=typeof WeakMap=="function"?WeakMap:Map;function Gh(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,ma=r),oa(e,t)},n}function Qh(e,t,n){n=Tt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){oa(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){oa(e,t),typeof r!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function rf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new P0;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=V0.bind(null,e,t,n),t.then(e,e))}function of(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function sf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tt(-1,1),t.tag=2,Xt(n,t,1))),n.lanes|=1),e)}var T0=Ot.ReactCurrentOwner,Ne=!1;function Me(e,t,n,r){t.child=e===null?Ch(t,null,n,r):cr(t,e.child,n,r)}function lf(e,t,n,r,i){n=n.render;var o=t.ref;return or(t,i),r=yu(e,t,n,r,o,i),n=wu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(te&&n&&su(t),t.flags|=1,Me(e,t,r,i),t.child)}function af(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!ju(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Kh(e,t,o,r,i)):(e=xo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:ii,n(s,r)&&e.ref===t.ref)return Lt(e,t,i)}return t.flags|=1,e=Jt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Kh(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ii(o,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Lt(e,t,i)}return sa(e,t,n,r,i)}function Yh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(Xn,Fe),Fe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(Xn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,K(Xn,Fe),Fe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,K(Xn,Fe),Fe|=r;return Me(e,t,i,n),t.child}function Xh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function sa(e,t,n,r,i){var o=be(n)?_n:Ce.current;return o=ar(t,o),or(t,i),n=yu(e,t,n,r,o,i),r=wu(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(te&&r&&su(t),t.flags|=1,Me(e,t,n,i),t.child)}function uf(e,t,n,r,i){if(be(n)){var o=!0;No(t)}else o=!1;if(or(t,i),t.stateNode===null)vo(e,t),Ph(t,n,r),ia(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Je(u):(u=be(n)?_n:Ce.current,u=ar(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Jc(t,s,r,u),Ft=!1;var d=t.memoizedState;s.state=d,Io(t,r,s,i),a=t.memoizedState,l!==r||d!==a||Re.current||Ft?(typeof c=="function"&&(ra(t,n,c,r),a=t.memoizedState),(l=Ft||qc(t,n,l,r,d,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Sh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:rt(t.type,l),s.props=u,f=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Je(a):(a=be(n)?_n:Ce.current,a=ar(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||d!==a)&&Jc(t,s,r,a),Ft=!1,d=t.memoizedState,s.state=d,Io(t,r,s,i);var v=t.memoizedState;l!==f||d!==v||Re.current||Ft?(typeof h=="function"&&(ra(t,n,h,r),v=t.memoizedState),(u=Ft||qc(t,n,u,r,d,v,a)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return la(e,t,n,r,o,i)}function la(e,t,n,r,i,o){Xh(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Qc(t,n,!1),Lt(e,t,o);r=t.stateNode,T0.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=cr(t,e.child,null,o),t.child=cr(t,null,l,o)):Me(e,t,l,o),t.memoizedState=r.state,i&&Qc(t,n,!0),t.child}function Zh(e){var t=e.stateNode;t.pendingContext?Gc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gc(e,t.context,!1),hu(e,t.containerInfo)}function cf(e,t,n,r,i){return ur(),au(i),t.flags|=256,Me(e,t,n,r),t.child}var aa={dehydrated:null,treeContext:null,retryLane:0};function ua(e){return{baseLanes:e,cachePool:null,transitions:null}}function qh(e,t,n){var r=t.pendingProps,i=ie.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),K(ie,i&1),e===null)return ta(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ms(s,r,0,null),e=En(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ua(n),t.memoizedState=aa,e):ku(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return C0(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Jt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Jt(l,o):(o=En(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?ua(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=aa,r}return o=e.child,e=o.sibling,r=Jt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ku(e,t){return t=ms({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ki(e,t,n,r){return r!==null&&au(r),cr(t,e.child,null,n),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C0(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=il(Error(E(422))),Ki(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ms({mode:"visible",children:r.children},i,0,null),o=En(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&cr(t,e.child,null,s),t.child.memoizedState=ua(s),t.memoizedState=aa,o);if(!(t.mode&1))return Ki(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(E(419)),r=il(o,r,void 0),Ki(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ne||l){if(r=ye,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,jt(e,i),lt(r,e,i,-1))}return Mu(),r=il(Error(E(421))),Ki(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=I0.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Be=Yt(i.nextSibling),$e=t,te=!0,ot=null,e!==null&&(Ye[Xe++]=St,Ye[Xe++]=kt,Ye[Xe++]=Mn,St=e.id,kt=e.overflow,Mn=t),t=ku(t,r.children),t.flags|=4096,t)}function ff(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),na(e.return,t,n)}function ol(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Jh(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Me(e,t,r.children,n),r=ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ff(e,n,t);else if(e.tag===19)ff(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&zo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ol(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ol(t,!0,n,null,o);break;case"together":ol(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function E0(e,t,n){switch(t.tag){case 3:Zh(t),ur();break;case 5:Eh(t);break;case 1:be(t.type)&&No(t);break;case 4:hu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;K(Do,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(ie,ie.current&1),t.flags|=128,null):n&t.child.childLanes?qh(e,t,n):(K(ie,ie.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);K(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,Yh(e,t,n)}return Lt(e,t,n)}var em,ca,tm,nm;em=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ca=function(){};tm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kn(gt.current);var o=null;switch(n){case"input":i=Ol(e,i),r=Ol(e,r),o=[];break;case"select":i=le({},i,{value:void 0}),r=le({},r,{value:void 0}),o=[];break;case"textarea":i=bl(e,i),r=bl(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ao)}Vl(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Z("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};nm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Er(e,t){if(!te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _0(e,t,n){var r=t.pendingProps;switch(lu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return be(t.type)&&Oo(),Pe(t),null;case 3:return r=t.stateNode,fr(),q(Re),q(Ce),gu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ot!==null&&(ya(ot),ot=null))),ca(e,t),Pe(t),null;case 5:mu(t);var i=kn(ui.current);if(n=t.type,e!==null&&t.stateNode!=null)tm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Pe(t),null}if(e=kn(gt.current),Gi(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[pt]=t,r[li]=o,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[pt]=t,e[li]=r,em(e,t,!1,!1),t.stateNode=e;e:{switch(s=Il(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;ipr&&(t.flags|=128,r=!0,Er(o,!1),t.lanes=4194304)}else{if(!r)if(e=zo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Er(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!te)return Pe(t),null}else 2*fe()-o.renderingStartTime>pr&&n!==1073741824&&(t.flags|=128,r=!0,Er(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=fe(),t.sibling=null,n=ie.current,K(ie,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return _u(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function M0(e,t){switch(lu(t),t.tag){case 1:return be(t.type)&&Oo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),q(Re),q(Ce),gu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(q(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(ie),null;case 4:return fr(),null;case 10:return fu(t.type._context),null;case 22:case 23:return _u(),null;case 24:return null;default:return null}}var Yi=!1,Te=!1,j0=typeof WeakSet=="function"?WeakSet:Set,j=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function fa(e,t,n){try{n()}catch(r){ue(e,t,r)}}var df=!1;function L0(e,t){if(Kl=Mo,e=sh(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=s+i),f!==o||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=s),d===o&&++c===r&&(a=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yl={focusedElem:e,selectionRange:n},Mo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,k=v.memoizedState,g=t.stateNode,p=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:rt(t.type,y),k);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=df,df=!1,v}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&fa(t,n,o)}i=i.next}while(i!==r)}}function ps(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function da(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rm(e){var t=e.alternate;t!==null&&(e.alternate=null,rm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[li],delete t[ql],delete t[d0],delete t[p0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function im(e){return e.tag===5||e.tag===3||e.tag===4}function pf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||im(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ao));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ha(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}var we=null,it=!1;function Rt(e,t,n){for(n=n.child;n!==null;)om(e,t,n),n=n.sibling}function om(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(os,n)}catch{}switch(n.tag){case 5:Te||Yn(n,t);case 6:var r=we,i=it;we=null,Rt(e,t,n),we=r,it=i,we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):we.removeChild(n.stateNode));break;case 18:we!==null&&(it?(e=we,n=n.stateNode,e.nodeType===8?qs(e.parentNode,n):e.nodeType===1&&qs(e,n),ni(e)):qs(we,n.stateNode));break;case 4:r=we,i=it,we=n.stateNode.containerInfo,it=!0,Rt(e,t,n),we=r,it=i;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&fa(n,t,s),i=i.next}while(i!==r)}Rt(e,t,n);break;case 1:if(!Te&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ue(n,t,l)}Rt(e,t,n);break;case 21:Rt(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Rt(e,t,n),Te=r):Rt(e,t,n);break;default:Rt(e,t,n)}}function hf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j0),t.forEach(function(r){var i=z0.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function tt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*O0(r/1960))-r,10e?16:e,Wt===null)var r=!1;else{if(e=Wt,Wt=null,Ho=0,G&6)throw Error(E(331));var i=G;for(G|=4,j=e.current;j!==null;){var o=j,s=o.child;if(j.flags&16){var l=o.deletions;if(l!==null){for(var a=0;afe()-Cu?Cn(e,0):Tu|=n),De(e,t)}function pm(e,t){t===0&&(e.mode&1?(t=Fi,Fi<<=1,!(Fi&130023424)&&(Fi=4194304)):t=1);var n=je();e=jt(e,t),e!==null&&(yi(e,t,n),De(e,n))}function I0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pm(e,n)}function z0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),pm(e,n)}var hm;hm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,E0(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,te&&t.flags&1048576&&vh(t,bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vo(e,t),e=t.pendingProps;var i=ar(t,Ce.current);or(t,n),i=yu(null,t,r,e,i,n);var o=wu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,No(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,pu(t),i.updater=fs,t.stateNode=i,i._reactInternals=t,ia(t,r,e,n),t=la(null,t,r,!0,o,n)):(t.tag=0,te&&o&&su(t),Me(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=B0(r),e=rt(r,e),i){case 0:t=sa(null,t,r,e,n);break e;case 1:t=uf(null,t,r,e,n);break e;case 11:t=lf(null,t,r,e,n);break e;case 14:t=af(null,t,r,rt(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),sa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),uf(e,t,r,i,n);case 3:e:{if(Zh(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Sh(e,t),Io(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=dr(Error(E(423)),t),t=cf(e,t,r,n,i);break e}else if(r!==i){i=dr(Error(E(424)),t),t=cf(e,t,r,n,i);break e}else for(Be=Yt(t.stateNode.containerInfo.firstChild),$e=t,te=!0,ot=null,n=Ch(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ur(),r===i){t=Lt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Eh(t),e===null&&ta(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Xl(r,i)?s=null:o!==null&&Xl(r,o)&&(t.flags|=32),Xh(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&ta(t),null;case 13:return qh(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),lf(e,t,r,i,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,K(Do,r._currentValue),r._currentValue=s,o!==null)if(at(o.value,s)){if(o.children===i.children&&!Re.current){t=Lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Tt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),na(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(E(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),na(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Me(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,or(t,n),i=Je(i),r=r(i),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,i=rt(r,t.pendingProps),i=rt(r.type,i),af(e,t,r,i,n);case 15:return Kh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:rt(r,i),vo(e,t),t.tag=1,be(r)?(e=!0,No(t)):e=!1,or(t,n),Ph(t,r,i),ia(t,r,i,n),la(null,t,r,!0,e,n);case 19:return Jh(e,t,n);case 22:return Yh(e,t,n)}throw Error(E(156,t.tag))};function mm(e,t){return Bp(e,t)}function F0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ze(e,t,n,r){return new F0(e,t,n,r)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function B0(e){if(typeof e=="function")return ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ka)return 11;if(e===Ya)return 14}return 2}function Jt(e,t){var n=e.alternate;return n===null?(n=Ze(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xo(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ju(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return En(n.children,i,o,t);case Qa:s=8,i|=8;break;case Ml:return e=Ze(12,n,t,i|2),e.elementType=Ml,e.lanes=o,e;case jl:return e=Ze(13,n,t,i),e.elementType=jl,e.lanes=o,e;case Ll:return e=Ze(19,n,t,i),e.elementType=Ll,e.lanes=o,e;case Tp:return ms(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kp:s=10;break e;case Pp:s=9;break e;case Ka:s=11;break e;case Ya:s=14;break e;case zt:s=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Ze(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function En(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function ms(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=Tp,e.lanes=n,e.stateNode={isHidden:!1},e}function sl(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $0(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bs(0),this.expirationTimes=Bs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,i,o,s,l,a){return e=new $0(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},pu(o),e}function U0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wm)}catch(e){console.error(e)}}wm(),vp.exports=We;var xm=vp.exports,kf=xm;El.createRoot=kf.createRoot,El.hydrateRoot=kf.hydrateRoot;function K0(){for(var e=0,t,n,r="";ee&&(t=0,r=n,n=new Map)}return{get:function(s){var l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set:function(s,l){n.has(s)?n.set(s,l):i(s,l)}}}var Pm="!";function t1(e){var t=e.separator||":",n=t.length===1,r=t[0],i=t.length;return function(s){for(var l=[],a=0,u=0,c,f=0;fu?c-u:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:k}}}function n1(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var i=r[0]==="[";i?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function r1(e){return{cache:e1(e.cacheSize),splitModifiers:t1(e),...Y0(e)}}var i1=/\s+/;function o1(e,t){var n=t.splitModifiers,r=t.getClassGroupId,i=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(i1).map(function(s){var l=n(s),a=l.modifiers,u=l.hasImportantModifier,c=l.baseClassName,f=l.maybePostfixModifierPosition,d=r(f?c.substring(0,f):c),h=!!f;if(!d){if(!f)return{isTailwindClass:!1,originalClassName:s};if(d=r(c),!d)return{isTailwindClass:!1,originalClassName:s};h=!1}var v=n1(a).join(":"),y=u?v+Pm:v;return{isTailwindClass:!0,modifierId:y,classGroupId:d,originalClassName:s,hasPostfixModifier:h}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var l=s.modifierId,a=s.classGroupId,u=s.hasPostfixModifier,c=l+a;return o.has(c)?!1:(o.add(c),i(a,u).forEach(function(f){return o.add(l+f)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function xa(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=t||C<0||f&&T>=o}function g(){var P=al();if(k(P))return p(P);l=setTimeout(g,y(P))}function p(P){return l=void 0,d&&r?h(P):(r=i=void 0,s)}function m(){l!==void 0&&clearTimeout(l),u=0,r=a=i=l=void 0}function w(){return l===void 0?s:p(al())}function S(){var P=al(),C=k(P);if(r=arguments,i=this,a=P,C){if(l===void 0)return v(a);if(f)return l=setTimeout(g,t),h(a)}return l===void 0&&(l=setTimeout(g,t)),s}return S.cancel=m,S.flush=w,S}function I1(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(jm);return Qo(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),V1(e,t,{leading:r,maxWait:t,trailing:i})}function Qo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function z1(e){return!!e&&typeof e=="object"}function F1(e){return typeof e=="symbol"||z1(e)&&R1.call(e)==T1}function _f(e){if(typeof e=="number")return e;if(F1(e))return Ef;if(Qo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(C1,"");var n=_1.test(e);return n||M1.test(e)?j1(e.slice(2),n?2:8):E1.test(e)?Ef:+e}var B1=I1,Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});Ti.addPassiveEventListener=function(t,n,r){var i=function(){var o=!1;try{var s=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,s)}catch{}return o}();t.addEventListener(n,r,i?{passive:!0}:!1)};Ti.removePassiveEventListener=function(t,n,r){t.removeEventListener(n,r)};Object.defineProperty(Pi,"__esModule",{value:!0});var $1=B1,U1=W1($1),H1=Ti;function W1(e){return e&&e.__esModule?e:{default:e}}var G1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66;return(0,U1.default)(t,n)},ne={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,n){if(t){var r=G1(function(i){ne.scrollHandler(t)},n);ne.scrollSpyContainers.push(t),(0,H1.addPassiveEventListener)(t,"scroll",r)}},isMounted:function(t){return ne.scrollSpyContainers.indexOf(t)!==-1},currentPositionX:function(t){if(t===document){var n=window.pageYOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}else return t.scrollLeft},currentPositionY:function(t){if(t===document){var n=window.pageXOffset!==void 0,r=(document.compatMode||"")==="CSS1Compat";return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}else return t.scrollTop},scrollHandler:function(t){var n=ne.scrollSpyContainers[ne.scrollSpyContainers.indexOf(t)].spyCallbacks||[];n.forEach(function(r){return r(ne.currentPositionX(t),ne.currentPositionY(t))})},addStateHandler:function(t){ne.spySetState.push(t)},addSpyHandler:function(t,n){var r=ne.scrollSpyContainers[ne.scrollSpyContainers.indexOf(n)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(t),t(ne.currentPositionX(n),ne.currentPositionY(n))},updateStates:function(){ne.spySetState.forEach(function(t){return t()})},unmount:function(t,n){ne.scrollSpyContainers.forEach(function(r){return r.spyCallbacks&&r.spyCallbacks.length&&r.spyCallbacks.indexOf(n)>-1&&r.spyCallbacks.splice(r.spyCallbacks.indexOf(n),1)}),ne.spySetState&&ne.spySetState.length&&ne.spySetState.indexOf(t)>-1&&ne.spySetState.splice(ne.spySetState.indexOf(t),1),document.removeEventListener("scroll",ne.scrollHandler)},update:function(){return ne.scrollSpyContainers.forEach(function(t){return ne.scrollHandler(t)})}};Pi.default=ne;var wr={},Ci={};Object.defineProperty(Ci,"__esModule",{value:!0});var Q1=function(t,n){var r=t.indexOf("#")===0?t.substring(1):t,i=r?"#"+r:"",o=window&&window.location,s=i?o.pathname+o.search+i:o.pathname+o.search;n?history.pushState(history.state,"",s):history.replaceState(history.state,"",s)},K1=function(){return window.location.hash.replace(/^#/,"")},Y1=function(t){return function(n){return t.contains?t!=n&&t.contains(n):!!(t.compareDocumentPosition(n)&16)}},X1=function(t){return getComputedStyle(t).position!=="static"},ul=function(t,n){for(var r=t.offsetTop,i=t.offsetParent;i&&!n(i);)r+=i.offsetTop,i=i.offsetParent;return{offsetTop:r,offsetParent:i}},Z1=function(t,n,r){if(r)return t===document?n.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):getComputedStyle(t).position!=="static"?n.offsetLeft:n.offsetLeft-t.offsetLeft;if(t===document)return n.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if(X1(t)){if(n.offsetParent!==t){var i=function(c){return c===t||c===document},o=ul(n,i),s=o.offsetTop,l=o.offsetParent;if(l!==t)throw new Error("Seems containerElement is not an ancestor of the Element");return s}return n.offsetTop}if(n.offsetParent===t.offsetParent)return n.offsetTop-t.offsetTop;var a=function(c){return c===document};return ul(n,a).offsetTop-ul(t,a).offsetTop};Ci.default={updateHash:Q1,getHash:K1,filterElementInContainer:Y1,scrollOffset:Z1};var xs={},Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default={defaultEasing:function(t){return t<.5?Math.pow(t*2,2)/2:1-Math.pow((1-t)*2,2)/2},linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}};var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});var q1=Ti,J1=["mousedown","mousewheel","touchmove","keydown"];Iu.default={subscribe:function(t){return typeof document<"u"&&J1.forEach(function(n){return(0,q1.addPassiveEventListener)(document,n,t)})}};var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});var Pa={registered:{},scrollEvent:{register:function(t,n){Pa.registered[t]=n},remove:function(t){Pa.registered[t]=null}}};Ei.default=Pa;Object.defineProperty(xs,"__esModule",{value:!0});var ew=Object.assign||function(e){for(var t=1;t=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,n);Ta.call(window,o);return}dt.default.registered.end&&dt.default.registered.end(i.to,i.target,i.currentPosition)},zu=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},_i=function(t,n,r,i){if(n.data=n.data||Am(),window.clearTimeout(n.data.delayTimeout),iw.default.subscribe(function(){n.data.cancel=!0}),zu(n),n.data.start=null,n.data.cancel=!1,n.data.startPosition=n.horizontal?Om(n):Nm(n),n.data.targetPosition=n.absolute?t:t+n.data.startPosition,n.data.startPosition===n.data.targetPosition){dt.default.registered.end&&dt.default.registered.end(n.data.to,n.data.target,n.data.currentPosition);return}n.data.delta=Math.round(n.data.targetPosition-n.data.startPosition),n.data.duration=sw(n.duration)(n.data.delta),n.data.duration=isNaN(parseFloat(n.data.duration))?1e3:parseFloat(n.data.duration),n.data.to=r,n.data.target=i;var o=Lm(n),s=cw.bind(null,o,n);if(n&&n.delay>0){n.data.delayTimeout=window.setTimeout(function(){dt.default.registered.begin&&dt.default.registered.begin(n.data.to,n.data.target),Ta.call(window,s)},n.delay);return}dt.default.registered.begin&&dt.default.registered.begin(n.data.to,n.data.target),Ta.call(window,s)},ks=function(t){return t=ew({},t),t.data=t.data||Am(),t.absolute=!0,t},fw=function(t){_i(0,ks(t))},dw=function(t,n){_i(t,ks(n))},pw=function(t){t=ks(t),zu(t),_i(t.horizontal?aw(t):uw(t),t)},hw=function(t,n){n=ks(n),zu(n);var r=n.horizontal?Om(n):Nm(n);_i(t+r,n)};xs.default={animateTopScroll:_i,getAnimationType:Lm,scrollToTop:fw,scrollToBottom:pw,scrollTo:dw,scrollMore:hw};Object.defineProperty(wr,"__esModule",{value:!0});var mw=Object.assign||function(e){for(var t=1;t=Math.floor(y)&&w=Math.floor(k)}else{var S=0,P=0,C=0;if(u.getBoundingClientRect){var T=u.getBoundingClientRect();C=T.top}if(!d||s.props.isDynamic){if(d=n.get(f),!d)return;var R=d.getBoundingClientRect();S=R.top-C+a,P=S+R.height}var b=a-s.props.offset;h=b>=Math.floor(S)&&b=Math.floor(P)}var L=n.getActiveLink();if(v){if(f===L&&n.setActiveLink(void 0),s.props.hashSpy&&Dt.default.getHash()===f){var M=s.props.saveHashHistory,V=M===void 0?!1:M;Dt.default.changeHash("",V)}s.props.spy&&s.state.active&&(s.setState({active:!1}),s.props.onSetInactive&&s.props.onSetInactive(f,d))}if(h&&(L!==f||s.state.active===!1)){n.setActiveLink(f);var N=s.props.saveHashHistory,D=N===void 0?!1:N;s.props.hashSpy&&Dt.default.changeHash(f,D),s.props.spy&&(s.setState({active:!0}),s.props.onSetActive&&s.props.onSetActive(f,d))}}}};return r.propTypes=Af,r.defaultProps={offset:0},r};Object.defineProperty(Du,"__esModule",{value:!0});var Iw=F,Of=Vm(Iw),zw=ki,Fw=Vm(zw);function Vm(e){return e&&e.__esModule?e:{default:e}}function Bw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nf(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function $w(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Uw=function(e){$w(t,e);function t(){var n,r,i,o;Bw(this,t);for(var s=arguments.length,l=Array(s),a=0;a"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(o){this.props.name!==o.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;Df.default.unregister(this.props.name)}},{key:"registerElems",value:function(o){Df.default.register(o,this.childBindings.domNode)}},{key:"render",value:function(){return bf.default.createElement(e,qw({},this.props,{parentBindings:this.childBindings}))}}]),r}(bf.default.Component);return t.propTypes={name:Vf.default.string,id:Vf.default.string},t};Object.defineProperty($u,"__esModule",{value:!0});var If=Object.assign||function(e){for(var t=1;t=Math.floor(d)&&g=Math.floor(h),w=r.getActiveLink();if(m)return c===w&&r.setActiveLink(void 0),l.props.hashSpy&&Vt.getHash()===c&&Vt.changeHash(),l.props.spy&&l.state.active&&(l.setState({active:!1}),l.props.onSetInactive&&l.props.onSetInactive()),hn.updateStates();if(p&&w!==c)return r.setActiveLink(c),l.props.hashSpy&&Vt.changeHash(c),l.props.spy&&(l.setState({active:!0}),l.props.onSetActive&&l.props.onSetActive(c)),hn.updateStates()}}};return i.propTypes=Wf,i.defaultProps={offset:0},i},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var n=function(r){Hf(i,r);function i(o){$f(this,i);var s=Uf(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,o));return s.childBindings={domNode:null},s}return Bf(i,[{key:"componentDidMount",value:function(){if(typeof window>"u")return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(s){this.props.name!==s.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if(typeof window>"u")return!1;dl.unregister(this.props.name)}},{key:"registerElems",value:function(s){dl.register(s,this.childBindings.domNode)}},{key:"render",value:function(){return ro.createElement(t,fl({},this.props,{parentBindings:this.childBindings}))}}]),i}(ro.Component);return n.propTypes={name:re.string,id:re.string},n}},gx=mx;Object.defineProperty(ae,"__esModule",{value:!0});ae.Helpers=ae.ScrollElement=ae.ScrollLink=ae.animateScroll=ae.scrollSpy=ae.Events=ae.scroller=Hu=ae.Element=ae.Button=Ca=ae.Link=void 0;var vx=Du,Fm=yt(vx),yx=Bu,Bm=yt(yx),wx=$u,$m=yt(wx),xx=wr,Um=yt(xx),Sx=Ei,Hm=yt(Sx),kx=Pi,Wm=yt(kx),Px=xs,Gm=yt(Px),Tx=ki,Qm=yt(Tx),Cx=Cs,Km=yt(Cx),Ex=gx,Ym=yt(Ex);function yt(e){return e&&e.__esModule?e:{default:e}}var Ca=ae.Link=Fm.default;ae.Button=Bm.default;var Hu=ae.Element=$m.default;ae.scroller=Um.default;ae.Events=Hm.default;ae.scrollSpy=Wm.default;ae.animateScroll=Gm.default;ae.ScrollLink=Qm.default;ae.ScrollElement=Km.default;ae.Helpers=Ym.default;ae.default={Link:Fm.default,Button:Bm.default,Element:$m.default,scroller:Um.default,Events:Hm.default,scrollSpy:Wm.default,animateScroll:Gm.default,ScrollLink:Qm.default,ScrollElement:Km.default,Helpers:Ym.default};function On({children:e,name:t,dark:n}){return x.jsx(Hu,{id:t,name:t,className:bu("bg-gray-800 py-10 lg:py-24",{"bg-gray-900":n}),children:x.jsx("div",{className:"flex w-full justify-center",children:x.jsx("div",{className:"container px-2 lg:px-10",children:e})})})}On.Heading=({text:e,backgroundText:t})=>x.jsxs("div",{className:"relative mb-16 flex items-center justify-center text-center",children:[x.jsx("h1",{className:"section-heading relative z-20 text-3xl font-[800] lg:text-4xl",children:e}),x.jsx("span",{className:"absolute z-10 text-[70px] font-[800] uppercase tracking-wider opacity-[0.03] lg:text-[102px]",children:t})]});var Gf=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ee=e=>!e||typeof e!="object"||Object.keys(e).length===0,_x=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Xm(e,t){e.forEach(function(n){Array.isArray(n)?Xm(n,t):t.push(n)})}function Zm(e){let t=[];return Xm(e,t),t}var Mx=(...e)=>Zm(e).filter(Boolean),qm=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let o of r)if(i.includes(o)){let s=e[o],l=t[o];typeof s=="object"&&typeof l=="object"?n[o]=qm(s,l):n[o]=l+" "+s}else n[o]=e[o];for(let o of i)r.includes(o)||(n[o]=t[o]);return n},Qf=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim(),jx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Jm=e=>e||void 0,Ko=(...e)=>Jm(Zm(e).filter(Boolean).join(" ")),pl=null,Yo={},Ea=!1,Lr=(...e)=>t=>t.twMerge?((!pl||Ea)&&(Ea=!1,pl=Ee(Yo)?_m:k1(Yo)),Jm(pl(Ko(e)))):Ko(e),Kf=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=Ko(e[n],t[n]):e[n]=t[n];return e},Lx=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:l={}}=e,a={...jx,...t},u=n!=null&&n.base?Ko(n.base,e==null?void 0:e.base):e==null?void 0:e.base,c=n!=null&&n.variants&&!Ee(n.variants)?qm(i,n.variants):i,f=n!=null&&n.defaultVariants&&!Ee(n.defaultVariants)?{...n.defaultVariants,...l}:l;!Ee(a.twMergeConfig)&&!_x(a.twMergeConfig,Yo)&&(Ea=!0,Yo=a.twMergeConfig);let d=Ee(r)?{}:{base:e==null?void 0:e.base,...r},h=Ee(n==null?void 0:n.slots)?d:Kf(n==null?void 0:n.slots,Ee(d)?{base:e==null?void 0:e.base}:d),v=k=>{if(Ee(c)&&Ee(r)&&Ee(n==null?void 0:n.slots))return Lr(u,k==null?void 0:k.class,k==null?void 0:k.className)(a);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof o}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let g=(L,M,V=[],N)=>{let D=V;if(typeof M=="string")D=D.concat(Qf(M).split(" ").map(B=>`${L}:${B}`));else if(Array.isArray(M))D=D.concat(M.reduce((B,$)=>B.concat(`${L}:${$}`),[]));else if(typeof M=="object"&&typeof N=="string"){for(let B in M)if(M.hasOwnProperty(B)&&B===N){let $=M[B];if($&&typeof $=="string"){let _=Qf($);D[N]?D[N]=D[N].concat(_.split(" ").map(A=>`${L}:${A}`)):D[N]=_.split(" ").map(A=>`${L}:${A}`)}else Array.isArray($)&&$.length>0&&(D[N]=$.reduce((_,A)=>_.concat(`${L}:${A}`),[]))}}return D},p=(L,M=c,V=null,N=null)=>{var D;let B=M[L];if(!B||Ee(B))return null;let $=(D=N==null?void 0:N[L])!=null?D:k==null?void 0:k[L];if($===null)return null;let _=Gf($),A=Array.isArray(a.responsiveVariants)&&a.responsiveVariants.length>0||a.responsiveVariants===!0,I=f==null?void 0:f[L],O=[];if(typeof _=="object"&&A)for(let[Y,Ie]of Object.entries(_)){let Nt=B[Ie];if(Y==="initial"){I=Ie;continue}Array.isArray(a.responsiveVariants)&&!a.responsiveVariants.includes(Y)||(O=g(Y,Nt,O,V))}let W=B[_]||B[Gf(I)];return typeof O=="object"&&typeof V=="string"&&O[V]?Kf(O,W):O.length>0?(O.push(W),O):W},m=()=>c?Object.keys(c).map(L=>p(L,c)):null,w=(L,M)=>{if(!c||typeof c!="object")return null;let V=new Array;for(let N in c){let D=p(N,c,L,M),B=L==="base"&&typeof D=="string"?D:D&&D[L];B&&(V[V.length]=B)}return V},S={};for(let L in k)k[L]!==void 0&&(S[L]=k[L]);let P=(L,M)=>{var V;let N=typeof(k==null?void 0:k[L])=="object"?{[L]:(V=k[L])==null?void 0:V.initial}:{};return{...f,...S,...N,...M}},C=(L=[],M)=>{let V=[];for(let{class:N,className:D,...B}of L){let $=!0;for(let[_,A]of Object.entries(B)){let I=P(_,M);if(Array.isArray(A)){if(!A.includes(I[_])){$=!1;break}}else if(I[_]!==A){$=!1;break}}$&&(N&&V.push(N),D&&V.push(D))}return V},T=L=>{let M=C(o,L),V=C(n==null?void 0:n.compoundVariants,L);return Mx(V,M)},R=L=>{let M=T(L);if(!Array.isArray(M))return M;let V={};for(let N of M)if(typeof N=="string"&&(V.base=Lr(V.base,N)(a)),typeof N=="object")for(let[D,B]of Object.entries(N))V[D]=Lr(V[D],B)(a);return V},b=L=>{if(s.length<1)return null;let M={};for(let{slots:V=[],class:N,className:D,...B}of s){if(!Ee(B)){let $=!0;for(let _ of Object.keys(B)){let A=P(_,L)[_];if(A===void 0||A!==B[_]){$=!1;break}}if(!$)continue}for(let $ of V)M[$]=M[$]||[],M[$].push([N,D])}return M};if(!Ee(r)||!Ee(n==null?void 0:n.slots)){let L={};if(typeof h=="object"&&!Ee(h))for(let M of Object.keys(h))L[M]=V=>{var N,D;return Lr(h[M],w(M,V),((N=R(V))!=null?N:[])[M],((D=b(V))!=null?D:[])[M],V==null?void 0:V.class,V==null?void 0:V.className)(a)};return L}return Lr(u,m(),T(),k==null?void 0:k.class,k==null?void 0:k.className)(a)},y=()=>{if(!(!c||typeof c!="object"))return Object.keys(c)};return v.variantKeys=y(),v.extend=n,v.base=u,v.slots=h,v.variants=c,v.defaultVariants=f,v.compoundSlots=s,v.compoundVariants=o,v};const Ax=Lx({base:"rounded-full px-10 py-3 w-fit duration-200",variants:{variant:{default:"bg-indigo-600 hover:bg-indigo-700",outlined:"border border-indigo-600 hover:bg-indigo-600"}},defaultVariants:{variant:"default"}});function Ox({children:e,className:t,variant:n,...r}){return x.jsx("button",{className:bu(Ax({variant:n}),t),...r,children:e})}function Nx(){return x.jsxs(On,{name:"about",dark:!0,children:[x.jsx(On.Heading,{text:"Know Me More",backgroundText:"About Me"}),x.jsxs("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-5",children:[x.jsxs("div",{className:"col-span-3 flex flex-col gap-4 text-center lg:text-start",children:[x.jsxs("h1",{className:"text-2xl font-[600]",children:["I'm ",x.jsx("span",{className:"text-highlight",children:"Lynx1"}),", a Web Developer"]}),x.jsx("p",{className:"opacity-50",children:"I specialize in creating full-stack web applications, dynamic and creative solutions using modern technologies like TypeScript, React, Next.js, Astro.js and various backend technologies."}),x.jsx("p",{className:"opacity-50",children:"My code is all about best practices, clean aesthetics, and functionality. I believe well-organized code is key for project success and team collaboration."}),x.jsx("p",{className:"opacity-50",children:"Beyond programming I'm passionate about active recreation."}),x.jsx("p",{className:"opacity-50",children:"I'm always open to new opportunities and ready to engage in exciting projects where I can apply my skills and learn new ones."})]}),x.jsx("div",{className:"col-span-2 flex flex-col items-center justify-center gap-3 lg:items-end",children:x.jsxs("div",{className:"flex flex-col items-center gap-4 lg:items-start",children:[x.jsxs("ul",{className:"about-info text-center text-lg lg:text-start",children:[x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Name:"})," Vladyslav Lopuha"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Email:"})," skr.vladyslav99@gmail.com"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"Age:"})," 23"]}),x.jsxs("li",{children:[x.jsx("span",{className:"font-[800]",children:"From:"})," Kyiv, Ukraine"]})]}),x.jsx(Ox,{children:"Download CV"})]})})]})]})}function Rx(){return x.jsx(Hu,{id:"home",name:"home",className:"home-bg min-h-screen",children:x.jsxs("div",{className:"flex h-screen w-full flex-col items-center justify-center gap-6 text-center",children:[x.jsx("h1",{className:"text-2xl lg:text-3xl",children:"Welcome"}),x.jsx("p",{className:"text-2xl font-[700] lg:text-4xl",children:"I'm a Web/Software Developer"}),x.jsx("p",{className:"text-xl lg:text-2xl",children:"based in Ukraine."})]})})}const bx="/portfolio/assets/Screenshot-c26fc296.png",Dx="/portfolio/assets/Screenshot2-ea8d5f4f.png",Vx="/portfolio/assets/Screenshot3-ecb21047.png",Ix="/portfolio/assets/Screenshot4-d1e7c052.png";function zx(){return x.jsxs(On,{name:"portfolio",dark:!0,children:[x.jsx(On.Heading,{text:"My Work",backgroundText:"Portfolio"}),x.jsxs("div",{className:"grid grid-cols-1 items-center justify-center gap-8 lg:grid-cols-2 lg:items-start lg:justify-center",children:[x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:bx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Dx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Vx,alt:"screenshot",draggable:!1})]}),x.jsxs("div",{className:"group relative aspect-[16/8] w-full cursor-pointer select-none overflow-hidden rounded-lg",children:[x.jsx("div",{className:"absolute left-0 top-0 z-10 flex h-full w-full items-center justify-center bg-black/[.6] opacity-0 duration-200 group-hover:opacity-100",children:x.jsx("p",{children:"Coming soon..."})}),x.jsx("img",{className:"h-full w-full object-cover duration-200 group-hover:scale-[1.05]",src:Ix,alt:"screenshot",draggable:!1})]})]})]})}function Qe({title:e,percent:t}){return x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsxs("div",{className:"flex w-full justify-between",children:[x.jsx("p",{children:e}),x.jsxs("p",{children:[t,"%"]})]}),x.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-gray-900",children:x.jsx("div",{className:"h-2.5 bg-highlight",style:{width:`${t}%`}})})]})}function Fx(){return x.jsxs(On,{name:"resume",children:[x.jsx(On.Heading,{text:"Resume",backgroundText:"Summary"}),x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h1",{className:"mb-2 text-2xl font-bold",children:"My Education"}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2018-2019"}),x.jsx("h1",{className:"text-xl",children:"Web Development"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"IT Future School"})]}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2019-2022"}),x.jsx("h1",{className:"text-xl",children:"Bachelor of Computer Science"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"National Transport University"})]}),x.jsxs("div",{className:"flex flex-col items-start gap-2 rounded-md bg-gray-900 p-7",children:[x.jsx("span",{className:"rounded-md bg-indigo-600 px-2 py-1 text-sm",children:"2022-2024"}),x.jsx("h1",{className:"text-xl",children:"Master Degree of Computer Science"}),x.jsx("p",{className:"text-sm tracking-tighter text-indigo-500",children:"National Transport University"})]}),x.jsx("h1",{className:"my-2 text-2xl font-bold",children:"My Skills"}),x.jsxs("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2",children:[x.jsx(Qe,{title:"Web development",percent:93}),x.jsx(Qe,{title:"Software development",percent:63}),x.jsx(Qe,{title:"Android development",percent:43}),x.jsx(Qe,{title:"Linux administration",percent:72}),x.jsx(Qe,{title:"Database administration",percent:89}),x.jsx(Qe,{title:"Node.js",percent:82}),x.jsx(Qe,{title:"REST API",percent:80}),x.jsx(Qe,{title:"Reverse engineering",percent:13}),x.jsx(Qe,{title:"Python",percent:96}),x.jsx(Qe,{title:"PHP",percent:28}),x.jsx(Qe,{title:"Java",percent:37}),x.jsx(Qe,{title:"Web Design",percent:20})]})]})]})}const Yf="/portfolio/assets/photo2-9f815fb0.jpg";var eg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xf=ht.createContext&&ht.createContext(eg),en=globalThis&&globalThis.__assign||function(){return en=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne,isStatic:!1,reducedMotion:"never"}),Ms=F.createContext({}),Wu=F.createContext(null),js=typeof document<"u",Ux=js?F.useLayoutEffect:F.useEffect,rg=F.createContext({strict:!1});function Hx(e,t,n,r){const{visualElement:i}=F.useContext(Ms),o=F.useContext(rg),s=F.useContext(Wu),l=F.useContext(ng).reducedMotion,a=F.useRef();r=r||o.renderer,!a.current&&r&&(a.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=a.current;F.useInsertionEffect(()=>{u&&u.update(n,s)});const c=F.useRef(!!window.HandoffAppearAnimations);return Ux(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),F.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Zn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Wx(e,t,n){return F.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Zn(n)&&(n.current=r))},[t])}function hi(e){return typeof e=="string"||Array.isArray(e)}function Ls(e){return typeof e=="object"&&typeof e.start=="function"}const Gu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qu=["initial",...Gu];function As(e){return Ls(e.animate)||Qu.some(t=>hi(e[t]))}function ig(e){return!!(As(e)||e.variants)}function Gx(e,t){if(As(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hi(n)?n:void 0,animate:hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function Qx(e){const{initial:t,animate:n}=Gx(e,F.useContext(Ms));return F.useMemo(()=>({initial:t,animate:n}),[nd(t),nd(n)])}function nd(e){return Array.isArray(e)?e.join(" "):e}const rd={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"]},mi={};for(const e in rd)mi[e]={isEnabled:t=>rd[e].some(n=>!!t[n])};function Kx(e){for(const t in e)mi[t]={...mi[t],...e[t]}}const og=F.createContext({}),sg=F.createContext({}),Yx=Symbol.for("motionComponentSymbol");function Xx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Kx(e);function o(l,a){let u;const c={...F.useContext(ng),...l,layoutId:Zx(l)},{isStatic:f}=c,d=Qx(l),h=r(l,f);if(!f&&js){d.visualElement=Hx(i,h,c,t);const v=F.useContext(sg),y=F.useContext(rg).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,y,e,v))}return F.createElement(Ms.Provider,{value:d},u&&d.visualElement?F.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,l,Wx(h,d.visualElement,a),h,f,d.visualElement))}const s=F.forwardRef(o);return s[Yx]=i,s}function Zx({layoutId:e}){const t=F.useContext(og).id;return t&&e!==void 0?t+"-"+e:e}function qx(e){function t(r,i={}){return Xx(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Jx=["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 Ku(e){return typeof e!="string"||e.includes("-")?!1:!!(Jx.indexOf(e)>-1||/[A-Z]/.test(e))}const Xo={};function eS(e){Object.assign(Xo,e)}const ji=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Dn=new Set(ji);function lg(e,{layout:t,layoutId:n}){return Dn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xo[e]||e==="opacity")}const Ve=e=>!!(e&&e.getVelocity),tS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nS=ji.length;function rS(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ug=ag("--"),_a=ag("var(--"),iS=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,oS=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sn=(e,t,n)=>Math.min(Math.max(n,e),t),Vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qr={...Vn,transform:e=>sn(0,1,e)},io={...Vn,default:1},Kr=e=>Math.round(e*1e5)/1e5,Os=/(-)?([\d]*\.?[\d])+/g,cg=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sS=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Li(e){return typeof e=="string"}const Ai=e=>({test:t=>Li(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),It=Ai("deg"),vt=Ai("%"),z=Ai("px"),lS=Ai("vh"),aS=Ai("vw"),id={...vt,parse:e=>vt.parse(e)/100,transform:e=>vt.transform(e*100)},od={...Vn,transform:Math.round},fg={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,size:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,rotate:It,rotateX:It,rotateY:It,rotateZ:It,scale:io,scaleX:io,scaleY:io,scaleZ:io,skew:It,skewX:It,skewY:It,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:Qr,originX:id,originY:id,originZ:z,zIndex:od,fillOpacity:Qr,strokeOpacity:Qr,numOctaves:od};function Yu(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:l}=e;let a=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(ug(f)){o[f]=d;continue}const h=fg[f],v=oS(d,h);if(Dn.has(f)){if(a=!0,s[f]=v,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,l[f]=v):i[f]=v}if(t.transform||(a||r?i.transform=rS(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=l;i.transformOrigin=`${f} ${d} ${h}`}}const Xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function dg(e,t,n){for(const r in t)!Ve(t[r])&&!lg(r,n)&&(e[r]=t[r])}function uS({transformTemplate:e},t,n){return F.useMemo(()=>{const r=Xu();return Yu(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function cS(e,t,n){const r=e.style||{},i={};return dg(i,r,e),Object.assign(i,uS(e,t,n)),e.transformValues?e.transformValues(i):i}function fS(e,t,n){const r={},i=cS(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const dS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Zo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||dS.has(e)}let pg=e=>!Zo(e);function pS(e){e&&(pg=t=>t.startsWith("on")?!Zo(t):e(t))}try{pS(require("@emotion/is-prop-valid").default)}catch{}function hS(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pg(i)||n===!0&&Zo(i)||!t&&!Zo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function sd(e,t,n){return typeof e=="string"?e:z.transform(t+n*e)}function mS(e,t,n){const r=sd(t,e.x,e.width),i=sd(n,e.y,e.height);return`${r} ${i}`}const gS={offset:"stroke-dashoffset",array:"stroke-dasharray"},vS={offset:"strokeDashoffset",array:"strokeDasharray"};function yS(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?gS:vS;e[o.offset]=z.transform(-r);const s=z.transform(t),l=z.transform(n);e[o.array]=`${s} ${l}`}function Zu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,f,d){if(Yu(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:y}=e;h.transform&&(y&&(v.transform=h.transform),delete h.transform),y&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=mS(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&yS(h,s,l,a,!1)}const hg=()=>({...Xu(),attrs:{}}),qu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wS(e,t,n,r){const i=F.useMemo(()=>{const o=hg();return Zu(o,t,{enableHardwareAcceleration:!1},qu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};dg(o,e.style,e),i.style={...o,...i.style}}return i}function xS(e=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Ku(n)?wS:fS)(r,o,s,n),c={...hS(r,typeof n=="string",e),...a,ref:i},{children:f}=r,d=F.useMemo(()=>Ve(f)?f.get():f,[f]);return F.createElement(n,{...c,children:d})}}const Ju=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function mg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vg(e,t,n,r){mg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(gg.has(i)?i:Ju(i),t.attrs[i])}function ec(e,t){const{style:n}=e,r={};for(const i in n)(Ve(n[i])||t.style&&Ve(t.style[i])||lg(i,e))&&(r[i]=n[i]);return r}function yg(e,t){const n=ec(e,t);for(const r in e)if(Ve(e[r])||Ve(t[r])){const i=ji.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function tc(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function SS(e){const t=F.useRef(null);return t.current===null&&(t.current=e()),t.current}const qo=e=>Array.isArray(e),kS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),PS=e=>qo(e)?e[e.length-1]||0:e;function So(e){const t=Ve(e)?e.get():e;return kS(t)?t.toValue():t}function TS({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:CS(r,i,o,e),renderState:t()};return n&&(s.mount=l=>n(r,l,s)),s}const wg=e=>(t,n)=>{const r=F.useContext(Ms),i=F.useContext(Wu),o=()=>TS(e,t,r,i);return n?o():SS(o)};function CS(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=So(o[d]);let{initial:s,animate:l}=e;const a=As(e),u=ig(e);t&&u&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?l:s;return f&&typeof f!="boolean"&&!Ls(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=tc(e,h);if(!v)return;const{transitionEnd:y,transition:k,...g}=v;for(const p in g){let m=g[p];if(Array.isArray(m)){const w=c?m.length-1:0;m=m[w]}m!==null&&(i[p]=m)}for(const p in y)i[p]=y[p]}),i}const ce=e=>e;class ld{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ES(e){let t=new ld,n=new ld,r=0,i=!1,o=!1;const s=new WeakSet,l={schedule:(a,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(a),d.add(a)&&f&&i&&(r=t.order.length),a},cancel:a=>{n.remove(a),s.delete(a)},process:a=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=ES(()=>n=!0),f),{}),s=f=>o[f].process(i),l=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,_S),1),i.timestamp=f,i.isProcessing=!0,oo.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(l))},a=()=>{n=!0,r=!0,i.isProcessing||e(l)};return{schedule:oo.reduce((f,d)=>{const h=o[d];return f[d]=(v,y=!1,k=!1)=>(n||a(),h.schedule(v,y,k)),f},{}),cancel:f=>oo.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:J,cancel:At,state:ge,steps:hl}=MS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ce,!0),jS={useVisualState:wg({scrapeMotionValuesFromProps:yg,createRenderState:hg,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{Zu(n,r,{enableHardwareAcceleration:!1},qu(t.tagName),e.transformTemplate),vg(t,n)})}})},LS={useVisualState:wg({scrapeMotionValuesFromProps:ec,createRenderState:Xu})};function AS(e,{forwardMotionProps:t=!1},n,r){return{...Ku(e)?jS:LS,preloadedFeatures:n,useRender:xS(t),createVisualElement:r,Component:e}}function Pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const xg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ns(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const OS=e=>t=>xg(t)&&e(t,Ns(t));function Ct(e,t,n,r){return Pt(e,t,OS(n),r)}const NS=(e,t)=>n=>t(e(n)),tn=(...e)=>e.reduce(NS);function Sg(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ad=Sg("dragHorizontal"),ud=Sg("dragVertical");function kg(e){let t=!1;if(e==="y")t=ud();else if(e==="x")t=ad();else{const n=ad(),r=ud();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pg(){const e=kg(!0);return e?(e(),!1):!0}class fn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cd(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Pg())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&J.update(()=>l[r](o,s))};return Ct(e.current,n,i,{passive:!e.getProps()[r]})}class RS extends fn{mount(){this.unmount=tn(cd(this.node,!0),cd(this.node,!1))}unmount(){}}class bS extends fn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tn(Pt(this.node.current,"focus",()=>this.onFocus()),Pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Tg=(e,t)=>t?e===t?!0:Tg(e,t.parentElement):!1;function ml(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ns(n))}class DS extends fn{constructor(){super(...arguments),this.removeStartListeners=ce,this.removeEndListeners=ce,this.removeAccessibleListeners=ce,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=Ct(window,"pointerup",(l,a)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();J.update(()=>{Tg(this.node.current,l.target)?u&&u(l,a):c&&c(l,a)})},{passive:!(r.onTap||r.onPointerUp)}),s=Ct(window,"pointercancel",(l,a)=>this.cancelPress(l,a),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=tn(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=l=>{l.key!=="Enter"||!this.checkPressEnd()||ml("up",(a,u)=>{const{onTap:c}=this.node.getProps();c&&J.update(()=>c(a,u))})};this.removeEndListeners(),this.removeEndListeners=Pt(this.node.current,"keyup",s),ml("down",(l,a)=>{this.startPress(l,a)})},n=Pt(this.node.current,"keydown",t),r=()=>{this.isPressing&&ml("cancel",(o,s)=>this.cancelPress(o,s))},i=Pt(this.node.current,"blur",r);this.removeAccessibleListeners=tn(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&J.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pg()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Ct(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Pt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ma=new WeakMap,gl=new WeakMap,VS=e=>{const t=Ma.get(e.target);t&&t(e)},IS=e=>{e.forEach(VS)};function zS({root:e,...t}){const n=e||document;gl.has(n)||gl.set(n,{});const r=gl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(IS,{root:e,...t})),r[i]}function FS(e,t,n){const r=zS(t);return Ma.set(e,n),r.observe(e),()=>{Ma.delete(e),r.unobserve(e)}}const BS={some:0,all:1};class $S extends fn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BS[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(a)};return FS(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(US(t,n))&&this.startObserver()}unmount(){}}function US({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const HS={inView:{Feature:$S},tap:{Feature:DS},focus:{Feature:bS},hover:{Feature:RS}};function Cg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function GS(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Rs(e,t,n){const r=e.getProps();return tc(r,t,n!==void 0?n:r.custom,WS(e),GS(e))}const QS="framerAppearId",KS="data-"+Ju(QS);let YS=ce,nc=ce;const nn=e=>e*1e3,Et=e=>e/1e3,XS={current:!1},Eg=e=>Array.isArray(e)&&typeof e[0]=="number";function _g(e){return!!(!e||typeof e=="string"&&Mg[e]||Eg(e)||Array.isArray(e)&&e.every(_g))}const Vr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function jg(e){if(e)return Eg(e)?Vr(e):Array.isArray(e)?e.map(jg):Mg[e]}function ZS(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=jg(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function qS(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Lg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JS=1e-7,ek=12;function tk(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Lg(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>JS&&++ltk(o,0,1,e,n);return o=>o===0||o===1?o:Lg(i(o),t,r)}const nk=Oi(.42,0,1,1),rk=Oi(0,0,.58,1),Ag=Oi(.42,0,.58,1),ik=e=>Array.isArray(e)&&typeof e[0]!="number",Og=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ng=e=>t=>1-e(1-t),Rg=e=>1-Math.sin(Math.acos(e)),rc=Ng(Rg),ok=Og(rc),bg=Oi(.33,1.53,.69,.99),ic=Ng(bg),sk=Og(ic),lk=e=>(e*=2)<1?.5*ic(e):.5*(2-Math.pow(2,-10*(e-1))),ak={linear:ce,easeIn:nk,easeInOut:Ag,easeOut:rk,circIn:Rg,circInOut:ok,circOut:rc,backIn:ic,backInOut:sk,backOut:bg,anticipate:lk},fd=e=>{if(Array.isArray(e)){nc(e.length===4);const[t,n,r,i]=e;return Oi(t,n,r,i)}else if(typeof e=="string")return ak[e];return e},oc=(e,t)=>n=>!!(Li(n)&&sS.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Dg=(e,t,n)=>r=>{if(!Li(r))return r;const[i,o,s,l]=r.match(Os);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},uk=e=>sn(0,255,e),vl={...Vn,transform:e=>Math.round(uk(e))},Tn={test:oc("rgb","red"),parse:Dg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vl.transform(e)+", "+vl.transform(t)+", "+vl.transform(n)+", "+Kr(Qr.transform(r))+")"};function ck(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ja={test:oc("#"),parse:ck,transform:Tn.transform},qn={test:oc("hsl","hue"),parse:Dg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+vt.transform(Kr(t))+", "+vt.transform(Kr(n))+", "+Kr(Qr.transform(r))+")"},_e={test:e=>Tn.test(e)||ja.test(e)||qn.test(e),parse:e=>Tn.test(e)?Tn.parse(e):qn.test(e)?qn.parse(e):ja.parse(e),transform:e=>Li(e)?e:e.hasOwnProperty("red")?Tn.transform(e):qn.transform(e)},oe=(e,t,n)=>-n*e+n*t+e;function yl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=yl(a,l,e+1/3),o=yl(a,l,e),s=yl(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const wl=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},dk=[ja,Tn,qn],pk=e=>dk.find(t=>t.test(e));function dd(e){const t=pk(e);let n=t.parse(e);return t===qn&&(n=fk(n)),n}const Vg=(e,t)=>{const n=dd(e),r=dd(t),i={...n};return o=>(i.red=wl(n.red,r.red,o),i.green=wl(n.green,r.green,o),i.blue=wl(n.blue,r.blue,o),i.alpha=oe(n.alpha,r.alpha,o),Tn.transform(i))};function hk(e){var t,n;return isNaN(e)&&Li(e)&&(((t=e.match(Os))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cg))===null||n===void 0?void 0:n.length)||0)>0}const Ig={regex:iS,countKey:"Vars",token:"${v}",parse:ce},zg={regex:cg,countKey:"Colors",token:"${c}",parse:_e.parse},Fg={regex:Os,countKey:"Numbers",token:"${n}",parse:Vn.parse};function xl(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Jo(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&xl(n,Ig),xl(n,zg),xl(n,Fg),n}function Bg(e){return Jo(e).values}function $g(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Jo(e),o=t.length;return s=>{let l=i;for(let a=0;atypeof e=="number"?0:e;function gk(e){const t=Bg(e);return $g(e)(t.map(mk))}const ln={test:hk,parse:Bg,createTransformer:$g,getAnimatableNone:gk},Ug=(e,t)=>n=>`${n>0?t:e}`;function Hg(e,t){return typeof e=="number"?n=>oe(e,t,n):_e.test(e)?Vg(e,t):e.startsWith("var(")?Ug(e,t):Gg(e,t)}const Wg=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Hg(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Hg(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Gg=(e,t)=>{const n=ln.createTransformer(t),r=Jo(e),i=Jo(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tn(Wg(r.values,i.values),n):Ug(e,t)},gi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},pd=(e,t)=>n=>oe(e,t,n);function yk(e){return typeof e=="number"?pd:typeof e=="string"?_e.test(e)?Vg:Gg:Array.isArray(e)?Wg:typeof e=="object"?vk:pd}function wk(e,t,n){const r=[],i=n||yk(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=wk(t,r,i),l=s.length,a=u=>{let c=0;if(l>1)for(;ca(sn(e[0],e[o-1],u)):a}function xk(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=gi(0,t,r);e.push(oe(n,1,i))}}function Sk(e){const t=[0];return xk(t,e.length-1),t}function kk(e,t){return e.map(n=>n*t)}function Pk(e,t){return e.map(()=>t||Ag).splice(0,e.length-1)}function es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ik(r)?r.map(fd):fd(r),o={done:!1,value:t[0]},s=kk(n&&n.length===t.length?n:Sk(t),e),l=Qg(s,t,{ease:Array.isArray(i)?i:Pk(t,i)});return{calculatedDuration:e,next:a=>(o.value=l(a),o.done=a>=e,o)}}function Kg(e,t){return t?e*(1e3/t):0}const Tk=5;function Yg(e,t,n){const r=Math.max(t-Tk,0);return Kg(n-e(r),t-r)}const Sl=.001,Ck=.01,hd=10,Ek=.05,_k=1;function Mk({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;YS(e<=nn(hd));let s=1-t;s=sn(Ek,_k,s),e=sn(Ck,hd,Et(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=La(u,s),v=Math.exp(-f);return Sl-d/h*v},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-f),y=La(Math.pow(u,2),s);return(-i(u)+Sl>0?-1:1)*((d-h)*v)/y}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Sl+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const l=5/e,a=Lk(i,o,l);if(e=nn(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const jk=12;function Lk(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Nk(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!md(e,Ok)&&md(e,Ak)){const n=Mk(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Xg({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:l,damping:a,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=Nk(r),h=c?-Et(c):0,v=a/(2*Math.sqrt(l*u)),y=o-i,k=Et(Math.sqrt(l/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let p;if(v<1){const m=La(k,v);p=w=>{const S=Math.exp(-v*k*w);return o-S*((h+v*k*y)/m*Math.sin(m*w)+y*Math.cos(m*w))}}else if(v===1)p=m=>o-Math.exp(-k*m)*(y+(h+k*y)*m);else{const m=k*Math.sqrt(v*v-1);p=w=>{const S=Math.exp(-v*k*w),P=Math.min(m*w,300);return o-S*((h+v*k*y)*Math.sinh(P)+m*y*Math.cosh(P))/m}}return{calculatedDuration:d&&f||null,next:m=>{const w=p(m);if(d)s.done=m>=f;else{let S=h;m!==0&&(v<1?S=Yg(p,m,w):S=0);const P=Math.abs(S)<=n,C=Math.abs(o-w)<=t;s.done=P&&C}return s.value=s.done?o:w,s}}}function gd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=T=>l!==void 0&&Ta,v=T=>l===void 0?a:a===void 0||Math.abs(l-T)-y*Math.exp(-T/r),m=T=>g+p(T),w=T=>{const R=p(T),b=m(T);d.done=Math.abs(R)<=u,d.value=d.done?g:b};let S,P;const C=T=>{h(d.value)&&(S=T,P=Xg({keyframes:[d.value,v(d.value)],velocity:Yg(m,T,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:T=>{let R=!1;return!P&&S===void 0&&(R=!0,w(T),C(T)),S!==void 0&&T>S?P.next(T-S):(!R&&w(T),d)}}}const Rk=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>At(t),now:()=>ge.isProcessing?ge.timestamp:performance.now()}},vd=2e4;function yd(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=vd?1/0:t}const bk={decay:gd,inertia:gd,tween:es,keyframes:es,spring:Xg};function ts({autoplay:e=!0,delay:t=0,driver:n=Rk,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:l="loop",onPlay:a,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,v=!1,y,k;const g=()=>{k=new Promise(O=>{y=O})};g();let p;const m=bk[i]||es;let w;m!==es&&typeof r[0]!="number"&&(w=Qg([0,100],r,{clamp:!1}),r=[0,100]);const S=m({...d,keyframes:r});let P;l==="mirror"&&(P=m({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let C="idle",T=null,R=null,b=null;S.calculatedDuration===null&&o&&(S.calculatedDuration=yd(S));const{calculatedDuration:L}=S;let M=1/0,V=1/0;L!==null&&(M=L+s,V=M*(o+1)-s);let N=0;const D=O=>{if(R===null)return;h>0&&(R=Math.min(R,O)),h<0&&(R=Math.min(O-V/h,R)),T!==null?N=T:N=Math.round(O-R)*h;const W=N-t*(h>=0?1:-1),Y=h>=0?W<0:W>V;N=Math.max(W,0),C==="finished"&&T===null&&(N=V);let Ie=N,Nt=S;if(o){const bs=N/M;let Ni=Math.floor(bs),pn=bs%1;!pn&&bs>=1&&(pn=1),pn===1&&Ni--,Ni=Math.min(Ni,o+1);const fc=!!(Ni%2);fc&&(l==="reverse"?(pn=1-pn,s&&(pn-=s/M)):l==="mirror"&&(Nt=P));let dc=sn(0,1,pn);N>V&&(dc=l==="reverse"&&fc?1:0),Ie=dc*M}const ze=Y?{done:!1,value:r[0]}:Nt.next(Ie);w&&(ze.value=w(ze.value));let{done:dn}=ze;!Y&&L!==null&&(dn=h>=0?N>=V:N<=0);const kv=T===null&&(C==="finished"||C==="running"&&dn);return f&&f(ze.value),kv&&_(),ze},B=()=>{p&&p.stop(),p=void 0},$=()=>{C="idle",B(),y(),g(),R=b=null},_=()=>{C="finished",c&&c(),B(),y()},A=()=>{if(v)return;p||(p=n(D));const O=p.now();a&&a(),T!==null?R=O-T:(!R||C==="finished")&&(R=O),C==="finished"&&g(),b=R,T=null,C="running",p.start()};e&&A();const I={then(O,W){return k.then(O,W)},get time(){return Et(N)},set time(O){O=nn(O),N=O,T!==null||!p||h===0?T=O:R=p.now()-O/h},get duration(){const O=S.calculatedDuration===null?yd(S):S.calculatedDuration;return Et(O)},get speed(){return h},set speed(O){O===h||!p||(h=O,I.time=Et(N))},get state(){return C},play:A,pause:()=>{C="paused",T=N},stop:()=>{v=!0,C!=="idle"&&(C="idle",u&&u(),$())},cancel:()=>{b!==null&&D(b),$()},complete:()=>{C="finished"},sample:O=>(R=0,D(O))};return I}function Dk(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vk=Dk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ik=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),so=10,zk=2e4,Fk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!_g(t.ease);function Bk(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Vk()&&Ik.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,l,a;const u=()=>{a=new Promise(p=>{l=p})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(Fk(t,i)){const p=ts({...i,repeat:0,delay:0});let m={done:!1,value:c[0]};const w=[];let S=0;for(;!m.done&&Sv.cancel(),k=()=>{J.update(y),l(),u()};return v.onfinish=()=>{e.set(qS(c,i)),r&&r(),k()},{then(p,m){return a.then(p,m)},attachTimeline(p){return v.timeline=p,v.onfinish=null,ce},get time(){return Et(v.currentTime||0)},set time(p){v.currentTime=nn(p)},get speed(){return v.playbackRate},set speed(p){v.playbackRate=p},get duration(){return Et(f)},play:()=>{s||(v.play(),At(y))},pause:()=>v.pause(),stop:()=>{if(s=!0,v.playState==="idle")return;const{currentTime:p}=v;if(p){const m=ts({...i,autoplay:!1});e.setWithVelocity(m.sample(p-so).value,m.sample(p).value,so)}k()},complete:()=>v.finish(),cancel:k}}function $k({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ce,pause:ce,stop:ce,then:o=>(o(),Promise.resolve()),cancel:ce,complete:ce});return t?ts({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Uk={type:"spring",stiffness:500,damping:25,restSpeed:10},Hk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wk={type:"keyframes",duration:.8},Gk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Qk=(e,{keyframes:t})=>t.length>2?Wk:Dn.has(e)?e.startsWith("scale")?Hk(t[1]):Uk:Gk,Aa=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ln.test(t)||t==="0")&&!t.startsWith("url(")),Kk=new Set(["brightness","contrast","saturate","opacity"]);function Yk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Os)||[];if(!r)return e;const i=n.replace(r,"");let o=Kk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Xk=/([a-z-]*)\(.*?\)/g,Oa={...ln,getAnimatableNone:e=>{const t=e.match(Xk);return t?t.map(Yk).join(" "):e}},Zk={...fg,color:_e,backgroundColor:_e,outlineColor:_e,fill:_e,stroke:_e,borderColor:_e,borderTopColor:_e,borderRightColor:_e,borderBottomColor:_e,borderLeftColor:_e,filter:Oa,WebkitFilter:Oa},sc=e=>Zk[e];function Zg(e,t){let n=sc(e);return n!==Oa&&(n=ln),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qg=e=>/^0[^.\s]+$/.test(e);function qk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||qg(e)}function Jk(e,t,n,r){const i=Aa(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let l;const a=[];for(let u=0;ui=>{const o=Jg(r,e)||{},s=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-nn(s);const a=Jk(t,e,n,o),u=a[0],c=a[a.length-1],f=Aa(e,u),d=Aa(e,c);let h={keyframes:a,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-l,onUpdate:v=>{t.set(v),o.onUpdate&&o.onUpdate(v)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(eP(o)||(h={...h,...Qk(e,h)}),h.duration&&(h.duration=nn(h.duration)),h.repeatDelay&&(h.repeatDelay=nn(h.repeatDelay)),!f||!d||XS.current||o.type===!1)return $k(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=Bk(t,e,h);if(v)return v}return ts(h)};function ns(e){return!!(Ve(e)&&e.add)}const ev=e=>/^\-?\d*\.?\d+$/.test(e);function ac(e,t){e.indexOf(t)===-1&&e.push(t)}function uc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class cc{constructor(){this.subscriptions=[]}add(t){return ac(this.subscriptions,t),()=>uc(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class nP{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=ge;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,J.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>J.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=tP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new cc);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Kg(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hr(e,t){return new nP(e,t)}const tv=e=>t=>t.test(e),rP={test:e=>e==="auto",parse:e=>e},nv=[Vn,z,vt,It,aS,lS,rP],Ar=e=>nv.find(tv(e)),iP=[...nv,_e,ln],oP=e=>iP.find(tv(e));function sP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hr(n))}function lP(e,t){const n=Rs(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const l=PS(o[s]);sP(e,s,l)}}function aP(e,t,n){var r,i;const o=Object.keys(t).filter(l=>!e.hasValue(l)),s=o.length;if(s)for(let l=0;la.remove(f))),u.push(y)}return s&&Promise.all(u).then(()=>{s&&lP(e,s)}),u}function Na(e,t,n={}){const r=Rs(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(rv(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(a=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return dP(e,t,u+a,c,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[a,u]=l==="beforeChildren"?[o,s]:[s,o];return a().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function dP(e,t,n=0,r=0,i=1,o){const s=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(pP).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Na(u,t,{...o,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function pP(e,t){return e.sortNodePosition(t)}function hP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Na(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Na(e,t,n);else{const i=typeof t=="function"?Rs(e,t,n.custom):t;r=Promise.all(rv(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const mP=[...Gu].reverse(),gP=Gu.length;function vP(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hP(e,n,r)))}function yP(e){let t=vP(e);const n=xP();let r=!0;const i=(a,u)=>{const c=Rs(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;a={...a,...h,...d}}return a};function o(a){t=a(e)}function s(a,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let v={},y=1/0;for(let g=0;gy&&S;const b=Array.isArray(w)?w:[w];let L=b.reduce(i,{});P===!1&&(L={});const{prevResolvedValues:M={}}=m,V={...M,...L},N=D=>{R=!0,h.delete(D),m.needsAnimating[D]=!0};for(const D in V){const B=L[D],$=M[D];v.hasOwnProperty(D)||(B!==$?qo(B)&&qo($)?!Cg(B,$)||T?N(D):m.protectedKeys[D]=!0:B!==void 0?N(D):h.add(D):B!==void 0&&h.has(D)?N(D):m.protectedKeys[D]=!0)}m.prevProp=w,m.prevResolvedValues=L,m.isActive&&(v={...v,...L}),r&&e.blockInitialAnimation&&(R=!1),R&&!C&&d.push(...b.map(D=>({animation:D,options:{type:p,...a}})))}if(h.size){const g={};h.forEach(p=>{const m=e.getBaseTarget(p);m!==void 0&&(g[p]=m)}),d.push({animation:g})}let k=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(k=!1),r=!1,k?t(d):Promise.resolve()}function l(a,u,c){var f;if(n[a].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(a,u)}),n[a].isActive=u;const d=s(c,a);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n}}function wP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Cg(t,e):!1}function mn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xP(){return{animate:mn(!0),whileInView:mn(),whileHover:mn(),whileTap:mn(),whileDrag:mn(),whileFocus:mn(),exit:mn()}}class SP extends fn{constructor(t){super(t),t.animationState||(t.animationState=yP(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Ls(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let kP=0;class PP extends fn{constructor(){super(...arguments),this.id=kP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const TP={animation:{Feature:SP},exit:{Feature:PP}},wd=(e,t)=>Math.abs(e-t);function CP(e,t){const n=wd(e.x,t.x),r=wd(e.y,t.y);return Math.sqrt(n**2+r**2)}class iv{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Pl(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=CP(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=ge;this.history.push({...d,timestamp:h});const{onStart:v,onMove:y}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=kl(c,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Pl(u.type==="pointercancel"?this.lastMoveEventInfo:kl(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!xg(t))return;this.handlers=n,this.transformPagePoint=r;const i=Ns(t),o=kl(i,this.transformPagePoint),{point:s}=o,{timestamp:l}=ge;this.history=[{...s,timestamp:l}];const{onSessionStart:a}=n;a&&a(t,Pl(o,this.history)),this.removeListeners=tn(Ct(window,"pointermove",this.handlePointerMove),Ct(window,"pointerup",this.handlePointerUp),Ct(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),At(this.updatePoint)}}function kl(e,t){return t?{point:t(e.point)}:e}function xd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pl({point:e},t){return{point:e,delta:xd(e,ov(t)),offset:xd(e,EP(t)),velocity:_P(t,.1)}}function EP(e){return e[0]}function ov(e){return e[e.length-1]}function _P(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ov(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>nn(t)));)n--;if(!r)return{x:0,y:0};const o=Et(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function He(e){return e.max-e.min}function Ra(e,t=0,n=.01){return Math.abs(e-t)<=n}function Sd(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=He(n)/He(t),(Ra(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(Ra(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Yr(e,t,n,r){Sd(e.x,t.x,n.x,r?r.originX:void 0),Sd(e.y,t.y,n.y,r?r.originY:void 0)}function kd(e,t,n){e.min=n.min+t.min,e.max=e.min+He(t)}function MP(e,t,n){kd(e.x,t.x,n.x),kd(e.y,t.y,n.y)}function Pd(e,t,n){e.min=t.min-n.min,e.max=e.min+He(t)}function Xr(e,t,n){Pd(e.x,t.x,n.x),Pd(e.y,t.y,n.y)}function jP(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function Td(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LP(e,{top:t,left:n,bottom:r,right:i}){return{x:Td(e.x,n,i),y:Td(e.y,t,r)}}function Cd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=gi(t.min,t.max-r,e.min):r>i&&(n=gi(e.min,e.max-i,t.min)),sn(0,1,n)}function NP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ba=.35;function RP(e=ba){return e===!1?e=0:e===!0&&(e=ba),{x:Ed(e,"left","right"),y:Ed(e,"top","bottom")}}function Ed(e,t,n){return{min:_d(e,t),max:_d(e,n)}}function _d(e,t){return typeof e=="number"?e:e[t]||0}const Md=()=>({translate:0,scale:1,origin:0,originPoint:0}),Jn=()=>({x:Md(),y:Md()}),jd=()=>({min:0,max:0}),de=()=>({x:jd(),y:jd()});function ft(e){return[e("x"),e("y")]}function sv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function DP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Tl(e){return e===void 0||e===1}function Da({scale:e,scaleX:t,scaleY:n}){return!Tl(e)||!Tl(t)||!Tl(n)}function yn(e){return Da(e)||lv(e)||e.z||e.rotate||e.rotateX||e.rotateY}function lv(e){return Ld(e.x)||Ld(e.y)}function Ld(e){return e&&e!=="0%"}function rs(e,t,n){const r=e-n,i=t*r;return n+i}function Ad(e,t,n,r,i){return i!==void 0&&(e=rs(e,i,r)),rs(e,n,r)+t}function Va(e,t=0,n=1,r,i){e.min=Ad(e.min,t,n,r,i),e.max=Ad(e.max,t,n,r,i)}function av(e,{x:t,y:n}){Va(e.x,t.translate,t.scale,t.originPoint),Va(e.y,n.translate,n.scale,n.originPoint)}function VP(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let l=0;l1.0000000000001||e<.999999999999?e:1}function Bt(e,t){e.min=e.min+t,e.max=e.max+t}function Nd(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=oe(e.min,e.max,o);Va(e,t[n],t[r],s,t.scale)}const IP=["x","scaleX","originX"],zP=["y","scaleY","originY"];function er(e,t){Nd(e.x,t,IP),Nd(e.y,t,zP)}function uv(e,t){return sv(DP(e.getBoundingClientRect(),t))}function FP(e,t,n){const r=uv(e,n),{scroll:i}=t;return i&&(Bt(r.x,i.offset.x),Bt(r.y,i.offset.y)),r}const BP=new WeakMap;class $P{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=de(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=a=>{this.stopAnimation(),n&&this.snapToCursor(Ns(a,"page").point)},o=(a,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kg(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ft(v=>{let y=this.getAxisMotionValue(v).get()||0;if(vt.test(y)){const{projection:k}=this.visualElement;if(k&&k.layout){const g=k.layout.layoutBox[v];g&&(y=He(g)*(parseFloat(y)/100))}}this.originPoint[v]=y}),d&&J.update(()=>d(a,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(a,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(f&&this.currentDirection===null){this.currentDirection=UP(v),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),h&&h(a,u)},l=(a,u)=>this.stop(a,u);this.panSession=new iv(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&J.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!lo(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=jP(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Zn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=LP(r.layoutBox,t):this.constraints=!1,this.elastic=RP(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ft(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=NP(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Zn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=FP(r,i.root,this.visualElement.getTransformPagePoint());let s=AP(i.layout.layoutBox,o);if(n){const l=n(bP(s));this.hasMutatedConstraints=!!l,l&&(s=sv(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=ft(c=>{if(!lo(c,n,this.currentDirection))return;let f=a&&a[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(lc(t,r,0,n))}stopAnimation(){ft(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ft(n=>{const{drag:r}=this.getProps();if(!lo(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-oe(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Zn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ft(s=>{const l=this.getAxisMotionValue(s);if(l){const a=l.get();i[s]=OP({min:a,max:a},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ft(s=>{if(!lo(s,t,null))return;const l=this.getAxisMotionValue(s),{min:a,max:u}=this.constraints[s];l.set(oe(a,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;BP.set(this.visualElement,this);const t=this.visualElement.current,n=Ct(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Zn(a)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Pt(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(ft(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=a[c].translate,f.set(f.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=ba,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function lo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function UP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class HP extends fn{constructor(t){super(t),this.removeGroupControls=ce,this.removeListeners=ce,this.controls=new $P(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Rd=e=>(t,n)=>{e&&J.update(()=>e(t,n))};class WP extends fn{constructor(){super(...arguments),this.removePointerDownListener=ce}onPointerDown(t){this.session=new iv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Rd(t),onStart:Rd(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&J.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Ct(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function GP(){const e=F.useContext(Wu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=F.useId();return F.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const ko={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Or={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;const n=bd(e,t.target.x),r=bd(e,t.target.y);return`${n}% ${r}%`}},QP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ln.parse(e);if(i.length>5)return r;const o=ln.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=a;const u=oe(l,a,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class KP extends ht.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;eS(YP),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ko.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||J.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function cv(e){const[t,n]=GP(),r=F.useContext(og);return ht.createElement(KP,{...e,layoutGroup:r,switchLayoutGroup:F.useContext(sg),isPresent:t,safeToRemove:n})}const YP={borderRadius:{...Or,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Or,borderTopRightRadius:Or,borderBottomLeftRadius:Or,borderBottomRightRadius:Or,boxShadow:QP},fv=["TopLeft","TopRight","BottomLeft","BottomRight"],XP=fv.length,Dd=e=>typeof e=="string"?parseFloat(e):e,Vd=e=>typeof e=="number"||z.test(e);function ZP(e,t,n,r,i,o){i?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,qP(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,JP(r))):o&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(gi(e,t,r))}function zd(e,t){e.min=t.min,e.max=t.max}function Ke(e,t){zd(e.x,t.x),zd(e.y,t.y)}function Fd(e,t,n,r,i){return e-=t,e=rs(e,1/n,r),i!==void 0&&(e=rs(e,1/i,r)),e}function e2(e,t=0,n=1,r=.5,i,o=e,s=e){if(vt.test(t)&&(t=parseFloat(t),t=oe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=oe(o.min,o.max,r);e===o&&(l-=t),e.min=Fd(e.min,t,n,l,i),e.max=Fd(e.max,t,n,l,i)}function Bd(e,t,[n,r,i],o,s){e2(e,t[n],t[r],t[i],t.scale,o,s)}const t2=["x","scaleX","originX"],n2=["y","scaleY","originY"];function $d(e,t,n,r){Bd(e.x,t,t2,n?n.x:void 0,r?r.x:void 0),Bd(e.y,t,n2,n?n.y:void 0,r?r.y:void 0)}function Ud(e){return e.translate===0&&e.scale===1}function pv(e){return Ud(e.x)&&Ud(e.y)}function r2(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function hv(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Hd(e){return He(e.x)/He(e.y)}class i2{constructor(){this.members=[]}add(t){ac(this.members,t),t.scheduleRender()}remove(t){if(uc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wd(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:a,rotateX:u,rotateY:c}=n;a&&(r+=`rotate(${a}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const o2=(e,t)=>e.depth-t.depth;class s2{constructor(){this.children=[],this.isDirty=!1}add(t){ac(this.children,t),this.isDirty=!0}remove(t){uc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(o2),this.isDirty=!1,this.children.forEach(t)}}function l2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(At(r),e(o-t))};return J.read(r,!0),()=>At(r)}function a2(e){window.MotionDebug&&window.MotionDebug.record(e)}function u2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function c2(e,t,n){const r=Ve(e)?e:hr(e);return r.start(lc("",r,t,n)),r.animation}const Gd=["","X","Y","Z"],Qd=1e3;let f2=0;const wn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=f2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{wn.totalNodes=wn.resolvedTargetDeltas=wn.recalculatedProjection=0,this.nodes.forEach(h2),this.nodes.forEach(w2),this.nodes.forEach(x2),this.nodes.forEach(m2),a2(wn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=l2(d,250),ko.hasAnimatedSinceResize&&(ko.hasAnimatedSinceResize=!1,this.nodes.forEach(Yd))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||C2,{onLayoutAnimationStart:k,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!hv(this.targetLayout,v)||h,m=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,m);const w={...Jg(y,"layout"),onPlay:k,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Yd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,At(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(S2),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(g2),this.sharedNodes.forEach(k2)}scheduleUpdateProjection(){J.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){J.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const S=w/1e3;Xd(f.x,s.x,S),Xd(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xr(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P2(this.relativeTarget,this.relativeTargetOrigin,d,S),m&&r2(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=de()),Ke(m,this.relativeTarget)),y&&(this.animationValues=c,ZP(c,u,this.latestValues,S,p,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(At(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{ko.hasAnimatedSinceResize=!0,this.currentAnimation=c2(0,Qd,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=s;if(!(!l||!a||!u)){if(this!==s&&this.layout&&u&&gv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||de();const f=He(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+f;const d=He(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+d}Ke(l,a),er(l,c),Yr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new i2),this.sharedNodes.get(s).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:a}=s;if((a.rotate||a.rotateX||a.rotateY||a.rotateZ)&&(l=!0),!l)return;const u={};for(let c=0;c{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Kd),this.root.sharedNodes.clear()}}}function d2(e){e.updateLayout()}function p2(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=He(d);d.min=r[f].min,d.max=d.min+h}):gv(o,n.layoutBox,r)&&ft(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=He(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Jn();Yr(l,r,n.layoutBox);const a=Jn();s?Yr(a,e.applyTransform(i,!0),n.measuredBox):Yr(a,r,n.layoutBox);const u=!pv(l);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const v=de();Xr(v,n.layoutBox,d.layoutBox);const y=de();Xr(y,r,h.layoutBox),hv(v,y)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function h2(e){wn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function m2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g2(e){e.clearSnapshot()}function Kd(e){e.clearMeasurements()}function v2(e){e.isLayoutDirty=!1}function y2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function w2(e){e.resolveTargetDelta()}function x2(e){e.calcProjection()}function S2(e){e.resetRotation()}function k2(e){e.removeLeadSnapshot()}function Xd(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zd(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function P2(e,t,n,r){Zd(e.x,t.x,n.x,r),Zd(e.y,t.y,n.y,r)}function T2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const C2={duration:.45,ease:[.4,0,.1,1]},qd=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Jd=qd("applewebkit/")&&!qd("chrome/")?Math.round:ce;function ep(e){e.min=Jd(e.min),e.max=Jd(e.max)}function E2(e){ep(e.x),ep(e.y)}function gv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Ra(Hd(t),Hd(n),.2)}const _2=mv({attachResizeListener:(e,t)=>Pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cl={current:void 0},vv=mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cl.current){const e=new _2({});e.mount(window),e.setOptions({layoutScroll:!0}),Cl.current=e}return Cl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),M2={pan:{Feature:WP},drag:{Feature:HP,ProjectionNode:vv,MeasureLayout:cv}},j2=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function L2(e){const t=j2.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function Ia(e,t,n=1){const[r,i]=L2(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return ev(s)?parseFloat(s):s}else return _a(i)?Ia(i,t,n+1):i}function A2(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!_a(o))return;const s=Ia(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!_a(o))continue;const s=Ia(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const O2=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),yv=e=>O2.has(e),N2=e=>Object.keys(e).some(yv),tp=e=>e===Vn||e===z,np=(e,t)=>parseFloat(e.split(", ")[t]),rp=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return np(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?np(o[1],e):0}},R2=new Set(["x","y","z"]),b2=ji.filter(e=>!R2.has(e));function D2(e){const t=[];return b2.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rp(4,13),y:rp(5,14)};mr.translateX=mr.x;mr.translateY=mr.y;const V2=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,l={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{l[u]=mr[u](r,o)}),t.render();const a=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(l[u]),e[u]=mr[u](a,o)}),e},I2=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(yv);let o=[],s=!1;const l=[];if(i.forEach(a=>{const u=e.getValue(a);if(!e.hasValue(a))return;let c=n[a],f=Ar(c);const d=t[a];let h;if(qo(d)){const v=d.length,y=d[0]===null?1:0;c=d[y],f=Ar(c);for(let k=y;k=0?window.pageYOffset:null,u=V2(t,e,l);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),js&&a!==null&&window.scrollTo({top:a}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function z2(e,t,n,r){return N2(t)?I2(e,t,n,r):{target:t,transitionEnd:r}}const F2=(e,t,n,r)=>{const i=A2(e,t,r);return t=i.target,r=i.transitionEnd,z2(e,t,n,r)},za={current:null},wv={current:!1};function B2(){if(wv.current=!0,!!js)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>za.current=e.matches;e.addListener(t),t()}else za.current=!1}function $2(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ve(o))e.addValue(i,o),ns(r)&&r.add(i);else if(Ve(s))e.addValue(i,hr(o,{owner:e})),ns(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(o)}else{const l=e.getStaticValue(i);e.addValue(i,hr(l!==void 0?l:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const ip=new WeakMap,xv=Object.keys(mi),U2=xv.length,op=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],H2=Qu.length;class W2{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>J.render(this.render,!1,!0);const{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=As(n),this.isVariantNode=ig(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];l[f]!==void 0&&Ve(d)&&(d.set(l[f],!1),ns(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,ip.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),wv.current||B2(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:za.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ip.delete(this.current),this.projection&&this.projection.unmount(),At(this.notifyUpdate),At(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Dn.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&J.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,l;for(let a=0;athis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return l}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):de()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=hr(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=tc(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ve(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new cc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sv extends W2{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=cP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){aP(this,r,s);const l=F2(this,r,s,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function G2(e){return window.getComputedStyle(e)}class Q2 extends Sv{readValueFromInstance(t,n){if(Dn.has(n)){const r=sc(n);return r&&r.default||0}else{const r=G2(t),i=(ug(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return uv(t,n)}build(t,n,r,i){Yu(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return ec(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ve(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){mg(t,n,r,i)}}class K2 extends Sv{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Dn.has(n)){const r=sc(n);return r&&r.default||0}return n=gg.has(n)?n:Ju(n),t.getAttribute(n)}measureInstanceViewportBox(){return de()}scrapeMotionValuesFromProps(t,n){return yg(t,n)}build(t,n,r,i){Zu(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){vg(t,n,r,i)}mount(t){this.isSVGTag=qu(t.tagName),super.mount(t)}}const Y2=(e,t)=>Ku(e)?new K2(t,{enableHardwareAcceleration:!1}):new Q2(t,{enableHardwareAcceleration:!0}),X2={layout:{ProjectionNode:vv,MeasureLayout:cv}},Z2={...TP,...HS,...M2,...X2},sp=qx((e,t)=>AS(e,t,Z2,Y2));function q2(){const[e,t]=F.useState(!1);return x.jsxs("aside",{className:"block h-[60px] w-full bg-black lg:h-screen lg:w-[300px]",children:[x.jsxs("div",{className:"hidden lg:flex lg:h-full lg:flex-col lg:justify-between lg:p-5 lg:text-center",children:[x.jsxs("div",{className:"flex flex-col items-center gap-2",children:[x.jsx("div",{className:"relative aspect-square w-full overflow-hidden rounded-full border-8 border-indigo-950",children:x.jsx("img",{className:"h-full w-full object-cover",src:Yf,alt:"photo"})}),x.jsx("h1",{className:"text-xl font-[500]",children:"Vladyslav Lopuha"}),x.jsx("span",{className:"text-sm opacity-60",children:"@Lynx1"})]}),x.jsx("ul",{className:"flex flex-col gap-4",children:td.map(n=>x.jsx("li",{children:x.jsx(Ca,{containerId:"sectionsContainer",to:n.id,smooth:!0,duration:500,className:"cursor-pointer select-none duration-200 hover:text-highlight",children:n.name})},n.id))}),x.jsxs("div",{className:"flex justify-center gap-4",children:[x.jsx("a",{href:"https://discordapp.com/users/346916032633503745",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#5865F2] hover:opacity-100",children:x.jsx(Jf,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://twitter.com/lynx1qq",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#00acee] hover:opacity-100",children:x.jsx(qf,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://linkedin.com/in/lynx1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#0072b1] hover:opacity-100",children:x.jsx(ed,{className:"h-5 w-5"})}),x.jsx("a",{href:"https://github.com/LynxN1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:opacity-100",children:x.jsx(Zf,{className:"h-5 w-5",color:"white"})})]})]}),x.jsxs("div",{className:"flex h-full w-full items-center justify-end px-4 lg:hidden",children:[x.jsxs("div",{className:"flex w-[35px] cursor-pointer flex-col gap-2",onClick:()=>t(!e),children:[x.jsx("span",{className:"h-0.5 bg-white"}),x.jsx("span",{className:"h-0.5 w-3/4 bg-white"}),x.jsx("span",{className:"h-0.5 w-1/2 bg-white"})]}),x.jsx(sp.div,{className:bu("fixed left-0 top-[60px] z-20 hidden h-screen w-full",{block:e}),animate:{backdropFilter:e?"blur(5px)":"blur(0px)"}}),x.jsx(sp.div,{className:"fixed top-0 z-50 h-screen w-3/4 bg-black",animate:{left:e?"-0%":"-100%"},transition:{duration:.3,ease:"easeOut"},children:x.jsxs("div",{className:"flex h-full flex-col justify-between px-10 py-4 text-center",children:[x.jsxs("div",{className:"flex flex-col items-center gap-2 pt-12",children:[x.jsx("div",{className:"relative aspect-square max-w-[200px] overflow-hidden rounded-full border-8 border-indigo-950",children:x.jsx("img",{className:"h-full w-full object-cover",src:Yf,alt:"photo"})}),x.jsx("h1",{className:"text-xl font-[500]",children:"Vladyslav Lopuha"}),x.jsx("span",{className:"text-md opacity-60",children:"@Lynx1"})]}),x.jsx("ul",{className:"flex flex-col gap-6 text-2xl",children:td.map(n=>x.jsx("li",{children:x.jsx(Ca,{containerId:"sectionsContainer",to:n.id,smooth:!0,duration:500,className:"cursor-pointer select-none duration-200 hover:text-highlight",children:n.name})},n.id))}),x.jsxs("div",{className:"flex justify-center gap-4",children:[x.jsx("a",{href:"https://discordapp.com/users/346916032633503745",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#5865F2] hover:opacity-100",children:x.jsx(Jf,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://twitter.com/lynx1qq",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#00acee] hover:opacity-100",children:x.jsx(qf,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://linkedin.com/in/lynx1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:text-[#0072b1] hover:opacity-100",children:x.jsx(ed,{className:"h-8 w-8"})}),x.jsx("a",{href:"https://github.com/LynxN1",target:"_blank",className:"cursor-pointer text-white opacity-80 duration-200 hover:opacity-100",children:x.jsx(Zf,{className:"h-8 w-8",color:"white"})})]})]})})]})]})}function J2(){return x.jsxs("div",{className:"flex flex-col lg:flex-row",children:[x.jsx(q2,{}),x.jsxs("main",{id:"sectionsContainer",className:"relative max-h-screen w-full overflow-y-auto",children:[x.jsx(Rx,{}),x.jsx(Nx,{}),x.jsx(Fx,{}),x.jsx(zx,{})]})]})}El.createRoot(document.getElementById("root")).render(x.jsx(ht.StrictMode,{children:x.jsx(J2,{})})); diff --git a/index.html b/index.html index 759def4..fbfbdd6 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Lynx1 - Personal Portfolio - +