Uniquely Crafted, Expertly Printed

Making customapparel easy.

We print custom apparel for businesses, teams, schools and events. Design online or work with our Montreal team, serving customers across Canada.

A collection of front-printed T-shirts and sweatshirts in different colours and designs.
",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is=="string"?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is=="string"?s.createElement(r,{is:o.is}):s.createElement(r)}}l[Ge]=t,l[xt]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)l.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=l;e:switch(Ye(l,r,o),r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Ea(t)}}return re(t),t.subtreeFlags&=-33554433,Rd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Ea(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(v(166));if(e=yo.current,ol(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,r=Ne,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||vL(e.nodeValue,a)),e||Do(t,!0)}else e=li(e).createTextNode(o),e[Ge]=t,t.stateNode=e}return re(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=ol(t),a!==null){if(e===null){if(!o)throw Error(v(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(v(557));e[Ge]=t}else hr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;re(t),e=!1}else a=wd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(vt(t),t):(vt(t),null);if((t.flags&128)!==0)throw Error(v(558))}return re(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=ol(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(v(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(v(317));r[Ge]=t}else hr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;re(t),r=!1}else r=wd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(vt(t),t):(vt(t),null)}return vt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==r&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),jn(t,t.updateQueue),re(t),null);case 4:return Rl(),e===null&&Gp(t.stateNode.containerInfo),t.flags|=67108864,re(t),null;case 10:return Va(t.type),re(t),null;case 19:if(Lp(t),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Ts(o,!1);else{if(Se!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Ru(e),l!==null){for(t.flags|=128,Ts(o,!1),e=l.updateQueue,t.updateQueue=e,jn(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)q1(a,e),a=a.sibling;return ti(t,Xe.current&1|2),P&&Oa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&wt()>Nu&&(t.flags|=128,r=!0,Ts(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ru(l),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,jn(t,e),Ts(o,!0),o.tail===null&&o.tailMode!=="collapsed"&&o.tailMode!=="visible"&&!l.alternate&&!P)return re(t),null}else 2*wt()-o.renderingStartTime>Nu&&a!==536870912&&(t.flags|=128,r=!0,Ts(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(e=o.last,e!==null?e.sibling=l:t.child=l,o.last=l)}if(o.tail!==null){e=o.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return o.rendering=e,o.tail=e.sibling,o.renderingStartTime=wt(),e.sibling=null,l=Xe.current,l=r?l&1|2:l&1,o.tailMode==="visible"||o.tailMode==="collapsed"||!a||P?ti(t,l):(a=l,se(Ke,t),se(Xe,a),$e===null&&($e=t)),P&&Oa(t,o.treeForkCount),e}return re(t),null;case 22:case 23:return vt(t),yp(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),a=t.updateQueue,a!==null&&jn(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&je(dr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Va(Te),re(t),null;case 25:return null;case 30:return t.flags|=33554432,re(t),null}throw Error(v(156,t.tag))}function nw(e,t){switch(mp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Va(Te),Rl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Su(t),null;case 31:if(t.memoizedState!==null){if(vt(t),t.alternate===null)throw Error(v(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(v(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lp(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Rl(),null;case 10:return Va(t.type),null;case 22:case 23:return vt(t),yp(),e!==null&&je(dr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Va(Te),null;case 25:return null;default:return null}}function ky(e,t){switch(mp(t),t.tag){case 3:Va(Te),Rl();break;case 26:case 27:case 5:Su(t);break;case 4:Rl();break;case 31:t.memoizedState!==null&&vt(t);break;case 13:vt(t);break;case 19:Lp(t);break;case 10:Va(t.type);break;case 22:case 23:vt(t),yp(),e!==null&&je(dr);break;case 24:Va(Te)}}function yi(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var r=o.next;a=r;do{if((a.tag&e)===e){o=void 0;var l=a.create,s=a.inst;o=l(),s.destroy=o}a=a.next}while(a!==r)}}catch(i){W(t,t.return,i)}}function Eo(e,t,a){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var l=r.next;o=l;do{if((o.tag&e)===e){var s=o.inst,i=s.destroy;if(i!==void 0){s.destroy=void 0,r=t;var n=a,u=i;try{u()}catch(f){W(r,n,f)}}}o=o.next}while(o!==l)}}catch(f){W(t,t.return,f)}}function qy(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Y1(t,a)}catch(o){W(e,e.return,o)}}}function Py(e,t,a){a.props=Cr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){W(e,t,o)}}function fa(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:var r=e.stateNode,l=qa(e.memoizedProps,r);(r.ref===null||r.ref.name!==l)&&(r.ref=ML(l)),o=r.ref;break;case 7:if(e.stateNode===null){var s=new Rt(e);gt(e.child,!1,Qw,s,void 0,void 0),e.stateNode=s}o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(i){W(e,t,i)}}function He(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(r){W(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){W(e,t,r)}else a.current=null}function Vu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a title"))),Ye(o,t,a),o[Ge]=e,Ue(o),t=o;break e;case"link":if(l=P0("link","href",r).get(t+(a.href||""))){for(s=0;sC&&(s=C,C=L,L=s);var h=Bx(i,L),m=Bx(i,C);if(h&&m&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var g=d.createRange();g.setStart(h.node,h.offset),p.removeAllRanges(),L>C?(p.addRange(g),p.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),p.addRange(g))}}}}for(d=[],p=i;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;ia?32:a,B.T=null,a=km,km=null;var l=ea,s=xa;if(pe=0,vr=ea=null,xa=0,(X&6)!==0)throw Error(v(331));var i=X;if(X|=4,oL(l.current),eL(l,l.current,s,a),X=i,Li(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(ci,l)}catch{}return!0}finally{Y.p=r,B.T=o,hL(e,t)}}function y0(e,t,a){t=Ft(a,t),t=Lm(e.stateNode,t,2),e=Co(e,t,2),e!==null&&(mi(e,2),Sa(e))}function W(e,t,a){if(e.tag===3)y0(e,e,a);else for(;t!==null;){if(t.tag===3){y0(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Io===null||!Io.has(o))){e=Ft(a,e),a=Ry(2),o=Co(t,a,2),o!==null&&(Ey(a,o,t,e),mi(o,2),Sa(o));break}}t=t.return}}function Vd(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new dw;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(a)||(Np=!0,r.add(a),e=Sw.bind(null,e,t,a),t.then(e,e))}function Sw(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,ee===e&&(_&a)===a&&((Se===4||Se===3&&(_&62914560)===_&&300>wt()-nf)&&(X&2)===0?kl(e,0):Uu|=a,zl===_&&(zl=0)),Sa(e)}function gL(e,t){t===0&&(t=s1()),e=Tr(e,t),e!==null&&(mi(e,t),Sa(e))}function Cw(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),gL(e,a)}function vw(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(v(314))}o!==null&&o.delete(t),gL(e,a)}function bw(e,t){return tp(e,t)}var ql=null,il=null,Fm=!1,Gu=!1,kd=!1,xo=0;function Sa(e){e!==il&&e.next===null&&(il===null?ql=il=e:il=il.next=e),Gu=!0,Fm||(Fm=!0,ww())}function Li(e,t){if(!kd&&Gu){kd=!0;do for(var a=!1,o=ql;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var l=0;else{var s=o.suspendedLanes,i=o.pingedLanes;l=(1<<31-At(42|e)+1)-1,l&=r&~(s&~i),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,L0(o,l))}else l=_,l=Yu(o,o===ee?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(l&3)===0||di(o,l)||(a=!0,L0(o,l));o=o.next}while(a);kd=!1}}function Iw(){xL()}function xL(){Gu=Fm=!1;var e=0;xo!==0&&zw()&&(e=xo);for(var t=wt(),a=null,o=ql;o!==null;){var r=o.next,l=yL(o,t);l===0?(o.next=null,a===null?ql=r:a.next=r,r===null&&(il=a)):(a=o,(e!==0||(l&3)!==0)&&(Gu=!0)),o=r}pe!==0&&pe!==5||Li(e,!1),xo!==0&&(xo=0)}function yL(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0i)break;var f=n.transferSize,d=n.initiatorType;f&&w0(d)&&(n=n.responseEnd,s+=f*(nhu){L.length=x;break}g=new Promise(Nw.bind(g)),L.push(g)}}}if(0"u"?null:document;function kL(e,t,a){var o=Kl;if(o&&typeof t=="string"&&t){var r=Nt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),V0.has(r)||(V0.add(r),e={rel:e,crossOrigin:a,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Ye(t,"link",e),Ue(t),o.head.appendChild(t)))}}function lT(e){_a.D(e),kL("dns-prefetch",e,null)}function sT(e,t){_a.C(e,t),kL("preconnect",e,t)}function iT(e,t,a){_a.L(e,t,a);var o=Kl;if(o&&e&&t){var r='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Nt(a.imageSizes)+'"]')):r+='[href="'+Nt(e)+'"]';var l=r;switch(t){case"style":l=Ul(e);break;case"script":l=Zl(e)}if(!(_t.has(l)||(e=te({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_t.set(l,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Si(l))||t==="script"&&o.querySelector(Ci(l))))){var s=o.createElement("link");Ye(s,"link",e),t==="style"&&(s[vu]=!0,s.onload=s.onerror=function(){c1(s)}),Ue(s),o.head.appendChild(s)}}}function nT(e,t){_a.m(e,t);var a=Kl;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Nt(o)+'"][href="'+Nt(e)+'"]',l=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=Zl(e)}if(!_t.has(l)&&(e=te({rel:"modulepreload",href:e},t),_t.set(l,e),a.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ci(l)))return}o=a.createElement("link"),Ye(o,"link",e),Ue(o),a.head.appendChild(o)}}}function uT(e,t,a){_a.S(e,t,a);var o=Kl;if(o&&e){var r=Sl(o).hoistableStyles,l=Ul(e);t=t||"default";var s=r.get(l);if(!s){var i={loading:0,preload:null};if(s=o.querySelector(Si(l)))i.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_t.get(l))&&Yp(e,a);var n=s=o.createElement("link");Ue(n),Ye(n,"link",e),n._p=new Promise(function(u,f){n.onload=u,n.onerror=f}),n.addEventListener("load",function(){i.loading|=1}),n.addEventListener("error",function(){i.loading|=2}),i.loading|=4,mu(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:i},r.set(l,s)}}}function fT(e,t){_a.X(e,t);var a=Kl;if(a&&e){var o=Sl(a).hoistableScripts,r=Zl(e),l=o.get(r);l||(l=a.querySelector(Ci(r)),l||(e=te({src:e,async:!0},t),(t=_t.get(r))&&Kp(e,t),l=a.createElement("script"),Ue(l),Ye(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function cT(e,t){_a.M(e,t);var a=Kl;if(a&&e){var o=Sl(a).hoistableScripts,r=Zl(e),l=o.get(r);l||(l=a.querySelector(Ci(r)),l||(e=te({src:e,async:!0,type:"module"},t),(t=_t.get(r))&&Kp(e,t),l=a.createElement("script"),Ue(l),Ye(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function k0(e,t,a,o){var r=(r=yo.current)?si(r):null;if(!r)throw Error(v(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Ul(a.href),t=Sl(r).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ul(a.href);var l=Sl(r).hoistableStyles,s=l.get(e);if(s||(r=r.ownerDocument||r,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,s),(l=r.querySelector(Si(e)))?l._p||(s.instance=l,s.state.loading=5):(l=_t.get(e),l||(l={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},_t.set(e,l)),dT(r,e,l,s.state))),t&&o===null)throw Error(v(528,""));return s}if(t&&o!==null)throw Error(v(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=Zl(a),t=Sl(r).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(v(444,e))}}function Ul(e){return'href="'+Nt(e)+'"'}function Si(e){return'link[rel="stylesheet"]['+e+"]"}function qL(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function dT(e,t,a,o){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[vu]!==!0){o.loading=1;return}}else t=e.createElement("link"),t[vu]=!0,t.onload=t.onerror=c1.bind(null,t),Ye(t,"link",a),Ue(t),e.head.appendChild(t);o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2})}function Zl(e){return'[src="'+Nt(e)+'"]'}function Ci(e){return"script[async]"+e}function q0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(o)return t.instance=o,Ue(o),o;var r=te({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Ue(o),Ye(o,"style",r),mu(o,a.precedence,e),t.instance=o;case"stylesheet":r=Ul(a.href);var l=e.querySelector(Si(r));if(l)return t.state.loading|=4,t.instance=l,Ue(l),l;o=qL(a),(r=_t.get(r))&&Yp(o,r),l=(e.ownerDocument||e).createElement("link"),Ue(l);var s=l;return s._p=new Promise(function(i,n){s.onload=i,s.onerror=n}),Ye(l,"link",o),t.state.loading|=4,mu(l,a.precedence,e),t.instance=l;case"script":return l=Zl(a.src),(r=e.querySelector(Ci(l)))?(t.instance=r,Ue(r),r):(o=a,(r=_t.get(l))&&(o=te({},a),Kp(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ue(r),Ye(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(v(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,mu(o,a.precedence,e));return t.instance}function mu(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,l=r,s=0;s title"):null)}function mT(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function U0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function PL(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function UL(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function N0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=UL(t),e.suspenseyImages.push(t)),e=gT.bind(e),t.decode().then(e,e))}function pT(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=Ul(o.href),l=t.querySelector(Si(r));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ii.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=l,Ue(l);return}l=t.ownerDocument||t,o=qL(o),(r=_t.get(r))&&Yp(o,r),l=l.createElement("link"),Ue(l);var s=l;s._p=new Promise(function(i,n){s.onload=i,s.onerror=n}),Ye(l,"link",o),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ii.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var hu=0;function hT(e,t){return e.stylesheets&&e.count===0&&gu(e,e.stylesheets),0hu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(r)}}:null}function NL(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)gu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ii(){this.count--,NL(this)}function gT(){this.imgCount--,NL(this)}var ju=null;function gu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ju=new Map,t.forEach(xT,e),ju=null,ii.call(e))}function xT(e,t){if(!(t.state.loading&4)){var a=ju.get(e);if(a)var o=a.get(null);else{a=new Map,ju.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l{"use strict";function ZL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZL)}catch(e){console.error(e)}}ZL(),QL.exports=KL()});var aS=la(gf=>{"use strict";var wT=Symbol.for("react.transitional.element"),TT=Symbol.for("react.fragment");function tS(e,t,a){var o=null;if(a!==void 0&&(o=""+a),t.key!==void 0&&(o=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:wT,type:e,key:o,ref:t!==void 0?t:null,props:a}}gf.Fragment=TT;gf.jsx=tS;gf.jsxs=tS});var Et=la((VD,oS)=>{"use strict";oS.exports=aS()});var Yb=O(WL(),1);var Cn=O(N(),1);var hf=O(N());var JL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pf=(...e)=>e.filter((t,a,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===a).join(" ").trim();var vi=O(N());var $L={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var eS=(0,vi.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:r="",children:l,iconNode:s,...i},n)=>(0,vi.createElement)("svg",{ref:n,...$L,width:t,height:t,stroke:e,strokeWidth:o?Number(a)*24/Number(t):a,className:pf("lucide",r),...i},[...s.map(([u,f])=>(0,vi.createElement)(u,f)),...Array.isArray(l)?l:[l]]));var Vo=(e,t)=>{let a=(0,hf.forwardRef)(({className:o,...r},l)=>(0,hf.createElement)(eS,{ref:l,iconNode:t,className:pf(`lucide-${JL(e)}`,o),...r}));return a.displayName=`${e}`,a};var bi=Vo("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Ii=Vo("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var wi=Vo("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);var Ti=Vo("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ae=O(N(),1),_b=O(fd(),1);var gn=O(Et(),1),ra=O(N(),1);var rS=O(N(),1),ja=(0,rS.createContext)({});var lS=O(N(),1);function Ql(e){let t=(0,lS.useRef)(null);return t.current===null&&(t.current=e()),t.current}var xf=O(N(),1);var sS=typeof window<"u";var ko=sS?xf.useLayoutEffect:xf.useEffect;var ig=O(Et(),1),pv=O(N(),1),Zo=O(N(),1);var iS=O(N(),1),qo=(0,iS.createContext)(null);var dv=O(Et(),1);function Mr(e,t){e.indexOf(t)===-1&&e.push(t)}function Po(e,t){let a=e.indexOf(t);a>-1&&e.splice(a,1)}var Oe=(e,t,a)=>a>t?t:a{},yt=()=>{};var nt={};var Ai=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var Mi=e=>typeof e=="object"&&e!==null;var Di=e=>/^0[^.\s]+$/u.test(e);function Ri(e){let t;return()=>(t===void 0&&(t=e()),t)}var he=e=>e;var aa=(...e)=>e.reduce((t,a)=>o=>a(t(o)));var Ca=(e,t,a)=>{let o=t-e;return o?(a-e)/o:1};var Ya=class{constructor(){this.subscriptions=[]}add(t){return Mr(this.subscriptions,t),()=>Po(this.subscriptions,t)}notify(t,a,o){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,o);else for(let l=0;le*1e3,Fe=e=>e/1e3;var Ei=(e,t)=>t?e*(1e3/t):0;var nS=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,AT=1e-7,MT=12;function DT(e,t,a,o,r){let l,s,i=0;do s=t+(a-t)/2,l=nS(s,o,r)-e,l>0?a=s:t=s;while(Math.abs(l)>AT&&++iDT(l,0,1,e,a);return l=>l===0||l===1?l:nS(r(l),t,o)}var yf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Lf=e=>t=>1-e(1-t);var Sf=Uo(.33,1.53,.69,.99),Wl=Lf(Sf),Oi=yf(Wl);var Bi=e=>e>=1?1:(e*=2)<1?.5*Wl(e):.5*(2-Math.pow(2,-10*(e-1)));var zi=e=>1-Math.sin(Math.acos(e)),Vi=Lf(zi),ki=yf(zi);var $p=Uo(.42,0,1,1),eh=Uo(0,0,.58,1),qi=Uo(.42,0,.58,1);var th=e=>Array.isArray(e)&&typeof e[0]!="number";var Pi=e=>Array.isArray(e)&&typeof e[0]=="number";var uS={linear:he,easeIn:$p,easeInOut:qi,easeOut:eh,circIn:zi,circInOut:ki,circOut:Vi,backIn:Wl,backInOut:Oi,backOut:Sf,anticipate:Bi},RT=e=>typeof e=="string",Cf=e=>{if(Pi(e)){yt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,a,o,r]=e;return Uo(t,a,o,r)}else if(RT(e))return yt(uS[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),uS[e];return e};var Ui=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function fS(e){let t=new Set,a=new Set,o=!1,r=!1,l=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function i(u){l.has(u)&&(n.schedule(u),e()),u(s)}let n={schedule:(u,f=!1,d=!1)=>{let p=d&&o?t:a;return f&&l.add(u),p.add(u),u},cancel:u=>{a.delete(u),l.delete(u)},process:u=>{if(s=u,o){r=!0;return}o=!0;let f=t;t=a,a=f,t.forEach(i),t.clear(),o=!1,r&&(r=!1,n.process(u))}};return n}var ET=40;function vf(e,t){let a=!1,o=!0,r={delta:0,timestamp:0,isProcessing:!1},l=()=>a=!0,s=Ui.reduce((g,y)=>(g[y]=fS(l),g),{}),{setup:i,read:n,resolveKeyframes:u,preUpdate:f,update:d,preRender:c,render:p,postRender:x}=s,L=()=>{let g=nt.useManualTiming,y=g?r.timestamp:performance.now();a=!1,g||(r.delta=o?1e3/60:Math.max(Math.min(y-r.timestamp,ET),1)),r.timestamp=y,r.isProcessing=!0,i.process(r),n.process(r),u.process(r),f.process(r),d.process(r),c.process(r),p.process(r),x.process(r),r.isProcessing=!1,a&&t&&(o=!1,e(L))},C=()=>{a=!0,o=!0,r.isProcessing||e(L)};return{schedule:Ui.reduce((g,y)=>{let b=s[y];return g[y]=(T,I=!1,S=!1)=>(a||C(),b.schedule(T,I,S)),g},{}),cancel:g=>{for(let y=0;y(bf===void 0&&ge.set(Ce.isProcessing||nt.useManualTiming?Ce.timestamp:performance.now()),bf),set:e=>{bf=e,queueMicrotask(OT)}};var cS=e=>t=>typeof t=="string"&&t.startsWith(e),If=cS("--"),BT=cS("var(--"),Jl=e=>BT(e)?zT.test(e.split("/*")[0].trim()):!1,zT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ah(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var va={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ka={...va,transform:e=>Oe(0,1,e)},Fi={...va,default:1};var No=e=>Math.round(e*1e5)/1e5;var $l=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dS(e){return e==null}var mS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var es=(e,t)=>a=>!!(typeof a=="string"&&mS.test(a)&&a.startsWith(e)||t&&!dS(a)&&Object.prototype.hasOwnProperty.call(a,t)),wf=(e,t,a)=>o=>{if(typeof o!="string")return o;let[r,l,s,i]=o.match($l);return{[e]:parseFloat(r),[t]:parseFloat(l),[a]:parseFloat(s),alpha:i!==void 0?parseFloat(i):1}};var VT=e=>Oe(0,255,e),oh={...va,transform:e=>Math.round(VT(e))},ba={test:es("rgb","red"),parse:wf("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:o=1})=>"rgba("+oh.transform(e)+", "+oh.transform(t)+", "+oh.transform(a)+", "+No(Ka.transform(o))+")"};function kT(e){let t="",a="",o="",r="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,a+=a,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}var Hi={test:es("#"),parse:kT,transform:ba.transform};var Gi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),jt=Gi("deg"),et=Gi("%"),A=Gi("px"),rh=Gi("vh"),lh=Gi("vw"),Tf={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)};var Fo={test:es("hsl","hue"),parse:wf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:o=1})=>"hsla("+Math.round(e)+", "+et.transform(No(t))+", "+et.transform(No(a))+", "+No(Ka.transform(o))+")"};var de={test:e=>ba.test(e)||Hi.test(e)||Fo.test(e),parse:e=>ba.test(e)?ba.parse(e):Fo.test(e)?Fo.parse(e):Hi.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ba.transform(e):Fo.transform(e),getAnimatableNone:e=>{let t=de.parse(e);return t.alpha=0,de.transform(t)}};var pS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qT(e){return isNaN(e)&&typeof e=="string"&&(e.match($l)?.length||0)+(e.match(pS)?.length||0)>0}var gS="number",xS="color",PT="var",UT="var(",hS="${}",NT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ho(e){let t=e.toString(),a=[],o={color:[],number:[],var:[]},r=[],l=0,i=t.replace(NT,n=>(de.test(n)?(o.color.push(l),r.push(xS),a.push(de.parse(n))):n.startsWith(UT)?(o.var.push(l),r.push(PT),a.push(n)):(o.number.push(l),r.push(gS),a.push(parseFloat(n))),++l,hS)).split(hS);return{values:a,split:i,indexes:o,types:r}}function FT(e){return Ho(e).values}function yS({split:e,types:t}){let a=e.length;return o=>{let r="";for(let l=0;ltypeof e=="number"?0:de.test(e)?de.getAnimatableNone(e):e,_T=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:GT(e);function jT(e){let t=Ho(e);return yS(t)(t.values.map((o,r)=>_T(o,t.split[r])))}var Be={test:qT,parse:FT,createTransformer:HT,getAnimatableNone:jT};function sh(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function LS({hue:e,saturation:t,lightness:a,alpha:o}){e/=360,t/=100,a/=100;let r=0,l=0,s=0;if(!t)r=l=s=a;else{let i=a<.5?a*(1+t):a+t-a*t,n=2*a-i;r=sh(n,i,e+1/3),l=sh(n,i,e),s=sh(n,i,e-1/3)}return{red:Math.round(r*255),green:Math.round(l*255),blue:Math.round(s*255),alpha:o}}function ts(e,t){return a=>a>0?t:e}var q=(e,t,a)=>e+(t-e)*a;var ih=(e,t,a)=>{let o=e*e,r=a*(t*t-o)+o;return r<0?0:Math.sqrt(r)},XT=[Hi,ba,Fo],YT=e=>XT.find(t=>t.test(e));function SS(e){let t=YT(e);if(Xa(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let a=t.parse(e);return t===Fo&&(a=LS(a)),a}var nh=(e,t)=>{let a=SS(e),o=SS(t);if(!a||!o)return ts(e,t);let r={...a};return l=>(r.red=ih(a.red,o.red,l),r.green=ih(a.green,o.green,l),r.blue=ih(a.blue,o.blue,l),r.alpha=q(a.alpha,o.alpha,l),ba.transform(r))};var Af=new Set(["none","hidden"]);function CS(e,t){return Af.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function KT(e,t){return a=>q(e,t,a)}function Mf(e){return typeof e=="number"?KT:typeof e=="string"?Jl(e)?ts:de.test(e)?nh:WT:Array.isArray(e)?vS:typeof e=="object"?de.test(e)?nh:ZT:ts}function vS(e,t){let a=[...e],o=a.length,r=e.map((l,s)=>Mf(l)(l,t[s]));return l=>{for(let s=0;s{for(let l in o)a[l]=o[l](r);return a}}function QT(e,t){let a=[],o={color:0,var:0,number:0};for(let r=0;r{let a=Be.createTransformer(t),o=Ho(e),r=Ho(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Af.has(e)&&!r.values.length||Af.has(t)&&!o.values.length?CS(e,t):aa(vS(QT(o,r),r.values),a):(Xa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ts(e,t))};function Df(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?q(e,t,a):Mf(e)(e,t)}var bS=e=>{let t=({timestamp:a})=>e(a);return{start:(a=!0)=>V.update(t,a),stop:()=>Lt(t),now:()=>Ce.isProcessing?Ce.timestamp:ge.now()}};var Rf=(e,t,a=10)=>{let o="",r=Math.max(Math.round(t/a),2);for(let l=0;l=2e4?1/0:t}function IS(e,t=100,a){let o=a({...e,keyframes:[0,t]}),r=Math.min(as(o),2e4);return{type:"keyframes",ease:l=>o.next(r*l).value/t,duration:Fe(r)}}var xe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ch(e,t){return e*Math.sqrt(1-t*t)}var JT=12;function $T(e,t,a){let o=a;for(let r=1;r{let f=u*s,d=f*e,c=f-a,p=ch(u,s),x=Math.exp(-d);return fh-c/p*x},l=u=>{let d=u*s*e,c=d*a+a,p=Math.pow(s,2)*Math.pow(u,2)*e,x=Math.exp(-d),L=ch(Math.pow(u,2),s);return(-r(u)+fh>0?-1:1)*((c-p)*x)/L}):(r=u=>{let f=Math.exp(-u*e),d=(u-a)*e+1;return-fh+f*d},l=u=>{let f=Math.exp(-u*e),d=(a-u)*(e*e);return f*d});let i=5/e,n=$T(r,l,i);if(e=Ie(e),isNaN(n))return{stiffness:xe.stiffness,damping:xe.damping,duration:e};{let u=Math.pow(n,2)*o;return{stiffness:u,damping:s*2*Math.sqrt(o*u),duration:e}}}var tA=["duration","bounce"],aA=["stiffness","damping","mass"];function wS(e,t){return t.some(a=>e[a]!==void 0)}function oA(e){let t={velocity:xe.velocity,stiffness:xe.stiffness,damping:xe.damping,mass:xe.mass,isResolvedFromDuration:!1,...e};if(!wS(e,aA)&&wS(e,tA))if(t.velocity=0,e.visualDuration){let a=e.visualDuration,o=2*Math.PI/(a*1.2),r=o*o,l=2*Oe(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:xe.mass,stiffness:r,damping:l}}else{let a=eA({...e,velocity:0});t={...t,...a,mass:xe.mass},t.isResolvedFromDuration=!0}return t}function os(e=xe.visualDuration,t=xe.bounce){let a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:r}=a,l=a.keyframes[0],s=a.keyframes[a.keyframes.length-1],i={done:!1,value:l},{stiffness:n,damping:u,mass:f,duration:d,velocity:c,isResolvedFromDuration:p}=oA({...a,velocity:-Fe(a.velocity||0)}),x=c||0,L=u/(2*Math.sqrt(n*f)),C=s-l,h=Fe(Math.sqrt(n/f)),m=Math.abs(C)<5;o||(o=m?xe.restSpeed.granular:xe.restSpeed.default),r||(r=m?xe.restDelta.granular:xe.restDelta.default);let g,y,b,T,I,S;if(L<1)b=ch(h,L),T=(x+L*h*C)/b,g=w=>{let G=Math.exp(-L*h*w);return s-G*(T*Math.sin(b*w)+C*Math.cos(b*w))},I=L*h*T+C*b,S=L*h*C-T*b,y=w=>Math.exp(-L*h*w)*(I*Math.sin(b*w)+S*Math.cos(b*w));else if(L===1){g=G=>s-Math.exp(-h*G)*(C+(x+h*C)*G);let w=x+h*C;y=G=>Math.exp(-h*G)*(h*w*G-x)}else{let w=h*Math.sqrt(L*L-1);g=ft=>{let Ze=Math.exp(-L*h*ft),ye=Math.min(w*ft,300);return s-Ze*((x+L*h*C)*Math.sinh(ye)+w*C*Math.cosh(ye))/w};let G=(x+L*h*C)/w,ue=L*h*G-C*w,zt=L*h*C-G*w;y=ft=>{let Ze=Math.exp(-L*h*ft),ye=Math.min(w*ft,300);return Ze*(ue*Math.sinh(ye)+zt*Math.cosh(ye))}}let M={calculatedDuration:p&&d||null,velocity:w=>Ie(y(w)),next:w=>{if(!p&&L<1){let ue=Math.exp(-L*h*w),zt=Math.sin(b*w),ft=Math.cos(b*w),Ze=s-ue*(T*zt+C*ft),ye=Ie(ue*(I*zt+S*ft));return i.done=Math.abs(ye)<=o&&Math.abs(s-Ze)<=r,i.value=i.done?s:Ze,i}let G=g(w);if(p)i.done=w>=d;else{let ue=Ie(y(w));i.done=Math.abs(ue)<=o&&Math.abs(s-G)<=r}return i.value=i.done?s:G,i},toString:()=>{let w=Math.min(as(M),2e4),G=Rf(ue=>M.next(w*ue).value,w,30);return w+"ms "+G},toTransition:()=>{}};return M}os.applyToOptions=e=>{let t=IS(e,100,os);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};var rA=5;function Ef(e,t,a){let o=Math.max(t-rA,0);return Ei(a-e(o),t-o)}function _i({keyframes:e,velocity:t=0,power:a=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:l=500,modifyTarget:s,min:i,max:n,restDelta:u=.5,restSpeed:f}){let d=e[0],c={done:!1,value:d},p=S=>i!==void 0&&Sn,x=S=>i===void 0?n:n===void 0||Math.abs(i-S)-L*Math.exp(-S/o),g=S=>h+m(S),y=S=>{let M=m(S),w=g(S);c.done=Math.abs(M)<=u,c.value=c.done?h:w},b,T,I=S=>{p(c.value)&&(b=S,T=os({keyframes:[c.value,x(c.value)],velocity:Ef(g,S,c.value),damping:r,stiffness:l,restDelta:u,restSpeed:f}))};return I(0),{calculatedDuration:null,next:S=>{let M=!1;return!T&&b===void 0&&(M=!0,y(S),I(S)),b!==void 0&&S>=b?T.next(S-b):(!M&&y(S),c)}}}function lA(e,t,a){let o=[],r=a||nt.mix||Df,l=e.length-1;for(let s=0;st[0];if(l===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=lA(t,o,r),n=i.length,u=f=>{if(s&&f1)for(;du(Oe(e[0],e[l-1],f)):u}function AS(e,t){let a=e[e.length-1];for(let o=1;o<=t;o++){let r=Ca(0,t,o);e.push(q(a,1,r))}}function MS(e){let t=[0];return AS(t,e.length-1),t}function DS(e,t){return e.map(a=>a*t)}function sA(e,t){return e.map(()=>t||qi).splice(0,e.length-1)}function Dr({duration:e=300,keyframes:t,times:a,ease:o="easeInOut"}){let r=th(o)?o.map(Cf):Cf(o),l={done:!1,value:t[0]},s=DS(a&&a.length===t.length?a:MS(t),e),i=TS(s,t,{ease:Array.isArray(r)?r:sA(t,r)});return{calculatedDuration:e,next:n=>(l.value=i(n),l.done=n>=e,l)}}var iA=e=>e!==null;function Go(e,{repeat:t,repeatType:a="loop"},o,r=1){let l=e.filter(iA),i=r<0||t&&a!=="loop"&&t%2===1?0:l.length-1;return!i||o===void 0?l[i]:o}var nA={decay:_i,inertia:_i,tween:Dr,keyframes:Dr,spring:os};function Of(e){typeof e.type=="string"&&(e.type=nA[e.type])}var _o=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}};var uA=e=>e/100,Za=class extends _o{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:a}=this.options;a&&a.updatedAt!==ge.now()&&this.tick(ge.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Of(t);let{type:a=Dr,repeat:o=0,repeatDelay:r=0,repeatType:l,velocity:s=0}=t,{keyframes:i}=t,n=a||Dr;n!==Dr&&typeof i[0]!="number"&&(this.mixKeyframes=aa(uA,Df(i[0],i[1])),i=[0,100]);let u=n({...t,keyframes:i});l==="mirror"&&(this.mirroredGenerator=n({...t,keyframes:[...i].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=as(u));let{calculatedDuration:f}=u;this.calculatedDuration=f,this.resolvedDuration=f+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){let a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){let{generator:o,totalDuration:r,mixKeyframes:l,mirroredGenerator:s,resolvedDuration:i,calculatedDuration:n}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:f,repeat:d,repeatType:c,repeatDelay:p,type:x,onUpdate:L,finalKeyframe:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);let h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?h<0:h>r;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let g=this.currentTime,y=o;if(d){let S=Math.min(this.currentTime,r)/i,M=Math.floor(S),w=S%1;!w&&S>=1&&(w=1),w===1&&M--,M=Math.min(M,d+1),!!(M%2)&&(c==="reverse"?(w=1-w,p&&(w-=p/i)):c==="mirror"&&(y=s)),g=Oe(0,1,w)*i}let b;m?(this.delayState.value=f[0],b=this.delayState):b=y.next(g),l&&!m&&(b.value=l(b.value));let{done:T}=b;!m&&n!==null&&(T=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return I&&x!==_i&&(b.value=Go(f,this.options,C,this.speed)),L&&L(b.value),I&&this.finish(),b}then(t,a){return this.finished.then(t,a)}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Fe(t)}get time(){return Fe(this.currentTime)}set time(t){t=Ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let a=this.generator.next(t).value;return Ef(o=>this.generator.next(o).value,t,a)}get speed(){return this.playbackSpeed}set speed(t){let a=this.playbackSpeed!==t;a&&this.driver&&this.updateTime(ge.now()),this.playbackSpeed=t,a&&this.driver&&(this.time=Fe(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=bS,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=a??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ge.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function RS(e){for(let t=1;te*180/Math.PI,dh=e=>{let t=Rr(Math.atan2(e[1],e[0]));return mh(t)},fA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:dh,rotateZ:dh,skewX:e=>Rr(Math.atan(e[1])),skewY:e=>Rr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mh=e=>(e=e%360,e<0&&(e+=360),e),ES=dh,OS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),BS=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:OS,scaleY:BS,scale:e=>(OS(e)+BS(e))/2,rotateX:e=>mh(Rr(Math.atan2(e[6],e[5]))),rotateY:e=>mh(Rr(Math.atan2(-e[2],e[0]))),rotateZ:ES,rotate:ES,skewX:e=>Rr(Math.atan(e[4])),skewY:e=>Rr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Bf(e){return e.includes("scale")?1:0}function zf(e,t){if(!e||e==="none")return Bf(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,r;if(a)o=cA,r=a;else{let i=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=fA,r=i}if(!r)return Bf(t);let l=o[t],s=r[1].split(",").map(dA);return typeof l=="function"?l(s):s[l]}var zS=(e,t)=>{let{transform:a="none"}=getComputedStyle(e);return zf(a,t)};function dA(e){return parseFloat(e.trim())}var Ia=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xt=new Set([...Ia,"pathRotation"]);var ph=e=>e===va||e===A,mA=new Set(["x","y","z"]),pA=Ia.filter(e=>!mA.has(e));function VS(e){let t=[];return pA.forEach(a=>{let o=e.getValue(a);o!==void 0&&(t.push([a,o.get()]),o.set(a.startsWith("scale")?1:0))}),t}var Qa={width:({x:e},{paddingLeft:t="0",paddingRight:a="0",boxSizing:o})=>{let r=e.max-e.min;return o==="border-box"?r:r-parseFloat(t)-parseFloat(a)},height:({y:e},{paddingTop:t="0",paddingBottom:a="0",boxSizing:o})=>{let r=e.max-e.min;return o==="border-box"?r:r-parseFloat(t)-parseFloat(a)},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:(e,{transform:t})=>zf(t,"x"),y:(e,{transform:t})=>zf(t,"y")};Qa.translateX=Qa.x;Qa.translateY=Qa.y;var Er=new Set,hh=!1,gh=!1,xh=!1;function kS(){if(gh){let e=Array.from(Er).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),a=new Map;t.forEach(o=>{let r=VS(o);r.length&&(a.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let r=a.get(o);r&&r.forEach(([l,s])=>{o.getValue(l)?.set(s)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}gh=!1,hh=!1,Er.forEach(e=>e.complete(xh)),Er.clear()}function qS(){Er.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(gh=!0)})}function PS(){xh=!0,qS(),kS(),xh=!1}var jo=class{constructor(t,a,o,r,l,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=o,this.motionValue=r,this.element=l,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Er.add(this),hh||(hh=!0,V.read(qS),V.resolveKeyframes(kS))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:a,element:o,motionValue:r}=this;if(t[0]===null){let l=r?.get(),s=t[t.length-1];if(l!==void 0)t[0]=l;else if(o&&a){let i=o.readValue(a,s);i!=null&&(t[0]=i)}t[0]===void 0&&(t[0]=s),r&&l===void 0&&r.set(t[0])}RS(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Er.delete(this)}cancel(){this.state==="scheduled"&&(Er.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var US=e=>e.startsWith("--");function Vf(e,t,a){US(t)?e.style.setProperty(t,a):e.style[t]=a}var NS={};function kf(e,t){let a=Ri(e);return()=>NS[t]??a()}var FS=kf(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var qf=kf(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var Or=([e,t,a,o])=>`cubic-bezier(${e}, ${t}, ${a}, ${o})`;var yh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Or([0,.65,.55,1]),circOut:Or([.55,0,1,.45]),backIn:Or([.31,.01,.66,-.59]),backOut:Or([.33,1.53,.69,.99])};function Lh(e,t){if(e)return typeof e=="function"?qf()?Rf(e,t):"ease-out":Pi(e)?Or(e):Array.isArray(e)?e.map(a=>Lh(a,t)||yh.easeOut):yh[e]}function HS(e,t,a,{delay:o=0,duration:r=300,repeat:l=0,repeatType:s="loop",ease:i="easeOut",times:n}={},u=void 0){let f={[t]:a};n&&(f.offset=n);let d=Lh(i,r);Array.isArray(d)&&(f.easing=d);let c={delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:l+1,direction:s==="reverse"?"alternate":"normal"};return u&&(c.pseudoElement=u),e.animate(f,c)}function Pf(e){return typeof e=="function"&&"applyToOptions"in e}function GS({type:e,...t}){return Pf(e)&&qf()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var rs=class extends _o{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:a,name:o,keyframes:r,pseudoElement:l,allowFlatten:s=!1,finalKeyframe:i,onComplete:n}=t;this.isPseudoElement=!!l,this.allowFlatten=s,this.options=t,yt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=GS(t);this.animation=HS(a,o,r,u,l),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){let f=Go(r,this.options,i,this.speed);this.updateMotionValue&&this.updateMotionValue(f),Vf(a,o,f),this.animation.cancel()}n?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return Fe(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+Fe(t)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(t){let a=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ie(t),a&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:a,rangeEnd:o,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&FS()?(this.animation.timeline=t,a&&(this.animation.rangeStart=a),o&&(this.animation.rangeEnd=o),he):r(this)}};var _S={anticipate:Bi,backInOut:Oi,circInOut:ki};function hA(e){return e in _S}function jS(e){typeof e.ease=="string"&&hA(e.ease)&&(e.ease=_S[e.ease])}var Sh=10,Uf=class extends rs{constructor(t){jS(t),Of(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:a,onUpdate:o,onComplete:r,element:l,...s}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}let i=new Za({...s,autoplay:!1}),n=Math.max(Sh,ge.now()-this.startTime),u=Oe(0,Sh,n-Sh),f=i.sample(n).value,{name:d}=this.options;l&&d&&Vf(l,d,f),a.setWithVelocity(i.sample(Math.max(0,n-u)).value,f,u),i.stop()}};var Ch=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Be.test(e)||e==="0")&&!e.startsWith("url("));function gA(e){let t=e[0];if(e.length===1)return!0;for(let a=0;aObject.hasOwnProperty.call(Element.prototype,"animate"));function KS(e){let{motionValue:t,name:a,repeatDelay:o,repeatType:r,damping:l,type:s,keyframes:i}=e,n=t?.owner?.current;if(!(n instanceof HTMLElement)&&!(n instanceof SVGElement))return!1;let{onUpdate:u,transformTemplate:f}=t.owner.getProps();return LA()&&a&&(Nf.has(a)||yA.has(a)&&YS(i))&&(a!=="transform"||!f)&&!u&&!o&&r!=="mirror"&&l!==0&&s!=="inertia"}var SA=40,Ff=class extends _o{constructor({autoplay:t=!0,delay:a=0,type:o="keyframes",repeat:r=0,repeatDelay:l=0,repeatType:s="loop",keyframes:i,name:n,motionValue:u,element:f,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ge.now();let c={autoplay:t,delay:a,type:o,repeat:r,repeatDelay:l,repeatType:s,name:n,motionValue:u,element:f,...d},p=f?.KeyframeResolver||jo;this.keyframeResolver=new p(i,(x,L,C)=>this.onKeyframesResolved(x,L,c,!C),n,u,f),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,o,r){this.keyframeResolver=void 0;let{name:l,type:s,velocity:i,delay:n,isHandoff:u,onUpdate:f}=o;this.resolvedAt=ge.now();let d=!0;XS(t,l,s,i)||(d=!1,(nt.instantAnimations||!n)&&f?.(Go(t,o,a)),t[0]=t[t.length-1],ji(o),o.repeat=0);let p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>SA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...o,keyframes:t},x=d&&!u&&KS(p),L=p.motionValue?.owner?.current,C;if(x)try{C=new Uf({...p,element:L})}catch{C=new Za(p)}else C=new Za(p);C.finished.then(()=>{this.notifyFinished()}).catch(he),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),PS()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Hf(e,t,a,o=0,r=1){let l=Array.from(e).sort((u,f)=>u.sortNodePosition(f)).indexOf(t),s=e.size,i=(s-1)*o;return typeof a=="function"?a(l,s):r===1?l*o:i-l*o}var ZS=30,CA=e=>!isNaN(parseFloat(e)),QS={current:void 0},vh=class{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let r=ge.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=ge.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Ya);let o=this.events[t].add(a);return t==="change"?()=>{o(),V.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return QS.current&&QS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ge.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ZS)return 0;let a=Math.min(this.updatedAt-this.prevUpdatedAt,ZS);return Ei(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function oa(e,t){return new vh(e,t)}function Gf(e,t){if(e?.inherit&&t){let{inherit:a,...o}=e;return{...t,...o}}return e}function ls(e,t){let a=e?.[t]??e?.default??e;return a!==e?Gf(a,e):a}var vA={type:"spring",stiffness:500,damping:25,restSpeed:10},bA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),IA={type:"keyframes",duration:.8},wA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WS=(e,{keyframes:t})=>t.length>2?IA:Xt.has(e)?e.startsWith("scale")?bA(t[1]):vA:wA;var TA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function JS(e){for(let t in e)if(!TA.has(t))return!0;return!1}var Br=(e,t,a,o={},r,l)=>s=>{let i=ls(o,e)||{},n=i.delay||o.delay||0,{elapsed:u=0}=o;u=u-Ie(n);let f={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...i,delay:-u,onUpdate:c=>{t.set(c),i.onUpdate&&i.onUpdate(c)},onComplete:()=>{s(),i.onComplete&&i.onComplete()},name:e,motionValue:t,element:l?void 0:r};JS(i)||Object.assign(f,WS(e,f)),f.duration&&(f.duration=Ie(f.duration)),f.repeatDelay&&(f.repeatDelay=Ie(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(ji(f),f.delay===0&&(d=!0)),(nt.instantAnimations||nt.skipAnimations||r?.shouldSkipAnimations||i.skipAnimations)&&(d=!0,ji(f),f.delay=0),f.allowFlatten=!i.type&&!i.ease,d&&!l&&t.get()!==void 0){let c=Go(f.keyframes,i);if(c!==void 0){V.update(()=>{f.onUpdate(c),f.onComplete()});return}}return i.isSync?new Za(f):new Ff(f)};var AA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MA(e){let t=AA.exec(e);if(!t)return[,];let[,a,o,r]=t;return[`--${a??o}`,r]}var DA=4;function bh(e,t,a=1){yt(a<=DA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,r]=MA(e);if(!o)return;let l=window.getComputedStyle(t).getPropertyValue(o);if(l){let s=l.trim();return Ai(s)?parseFloat(s):s}return Jl(r)?bh(r,t,a+1):r}function $S(e){let t=[{},{}];return e?.values.forEach((a,o)=>{t[0][o]=a.get(),t[1][o]=a.getVelocity()}),t}function zr(e,t,a,o){if(typeof t=="function"){let[r,l]=$S(o);t=t(a!==void 0?a:e.custom,r,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[r,l]=$S(o);t=t(a!==void 0?a:e.custom,r,l)}return t}function Ot(e,t,a){let o=e.getProps();return zr(o,t,a!==void 0?a:o.custom,e)}var _f=new Set(["width","height","top","left","right","bottom",...Ia]);var Xi=e=>Array.isArray(e);function RA(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,oa(a))}function EA(e){return Xi(e)?e[e.length-1]||0:e}function eC(e,t){let a=Ot(e,t),{transitionEnd:o={},transition:r={},...l}=a||{};l={...l,...o};for(let s in l){let i=EA(l[s]);RA(e,s,i)}}var J=e=>!!(e&&e.getVelocity);function tC(e){return!!(J(e)&&e.add)}function ss(e,t){let a=e.getValue("willChange");if(tC(a))return a.add(t);if(!a&&nt.WillChange){let o=new nt.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function is(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var aC="framerAppearId",Yi="data-"+is(aC);function jf(e){return e.props[Yi]}function OA({protectedKeys:e,needsAnimating:t},a){let o=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,o}function Xf(e,t,{delay:a=0,transitionOverride:o,type:r}={}){let{transition:l,transitionEnd:s,...i}=t,n=e.getDefaultTransition();l=l?Gf(l,n):n;let u=l?.reduceMotion,f=l?.skipAnimations;o&&(l=o);let d=[],c=r&&e.animationState&&e.animationState.getState()[r],p=l?.path;p&&p.animateVisualElement(e,i,l,a,d);for(let x in i){let L=e.getValue(x,e.latestValues[x]??null),C=i[x];if(C===void 0||c&&OA(c,x))continue;let h={delay:a,...ls(l||{},x)};f&&(h.skipAnimations=!0);let m=L.get();if(m!==void 0&&!L.isAnimating()&&!Array.isArray(C)&&C===m&&!h.velocity){V.update(()=>L.set(C));continue}let g=!1;if(window.MotionHandoffAnimation){let T=jf(e);if(T){let I=window.MotionHandoffAnimation(T,x,V);I!==null&&(h.startTime=I,g=!0)}}ss(e,x);let y=u??e.shouldReduceMotion;L.start(Br(x,L,C,y&&_f.has(x)?{type:!1}:h,e,g));let b=L.animation;b&&d.push(b)}if(s){let x=()=>V.update(()=>{s&&eC(e,s)});d.length?Promise.all(d).then(x):x()}return d}function Yf(e,t,a={}){let o=Ot(e,t,a.type==="exit"?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=o||{};a.transitionOverride&&(r=a.transitionOverride);let l=o?()=>Promise.all(Xf(e,o,a)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=r;return BA(e,t,n,u,f,d,a)}:()=>Promise.resolve(),{when:i}=r;if(i){let[n,u]=i==="beforeChildren"?[l,s]:[s,l];return n().then(()=>u())}else return Promise.all([l(),s(a.delay)])}function BA(e,t,a=0,o=0,r=0,l=1,s){let i=[];for(let n of e.variantChildren)n.notify("AnimationStart",t),i.push(Yf(n,t,{...s,delay:a+(typeof o=="function"?0:o)+Hf(e.variantChildren,n,o,r,l)}).then(()=>n.notify("AnimationComplete",t)));return Promise.all(i)}function oC(e,t,a={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let r=t.map(l=>Yf(e,l,a));o=Promise.all(r)}else if(typeof t=="string")o=Yf(e,t,a);else{let r=typeof t=="function"?Ot(e,t,a.custom):t;o=Promise.all(Xf(e,r,a))}return o.then(()=>{e.notify("AnimationComplete",t)})}var rC={test:e=>e==="auto",parse:e=>e};var Kf=e=>t=>t.test(e);var Ih=[va,A,et,jt,lh,rh,rC],wh=e=>Ih.find(Kf(e));function lC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Di(e):!0}var zA=new Set(["brightness","contrast","saturate","opacity"]);function VA(e){let[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=a.match($l)||[];if(!o)return e;let r=a.replace(o,""),l=zA.has(t)?1:0;return o!==a&&(l*=100),t+"("+l+r+")"}var kA=/\b([a-z-]*)\(.*?\)/gu,Ki={...Be,getAnimatableNone:e=>{let t=e.match(kA);return t?t.map(VA).join(" "):e}};var Zi={...Be,getAnimatableNone:e=>{let t=Be.parse(e);return Be.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var Th={...va,transform:Math.round};var sC={rotate:jt,pathRotation:jt,rotateX:jt,rotateY:jt,rotateZ:jt,scale:Fi,scaleX:Fi,scaleY:Fi,scaleZ:Fi,skew:jt,skewX:jt,skewY:jt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:Ka,originX:Tf,originY:Tf,originZ:A};var Vr={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,fontSize:A,backgroundPositionX:A,backgroundPositionY:A,...sC,zIndex:Th,fillOpacity:Ka,strokeOpacity:Ka,numOctaves:Th};var qA={...Vr,color:de,backgroundColor:de,outlineColor:de,fill:de,stroke:de,borderColor:de,borderTopColor:de,borderRightColor:de,borderBottomColor:de,borderLeftColor:de,filter:Ki,WebkitFilter:Ki,mask:Zi,WebkitMask:Zi},Zf=e=>qA[e];var PA=new Set([Ki,Zi]);function Qf(e,t){let a=Zf(e);return PA.has(a)||(a=Be),a.getAnimatableNone?a.getAnimatableNone(t):void 0}var UA=new Set(["auto","none","0"]);function iC(e,t,a){let o=0,r;for(;o{t.getValue(i).set(n)}),this.resolveNoneKeyframes()}};var Qi=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Jf(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let r=a?.[e]??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}var Wi=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function kr(e){return Mi(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:qr,cancel:NA}=vf(queueMicrotask,!1);var Yt={x:!1,y:!1};function $f(){return Yt.x||Yt.y}function Ah(e){return e==="x"||e==="y"?Yt[e]?null:(Yt[e]=!0,()=>{Yt[e]=!1}):Yt.x||Yt.y?null:(Yt.x=Yt.y=!0,()=>{Yt.x=Yt.y=!1})}function ec(e,t){let a=Jf(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[a,r,()=>o.abort()]}function FA(e){return!(e.pointerType==="touch"||$f())}function Mh(e,t,a={}){let[o,r,l]=ec(e,a);return o.forEach(s=>{let i=!1,n=!1,u,f=()=>{s.removeEventListener("pointerleave",x)},d=C=>{u&&(u(C),u=void 0),f()},c=C=>{i=!1,window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",c),n&&(n=!1,d(C))},p=()=>{i=!0,window.addEventListener("pointerup",c,r),window.addEventListener("pointercancel",c,r)},x=C=>{if(C.pointerType!=="touch"){if(i){n=!0;return}d(C)}},L=C=>{if(!FA(C))return;n=!1;let h=t(s,C);typeof h=="function"&&(u=h,s.addEventListener("pointerleave",x,r))};s.addEventListener("pointerenter",L,r),s.addEventListener("pointerdown",p,r)}),l}var Dh=(e,t)=>t?e===t?!0:Dh(e,t.parentElement):!1;var Pr=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var HA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Rh(e){return HA.has(e.tagName)||e.isContentEditable===!0}var GA=new Set(["INPUT","SELECT","TEXTAREA"]);function Eh(e){return GA.has(e.tagName)||e.isContentEditable===!0}var ns=new WeakSet;function nC(e){return t=>{t.key==="Enter"&&e(t)}}function Oh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var uC=(e,t)=>{let a=e.currentTarget;if(!a)return;let o=nC(()=>{if(ns.has(a))return;Oh(a,"down");let r=nC(()=>{Oh(a,"up")}),l=()=>Oh(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",l,t)});a.addEventListener("keydown",o,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),t)};function fC(e){return Pr(e)&&!$f()}var cC=new WeakSet;function Bh(e,t,a={}){let[o,r,l]=ec(e,a),s=i=>{let n=i.currentTarget;if(!fC(i)||cC.has(i))return;ns.add(n),a.stopPropagation&&cC.add(i);let u=t(n,i),f={...r,capture:!0},d=(x,L)=>{window.removeEventListener("pointerup",c,f),window.removeEventListener("pointercancel",p,f),ns.has(n)&&ns.delete(n),fC(x)&&typeof u=="function"&&u(x,{success:L})},c=x=>{d(x,n===window||n===document||a.useGlobalTarget||Dh(n,x.target))},p=x=>{d(x,!1)};window.addEventListener("pointerup",c,f),window.addEventListener("pointercancel",p,f)};return o.forEach(i=>{(a.useGlobalTarget?window:i).addEventListener("pointerdown",s,r),kr(i)&&(i.addEventListener("focus",u=>uC(u,r)),!Rh(i)&&!i.hasAttribute("tabindex")&&(i.tabIndex=0))}),l}function us(e){return Mi(e)&&"ownerSVGElement"in e}var tc=new WeakMap,ac,dC=(e,t,a)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:us(o)&&"getBBox"in o?o.getBBox()[t]:o[a],_A=dC("inline","width","offsetWidth"),jA=dC("block","height","offsetHeight");function XA({target:e,borderBoxSize:t}){tc.get(e)?.forEach(a=>{a(e,{get width(){return _A(e,t)},get height(){return jA(e,t)}})})}function YA(e){e.forEach(XA)}function KA(){typeof ResizeObserver>"u"||(ac=new ResizeObserver(YA))}function mC(e,t){ac||KA();let a=Jf(e);return a.forEach(o=>{let r=tc.get(o);r||(r=new Set,tc.set(o,r)),r.add(t),ac?.observe(o)}),()=>{a.forEach(o=>{let r=tc.get(o);r?.delete(t),r?.size||ac?.unobserve(o)})}}var oc=new Set,fs;function ZA(){fs=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oc.forEach(t=>t(e))},window.addEventListener("resize",fs)}function pC(e){return oc.add(e),fs||ZA(),()=>{oc.delete(e),!oc.size&&typeof fs=="function"&&(window.removeEventListener("resize",fs),fs=void 0)}}function rc(e,t){return typeof e=="function"?pC(e):mC(e,t)}var Ur={value:null,addProjectionMetrics:null};function hC(e){return us(e)&&e.tagName==="svg"}var QA=[...Ih,de,Be],gC=e=>QA.find(Kf(e));var zh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xo=()=>({x:zh(),y:zh()}),Vh=()=>({min:0,max:0}),me=()=>({x:Vh(),y:Vh()});var xC=new WeakMap;function Wa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wa(e){return typeof e=="string"||Array.isArray(e)}var lc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ji=["initial",...lc];function Yo(e){return Wa(e.animate)||Ji.some(t=>wa(e[t]))}function $i(e){return!!(Yo(e)||e.variants)}function yC(e,t,a){for(let o in t){let r=t[o],l=a[o];if(J(r))e.addValue(o,r);else if(J(l))e.addValue(o,oa(r,{owner:e}));else if(l!==r)if(e.hasValue(o)){let s=e.getValue(o);s.liveStyle===!0?s.jump(r):s.hasAnimated||s.set(r)}else{let s=e.getStaticValue(o);e.addValue(o,oa(s!==void 0?s:r,{owner:e}))}}for(let o in a)t[o]===void 0&&e.removeValue(o);return t}var Ko={current:null},Nr={current:!1};var WA=typeof window<"u";function en(){if(Nr.current=!0,!!WA)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ko.current=e.matches;e.addEventListener("change",t),t()}else Ko.current=!1}var LC=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sc={};function an(e){sc=e}function kh(){return sc}var tn=class{scrapeMotionValuesFromProps(t,a,o){return{}}constructor({parent:t,props:a,presenceContext:o,reducedMotionConfig:r,skipAnimations:l,blockInitialAnimation:s,visualState:i},n={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=jo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=ge.now();this.renderScheduledAtthis.bindToMotionValue(o,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Nr.current||en(),this.shouldReduceMotion=Ko.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Lt(this.notifyUpdate),Lt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&Nf.has(t)&&this.current instanceof HTMLElement){let{factory:s,keyframes:i,times:n,ease:u,duration:f}=a.accelerate,d=new rs({element:this.current,name:t,keyframes:i,times:n,ease:u,duration:Ie(f)}),c=s(d);this.valueSubscriptions.set(t,()=>{c(),d.cancel()});return}let o=Xt.has(t);o&&this.onBindTransform&&this.onBindTransform();let r=a.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&V.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),l&&l()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in sc){let a=sc[t];if(!a)continue;let{isEnabled:o,Feature:r}=a;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){let l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;oa.variantChildren.delete(t)}addValue(t,a){let o=this.values.get(t);a!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);let a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&a!==void 0&&(o=oa(a===null?void 0:a,{owner:this}),this.addValue(t,o)),o}readValue(t,a){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ai(o)||Di(o))?o=parseFloat(o):!gC(o)&&Be.test(a)&&(o=Qf(t,a)),this.setBaseTarget(t,J(o)?o.get():o)),J(o)?o.get():o}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){let{initial:a}=this.props,o;if(typeof a=="string"||typeof a=="object"){let l=zr(this.props,a,this.presenceContext?.custom);l&&(o=l[t])}if(a&&o!==void 0)return o;let r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!J(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Ya),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){qr.render(this.render)}};var cs=class extends tn{constructor(){super(...arguments),this.KeyframeResolver=Wf}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){let o=t.style;return o?o[a]:void 0}removeValueFromRenderState(t,{vars:a,style:o}){delete a[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;J(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}};var ze=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function on({top:e,left:t,right:a,bottom:o}){return{x:{min:t,max:a},y:{min:e,max:o}}}function qh({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ph(e,t){if(!t)return e;let a=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function Uh(e){return e===void 0||e===1}function ic({scale:e,scaleX:t,scaleY:a}){return!Uh(e)||!Uh(t)||!Uh(a)}function Ja(e){return ic(e)||Nh(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Nh(e){return SC(e.x)||SC(e.y)}function SC(e){return e&&e!=="0%"}function rn(e,t,a){let o=e-a,r=t*o;return a+r}function CC(e,t,a,o,r){return r!==void 0&&(e=rn(e,r,o)),rn(e,a,o)+t}function Fh(e,t=0,a=1,o,r){e.min=CC(e.min,t,a,o,r),e.max=CC(e.max,t,a,o,r)}function Hh(e,{x:t,y:a}){Fh(e.x,t.translate,t.scale,t.originPoint),Fh(e.y,a.translate,a.scale,a.originPoint)}var vC=.999999999999,bC=1.0000000000001;function TC(e,t,a,o=!1){let r=a.length;if(!r)return;t.x=t.y=1;let l,s;for(let i=0;ivC&&(t.x=1),t.yvC&&(t.y=1)}function Kt(e,t){e.min+=t,e.max+=t}function IC(e,t,a,o,r=.5){let l=q(e.min,e.max,r);Fh(e,t,a,l,o)}function wC(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ln(e,t,a){let o=a??e;IC(e.x,wC(t.x,o.x),t.scaleX,t.scale,t.originX),IC(e.y,wC(t.y,o.y),t.scaleY,t.scale,t.originY)}function nc(e,t){return on(Ph(e.getBoundingClientRect(),t))}function Gh(e,t,a){let o=nc(e,a),{scroll:r}=t;return r&&(Kt(o.x,r.offset.x),Kt(o.y,r.offset.y)),o}var JA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$A=Ia.length;function AC(e,t,a){let o="",r=!0;for(let s=0;s<$A;s++){let i=Ia[s],n=e[i];if(n===void 0)continue;let u=!0;if(typeof n=="number")u=n===(i.startsWith("scale")?1:0);else{let f=parseFloat(n);u=i.startsWith("scale")?f===1:f===0}if(!u||a){let f=Wi(n,Vr[i]);if(!u){r=!1;let d=JA[i]||i;o+=`${d}(${f}) `}a&&(t[i]=f)}}let l=e.pathRotation;return l&&(r=!1,o+=`rotate(${Wi(l,Vr.pathRotation)}) `),o=o.trim(),a?o=a(t,r?"":o):r&&(o="none"),o}function Fr(e,t,a){let{style:o,vars:r,transformOrigin:l}=e,s=!1,i=!1;for(let n in t){let u=t[n];if(Xt.has(n)){s=!0;continue}else if(If(n)){r[n]=u;continue}else{let f=Wi(u,Vr[n]);n.startsWith("origin")?(i=!0,l[n]=f):o[n]=f}}if(t.transform||(s||a?o.transform=AC(t,e.transform,a):o.transform&&(o.transform="none")),i){let{originX:n="50%",originY:u="50%",originZ:f=0}=l;o.transformOrigin=`${n} ${u} ${f}`}}function uc(e,{style:t,vars:a},o,r){let l=e.style,s;for(s in t)l[s]=t[s];r?.applyProjectionStyles(l,o);for(s in a)l.setProperty(s,a[s])}function MC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ds={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;let a=MC(e,t.target.x),o=MC(e,t.target.y);return`${a}% ${o}%`}};var DC={correct:(e,{treeScale:t,projectionDelta:a})=>{let o=e,r=Be.parse(e);if(r.length>5)return o;let l=Be.createTransformer(e),s=typeof r[0]!="number"?1:0,i=a.x.scale*t.x,n=a.y.scale*t.y;r[0+s]/=i,r[1+s]/=n;let u=q(i,n,.5);return typeof r[2+s]=="number"&&(r[2+s]/=u),typeof r[3+s]=="number"&&(r[3+s]/=u),l(r)}};var sn={borderRadius:{...ds,applyTo:[...Qi]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:DC};function nn(e,{layout:t,layoutId:a}){return Xt.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!sn[e]||e==="opacity")}function Hr(e,t,a){let o=e.style,r=t?.style,l={};if(!o)return l;for(let s in o)(J(o[s])||r&&J(r[s])||nn(s,e)||a?.getValue(s)?.liveStyle!==void 0)&&(l[s]=o[s]);return l}function eM(e){return window.getComputedStyle(e)}var un=class extends cs{constructor(){super(...arguments),this.type="html",this.renderInstance=uc}mount(t){yt(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,a){if(Xt.has(a))return this.projection?.isProjecting?Bf(a):zS(t,a);{let o=eM(t),r=(If(a)?o.getPropertyValue(a):o[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return nc(t,a)}build(t,a,o){Fr(t,a,o.transformTemplate)}scrapeMotionValuesFromProps(t,a,o){return Hr(t,a,o)}};var tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},aM={offset:"strokeDashoffset",array:"strokeDasharray"};function RC(e,t,a=1,o=0,r=!0){e.pathLength=1;let l=r?tM:aM;e[l.offset]=`${-o}`,e[l.array]=`${t} ${a}`}var oM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function fn(e,{attrX:t,attrY:a,attrScale:o,pathLength:r,pathSpacing:l=1,pathOffset:s=0,...i},n,u,f){if(Fr(e,i,u),n){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:c}=e;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=f?.transformBox??"fill-box",delete d.transformBox);for(let p of oM)d[p]!==void 0&&(c[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),a!==void 0&&(d.y=a),o!==void 0&&(d.scale=o),r!==void 0&&RC(d,r,l,s,!1)}var fc=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"]);var cn=e=>typeof e=="string"&&e.toLowerCase()==="svg";function EC(e,t,a,o){uc(e,t,void 0,o);for(let r in t.attrs)e.setAttribute(fc.has(r)?r:is(r),t.attrs[r])}function dn(e,t,a){let o=Hr(e,t,a);for(let r in e)if(J(e[r])||J(t[r])){let l=Ia.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[l]=e[r]}return o}var mn=class extends cs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=me}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Xt.has(a)){let o=Zf(a);return o&&o.default||0}return a=fc.has(a)?a:is(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,o){return dn(t,a,o)}build(t,a,o){fn(t,a,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,a,o,r){EC(t,a,o,r)}mount(t){this.isSVGTag=cn(t.tagName),super.mount(t)}};var rM=Ji.length;function _h(e){if(!e)return;if(!e.isControllingVariants){let a=e.parent?_h(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}let t={};for(let a=0;aPromise.all(t.map(({animation:a,options:o})=>oC(e,a,o)))}function Xh(e){let t=iM(e),a=OC(),o=!0,r=!1,l=u=>(f,d)=>{let c=Ot(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(c){let{transition:p,transitionEnd:x,...L}=c;f={...f,...L,...x}}return f};function s(u){t=u(e)}function i(u){let{props:f}=e,d=_h(e.parent)||{},c=[],p=new Set,x={},L=1/0;for(let h=0;hL&&b,w=!1,G=Array.isArray(y)?y:[y],ue=G.reduce(l(m),{});T===!1&&(ue={});let{prevResolvedValues:zt={}}=g,ft={...zt,...ue},Ze=ve=>{M=!0,p.has(ve)&&(w=!0,p.delete(ve)),g.needsAnimating[ve]=!0;let Qe=e.getValue(ve);Qe&&(Qe.liveStyle=!1)};for(let ve in ft){let Qe=ue[ve],E=zt[ve];if(x.hasOwnProperty(ve))continue;let Ma=!1;Xi(Qe)&&Xi(E)?Ma=!jh(Qe,E)||S:Ma=Qe!==E,Ma?Qe!=null?Ze(ve):p.add(ve):Qe!==void 0&&p.has(ve)?Ze(ve):g.protectedKeys[ve]=!0}g.prevProp=y,g.prevResolvedValues=ue,g.isActive&&(x={...x,...ue}),(o||r)&&e.blockInitialAnimation&&(M=!1);let ye=I&&S;M&&(!ye||w)&&c.push(...G.map(ve=>{let Qe={type:m};if(typeof ve=="string"&&(o||r)&&!ye&&e.manuallyAnimateOnMount&&e.parent){let{parent:E}=e,Ma=Ot(E,ve);if(E.enteringChildren&&Ma){let{delayChildren:vn}=Ma.transition||{};Qe.delay=Hf(E.enteringChildren,e,vn)}}return{animation:ve,options:Qe}}))}if(p.size){let h={};if(typeof f.initial!="boolean"){let m=Ot(e,Array.isArray(f.initial)?f.initial[0]:f.initial);m&&m.transition&&(h.transition=m.transition)}p.forEach(m=>{let g=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),h[m]=g??null}),c.push({animation:h})}let C=!!c.length;return o&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(C=!1),o=!1,r=!1,C?t(c):Promise.resolve()}function n(u,f){if(a[u].isActive===f)return Promise.resolve();e.variantChildren?.forEach(c=>c.animationState?.setActive(u,f)),a[u].isActive=f;let d=i(u);for(let c in a)a[c].protectedKeys={};return d}return{animateChanges:i,setActive:n,setAnimateFunction:s,getState:()=>a,reset:()=>{a=OC(),r=!0}}}function BC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jh(t,e):!1}function Gr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OC(){return{animate:Gr(!0),whileInView:Gr(),whileHover:Gr(),whileTap:Gr(),whileDrag:Gr(),whileFocus:Gr(),exit:Gr()}}function cc(e,t){e.min=t.min,e.max=t.max}function Zt(e,t){cc(e.x,t.x),cc(e.y,t.y)}function Yh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var zC=1e-4,nM=1-zC,uM=1+zC,VC=.01,fM=0-VC,cM=0+VC;function Me(e){return e.max-e.min}function Wh(e,t,a){return Math.abs(e-t)<=a}function Kh(e,t,a,o=.5){e.origin=o,e.originPoint=q(t.min,t.max,e.origin),e.scale=Me(a)/Me(t),e.translate=q(a.min,a.max,e.origin)-e.originPoint,(e.scale>=nM&&e.scale<=uM||isNaN(e.scale))&&(e.scale=1),(e.translate>=fM&&e.translate<=cM||isNaN(e.translate))&&(e.translate=0)}function _r(e,t,a,o){Kh(e.x,t.x,a.x,o?o.originX:void 0),Kh(e.y,t.y,a.y,o?o.originY:void 0)}function Zh(e,t,a,o=0){let r=o?q(a.min,a.max,o):a.min;e.min=r+t.min,e.max=e.min+Me(t)}function Jh(e,t,a,o){Zh(e.x,t.x,a.x,o?.x),Zh(e.y,t.y,a.y,o?.y)}function Qh(e,t,a,o=0){let r=o?q(a.min,a.max,o):a.min;e.min=t.min-r,e.max=e.min+Me(t)}function ms(e,t,a,o){Qh(e.x,t.x,a.x,o?.x),Qh(e.y,t.y,a.y,o?.y)}function kC(e,t,a,o,r){return e-=t,e=rn(e,1/a,o),r!==void 0&&(e=rn(e,1/r,o)),e}function dM(e,t=0,a=1,o=.5,r,l=e,s=e){if(et.test(t)&&(t=parseFloat(t),t=q(s.min,s.max,t/100)-s.min),typeof t!="number")return;let i=q(l.min,l.max,o);e===l&&(i-=t),e.min=kC(e.min,t,a,i,r),e.max=kC(e.max,t,a,i,r)}function qC(e,t,[a,o,r],l,s){dM(e,t[a],t[o],t[r],t.scale,l,s)}var mM=["x","scaleX","originX"],pM=["y","scaleY","originY"];function $h(e,t,a,o){qC(e.x,t,mM,a?a.x:void 0,o?o.x:void 0),qC(e.y,t,pM,a?a.y:void 0,o?o.y:void 0)}function PC(e){return e.translate===0&&e.scale===1}function eg(e){return PC(e.x)&&PC(e.y)}function UC(e,t){return e.min===t.min&&e.max===t.max}function FC(e,t){return UC(e.x,t.x)&&UC(e.y,t.y)}function NC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tg(e,t){return NC(e.x,t.x)&&NC(e.y,t.y)}function ag(e){return Me(e.x)/Me(e.y)}function og(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Bt(e){return[e("x"),e("y")]}function HC(e,t,a){let o="",r=e.x.translate/t.x,l=e.y.translate/t.y,s=a?.z||0;if((r||l||s)&&(o=`translate3d(${r}px, ${l}px, ${s}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),a){let{transformPerspective:u,rotate:f,pathRotation:d,rotateX:c,rotateY:p,skewX:x,skewY:L}=a;u&&(o=`perspective(${u}px) ${o}`),f&&(o+=`rotate(${f}deg) `),d&&(o+=`rotate(${d}deg) `),c&&(o+=`rotateX(${c}deg) `),p&&(o+=`rotateY(${p}deg) `),x&&(o+=`skewX(${x}deg) `),L&&(o+=`skewY(${L}deg) `)}let i=e.x.scale*t.x,n=e.y.scale*t.y;return(i!==1||n!==1)&&(o+=`scale(${i}, ${n})`),o||"none"}var hM=Qi.length,GC=e=>typeof e=="string"?parseFloat(e):e,_C=e=>typeof e=="number"||A.test(e);function XC(e,t,a,o,r,l){r?(e.opacity=q(0,a.opacity??1,gM(o)),e.opacityExit=q(t.opacity??1,0,xM(o))):l&&(e.opacity=q(t.opacity??1,a.opacity??1,o));for(let s=0;sot?1:a(Ca(e,t,o))}function KC(e,t,a){let o=J(e)?e:oa(e);return o.start(Br("",o,t,a)),o.animation}function Ta(e,t,a,o={passive:!0}){return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)}var ZC=(e,t)=>e.depth-t.depth;var dc=class{constructor(){this.children=[],this.isDirty=!1}add(t){Mr(this.children,t),this.isDirty=!0}remove(t){Po(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ZC),this.isDirty=!1,this.children.forEach(t)}};function QC(e,t){let a=ge.now(),o=({timestamp:r})=>{let l=r-a;l>=t&&(Lt(o),e(l-t))};return V.setup(o,!0),()=>Lt(o)}function jr(e){return J(e)?e.get():e}var mc=class{constructor(){this.members=[]}add(t){Mr(this.members,t);for(let a=this.members.length-1;a>=0;a--){let o=this.members[a];if(o===t||o===this.lead||o===this.prevLead)continue;let r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(Po(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(Po(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){for(let a=this.members.indexOf(t)-1;a>=0;a--){let o=this.members[a];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,a){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:r}=o.options,{layoutDependency:l}=t.options;(r===void 0||r!==l)&&(t.resumeFrom=o,a&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var Xr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Yr={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rg=["","X","Y","Z"],yM=1e3,LM=0;function lg(e,t,a,o){let{latestValues:r}=t;r[e]&&(a[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function lv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let a=jf(t);if(window.MotionHasOptimisedAnimation(a,"transform")){let{layout:r,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",V,!(r||l))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&lv(o)}function pc({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(s={},i=t?.()){this.id=LM++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ur.value&&(Yr.nodes=Yr.calculatedTargetDeltas=Yr.calculatedProjections=0),this.nodes.forEach(vM),this.nodes.forEach(MM),this.nodes.forEach(DM),this.nodes.forEach(bM),Ur.addProjectionMetrics&&Ur.addProjectionMetrics(Yr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let n=0;nthis.root.updateBlockedByResize=!1;V.read(()=>{d=window.innerWidth}),e(s,()=>{let p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,f&&f(),f=QC(c,250),Xr.hasAnimatedSinceResize&&(Xr.hasAnimatedSinceResize=!1,this.nodes.forEach($C)))})}i&&this.root.registerSharedNode(i,this),this.options.animate!==!1&&u&&(i||n)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeLayoutChanged:c,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let x=this.options.transition||u.getDefaultTransition()||zM,{onLayoutAnimationStart:L,onLayoutAnimationComplete:C}=u.getProps(),h=!this.targetLayout||!tg(this.targetLayout,p),m=!d&&c;if(this.options.layoutRoot||this.resumeFrom||m||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let g={...ls(x,"layout"),onPlay:L,onComplete:C};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(f,m,g.path)}else d||$C(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Lt(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(RM),this.animationId++)}getTransformTemplate(){let{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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n{let I=T/1e3,S=b?.(I);S?(c.x.translate=S.x,c.x.scale=q(s.x.scale,1,I),c.x.origin=s.x.origin,c.x.originPoint=s.x.originPoint,c.y.translate=S.y,c.y.scale=q(s.y.scale,1,I),c.y.origin=s.y.origin,c.y.originPoint=s.y.originPoint):(ev(c.x,s.x,I),ev(c.y,s.y,I)),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ms(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),OM(this.relativeTarget,this.relativeTargetOrigin,p,I),y&&FC(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=me()),Zt(y,this.relativeTarget)),C&&(this.animationValues=d,XC(d,f,this.latestValues,I,g,m)),S&&S.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=S.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Lt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Xr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=oa(0)),this.motionValue.jump(0,!1),this.currentAnimation=KC(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:i=>{this.mixTargetDelta(i),s.onUpdate&&s.onUpdate(i)},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);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(yM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:i,target:n,layout:u,latestValues:f}=s;if(!(!i||!n||!u)){if(this!==s&&this.layout&&u&&sv(this.options.animationType,this.layout.layoutBox,u.layoutBox)){n=this.target||me();let d=Me(this.layout.layoutBox.x);n.x.min=s.target.x.min,n.x.max=n.x.min+d;let c=Me(this.layout.layoutBox.y);n.y.min=s.target.y.min,n.y.max=n.y.min+c}Zt(i,n),ln(i,f),_r(this.projectionDeltaWithTransform,this.layoutCorrected,i,f)}}registerSharedNode(s,i){this.sharedNodes.has(s)||this.sharedNodes.set(s,new mc),this.sharedNodes.get(s).add(i);let u=i.options.initialPromotionConfig;i.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(i):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){let{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:i,preserveFollowOpacity:n}={}){let u=this.getStack();u&&u.promote(this,n),s&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let i=!1,{latestValues:n}=s;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(i=!0),!i)return;let u={};n.z&&lg("z",s,u,this.animationValues);for(let f=0;fs.currentAnimation?.stop()),this.root.nodes.forEach(WC),this.root.sharedNodes.clear()}}}function SM(e){e.updateLayout()}function CM(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:a,measuredBox:o}=e.layout,{animationType:r}=e.options,l=t.source!==e.layout.source;if(r==="size")Bt(f=>{let d=l?t.measuredBox[f]:t.layoutBox[f],c=Me(d);d.min=a[f].min,d.max=d.min+c});else if(r==="x"||r==="y"){let f=r==="x"?"y":"x";cc(l?t.measuredBox[f]:t.layoutBox[f],a[f])}else sv(r,t.layoutBox,a)&&Bt(f=>{let d=l?t.measuredBox[f]:t.layoutBox[f],c=Me(a[f]);d.max=d.min+c,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+c)});let s=Xo();_r(s,a,t.layoutBox);let i=Xo();l?_r(i,e.applyTransform(o,!0),t.measuredBox):_r(i,a,t.layoutBox);let n=!eg(s),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:d,layout:c}=f;if(d&&c){let p=e.options.layoutAnchor||void 0,x=me();ms(x,t.layoutBox,d.layoutBox,p);let L=me();ms(L,a,c.layoutBox,p),tg(x,L)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=L,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:i,layoutDelta:s,hasLayoutChanged:n,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function vM(e){Ur.value&&Yr.nodes++,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 bM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function IM(e){e.clearSnapshot()}function WC(e){e.clearMeasurements()}function wM(e){e.isLayoutDirty=!0,e.updateLayout()}function JC(e){e.isLayoutDirty=!1}function TM(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function AM(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $C(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function MM(e){e.resolveTargetDelta()}function DM(e){e.calcProjection()}function RM(e){e.resetSkewAndRotation()}function EM(e){e.removeLeadSnapshot()}function ev(e,t,a){e.translate=q(t.translate,0,a),e.scale=q(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function tv(e,t,a,o){e.min=q(t.min,a.min,o),e.max=q(t.max,a.max,o)}function OM(e,t,a,o){tv(e.x,t.x,a.x,o),tv(e.y,t.y,a.y,o)}function BM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var zM={duration:.45,ease:[.4,0,.1,1]},av=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ov=av("applewebkit/")&&!av("chrome/")?Math.round:he;function rv(e){e.min=ov(e.min),e.max=ov(e.max)}function VM(e){rv(e.x),rv(e.y)}function sv(e,t,a){return e==="position"||e==="preserve-aspect"&&!Wh(ag(t),ag(a),.2)}function kM(e){return e!==e.root&&e.scroll?.wasRoot}var iv=pc({attachResizeListener:(e,t)=>Ta(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var qM=e=>!e.isLayoutDirty&&e.willUpdate(!1);function hc(){let e=new Set,t=new WeakMap,a=()=>e.forEach(qM);return{add:o=>{e.add(o),t.set(o,o.addEventListener("willUpdate",a))},remove:o=>{e.delete(o);let r=t.get(o);r&&(r(),t.delete(o)),a()},dirty:a}}var gc={current:void 0},pn=pc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gc.current){let e=new iv({});e.mount(window),e.setOptions({layoutScroll:!0}),gc.current=e}return gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var xc=O(N(),1),$a=O(N(),1);var nv=O(N(),1),ps=(0,nv.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var fv=O(N(),1);function uv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PM(...e){return t=>{let a=!1,o=e.map(r=>{let l=uv(r,t);return!a&&typeof l=="function"&&(a=!0),l});if(a)return()=>{for(let r=0;r{let{width:c,height:p,top:x,left:L,right:C,bottom:h,direction:m}=n.current;if(t||l===!1||!i.current||!c||!p)return;let g=m==="rtl",y=a==="left"?g?`right: ${C}`:`left: ${L}`:g?`left: ${L}`:`right: ${C}`,b=o==="bottom"?`bottom: ${h}`:`top: ${x}`;i.current.dataset.motionPopId=s;let T=document.createElement("style");u&&(T.nonce=u);let I=r??document.head;return I.appendChild(T),T.sheet&&T.sheet.insertRule(` [data-motion-pop-id="${s}"] { position: absolute !important; width: ${c}px !important; height: ${p}px !important; ${y}px !important; ${b}px !important; } `),()=>{i.current?.removeAttribute("data-motion-pop-id"),I.contains(T)&&I.removeChild(T)}},[t]),(0,dv.jsx)(sg,{isPresent:t,childRef:i,sizeRef:n,pop:l,children:l===!1?e:xc.cloneElement(e,{ref:d})})}var hv=({children:e,initial:t,isPresent:a,onExitComplete:o,custom:r,presenceAffectsLayout:l,mode:s,anchorX:i,anchorY:n,root:u})=>{let f=Ql(UM),d=(0,Zo.useId)(),c=(0,Zo.useRef)(a),p=(0,Zo.useRef)(o);ko(()=>{c.current=a,p.current=o});let x=!0,L=(0,Zo.useMemo)(()=>(x=!1,{id:d,initial:t,isPresent:a,custom:r,onExitComplete:C=>{f.set(C,!0);for(let h of f.values())if(!h)return;o&&o()},register:C=>(f.set(C,!1),()=>{f.delete(C),!c.current&&!f.size&&p.current?.()})}),[a,f,o]);return l&&x&&(L={...L}),(0,Zo.useMemo)(()=>{f.forEach((C,h)=>f.set(h,!1))},[a]),pv.useEffect(()=>{!a&&!f.size&&o&&o()},[a]),e=(0,ig.jsx)(mv,{pop:s==="popLayout",isPresent:a,anchorX:i,anchorY:n,root:u,children:e}),(0,ig.jsx)(qo.Provider,{value:L,children:e})};function UM(){return new Map}var Qo=O(N(),1);function yc(e=!0){let t=(0,Qo.useContext)(qo);if(t===null)return[!0,null];let{isPresent:a,onExitComplete:o,register:r}=t,l=(0,Qo.useId)();(0,Qo.useEffect)(()=>{if(e)return r(l)},[e]);let s=(0,Qo.useCallback)(()=>e&&o&&o(l),[l,o,e]);return!a&&o?[!1,s]:[!0]}var Lc=O(N(),1),hn=e=>e.key||"";function ng(e){let t=[];return Lc.Children.forEach(e,a=>{(0,Lc.isValidElement)(a)&&t.push(a)}),t}var ug=({children:e,custom:t,initial:a=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:l="sync",propagate:s=!1,anchorX:i="left",anchorY:n="top",root:u})=>{let[f,d]=yc(s),c=(0,ra.useMemo)(()=>ng(e),[e]),p=s&&!f?[]:c.map(hn),x=(0,ra.useRef)(!0),L=(0,ra.useRef)(c),C=Ql(()=>new Map),h=(0,ra.useRef)(new Set),[m,g]=(0,ra.useState)(c),[y,b]=(0,ra.useState)(c);ko(()=>{x.current=!1,L.current=c;for(let S=0;S{let M=hn(S),w=s&&!f?!1:c===y||p.includes(M),G=()=>{if(h.current.has(M))return;if(C.has(M))h.current.add(M),C.set(M,!0);else return;let ue=!0;C.forEach(zt=>{zt||(ue=!1)}),ue&&(I?.(),b(L.current),s&&d?.(),o&&o())};return(0,gn.jsx)(hv,{isPresent:w,initial:!x.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:l,root:u,onExitComplete:w?void 0:G,anchorX:i,anchorY:n,children:S},M)})})};var Cv=O(Et(),1),Kr=O(N(),1);var gv=O(N(),1),xv=(0,gv.createContext)(null);var xn=O(N(),1);var yv=O(N(),1);function Lv(){let e=(0,yv.useRef)(!1);return ko(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Sv(){let e=Lv(),[t,a]=(0,xn.useState)(0),o=(0,xn.useCallback)(()=>{e.current&&a(t+1)},[t]);return[(0,xn.useCallback)(()=>V.postRender(o),[o]),t]}var vv=e=>e===!0,NM=e=>vv(e===!0)||e==="id",fg=({children:e,id:t,inherit:a=!0})=>{let o=(0,Kr.useContext)(ja),r=(0,Kr.useContext)(xv),[l,s]=Sv(),i=(0,Kr.useRef)(null),n=o.id||r;i.current===null&&(NM(a)&&n&&(t=t?n+"-"+t:n),i.current={id:t,group:vv(a)?o.group||hc():hc()});let u=(0,Kr.useMemo)(()=>({...i.current,forceRender:l}),[s]);return(0,Cv.jsx)(ja.Provider,{value:u,children:e})};var bv=O(N(),1),Sc=(0,bv.createContext)({strict:!1});var Iv={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"]},wv=!1;function FM(){if(wv)return;let e={};for(let t in Iv)e[t]={isEnabled:a=>Iv[t].some(o=>!!a[o])};an(e),wv=!0}function Cc(){return FM(),kh()}function Tv(e){let t=Cc();for(let a in e)t[a]={...t[a],...e[a]};an(t)}var HM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function yn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HM.has(e)}var Av=e=>!yn(e);function GM(e){typeof e=="function"&&(Av=t=>t.startsWith("on")?!yn(t):e(t))}try{GM(Eg("@emotion/is-prop-valid").default)}catch{}function Mv(e,t,a){let o={};for(let r in e)r==="values"&&typeof e.values=="object"||J(e[r])||(Av(r)||a===!0&&yn(r)||!t&&!yn(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}var Tc=O(Et(),1);var ys=O(N(),1);var Dv=O(N(),1),Wo=(0,Dv.createContext)({});var vc=O(N(),1);function Rv(e,t){if(Yo(e)){let{initial:a,animate:o}=e;return{initial:a===!1||wa(a)?a:void 0,animate:wa(o)?o:void 0}}return e.inherit!==!1?t:{}}function Ov(e){let{initial:t,animate:a}=Rv(e,(0,vc.useContext)(Wo));return(0,vc.useMemo)(()=>({initial:t,animate:a}),[Ev(t),Ev(a)])}function Ev(e){return Array.isArray(e)?e.join(" "):e}var xs=O(N(),1);var Bv=O(N(),1);var hs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cg(e,t,a){for(let o in t)!J(t[o])&&!nn(o,a)&&(e[o]=t[o])}function _M({transformTemplate:e},t){return(0,Bv.useMemo)(()=>{let a=hs();return Fr(a,t,e),Object.assign({},a.vars,a.style)},[t])}function jM(e,t){let a=e.style||{},o={};return cg(o,a,e),Object.assign(o,_M(e,t)),o}function zv(e,t){let a={},o=jM(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=o,a}var Vv=O(N(),1);var bc=()=>({...hs(),attrs:{}});function kv(e,t,a,o){let r=(0,Vv.useMemo)(()=>{let l=bc();return fn(l,t,cn(o),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){let l={};cg(l,e.style,e),r.style={...l,...r.style}}return r}var qv=["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 gs(e){return typeof e!="string"||e.includes("-")?!1:!!(qv.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pv(e,t,a,{latestValues:o},r,l=!1,s){let n=(s??gs(e)?kv:zv)(t,o,r,e),u=Mv(t,typeof e=="string",l),f=e!==xs.Fragment?{...u,...n,ref:a}:{},{children:d}=t,c=(0,xs.useMemo)(()=>J(d)?d.get():d,[d]);return(0,xs.createElement)(e,{...f,children:c})}var dg=O(N(),1);function XM({scrapeMotionValuesFromProps:e,createRenderState:t},a,o,r){return{latestValues:YM(a,o,r,e),renderState:t()}}function YM(e,t,a,o){let r={},l=o(e,{});for(let c in l)r[c]=jr(l[c]);let{initial:s,animate:i}=e,n=Yo(e),u=$i(e);t&&u&&!n&&e.inherit!==!1&&(s===void 0&&(s=t.initial),i===void 0&&(i=t.animate));let f=a?a.initial===!1:!1;f=f||s===!1;let d=f?i:s;if(d&&typeof d!="boolean"&&!Wa(d)){let c=Array.isArray(d)?d:[d];for(let p=0;p(t,a)=>{let o=(0,dg.useContext)(Wo),r=(0,dg.useContext)(qo),l=()=>XM(e,t,o,r);return a?l():Ql(l)};var Uv=Ic({scrapeMotionValuesFromProps:Hr,createRenderState:hs});var Nv=Ic({scrapeMotionValuesFromProps:dn,createRenderState:bc});var Fv=Symbol.for("motionComponentSymbol");var Zr=O(N(),1);function Hv(e,t,a){let o=(0,Zr.useRef)(a);(0,Zr.useInsertionEffect)(()=>{o.current=a});let r=(0,Zr.useRef)(null);return(0,Zr.useCallback)(l=>{l&&e.onMount?.(l),t&&(l?t.mount(l):t.unmount());let s=o.current;if(typeof s=="function")if(l){let i=s(l);typeof i=="function"&&(r.current=i)}else r.current?(r.current(),r.current=null):s(l);else s&&(s.current=l)},[t])}var ut=O(N(),1);var Gv=O(N(),1),wc=(0,Gv.createContext)({});function Jo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function _v(e,t,a,o,r,l){let{visualElement:s}=(0,ut.useContext)(Wo),i=(0,ut.useContext)(Sc),n=(0,ut.useContext)(qo),u=(0,ut.useContext)(ps),f=u.reducedMotion,d=u.skipAnimations,c=(0,ut.useRef)(null),p=(0,ut.useRef)(!1);o=o||i.renderer,!c.current&&o&&(c.current=o(e,{visualState:t,parent:s,props:a,presenceContext:n,blockInitialAnimation:n?n.initial===!1:!1,reducedMotionConfig:f,skipAnimations:d,isSVG:l}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let x=c.current,L=(0,ut.useContext)(wc);x&&!x.projection&&r&&(x.type==="html"||x.type==="svg")&&KM(c.current,a,r,L);let C=(0,ut.useRef)(!1);(0,ut.useInsertionEffect)(()=>{x&&C.current&&x.update(a,n)});let h=a[Yi],m=(0,ut.useRef)(!!h&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return ko(()=>{p.current=!0,x&&(C.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),m.current&&x.animationState&&x.animationState.animateChanges())}),(0,ut.useEffect)(()=>{x&&(!m.current&&x.animationState&&x.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),m.current=!1),x.enteringChildren=void 0)}),x}function KM(e,t,a,o){let{layoutId:r,layout:l,drag:s,dragConstraints:i,layoutScroll:n,layoutRoot:u,layoutAnchor:f,layoutCrossfade:d}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:jv(e.parent)),e.projection.setOptions({layoutId:r,layout:l,alwaysMeasureLayout:!!s||i&&Jo(i),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:n,layoutRoot:u,layoutAnchor:f})}function jv(e){if(e)return e.options.allowProjection!==!1?e.projection:jv(e.parent)}function Ac(e,{forwardMotionProps:t=!1,type:a}={},o,r){o&&Tv(o);let l=a?a==="svg":gs(e),s=l?Nv:Uv;function i(u,f){let d,c={...(0,ys.useContext)(ps),...u,layoutId:ZM(u)},{isStatic:p}=c,x=Ov(u),L=s(u,p);if(!p&&typeof window<"u"){QM(c,o);let C=WM(c);d=C.MeasureLayout,x.visualElement=_v(e,L,c,r,C.ProjectionNode,l)}return(0,Tc.jsxs)(Wo.Provider,{value:x,children:[d&&x.visualElement?(0,Tc.jsx)(d,{visualElement:x.visualElement,...c}):null,Pv(e,u,Hv(L,x.visualElement,f),L,p,t,l)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let n=(0,ys.forwardRef)(i);return n[Fv]=e,n}function ZM({layoutId:e}){let t=(0,ys.useContext)(ja).id;return t&&e!==void 0?t+"-"+e:e}function QM(e,t){let a=(0,ys.useContext)(Sc).strict}function WM(e){let t=Cc(),{drag:a,layout:o}=t;if(!a&&!o)return{};let r={...a,...o};return{MeasureLayout:a?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Xv(e,t){if(typeof Proxy>"u")return Ac;let a=new Map,o=(l,s)=>Ac(l,s,e,t),r=(l,s)=>o(l,s);return new Proxy(r,{get:(l,s)=>s==="create"?o:(a.has(s)||a.set(s,Ac(s,void 0,e,t)),a.get(s))})}var Yv=O(N(),1);var Kv=(e,t)=>t.isSVG??gs(e)?new mn(t):new un(t,{allowProjection:e!==Yv.Fragment});var Mc=class extends ze{constructor(t){super(t),t.animationState||(t.animationState=Xh(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Wa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var JM=0,Dc=class extends ze{constructor(){super(...arguments),this.id=JM++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:l,custom:s}=this.node.getProps();if(typeof l=="string"||typeof l=="object"&&l!==null&&!Array.isArray(l)){let i=Ot(this.node,l,s);if(i){let{transition:n,transitionEnd:u,...f}=i;for(let d in f)this.node.getValue(d)?.jump(f[d])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{this.isExitComplete=!0,a(this.id)})}mount(){let{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var Zv={animation:{Feature:Mc},exit:{Feature:Dc}};function eo(e){return{point:{x:e.pageX,y:e.pageY}}}var Qv=e=>t=>Pr(t)&&e(t,eo(t));function $o(e,t,a,o){return Ta(e,t,Qv(a),o)}var Rc=({current:e})=>e?e.ownerDocument.defaultView:null;var Wv=(e,t)=>Math.abs(e-t);function Jv(e,t){let a=Wv(e.x,t.x),o=Wv(e.y,t.y);return Math.sqrt(a**2+o**2)}var $v=new Set(["auto","scroll"]),Ls=class{constructor(t,a,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:l=!1,distanceThreshold:s=3,element:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=x=>{this.handleScroll(x.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ec(this.lastRawMoveEventInfo,this.transformPagePoint));let x=mg(this.lastMoveEventInfo,this.history),L=this.startEvent!==null,C=Jv(x.offset,{x:0,y:0})>=this.distanceThreshold;if(!L&&!C)return;let{point:h}=x,{timestamp:m}=Ce;this.history.push({...h,timestamp:m});let{onStart:g,onMove:y}=this.handlers;L||(g&&g(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,x)},this.handlePointerMove=(x,L)=>{this.lastMoveEvent=x,this.lastRawMoveEventInfo=L,this.lastMoveEventInfo=Ec(L,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(x,L)=>{this.end();let{onEnd:C,onSessionEnd:h,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let g=mg(x.type==="pointercancel"?this.lastMoveEventInfo:Ec(L,this.transformPagePoint),this.history);this.startEvent&&C&&C(x,g),h&&h(x,g)},!Pr(t))return;this.dragSnapToOrigin=l,this.handlers=a,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=r||window;let n=eo(t),u=Ec(n,this.transformPagePoint),{point:f}=u,{timestamp:d}=Ce;this.history=[{...f,timestamp:d}];let{onSessionStart:c}=a;c&&c(t,mg(u,this.history));let p={passive:!0,capture:!0};this.removeListeners=aa($o(this.contextWindow,"pointermove",this.handlePointerMove,p),$o(this.contextWindow,"pointerup",this.handlePointerUp,p),$o(this.contextWindow,"pointercancel",this.handlePointerUp,p)),i&&this.startScrollTracking(i)}startScrollTracking(t){let a=t.parentElement;for(;a;){let o=getComputedStyle(a);($v.has(o.overflowX)||$v.has(o.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let a=this.scrollPositions.get(t);if(!a)return;let o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:r.x-a.x,y:r.y-a.y};l.x===0&&l.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,r),V.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Lt(this.updatePoint)}};function Ec(e,t){return t?{point:t(e.point)}:e}function eb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mg({point:e},t){return{point:e,delta:eb(e,tb(t)),offset:eb(e,$M(t)),velocity:e3(t,.1)}}function $M(e){return e[0]}function tb(e){return e[e.length-1]}function e3(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,o=null,r=tb(e);for(;a>=0&&(o=e[a],!(r.timestamp-o.timestamp>Ie(t)));)a--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>Ie(t)*2&&(o=e[1]);let l=Fe(r.timestamp-o.timestamp);if(l===0)return{x:0,y:0};let s={x:(r.x-o.x)/l,y:(r.y-o.y)/l};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function sb(e,{min:t,max:a},o){return t!==void 0&&ea&&(e=o?q(a,e,o.max):Math.min(e,a)),e}function ab(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function ib(e,{top:t,left:a,bottom:o,right:r}){return{x:ab(e.x,a,r),y:ab(e.y,t,o)}}function ob(e,t){let a=t.min-e.min,o=t.max-e.max;return t.max-t.mino?a=Ca(t.min,t.max-o,e.min):o>r&&(a=Ca(e.min,e.max-r,t.min)),Oe(0,1,a)}function fb(e,t){let a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}var Oc=.35;function cb(e=Oc){return e===!1?e=0:e===!0&&(e=Oc),{x:rb(e,"left","right"),y:rb(e,"top","bottom")}}function rb(e,t,a){return{min:lb(e,t),max:lb(e,a)}}function lb(e,t){return typeof e=="number"?e:e[t]||0}var t3=new WeakMap,zc=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=me(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:o}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let l=d=>{a&&this.snapToCursor(eo(d).point),this.stopAnimation()},s=(d,c)=>{let{drag:p,dragPropagation:x,onDragStart:L}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ah(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=c,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bt(h=>{let m=this.getAxisMotionValue(h).get()||0;if(et.test(m)){let{projection:g}=this.visualElement;if(g&&g.layout){let y=g.layout.layoutBox[h];y&&(m=Me(y)*(parseFloat(m)/100))}}this.originPoint[h]=m}),L&&V.update(()=>L(d,c),!1,!0),ss(this.visualElement,"transform");let{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},i=(d,c)=>{this.latestPointerEvent=d,this.latestPanInfo=c;let{dragPropagation:p,dragDirectionLock:x,onDirectionLock:L,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;let{offset:h}=c;if(x&&this.currentDirection===null){this.currentDirection=o3(h),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",c.point,h),this.updateAxis("y",c.point,h),this.visualElement.render(),C&&V.update(()=>C(d,c),!1,!0)},n=(d,c)=>{this.latestPointerEvent=d,this.latestPanInfo=c,this.stop(d,c),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new Ls(t,{onSessionStart:l,onStart:s,onMove:i,onSessionEnd:n,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:o,contextWindow:Rc(this.visualElement),element:this.visualElement.current})}stop(t,a){let o=t||this.latestPointerEvent,r=a||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!r||!o)return;let{velocity:s}=r;this.startAnimation(s);let{onDragEnd:i}=this.getProps();i&&V.postRender(()=>i(o,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,o){let{drag:r}=this.getProps();if(!o||!Bc(t,r,this.currentDirection))return;let l=this.getAxisMotionValue(t),s=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(s=sb(s,this.constraints[t],this.elastic[t])),l.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:a}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Jo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=ib(o.layoutBox,t):this.constraints=!1,this.elastic=cb(a),r!==this.constraints&&!Jo(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Bt(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=fb(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Jo(t))return!1;let o=t.current;yt(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let l=Gh(o,r.root,this.visualElement.getTransformPagePoint()),s=nb(r.layout.layoutBox,l);if(a){let i=a(qh(s));this.hasMutatedConstraints=!!i,i&&(s=on(i))}return s}startAnimation(t){let{drag:a,dragMomentum:o,dragElastic:r,dragTransition:l,dragSnapToOrigin:s,onDragTransitionEnd:i}=this.getProps(),n=this.constraints||{},u=Bt(f=>{if(!Bc(f,a,this.currentDirection))return;let d=n&&n[f]||{};(s===!0||s===f)&&(d={min:0,max:0});let c=r?200:1e6,p=r?40:1e7,x={type:"inertia",velocity:o?t[f]:0,bounceStiffness:c,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...l,...d};return this.startAxisValueAnimation(f,x)});return Promise.all(u).then(i)}startAxisValueAnimation(t,a){let o=this.getAxisMotionValue(t);return ss(this.visualElement,t),o.start(Br(t,o,0,a,this.visualElement,!1))}stopAnimation(){Bt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps()[a];return r||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Bt(a=>{let{drag:o}=this.getProps();if(!Bc(a,o,this.currentDirection))return;let{projection:r}=this.visualElement,l=this.getAxisMotionValue(a);if(r&&r.layout){let{min:s,max:i}=r.layout.layoutBox[a],n=l.get()||0;l.set(t[a]-q(s,i,.5)+n)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!Jo(a)||!o||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Bt(s=>{let i=this.getAxisMotionValue(s);if(i&&this.constraints!==!1){let n=i.get();r[s]=ub({min:n,max:n},this.constraints[s])}});let{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Bt(s=>{if(!Bc(s,t,null))return;let i=this.getAxisMotionValue(s),{min:n,max:u}=this.constraints[s];i.set(q(n,u,r[s]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;t3.set(this.visualElement,this);let t=this.visualElement.current,a=$o(t,"pointerdown",u=>{let{drag:f,dragListener:d=!0}=this.getProps(),c=u.target,p=c!==t&&Eh(c);f&&d&&!p&&this.start(u)}),o,r=()=>{let{dragConstraints:u}=this.getProps();Jo(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=a3(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,s=l.addEventListener("measure",r);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),V.read(r);let i=Ta(window,"resize",()=>this.scalePositionWithinConstraints()),n=l.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(Bt(d=>{let c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=u[d].translate,c.set(c.get()+u[d].translate))}),this.visualElement.render())}));return()=>{i(),a(),s(),n&&n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:l=!1,dragElastic:s=Oc,dragMomentum:i=!0}=t;return{...t,drag:a,dragDirectionLock:o,dragPropagation:r,dragConstraints:l,dragElastic:s,dragMomentum:i}}};function db(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function a3(e,t,a){let o=rc(e,db(a)),r=rc(t,db(a));return()=>{o(),r()}}function Bc(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function o3(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}var Vc=class extends ze{constructor(t){super(t),this.removeGroupControls=he,this.removeListeners=he,this.controls=new zc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||he}update(){let{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var pg=e=>(t,a)=>{e&&V.update(()=>e(t,a),!1,!0)},kc=class extends ze{constructor(){super(...arguments),this.removePointerDownListener=he}onPointerDown(t){this.session=new Ls(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rc(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:a,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:pg(t),onStart:pg(a),onMove:pg(o),onEnd:(l,s)=>{delete this.session,r&&V.postRender(()=>r(l,s))}}}mount(){this.removePointerDownListener=$o(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var mb=O(Et(),1);var Ln=O(N(),1);var hg=!1,gg=class extends Ln.Component{componentDidMount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o,layoutId:r}=this.props,{projection:l}=t;l&&(a.group&&a.group.add(l),o&&o.register&&r&&o.register(l),hg&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Xr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:a,visualElement:o,drag:r,isPresent:l}=this.props,{projection:s}=o;return s&&(s.isPresent=l,t.layoutDependency!==a&&s.setOptions({...s.options,layoutDependency:a}),hg=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==l?s.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?s.promote():s.relegate()||V.postRender(()=>{let i=s.getStack();(!i||!i.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:a}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=a,o.root.didUpdate(),qr.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:a,switchLayoutGroup:o}=this.props,{projection:r}=t;hg=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function qc(e){let[t,a]=yc(),o=(0,Ln.useContext)(ja);return(0,mb.jsx)(gg,{...e,layoutGroup:o,switchLayoutGroup:(0,Ln.useContext)(wc),isPresent:t,safeToRemove:a})}var pb={pan:{Feature:kc},drag:{Feature:Vc,ProjectionNode:pn,MeasureLayout:qc}};function hb(e,t,a){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",a==="Start");let r="onHover"+a,l=o[r];l&&V.postRender(()=>l(t,eo(t)))}var Pc=class extends ze{mount(){let{current:t}=this.node;t&&(this.unmount=Mh(t,(a,o)=>(hb(this.node,o,"Start"),r=>hb(this.node,r,"End"))))}unmount(){}};var Uc=class extends ze{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=aa(Ta(this.node.current,"focus",()=>this.onFocus()),Ta(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function gb(e,t,a){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",a==="Start");let r="onTap"+(a==="End"?"":a),l=o[r];l&&V.postRender(()=>l(t,eo(t)))}var Nc=class extends ze{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:a,propagate:o}=this.node.props;this.unmount=Bh(t,(r,l)=>(gb(this.node,l,"Start"),(s,{success:i})=>gb(this.node,s,i?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:o?.tap===!1})}unmount(){}};var yg=new WeakMap,xg=new WeakMap,r3=e=>{let t=yg.get(e.target);t&&t(e)},l3=e=>{e.forEach(r3)};function s3({root:e,...t}){let a=e||document;xg.has(a)||xg.set(a,{});let o=xg.get(a),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(l3,{root:e,...t})),o[r]}function xb(e,t,a){let o=s3(t);return yg.set(e,a),o.observe(e),()=>{yg.delete(e),o.unobserve(e)}}var i3={some:0,all:1},Fc=class extends ze{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:a,margin:o,amount:r="some",once:l}=t,s={root:a?a.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:i3[r]},i=n=>{let{isIntersecting:u}=n;if(this.isInView===u||(this.isInView=u,l&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),c=u?f:d;c&&c(n)};this.stopObserver=xb(this.node.current,s,i)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:a}=this.node;["amount","margin","root"].some(n3(t,a))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function n3({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}var yb={inView:{Feature:Fc},tap:{Feature:Nc},focus:{Feature:Uc},hover:{Feature:Pc}};var Lb={layout:{ProjectionNode:pn,MeasureLayout:qc}};var Sb={...Zv,...yb,...pb,...Lb};var er=Xv(Sb,Kv);var Cb=O(N(),1);function Hc(){!Nr.current&&en();let[e]=(0,Cb.useState)(Ko.current);return e}function vb(e){var t,a,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t{let a=new Array(e.length+t.length);for(let o=0;o({classGroupId:e,validator:t}),Db=(e=new Map,t=null,a)=>({nextPart:e,validators:t,classGroupId:a});var Ib=[],c3="arbitrary..",d3=e=>{let t=p3(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return m3(s);let i=s.split("-"),n=i[0]===""&&i.length>1?1:0;return Rb(i,n,t)},getConflictingClassGroupIds:(s,i)=>{if(i){let n=o[s],u=a[s];return n?u?u3(u,n):n:u||Ib}return a[s]||Ib}}},Rb=(e,t,a)=>{if(e.length-t===0)return a.classGroupId;let r=e[t],l=a.nextPart.get(r);if(l){let u=Rb(e,t+1,l);if(u)return u}let s=a.validators;if(s===null)return;let i=t===0?e.join("-"):e.slice(t).join("-"),n=s.length;for(let u=0;ue.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),a=t.indexOf(":"),o=t.slice(0,a);return o?c3+o:void 0})(),p3=e=>{let{theme:t,classGroups:a}=e;return h3(a,t)},h3=(e,t)=>{let a=Db();for(let o in e){let r=e[o];Sg(r,a,o,t)}return a},Sg=(e,t,a,o)=>{let r=e.length;for(let l=0;l{if(typeof e=="string"){x3(e,t,a);return}if(typeof e=="function"){y3(e,t,a,o);return}L3(e,t,a,o)},x3=(e,t,a)=>{let o=e===""?t:Eb(t,e);o.classGroupId=a},y3=(e,t,a,o)=>{if(S3(e)){Sg(e(o),t,a,o);return}t.validators===null&&(t.validators=[]),t.validators.push(f3(a,e))},L3=(e,t,a,o)=>{let r=Object.entries(e),l=r.length;for(let s=0;s{let a=e,o=t.split("-"),r=o.length;for(let l=0;l"isThemeGetter"in e&&e.isThemeGetter===!0,C3=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=Object.create(null),o=Object.create(null),r=(l,s)=>{a[l]=s,t++,t>e&&(t=0,o=a,a=Object.create(null))};return{get(l){let s=a[l];if(s!==void 0)return s;if((s=o[l])!==void 0)return r(l,s),s},set(l,s){l in a?a[l]=s:r(l,s)}}};var v3=[],wb=(e,t,a,o,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:a,maybePostfixModifierPosition:o,isExternal:r}),b3=e=>{let{prefix:t,experimentalParseClassName:a}=e,o=r=>{let l=[],s=0,i=0,n=0,u,f=r.length;for(let L=0;Ln?u-n:void 0;return wb(l,p,c,x)};if(t){let r=t+":",l=o;o=s=>s.startsWith(r)?l(s.slice(r.length)):wb(v3,!1,s,void 0,!0)}if(a){let r=o;o=l=>a({className:l,parseClassName:r})}return o},I3=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((a,o)=>{t.set(a,1e6+o)}),a=>{let o=[],r=[];for(let l=0;l0&&(r.sort(),o.push(...r),r=[]),o.push(s)):r.push(s)}return r.length>0&&(r.sort(),o.push(...r)),o}},w3=e=>({cache:C3(e.cacheSize),parseClassName:b3(e),sortModifiers:I3(e),postfixLookupClassGroupIds:T3(e),...d3(e)}),T3=e=>{let t=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let o=0;o{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:l,postfixLookupClassGroupIds:s}=t,i=[],n=e.trim().split(A3),u="";for(let f=n.length-1;f>=0;f-=1){let d=n[f],{isExternal:c,modifiers:p,hasImportantModifier:x,baseClassName:L,maybePostfixModifierPosition:C}=a(d);if(c){u=d+(u.length>0?" "+u:u);continue}let h=!!C,m;if(h){let I=L.substring(0,C);m=o(I);let S=m&&s[m]?o(L):void 0;S&&S!==m&&(m=S,h=!1)}else m=o(L);if(!m){if(!h){u=d+(u.length>0?" "+u:u);continue}if(m=o(L),!m){u=d+(u.length>0?" "+u:u);continue}h=!1}let g=p.length===0?"":p.length===1?p[0]:l(p).join(":"),y=x?g+"!":g,b=y+m;if(i.indexOf(b)>-1)continue;i.push(b);let T=r(m,h);for(let I=0;I0?" "+u:u)}return u},D3=(...e)=>{let t=0,a,o,r="";for(;t{if(typeof e=="string")return e;let t,a="";for(let o=0;o{let a,o,r,l,s=n=>{let u=t.reduce((f,d)=>d(f),e());return a=w3(u),o=a.cache.get,r=a.cache.set,l=i,i(n)},i=n=>{let u=o(n);if(u)return u;let f=M3(n,a);return r(n,f),f};return l=s,(...n)=>l(D3(...n))},E3=[],Ve=e=>{let t=a=>a[e]||E3;return t.isThemeGetter=!0,t.themeKey=e,t},Bb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,O3=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,B3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,V3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,k3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tr=e=>O3.test(e),U=e=>!!e&&!Number.isNaN(Number(e)),Aa=e=>!!e&&Number.isInteger(Number(e)),Lg=e=>e.endsWith("%")&&U(e.slice(0,-1)),to=e=>B3.test(e),Vb=()=>!0,P3=e=>z3.test(e)&&!V3.test(e),Cg=()=>!1,U3=e=>k3.test(e),N3=e=>q3.test(e),F3=e=>!D(e)&&!R(e),H3=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),G3=e=>ar(e,Pb,Cg),D=e=>Bb.test(e),Qr=e=>ar(e,Ub,P3),Tb=e=>ar(e,W3,U),_3=e=>ar(e,Fb,Vb),j3=e=>ar(e,Nb,Cg),Ab=e=>ar(e,kb,Cg),X3=e=>ar(e,qb,N3),Gc=e=>ar(e,Hb,U3),R=e=>zb.test(e),Sn=e=>Wr(e,Ub),Y3=e=>Wr(e,Nb),Mb=e=>Wr(e,kb),K3=e=>Wr(e,Pb),Z3=e=>Wr(e,qb),_c=e=>Wr(e,Hb,!0),Q3=e=>Wr(e,Fb,!0),ar=(e,t,a)=>{let o=Bb.exec(e);return o?o[1]?t(o[1]):a(o[2]):!1},Wr=(e,t,a=!1)=>{let o=zb.exec(e);return o?o[1]?t(o[1]):a:!1},kb=e=>e==="position"||e==="percentage",qb=e=>e==="image"||e==="url",Pb=e=>e==="length"||e==="size"||e==="bg-size",Ub=e=>e==="length",W3=e=>e==="number",Nb=e=>e==="family-name",Fb=e=>e==="number"||e==="weight",Hb=e=>e==="shadow";var J3=()=>{let e=Ve("color"),t=Ve("font"),a=Ve("text"),o=Ve("font-weight"),r=Ve("tracking"),l=Ve("leading"),s=Ve("breakpoint"),i=Ve("container"),n=Ve("spacing"),u=Ve("radius"),f=Ve("shadow"),d=Ve("inset-shadow"),c=Ve("text-shadow"),p=Ve("drop-shadow"),x=Ve("blur"),L=Ve("perspective"),C=Ve("aspect"),h=Ve("ease"),m=Ve("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],b=()=>[...y(),R,D],T=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],S=()=>[R,D,n],M=()=>[tr,"full","auto",...S()],w=()=>[Aa,"none","subgrid",R,D],G=()=>["auto",{span:["full",Aa,R,D]},Aa,R,D],ue=()=>[Aa,"auto",R,D],zt=()=>["auto","min","max","fr",R,D],ft=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ze=()=>["start","end","center","stretch","center-safe","end-safe"],ye=()=>["auto",...S()],ao=()=>[tr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],ve=()=>[i,tr,"screen","full","dvw","lvw","svw","min","max","fit",...S()],Qe=()=>[tr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],E=()=>[e,R,D],Ma=()=>[...y(),Mb,Ab,{position:[R,D]}],vn=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ag=()=>["auto","cover","contain",K3,G3,{size:[R,D]}],Yc=()=>[Lg,Sn,Qr],tt=()=>["","none","full",u,R,D],at=()=>["",U,Sn,Qr],bn=()=>["solid","dashed","dotted","double"],Mg=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[U,Lg,Mb,Ab],Dg=()=>["","none",x,R,D],In=()=>["none",U,R,D],wn=()=>["none",U,R,D],Kc=()=>[U,R,D],Tn=()=>[tr,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[to],breakpoint:[to],color:[Vb],container:[to],"drop-shadow":[to],ease:["in","out","in-out"],font:[F3],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[to],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[to],shadow:[to],spacing:["px",U],text:[to],"text-shadow":[to],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tr,D,R,C]}],container:["container"],"container-type":[{"@container":["","normal","size",R,D]}],"container-named":[H3],columns:[{columns:[U,"auto",D,R,i]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Aa,"auto",R,D]}],basis:[{basis:[tr,"full","auto",i,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[U,tr,"auto","initial","none",D]}],grow:[{grow:["",U,R,D]}],shrink:[{shrink:["",U,R,D]}],order:[{order:[Aa,"first","last","none",R,D]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":zt()}],"auto-rows":[{"auto-rows":zt()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...ft(),"normal"]}],"justify-items":[{"justify-items":[...Ze(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ze()]}],"align-content":[{content:["normal",...ft()]}],"align-items":[{items:[...Ze(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ze(),{baseline:["","last"]}]}],"place-content":[{"place-content":ft()}],"place-items":[{"place-items":[...Ze(),"baseline"]}],"place-self":[{"place-self":["auto",...Ze()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:ye()}],mx:[{mx:ye()}],my:[{my:ye()}],ms:[{ms:ye()}],me:[{me:ye()}],mbs:[{mbs:ye()}],mbe:[{mbe:ye()}],mt:[{mt:ye()}],mr:[{mr:ye()}],mb:[{mb:ye()}],ml:[{ml:ye()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:ao()}],"inline-size":[{inline:["auto",...ve()]}],"min-inline-size":[{"min-inline":["auto",...ve()]}],"max-inline-size":[{"max-inline":["none",...ve()]}],"block-size":[{block:["auto",...Qe()]}],"min-block-size":[{"min-block":["auto",...Qe()]}],"max-block-size":[{"max-block":["none",...Qe()]}],w:[{w:[i,"screen",...ao()]}],"min-w":[{"min-w":[i,"screen","none",...ao()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...ao()]}],h:[{h:["screen","lh",...ao()]}],"min-h":[{"min-h":["screen","lh","none",...ao()]}],"max-h":[{"max-h":["screen","lh","none",...ao()]}],"font-size":[{text:["base",a,Sn,Qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Q3,_3]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lg,D]}],"font-family":[{font:[Y3,j3,t]}],"font-features":[{"font-features":[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,R,D]}],"line-clamp":[{"line-clamp":[U,"none",R,Tb]}],leading:[{leading:["none",l,...S()]}],"list-image":[{"list-image":["none",R,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...bn(),"wavy"]}],"text-decoration-thickness":[{decoration:[U,"from-font","auto",R,Qr]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[U,"auto",R,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[Aa,R,D]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ma()}],"bg-repeat":[{bg:vn()}],"bg-size":[{bg:Ag()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Aa,R,D],radial:["",R,D],conic:["",Aa,R,D]},Z3,X3]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:Yc()}],"gradient-via-pos":[{via:Yc()}],"gradient-to-pos":[{to:Yc()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:tt()}],"rounded-s":[{"rounded-s":tt()}],"rounded-e":[{"rounded-e":tt()}],"rounded-t":[{"rounded-t":tt()}],"rounded-r":[{"rounded-r":tt()}],"rounded-b":[{"rounded-b":tt()}],"rounded-l":[{"rounded-l":tt()}],"rounded-ss":[{"rounded-ss":tt()}],"rounded-se":[{"rounded-se":tt()}],"rounded-ee":[{"rounded-ee":tt()}],"rounded-es":[{"rounded-es":tt()}],"rounded-tl":[{"rounded-tl":tt()}],"rounded-tr":[{"rounded-tr":tt()}],"rounded-br":[{"rounded-br":tt()}],"rounded-bl":[{"rounded-bl":tt()}],"border-w":[{border:at()}],"border-w-x":[{"border-x":at()}],"border-w-y":[{"border-y":at()}],"border-w-s":[{"border-s":at()}],"border-w-e":[{"border-e":at()}],"border-w-bs":[{"border-bs":at()}],"border-w-be":[{"border-be":at()}],"border-w-t":[{"border-t":at()}],"border-w-r":[{"border-r":at()}],"border-w-b":[{"border-b":at()}],"border-w-l":[{"border-l":at()}],"divide-x":[{"divide-x":at()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":at()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...bn(),"hidden","none"]}],"divide-style":[{divide:[...bn(),"hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-bs":[{"border-bs":E()}],"border-color-be":[{"border-be":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:[...bn(),"none","hidden"]}],"outline-offset":[{"outline-offset":[U,R,D]}],"outline-w":[{outline:["",U,Sn,Qr]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","inner","none",f,_c,Gc]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",d,_c,Gc]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:at()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[U,Qr]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":at()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",c,_c,Gc]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[U,R,D]}],"mix-blend":[{"mix-blend":[...Mg(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Mg()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[U]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[R,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[U]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ma()}],"mask-repeat":[{mask:vn()}],"mask-size":[{mask:Ag()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,D]}],filter:[{filter:["","none",R,D]}],blur:[{blur:Dg()}],brightness:[{brightness:[U,R,D]}],contrast:[{contrast:[U,R,D]}],"drop-shadow":[{"drop-shadow":["","none",p,_c,Gc]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",U,R,D]}],"hue-rotate":[{"hue-rotate":[U,R,D]}],invert:[{invert:["",U,R,D]}],saturate:[{saturate:[U,R,D]}],sepia:[{sepia:["",U,R,D]}],"backdrop-filter":[{"backdrop-filter":["","none",R,D]}],"backdrop-blur":[{"backdrop-blur":Dg()}],"backdrop-brightness":[{"backdrop-brightness":[U,R,D]}],"backdrop-contrast":[{"backdrop-contrast":[U,R,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",U,R,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[U,R,D]}],"backdrop-invert":[{"backdrop-invert":["",U,R,D]}],"backdrop-opacity":[{"backdrop-opacity":[U,R,D]}],"backdrop-saturate":[{"backdrop-saturate":[U,R,D]}],"backdrop-sepia":[{"backdrop-sepia":["",U,R,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[U,"initial",R,D]}],ease:[{ease:["linear","initial",h,R,D]}],delay:[{delay:[U,R,D]}],animate:[{animate:["none",m,R,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[L,R,D]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:In()}],"rotate-x":[{"rotate-x":In()}],"rotate-y":[{"rotate-y":In()}],"rotate-z":[{"rotate-z":In()}],scale:[{scale:wn()}],"scale-x":[{"scale-x":wn()}],"scale-y":[{"scale-y":wn()}],"scale-z":[{"scale-z":wn()}],"scale-3d":["scale-3d"],skew:[{skew:Kc()}],"skew-x":[{"skew-x":Kc()}],"skew-y":[{"skew-y":Kc()}],transform:[{transform:[R,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Tn()}],"translate-x":[{"translate-x":Tn()}],"translate-y":[{"translate-y":Tn()}],"translate-z":[{"translate-z":Tn()}],"translate-none":["translate-none"],zoom:[{zoom:[Aa,R,D]}],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,D]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":E()}],"scrollbar-track-color":[{"scrollbar-track":E()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,D]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[U,Sn,Qr,Tb]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var Gb=R3(J3);function jc(...e){return Gb(bb(e))}var ie=O(Et(),1),vg=ae.createContext(null),jb={type:"spring",stiffness:350,damping:35,mass:1};function Xb({children:e}){let[t,a]=ae.useState(null),[o,r]=ae.useState([]),l=ae.useId(),s=ae.useCallback(n=>(r(u=>[...u.filter(f=>f.id!==n.id),n]),()=>r(u=>u.filter(f=>f.id!==n.id))),[]),i=ae.useCallback(n=>{a(u=>{if(!u||!o.length)return u;let f=o.findIndex(d=>d.id===u.id);return o[(f+n+o.length)%o.length]})},[o]);return(0,ie.jsx)(fg,{id:l,children:(0,ie.jsxs)(vg.Provider,{value:{selectedImage:t,setSelectedImage:a,register:s,navigate:i,count:o.length,position:o.findIndex(n=>n.id===t?.id)+1},children:[e,(0,ie.jsx)($3,{})]})})}function bg({children:e,className:t}){return(0,ie.jsx)("div",{className:jc("columns-1 gap-4 sm:columns-2 md:columns-3 lg:columns-4",t),children:e})}function Ig({src:e,alt:t,id:a,className:o}){let r=ae.useContext(vg);if(!r)throw new Error("GalleryImage must be used within a Gallery");let{register:l,setSelectedImage:s}=r,i=Hc(),[n,u]=ae.useState(!1);return ae.useEffect(()=>l({src:e,alt:t,id:a}),[l,e,t,a]),ae.useEffect(()=>u(!1),[e]),(0,ie.jsxs)(er.button,{type:"button",whileHover:"hover",whileTap:"tap",className:jc("gallery-thumbnail relative mb-4 break-inside-avoid overflow-hidden rounded-xl text-left",o),onClick:()=>s({id:a,src:e,alt:t}),disabled:n,"aria-label":`Enlarge ${t||"product image"}`,"aria-haspopup":"dialog",children:[n?(0,ie.jsx)("span",{className:"flex aspect-[4/3] items-center justify-center p-6 text-sm text-muted-foreground",children:"Image unavailable"}):(0,ie.jsx)(er.img,{layoutId:i?void 0:`image-${a}`,src:e,alt:t||"Amacor product sample",loading:"lazy",decoding:"async",draggable:!1,onError:()=>u(!0),className:"h-auto w-full rounded-xl object-contain",variants:i?void 0:{hover:{scale:.98},tap:{scale:.95}},transition:jb}),(0,ie.jsx)(er.span,{variants:{hover:{opacity:1},tap:{opacity:1}},initial:{opacity:0},className:"pointer-events-none absolute inset-0 rounded-xl bg-black/5",transition:{duration:.2}})]})}function $3(){let e=ae.useContext(vg),[t,a]=ae.useState(null);return ae.useEffect(()=>{let o=document.createElement("div");return o.className="px-work-gallery-scope",o.setAttribute("data-px-gallery-portal","true"),document.body.appendChild(o),a(o),()=>o.remove()},[]),!e||!t?null:(0,_b.createPortal)((0,ie.jsx)(ug,{children:e.selectedImage&&(0,ie.jsx)(eD,{context:e})}),t)}function eD({context:e}){let{selectedImage:t,setSelectedImage:a,navigate:o,count:r,position:l}=e,s=Hc(),i=ae.useRef(null),n=ae.useRef(null),u=ae.useId(),[f,d]=ae.useState(!1);if(ae.useEffect(()=>d(!1),[t?.src]),ae.useEffect(()=>{let p=document.activeElement instanceof HTMLElement?document.activeElement:null,x=document.body.style.overflow;return document.body.style.overflow="hidden",n.current?.focus(),()=>{document.body.style.overflow=x,p?.focus()}},[]),ae.useEffect(()=>{let p=x=>{if(x.key==="Escape"&&(x.preventDefault(),a(null)),x.key==="ArrowLeft"&&(x.preventDefault(),o(-1)),x.key==="ArrowRight"&&(x.preventDefault(),o(1)),x.key==="Tab"){let L=i.current?.querySelectorAll("button:not(:disabled)");if(!L?.length)return;let C=L[0],h=L[L.length-1];x.shiftKey&&document.activeElement===C?(x.preventDefault(),h.focus()):!x.shiftKey&&document.activeElement===h&&(x.preventDefault(),C.focus())}};return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[a,o]),!t)return null;let c="rounded-full bg-white/15 p-3 text-white backdrop-blur-md transition-colors hover:bg-white/25 disabled:opacity-40 focus-visible:outline-white";return(0,ie.jsxs)(er.div,{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":u,className:"fixed inset-0 z-[1000] flex items-center justify-center p-4 sm:p-8",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:s?0:.2},children:[(0,ie.jsx)("h2",{id:u,className:"sr-only",children:t.alt||"Amacor product preview"}),(0,ie.jsx)("div",{className:"absolute inset-0 bg-black/85 backdrop-blur-xl",onClick:()=>a(null),"aria-hidden":"true"}),(0,ie.jsx)(er.div,{className:"pointer-events-none relative z-10 flex h-full w-full items-center justify-center pb-14 pt-14",drag:s?!1:"y",dragConstraints:{top:0,bottom:0},dragElastic:.6,onDragEnd:(p,x)=>{(Math.abs(x.offset.y)>100||Math.abs(x.velocity.y)>300)&&a(null)},children:f?(0,ie.jsx)("p",{className:"text-white",children:"This image could not be loaded."}):(0,ie.jsx)(er.img,{layoutId:s?void 0:`image-${t.id}`,src:t.src,alt:t.alt||"Amacor product sample",draggable:!1,onError:()=>d(!0),className:"pointer-events-auto h-auto max-h-full w-auto max-w-full rounded-xl bg-white object-contain shadow-2xl",style:{touchAction:s?"auto":"none"},transition:s?{duration:0}:jb},t.id)}),(0,ie.jsx)("button",{ref:n,type:"button",className:jc(c,"absolute right-4 top-4 z-20 sm:right-6 sm:top-6"),onClick:()=>a(null),"aria-label":"Close gallery",children:(0,ie.jsx)(Ti,{className:"h-5 w-5"})}),(0,ie.jsxs)("div",{className:"absolute bottom-4 left-1/2 z-20 flex -translate-x-1/2 items-center gap-5 text-white",children:[(0,ie.jsx)("button",{type:"button",className:c,onClick:()=>o(-1),disabled:r<2,"aria-label":"Previous image",children:(0,ie.jsx)(bi,{className:"h-5 w-5"})}),(0,ie.jsxs)("span",{className:"min-w-16 text-center text-sm tabular-nums","aria-live":"polite",children:[l," / ",r]}),(0,ie.jsx)("button",{type:"button",className:c,onClick:()=>o(1),disabled:r<2,"aria-label":"Next image",children:(0,ie.jsx)(Ii,{className:"h-5 w-5"})})]})]})}var wg=[{"id": "12794686", "src": "https://printzexperts.com/rshared/ssc/i/riq/12794686/2048/2048/ffffff/0/3/image.webp?ts=1792085197", "alt": "A collection of front-printed T-shirts and sweatshirts in different colours and designs.", "local_file": "assets/dtf/dtf-12794686.webp", "surface": "#ffffff", "width": 1512, "height": 1500, "label": "Printed apparel ยท collection", "categories": ["T-shirts", "Hoodies"], "isColourSwatch": false}, {"id": "12792721", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792721/2048/2048/ffffff/0/3/image.webp?ts=1792002561", "alt": "Black T-shirt with a colourful pride-themed print.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792751", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792751/2048/2048/ffffff/0/3/image.webp?ts=1792002578", "alt": "Black pullover hoodie with a small chest logo.", "label": "Hoodie ยท front print", "categories": ["Hoodies"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792731", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792731/2048/2048/ffffff/0/3/image.webp?ts=1792002561", "alt": "Heather grey T-shirt with a colourful illustrated portrait.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792796", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792796/2048/2048/ffffff/0/3/image.webp?ts=1792002643", "alt": "Navy pullover hoodie with a large light-coloured front print.", "label": "Hoodie ยท front print", "categories": ["Hoodies"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792736", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792736/2048/2048/ffffff/0/3/image.webp?ts=1792002561", "alt": "Rust orange T-shirt with a small climbing illustration.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792856", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792856/2048/2048/ffffff/0/3/image.webp?ts=1792003734", "alt": "Green heather pullover hoodie with a vintage-style school print.", "label": "Hoodie ยท front print", "categories": ["Hoodies"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792781", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792781/2048/2048/ffffff/0/3/image.webp?ts=1792002642", "alt": "Blue T-shirt with a small chest logo.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792881", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792881/2048/2048/ffffff/0/3/image.webp?ts=1792003736", "alt": "Grey heather pullover hoodie with a school music print.", "label": "Hoodie ยท front print", "categories": ["Hoodies"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792791", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792791/2048/2048/ffffff/0/3/image.webp?ts=1792002643", "alt": "White T-shirt with a small left-chest logo.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792951", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792951/2048/2048/ffffff/0/3/image.webp?ts=1792006272", "alt": "Front of a cream pullover hoodie with a small multicolour chest print.", "label": "Hoodie ยท front print", "categories": ["Hoodies"], "isColourSwatch": false, "surface": "#fefefe"}, {"id": "12792801", "src": "https://amacorprintz.deco-apparel.com/rshared/ssc/i/riq/12792801/2048/2048/ffffff/0/3/image.webp?ts=1792002643", "alt": "Black T-shirt with a small multicolour text design.", "label": "T-shirt ยท front print", "categories": ["T-shirts"], "isColourSwatch": false, "surface": "#fefefe"}];var ne=O(Et(),1);function Tg(){ const [index,setIndex]=Cn.useState(0); const item=wg[index]; return (0,ne.jsxs)("div",{className:"px-hero-carousel",role:"group","aria-label":"Front-printed T-shirts and sweatshirts",children:[ (0,ne.jsx)("img",{className:"px-hero-carousel-image",src:item.src,alt:item.alt,style:{backgroundColor:item.surface},width:item.width,height:item.height,loading:"eager",decoding:"async",fetchPriority:index===0?"high":undefined,key:item.id}), (0,ne.jsxs)("div",{className:"px-hero-carousel-controls",children:[ (0,ne.jsx)("button",{type:"button",onClick:()=>setIndex(value=>(value-1+wg.length)%wg.length),"aria-label":"Previous garment photo",children:(0,ne.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":!0,children:(0,ne.jsx)("path",{d:"M15 18l-6-6 6-6",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"})})}), (0,ne.jsx)("button",{type:"button",onClick:()=>setIndex(value=>(value+1)%wg.length),"aria-label":"Next garment photo",children:(0,ne.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":!0,children:(0,ne.jsx)("path",{d:"M9 18l6-6-6-6",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round"})})}) ]}) ]});}var Kb=O(Et(),1),aD=document.currentScript,oD=aD?.closest("[data-px-react-gallery]"),Xc=oD?.querySelector("[data-px-react-mount]");Xc&&!Xc.hasAttribute("data-mounted")&&(Xc.setAttribute("data-mounted","true"),(0,Yb.createRoot)(Xc).render((0,Kb.jsx)(Tg,{})));})(); /*! Bundled license information: scheduler/cjs/scheduler.production.js: (** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react.production.js: (** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react-dom/cjs/react-dom.production.js: (** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react-dom/cjs/react-dom-client.production.js: (** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react-jsx-runtime.production.js: (** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) lucide-react/dist/esm/shared/src/utils.js: lucide-react/dist/esm/defaultAttributes.js: lucide-react/dist/esm/Icon.js: lucide-react/dist/esm/createLucideIcon.js: lucide-react/dist/esm/icons/chevron-left.js: lucide-react/dist/esm/icons/chevron-right.js: lucide-react/dist/esm/icons/search.js: lucide-react/dist/esm/icons/x.js: lucide-react/dist/esm/lucide-react.js: (** * @license lucide-react v0.468.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. *) */

Custom apparel in three easy steps

Choose your product, upload your design and submit your order.

Start a design

Choose your product

Find the apparel that fits your team or project.

Upload your design

Add your artwork to the product you selected.

Submit your order

Review the details, then submit your order.

Based on the $43.95 CAD DTF starting price and the quantity discounts in this guide. Final pricing depends on size, colour, placement, artwork, inventory, shipping, taxes, and approved changes. Check the Designer before ordering.

Your idea. A clear next step.

Design online, or send a mixed order for help with the details.

01

Choose your product

Start with the fit, colour and sizes.

02

Add your artwork

Try the available print areas and check the size.

03

Review and order

Confirm the configuration, price and delivery details.

A few answers.
A clearer start.

Have a different question? Weโ€™re here to help you make the next move.

Explore all FAQs
Can I start with one item?

Check the minimum quantity in the live product configuration. For a mixed or larger request, send your project details first.

What changes the final price?

The garment, sizes, colours, quantities, artwork and decoration areas can affect the price. Delivery and taxes are confirmed at checkout.

Which file should I upload?

Use your best original artwork and check it at the intended print size. Keep the background transparent if you do not want it printed.

Can I mix garments and sizes?

Tell us which products, colours and size quantities you need. We can help organize the details of a mixed-product request.

What if I have an event date?

Share the date you need the order in hand before ordering. Production begins after the required order information and approvals are complete; transit time is separate.

Can you help before I design?

Yes. Send the artwork and project details you have, and ask about product choice, print placement, quantities or ordering.

Ready to make it yours?

Start with a product, or talk through your project.

Keep the printing guides close.

Find Printz Experts in your Google source preferences.

Add as a Google preferred source
Your cart is empty
Search

Select Currency

{CC} - {CN}
Select Language