p;p++)a.push(o);return a}function da(o,a,p){o.pendingLanes|=a,a!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,a=31-ci(a),o[a]=p}function Fh(o,a){var p=o.pendingLanes&~a;o.pendingLanes=a,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=a,o.mutableReadLanes&=a,o.entangledLanes&=a,a=o.entanglements;var v=o.eventTimes;for(o=o.expirationTimes;0=oo),Qh=" ",Jh=!1;function Zh(o,a){switch(o){case"keyup":return kr.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var hl=!1;function ml(o,a){switch(o){case"compositionend":return em(a);case"keypress":return a.which!==32?null:(Jh=!0,Qh);case"textInput":return o=a.data,o===Qh&&Jh?null:o;default:return null}}function Xv(o,a){if(hl)return o==="compositionend"||!va&&Zh(o,a)?(o=Xf(),Ai=ga=Vt=null,hl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:p,offset:a-o};o=v}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=nt(p)}}function un(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?un(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function Tt(){for(var o=window,a=Rt();a instanceof o.HTMLIFrameElement;){try{var p=typeof a.contentWindow.location.href=="string"}catch{p=!1}if(p)o=a.contentWindow;else break;a=Rt(o.document)}return a}function ya(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}function ny(o){var a=Tt(),p=o.focusedElem,v=o.selectionRange;if(a!==p&&p&&p.ownerDocument&&un(p.ownerDocument.documentElement,p)){if(v!==null&&ya(p)){if(a=v.start,o=v.end,o===void 0&&(o=a),"selectionStart"in p)p.selectionStart=a,p.selectionEnd=Math.min(o,p.value.length);else if(o=(a=p.ownerDocument||document)&&a.defaultView||window,o.getSelection){o=o.getSelection();var w=p.textContent.length,C=Math.min(v.start,w);v=v.end===void 0?C:Math.min(v.end,w),!o.extend&&C>v&&(w=v,v=C,C=w),w=xt(p,C);var I=xt(p,v);w&&I&&(o.rangeCount!==1||o.anchorNode!==w.node||o.anchorOffset!==w.offset||o.focusNode!==I.node||o.focusOffset!==I.offset)&&(a=a.createRange(),a.setStart(w.node,w.offset),o.removeAllRanges(),C>v?(o.addRange(a),o.extend(I.node,I.offset)):(a.setEnd(I.node,I.offset),o.addRange(a)))}}for(a=[],o=p;o=o.parentNode;)o.nodeType===1&&a.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p=document.documentMode,so=null,ud=null,Ri=null,vl=!1;function ba(o,a,p){var v=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;vl||so==null||so!==Rt(v)||(v=so,"selectionStart"in v&&ya(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Ri&&Ie(Ri,v)||(Ri=v,v=Ju(ud,"onSelect"),0El||(o.current=hd[El],hd[El]=null,El--)}function It(o,a){El++,hd[El]=o.current,o.current=a}var Uo={},Vn=dr(Uo),pr=dr(!1),er=Uo;function Pl(o,a){var p=o.type.contextTypes;if(!p)return Uo;var v=o.stateNode;if(v&&v.__reactInternalMemoizedUnmaskedChildContext===a)return v.__reactInternalMemoizedMaskedChildContext;var w={},C;for(C in p)w[C]=a[C];return v&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=a,o.__reactInternalMemoizedMaskedChildContext=w),w}function hr(o){return o=o.childContextTypes,o!=null}function rc(){Nt(pr),Nt(Vn)}function cm(o,a,p){if(Vn.current!==Uo)throw Error(n(168));It(Vn,a),It(pr,p)}function fm(o,a,p){var v=o.stateNode;if(a=a.childContextTypes,typeof v.getChildContext!="function")return p;v=v.getChildContext();for(var w in v)if(!(w in a))throw Error(n(108,je(o)||"Unknown",w));return R({},p,v)}function Vr(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||Uo,er=Vn.current,It(Vn,o),It(pr,pr.current),!0}function dm(o,a,p){var v=o.stateNode;if(!v)throw Error(n(169));p?(o=fm(o,a,er),v.__reactInternalMemoizedMergedChildContext=o,Nt(pr),Nt(Vn),It(Vn,o)):Nt(pr),It(pr,p)}var uo=null,ic=!1,md=!1;function pm(o){uo===null?uo=[o]:uo.push(o)}function Ps(o){ic=!0,pm(o)}function Ko(){if(!md&&uo!==null){md=!0;var o=0,a=Ct;try{var p=uo;for(Ct=1;o>=I,w-=I,Di=1<<32-ci(a)+w|p<Xe?(Pn=Ke,Ke=null):Pn=Ke.sibling;var St=ye(le,Ke,ue[Xe],Ce);if(St===null){Ke===null&&(Ke=Pn);break}o&&Ke&&St.alternate===null&&a(le,Ke),ee=C(St,ee,Xe),He===null?ze=St:He.sibling=St,He=St,Ke=Pn}if(Xe===ue.length)return p(le,Ke),Ft&&_s(le,Xe),ze;if(Ke===null){for(;XeXe?(Pn=Ke,Ke=null):Pn=Ke.sibling;var ns=ye(le,Ke,St.value,Ce);if(ns===null){Ke===null&&(Ke=Pn);break}o&&Ke&&ns.alternate===null&&a(le,Ke),ee=C(ns,ee,Xe),He===null?ze=ns:He.sibling=ns,He=ns,Ke=Pn}if(St.done)return p(le,Ke),Ft&&_s(le,Xe),ze;if(Ke===null){for(;!St.done;Xe++,St=ue.next())St=Se(le,St.value,Ce),St!==null&&(ee=C(St,ee,Xe),He===null?ze=St:He.sibling=St,He=St);return Ft&&_s(le,Xe),ze}for(Ke=v(le,Ke);!St.done;Xe++,St=ue.next())St=Ae(Ke,le,Xe,St.value,Ce),St!==null&&(o&&St.alternate!==null&&Ke.delete(St.key===null?Xe:St.key),ee=C(St,ee,Xe),He===null?ze=St:He.sibling=St,He=St);return o&&Ke.forEach(function(Cy){return a(le,Cy)}),Ft&&_s(le,Xe),ze}function on(le,ee,ue,Ce){if(typeof ue=="object"&&ue!==null&&ue.type===J&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case K:e:{for(var ze=ue.key,He=ee;He!==null;){if(He.key===ze){if(ze=ue.type,ze===J){if(He.tag===7){p(le,He.sibling),ee=w(He,ue.props.children),ee.return=le,le=ee;break e}}else if(He.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===Z&&vm(ze)===He.type){p(le,He.sibling),ee=w(He,ue.props),ee.ref=Ia(le,He,ue),ee.return=le,le=ee;break e}p(le,He);break}else a(le,He);He=He.sibling}ue.type===J?(ee=Bs(ue.props.children,le.mode,Ce,ue.key),ee.return=le,le=ee):(Ce=Vc(ue.type,ue.key,ue.props,null,le.mode,Ce),Ce.ref=Ia(le,ee,ue),Ce.return=le,le=Ce)}return I(le);case M:e:{for(He=ue.key;ee!==null;){if(ee.key===He)if(ee.tag===4&&ee.stateNode.containerInfo===ue.containerInfo&&ee.stateNode.implementation===ue.implementation){p(le,ee.sibling),ee=w(ee,ue.children||[]),ee.return=le,le=ee;break e}else{p(le,ee);break}else a(le,ee);ee=ee.sibling}ee=ip(ue,le.mode,Ce),ee.return=le,le=ee}return I(le);case Z:return He=ue._init,on(le,ee,He(ue._payload),Ce)}if(kn(ue))return Le(le,ee,ue,Ce);if(se(ue))return De(le,ee,ue,Ce);Is(le,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,ee!==null&&ee.tag===6?(p(le,ee.sibling),ee=w(ee,ue),ee.return=le,le=ee):(p(le,ee),ee=rp(ue,le.mode,Ce),ee.return=le,le=ee),I(le)):p(le,ee)}return on}var Zt=vd(!0),ac=vd(!1),Aa=dr(null),Tr=null,Wo=null,_l=null;function fo(){_l=Wo=Tr=null}function uc(o){var a=Aa.current;Nt(Aa),o._currentValue=a}function Ln(o,a,p){for(;o!==null;){var v=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,v!==null&&(v.childLanes|=a)):v!==null&&(v.childLanes&a)!==a&&(v.childLanes|=a),o===p)break;o=o.return}}function Ho(o,a){Tr=o,_l=Wo=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&a)!==0&&(nr=!0),o.firstContext=null)}function Wr(o){var a=o._currentValue;if(_l!==o)if(o={context:o,memoizedValue:a,next:null},Wo===null){if(Tr===null)throw Error(n(308));Wo=o,Tr.dependencies={lanes:0,firstContext:o}}else Wo=Wo.next=o;return a}var As=null;function yd(o){As===null?As=[o]:As.push(o)}function cc(o,a,p,v){var w=a.interleaved;return w===null?(p.next=p,yd(a)):(p.next=w.next,w.next=p),a.interleaved=p,po(o,v)}function po(o,a){o.lanes|=a;var p=o.alternate;for(p!==null&&(p.lanes|=a),p=o,o=o.return;o!==null;)o.childLanes|=a,p=o.alternate,p!==null&&(p.childLanes|=a),p=o,o=o.return;return p.tag===3?p.stateNode:null}var Hr=!1;function fc(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ym(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function ho(o,a){return{eventTime:o,lane:a,tag:0,payload:null,callback:null,next:null}}function Gr(o,a,p){var v=o.updateQueue;if(v===null)return null;if(v=v.shared,(gt&2)!==0){var w=v.pending;return w===null?a.next=a:(a.next=w.next,w.next=a),v.pending=a,po(o,p)}return w=v.interleaved,w===null?(a.next=a,yd(v)):(a.next=w.next,w.next=a),v.interleaved=a,po(o,p)}function dc(o,a,p){if(a=a.updateQueue,a!==null&&(a=a.shared,(p&4194240)!==0)){var v=a.lanes;v&=o.pendingLanes,p|=v,a.lanes=p,pa(o,p)}}function bm(o,a){var p=o.updateQueue,v=o.alternate;if(v!==null&&(v=v.updateQueue,p===v)){var w=null,C=null;if(p=p.firstBaseUpdate,p!==null){do{var I={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};C===null?w=C=I:C=C.next=I,p=p.next}while(p!==null);C===null?w=C=a:C=C.next=a}else w=C=a;p={baseState:v.baseState,firstBaseUpdate:w,lastBaseUpdate:C,shared:v.shared,effects:v.effects},o.updateQueue=p;return}o=p.lastBaseUpdate,o===null?p.firstBaseUpdate=a:o.next=a,p.lastBaseUpdate=a}function $l(o,a,p,v){var w=o.updateQueue;Hr=!1;var C=w.firstBaseUpdate,I=w.lastBaseUpdate,U=w.shared.pending;if(U!==null){w.shared.pending=null;var X=U,de=X.next;X.next=null,I===null?C=de:I.next=de,I=X;var be=o.alternate;be!==null&&(be=be.updateQueue,U=be.lastBaseUpdate,U!==I&&(U===null?be.firstBaseUpdate=de:U.next=de,be.lastBaseUpdate=X))}if(C!==null){var Se=w.baseState;I=0,be=de=X=null,U=C;do{var ye=U.lane,Ae=U.eventTime;if((v&ye)===ye){be!==null&&(be=be.next={eventTime:Ae,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var Le=o,De=U;switch(ye=a,Ae=p,De.tag){case 1:if(Le=De.payload,typeof Le=="function"){Se=Le.call(Ae,Se,ye);break e}Se=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=De.payload,ye=typeof Le=="function"?Le.call(Ae,Se,ye):Le,ye==null)break e;Se=R({},Se,ye);break e;case 2:Hr=!0}}U.callback!==null&&U.lane!==0&&(o.flags|=64,ye=w.effects,ye===null?w.effects=[U]:ye.push(U))}else Ae={eventTime:Ae,lane:ye,tag:U.tag,payload:U.payload,callback:U.callback,next:null},be===null?(de=be=Ae,X=Se):be=be.next=Ae,I|=ye;if(U=U.next,U===null){if(U=w.shared.pending,U===null)break;ye=U,U=ye.next,ye.next=null,w.lastBaseUpdate=ye,w.shared.pending=null}}while(!0);if(be===null&&(X=Se),w.baseState=X,w.firstBaseUpdate=de,w.lastBaseUpdate=be,a=w.shared.interleaved,a!==null){w=a;do I|=w.lane,w=w.next;while(w!==a)}else C===null&&(w.shared.lanes=0);Qo|=I,o.lanes=I,o.memoizedState=Se}}function bd(o,a,p){if(o=a.effects,a.effects=null,o!==null)for(a=0;ap?p:4,o(!0);var v=kd.transition;kd.transition={};try{o(!1),a()}finally{Ct=p,kd.transition=v}}function Ad(){return qr().memoizedState}function iy(o,a,p){var v=es(o);if(p={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null},Rd(o))tr(a,p);else if(p=cc(o,a,p,v),p!==null){var w=or();yi(p,o,v,w),pi(p,a,v)}}function Em(o,a,p){var v=es(o),w={lane:v,action:p,hasEagerState:!1,eagerState:null,next:null};if(Rd(o))tr(a,w);else{var C=o.alternate;if(o.lanes===0&&(C===null||C.lanes===0)&&(C=a.lastRenderedReducer,C!==null))try{var I=a.lastRenderedState,U=C(I,p);if(w.hasEagerState=!0,w.eagerState=U,ce(U,I)){var X=a.interleaved;X===null?(w.next=w,yd(a)):(w.next=X.next,X.next=w),a.interleaved=w;return}}catch{}p=cc(o,a,w,v),p!==null&&(w=or(),yi(p,o,v,w),pi(p,a,v))}}function Rd(o){var a=o.alternate;return o===qt||a!==null&&a===qt}function tr(o,a){Da=Al=!0;var p=o.pending;p===null?a.next=a:(a.next=p.next,p.next=a),o.pending=a}function pi(o,a,p){if((p&4194240)!==0){var v=a.lanes;v&=o.pendingLanes,p|=v,a.lanes=p,pa(o,p)}}var xc={readContext:Wr,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:!1},oy={readContext:Wr,useCallback:function(o,a){return Bi().memoizedState=[o,a===void 0?null:a],o},useContext:Wr,useEffect:bc,useImperativeHandle:function(o,a,p){return p=p!=null?p.concat([o]):null,Fa(4194308,4,$d.bind(null,a,o),p)},useLayoutEffect:function(o,a){return Fa(4194308,4,o,a)},useInsertionEffect:function(o,a){return Fa(4,2,o,a)},useMemo:function(o,a){var p=Bi();return a=a===void 0?null:a,o=o(),p.memoizedState=[o,a],o},useReducer:function(o,a,p){var v=Bi();return a=p!==void 0?p(a):a,v.memoizedState=v.baseState=a,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:a},v.queue=o,o=o.dispatch=iy.bind(null,qt,o),[v.memoizedState,o]},useRef:function(o){var a=Bi();return o={current:o},a.memoizedState=o},useState:Na,useDebugValue:Oa,useDeferredValue:function(o){return Bi().memoizedState=o},useTransition:function(){var o=Na(!1),a=o[0];return o=Cm.bind(null,o[1]),Bi().memoizedState=o,[a,o]},useMutableSource:function(){},useSyncExternalStore:function(o,a,p){var v=qt,w=Bi();if(Ft){if(p===void 0)throw Error(n(407));p=p()}else{if(p=a(),En===null)throw Error(n(349));(qo&30)!==0||Td(v,a,p)}w.memoizedState=p;var C={value:p,getSnapshot:a};return w.queue=C,bc(go.bind(null,v,C,o),[o]),v.flags|=2048,Ll(9,gr.bind(null,v,C,p,a),void 0,null),p},useId:function(){var o=Bi(),a=En.identifierPrefix;if(Ft){var p=Ni,v=Di;p=(v&~(1<<32-ci(v)-1)).toString(32)+p,a=":"+a+"R"+p,p=Ls++,0<\/script>",o=o.removeChild(o.firstChild)):typeof v.is=="string"?o=I.createElement(p,{is:v.is}):(o=I.createElement(p),p==="select"&&(I=o,v.multiple?I.multiple=!0:v.size&&(I.size=v.size))):o=I.createElementNS(o,p),o[Li]=a,o[Vo]=v,Dn(o,a,!1,!1),a.stateNode=o;e:{switch(I=Qn(p,v),p){case"dialog":Dt("cancel",o),Dt("close",o),w=v;break;case"iframe":case"object":case"embed":Dt("load",o),w=v;break;case"video":case"audio":for(w=0;wFs&&(a.flags|=128,v=!0,Wa(C,!1),a.lanes=4194304)}else{if(!v)if(o=Rs(I),o!==null){if(a.flags|=128,v=!0,p=o.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),Wa(C,!0),C.tail===null&&C.tailMode==="hidden"&&!I.alternate&&!Ft)return Nn(a),null}else 2*Bt()-C.renderingStartTime>Fs&&p!==1073741824&&(a.flags|=128,v=!0,Wa(C,!1),a.lanes=4194304);C.isBackwards?(I.sibling=a.child,a.child=I):(p=C.last,p!==null?p.sibling=I:a.child=I,C.last=I)}return C.tail!==null?(a=C.tail,C.rendering=a,C.tail=a.sibling,C.renderingStartTime=Bt(),a.sibling=null,p=Ut.current,It(Ut,v?p&1|2:p&1),a):(Nn(a),null);case 22:case 23:return tp(),v=a.memoizedState!==null,o!==null&&o.memoizedState!==null!==v&&(a.flags|=8192),v&&(a.mode&1)!==0?($r&1073741824)!==0&&(Nn(a),a.subtreeFlags&6&&(a.flags|=8192)):Nn(a),null;case 24:return null;case 25:return null}throw Error(n(156,a.tag))}function ly(o,a){switch($s(a),a.tag){case 1:return hr(a.type)&&rc(),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return Go(),Nt(pr),Nt(Vn),hc(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 5:return pc(a),null;case 13:if(Nt(Ut),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(n(340));Oi()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return Nt(Ut),null;case 4:return Go(),null;case 10:return uc(a.type._context),null;case 22:case 23:return tp(),null;case 24:return null;default:return null}}var $c=!1,Kt=!1,rr=typeof WeakSet=="function"?WeakSet:Set,Re=null;function zl(o,a){var p=o.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(v){Yt(o,a,v)}else p.current=null}function Ha(o,a,p){try{p()}catch(v){Yt(o,a,v)}}var Rm=!1;function ay(o,a){if(Ea=Du,o=Tt(),ya(o)){if("selectionStart"in o)var p={start:o.selectionStart,end:o.selectionEnd};else e:{p=(p=o.ownerDocument)&&p.defaultView||window;var v=p.getSelection&&p.getSelection();if(v&&v.rangeCount!==0){p=v.anchorNode;var w=v.anchorOffset,C=v.focusNode;v=v.focusOffset;try{p.nodeType,C.nodeType}catch{p=null;break e}var I=0,U=-1,X=-1,de=0,be=0,Se=o,ye=null;t:for(;;){for(var Ae;Se!==p||w!==0&&Se.nodeType!==3||(U=I+w),Se!==C||v!==0&&Se.nodeType!==3||(X=I+v),Se.nodeType===3&&(I+=Se.nodeValue.length),(Ae=Se.firstChild)!==null;)ye=Se,Se=Ae;for(;;){if(Se===o)break t;if(ye===p&&++de===w&&(U=I),ye===C&&++be===v&&(X=I),(Ae=Se.nextSibling)!==null)break;Se=ye,ye=Se.parentNode}Se=Ae}p=U===-1||X===-1?null:{start:U,end:X}}else p=null}p=p||{start:0,end:0}}else p=null;for(Es={focusedElem:o,selectionRange:p},Du=!1,Re=a;Re!==null;)if(a=Re,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,Re=o;else for(;Re!==null;){a=Re;try{var Le=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(Le!==null){var De=Le.memoizedProps,on=Le.memoizedState,le=a.stateNode,ee=le.getSnapshotBeforeUpdate(a.elementType===a.type?De:Yr(a.type,De),on);le.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ue=a.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ce){Yt(a,a.return,Ce)}if(o=a.sibling,o!==null){o.return=a.return,Re=o;break}Re=a.return}return Le=Rm,Rm=!1,Le}function bo(o,a,p){var v=a.updateQueue;if(v=v!==null?v.lastEffect:null,v!==null){var w=v=v.next;do{if((w.tag&o)===o){var C=w.destroy;w.destroy=void 0,C!==void 0&&Ha(a,p,C)}w=w.next}while(w!==v)}}function Ga(o,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var p=a=a.next;do{if((p.tag&o)===o){var v=p.create;p.destroy=v()}p=p.next}while(p!==a)}}function Ic(o){var a=o.ref;if(a!==null){var p=o.stateNode;o.tag,o=p,typeof a=="function"?a(o):a.current=o}}function Lm(o){var a=o.alternate;a!==null&&(o.alternate=null,Lm(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&(delete a[Li],delete a[Vo],delete a[tc],delete a[D],delete a[Cl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Mm(o){return o.tag===5||o.tag===3||o.tag===4}function Dm(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Mm(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Kd(o,a,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,a?p.nodeType===8?p.parentNode.insertBefore(o,a):p.insertBefore(o,a):(p.nodeType===8?(a=p.parentNode,a.insertBefore(o,p)):(a=p,a.appendChild(o)),p=p._reactRootContainer,p!=null||a.onclick!==null||(a.onclick=Zu));else if(v!==4&&(o=o.child,o!==null))for(Kd(o,a,p),o=o.sibling;o!==null;)Kd(o,a,p),o=o.sibling}function Ac(o,a,p){var v=o.tag;if(v===5||v===6)o=o.stateNode,a?p.insertBefore(o,a):p.appendChild(o);else if(v!==4&&(o=o.child,o!==null))for(Ac(o,a,p),o=o.sibling;o!==null;)Ac(o,a,p),o=o.sibling}var Cn=null,mi=!1;function Wi(o,a,p){for(p=p.child;p!==null;)Wd(o,a,p),p=p.sibling}function Wd(o,a,p){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount($u,p)}catch{}switch(p.tag){case 5:Kt||zl(p,a);case 6:var v=Cn,w=mi;Cn=null,Wi(o,a,p),Cn=v,mi=w,Cn!==null&&(mi?(o=Cn,p=p.stateNode,o.nodeType===8?o.parentNode.removeChild(p):o.removeChild(p)):Cn.removeChild(p.stateNode));break;case 18:Cn!==null&&(mi?(o=Cn,p=p.stateNode,o.nodeType===8?pd(o.parentNode,p):o.nodeType===1&&pd(o,p),Et(o)):pd(Cn,p.stateNode));break;case 4:v=Cn,w=mi,Cn=p.stateNode.containerInfo,mi=!0,Wi(o,a,p),Cn=v,mi=w;break;case 0:case 11:case 14:case 15:if(!Kt&&(v=p.updateQueue,v!==null&&(v=v.lastEffect,v!==null))){w=v=v.next;do{var C=w,I=C.destroy;C=C.tag,I!==void 0&&((C&2)!==0||(C&4)!==0)&&Ha(p,a,I),w=w.next}while(w!==v)}Wi(o,a,p);break;case 1:if(!Kt&&(zl(p,a),v=p.stateNode,typeof v.componentWillUnmount=="function"))try{v.props=p.memoizedProps,v.state=p.memoizedState,v.componentWillUnmount()}catch(U){Yt(p,a,U)}Wi(o,a,p);break;case 21:Wi(o,a,p);break;case 22:p.mode&1?(Kt=(v=Kt)||p.memoizedState!==null,Wi(o,a,p),Kt=v):Wi(o,a,p);break;default:Wi(o,a,p)}}function jl(o){var a=o.updateQueue;if(a!==null){o.updateQueue=null;var p=o.stateNode;p===null&&(p=o.stateNode=new rr),a.forEach(function(v){var w=my.bind(null,o,v);p.has(v)||(p.add(v),v.then(w,w))})}}function _r(o,a){var p=a.deletions;if(p!==null)for(var v=0;vw&&(w=I),v&=~C}if(v=w,v=Bt()-v,v=(120>v?120:480>v?480:1080>v?1080:1920>v?1920:3e3>v?3e3:4320>v?4320:1960*Fm(v/1960))-v,10o?16:o,Zo===null)var v=!1;else{if(o=Zo,Zo=null,ir=0,(gt&6)!==0)throw Error(n(331));var w=gt;for(gt|=4,Re=o.current;Re!==null;){var C=Re,I=C.child;if((Re.flags&16)!==0){var U=C.deletions;if(U!==null){for(var X=0;XBt()-Yd?zs(o,0):Mc|=p),yr(o,a)}function Um(o,a){a===0&&((o.mode&1)===0?a=1:(a=Iu,Iu<<=1,(Iu&130023424)===0&&(Iu=4194304)));var p=or();o=po(o,a),o!==null&&(da(o,a,p),yr(o,p))}function hy(o){var a=o.memoizedState,p=0;a!==null&&(p=a.retryLane),Um(o,p)}function my(o,a){var p=0;switch(o.tag){case 13:var v=o.stateNode,w=o.memoizedState;w!==null&&(p=w.retryLane);break;case 19:v=o.stateNode;break;default:throw Error(n(314))}v!==null&&v.delete(a),Um(o,p)}var Km;Km=function(o,a,p){if(o!==null)if(o.memoizedProps!==a.pendingProps||pr.current)nr=!0;else{if((o.lanes&p)===0&&(a.flags&128)===0)return nr=!1,Im(o,a,p);nr=(o.flags&131072)!==0}else nr=!1,Ft&&(a.flags&1048576)!==0&&hm(a,sc,a.index);switch(a.lanes=0,a.tag){case 2:var v=a.type;_c(o,a),o=a.pendingProps;var w=Pl(a,Vn.current);Ho(a,p),w=Ms(null,a,v,o,w,p);var C=mc();return a.flags|=1,typeof w=="object"&&w!==null&&typeof w.render=="function"&&w.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,hr(v)?(C=!0,Vr(a)):C=!1,a.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,fc(a),w.updater=kc,a.stateNode=w,w._reactInternals=a,Md(a,v,o,p),a=Bd(null,a,v,!0,C,p)):(a.tag=0,Ft&&C&&_a(a),Mn(null,a,w,p),a=a.child),a;case 16:v=a.elementType;e:{switch(_c(o,a),o=a.pendingProps,w=v._init,v=w(v._payload),a.type=v,w=a.tag=vy(v),o=Yr(v,o),w){case 0:a=zd(null,a,v,o,p);break e;case 1:a=jd(null,a,v,o,p);break e;case 11:a=_m(null,a,v,o,p);break e;case 14:a=Nd(null,a,v,Yr(v.type,o),p);break e}throw Error(n(306,v,""))}return a;case 0:return v=a.type,w=a.pendingProps,w=a.elementType===v?w:Yr(v,w),zd(o,a,v,w,p);case 1:return v=a.type,w=a.pendingProps,w=a.elementType===v?w:Yr(v,w),jd(o,a,v,w,p);case 3:e:{if($m(a),o===null)throw Error(n(387));v=a.pendingProps,C=a.memoizedState,w=C.element,ym(o,a),$l(a,v,null,p);var I=a.memoizedState;if(v=I.element,C.isDehydrated)if(C={element:v,isDehydrated:!1,cache:I.cache,pendingSuspenseBoundaries:I.pendingSuspenseBoundaries,transitions:I.transitions},a.updateQueue.baseState=C,a.memoizedState=C,a.flags&256){w=Ns(Error(n(423)),a),a=Ki(o,a,v,p,w);break e}else if(v!==w){w=Ns(Error(n(424)),a),a=Ki(o,a,v,p,w);break e}else for(Pr=Bo(a.stateNode.containerInfo.firstChild),Kn=a,Ft=!0,di=null,p=ac(a,null,v,p),a.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Oi(),v===w){a=hi(o,a,p);break e}Mn(o,a,v,p)}a=a.child}return a;case 5:return wd(a),o===null&&mr(a),v=a.type,w=a.pendingProps,C=o!==null?o.memoizedProps:null,I=w.children,Pa(v,w)?I=null:C!==null&&Pa(v,C)&&(a.flags|=32),Od(o,a),Mn(o,a,I,p),a.child;case 6:return o===null&&mr(a),null;case 13:return Tc(o,a,p);case 4:return xd(a,a.stateNode.containerInfo),v=a.pendingProps,o===null?a.child=Zt(a,null,v,p):Mn(o,a,v,p),a.child;case 11:return v=a.type,w=a.pendingProps,w=a.elementType===v?w:Yr(v,w),_m(o,a,v,w,p);case 7:return Mn(o,a,a.pendingProps,p),a.child;case 8:return Mn(o,a,a.pendingProps.children,p),a.child;case 12:return Mn(o,a,a.pendingProps.children,p),a.child;case 10:e:{if(v=a.type._context,w=a.pendingProps,C=a.memoizedProps,I=w.value,It(Aa,v._currentValue),v._currentValue=I,C!==null)if(ce(C.value,I)){if(C.children===w.children&&!pr.current){a=hi(o,a,p);break e}}else for(C=a.child,C!==null&&(C.return=a);C!==null;){var U=C.dependencies;if(U!==null){I=C.child;for(var X=U.firstContext;X!==null;){if(X.context===v){if(C.tag===1){X=ho(-1,p&-p),X.tag=2;var de=C.updateQueue;if(de!==null){de=de.shared;var be=de.pending;be===null?X.next=X:(X.next=be.next,be.next=X),de.pending=X}}C.lanes|=p,X=C.alternate,X!==null&&(X.lanes|=p),Ln(C.return,p,a),U.lanes|=p;break}X=X.next}}else if(C.tag===10)I=C.type===a.type?null:C.child;else if(C.tag===18){if(I=C.return,I===null)throw Error(n(341));I.lanes|=p,U=I.alternate,U!==null&&(U.lanes|=p),Ln(I,p,a),I=C.sibling}else I=C.child;if(I!==null)I.return=C;else for(I=C;I!==null;){if(I===a){I=null;break}if(C=I.sibling,C!==null){C.return=I.return,I=C;break}I=I.return}C=I}Mn(o,a,w.children,p),a=a.child}return a;case 9:return w=a.type,v=a.pendingProps.children,Ho(a,p),w=Wr(w),v=v(w),a.flags|=1,Mn(o,a,v,p),a.child;case 14:return v=a.type,w=Yr(v,a.pendingProps),w=Yr(v.type,w),Nd(o,a,v,w,p);case 15:return Ui(o,a,a.type,a.pendingProps,p);case 17:return v=a.type,w=a.pendingProps,w=a.elementType===v?w:Yr(v,w),_c(o,a),a.tag=1,hr(v)?(o=!0,Vr(a)):o=!1,Ho(a,p),Ds(a,v,w),Md(a,v,w,p),Bd(null,a,v,!0,o,p);case 19:return Yo(o,a,p);case 22:return Fd(o,a,p)}throw Error(n(156,a.tag))};function Wm(o,a){return $h(o,a)}function gy(o,a,p,v){this.tag=o,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qr(o,a,p,v){return new gy(o,a,p,v)}function Bc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function vy(o){if(typeof o=="function")return Bc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Y)return 11;if(o===fe)return 14}return 2}function bi(o,a){var p=o.alternate;return p===null?(p=Qr(o.tag,a,o.key,o.mode),p.elementType=o.elementType,p.type=o.type,p.stateNode=o.stateNode,p.alternate=o,o.alternate=p):(p.pendingProps=a,p.type=o.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=o.flags&14680064,p.childLanes=o.childLanes,p.lanes=o.lanes,p.child=o.child,p.memoizedProps=o.memoizedProps,p.memoizedState=o.memoizedState,p.updateQueue=o.updateQueue,a=o.dependencies,p.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},p.sibling=o.sibling,p.index=o.index,p.ref=o.ref,p}function Vc(o,a,p,v,w,C){var I=2;if(v=o,typeof o=="function")Bc(o)&&(I=1);else if(typeof o=="string")I=5;else e:switch(o){case J:return Bs(p.children,w,C,a);case re:I=8,w|=8;break;case ae:return o=Qr(12,p,a,w|2),o.elementType=ae,o.lanes=C,o;case te:return o=Qr(13,p,a,w),o.elementType=te,o.lanes=C,o;case G:return o=Qr(19,p,a,w),o.elementType=G,o.lanes=C,o;case q:return Uc(p,w,C,a);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case j:I=10;break e;case B:I=9;break e;case Y:I=11;break e;case fe:I=14;break e;case Z:I=16,v=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return a=Qr(I,p,a,w),a.elementType=o,a.type=v,a.lanes=C,a}function Bs(o,a,p,v){return o=Qr(7,o,v,a),o.lanes=p,o}function Uc(o,a,p,v){return o=Qr(22,o,v,a),o.elementType=q,o.lanes=p,o.stateNode={isHidden:!1},o}function rp(o,a,p){return o=Qr(6,o,null,a),o.lanes=p,o}function ip(o,a,p){return a=Qr(4,o.children!==null?o.children:[],o.key,a),a.lanes=p,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}function yy(o,a,p,v,w){this.tag=a,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fa(0),this.expirationTimes=fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fa(0),this.identifierPrefix=v,this.onRecoverableError=w,this.mutableSourceEagerHydrationData=null}function op(o,a,p,v,w,C,I,U,X){return o=new yy(o,a,p,U,X),a===1?(a=1,C===!0&&(a|=8)):a=0,C=Qr(3,null,null,a),o.current=C,C.stateNode=o,C.memoizedState={element:v,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},fc(C),o}function by(o,a,p){var v=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Oy.exports=XR(),Oy.exports}var s1;function QR(){if(s1)return tg;s1=1;var e=gE();return tg.createRoot=e.createRoot,tg.hydrateRoot=e.hydrateRoot,tg}var JR=QR();function nx(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=S.createContext(void 0);i.displayName=r;function s(){var l;const c=S.useContext(i);if(!c&&t){const d=new Error(n);throw d.name="ContextError",(l=Error.captureStackTrace)==null||l.call(Error,d,s),d}return c}return[i.Provider,s,i]}function ZR(e){return{UNSAFE_getDOMNode(){return e.current}}}function Ji(e){const t=S.useRef(null);return S.useImperativeHandle(e,()=>t.current),t}function rx(e){return Array.isArray(e)}function eL(e){return rx(e)&&e.length===0}function ix(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!rx(e)}function tL(e){return ix(e)&&Object.keys(e).length===0}function nL(e){return rx(e)?eL(e):ix(e)?tL(e):e==null||e===""}function rL(e){return typeof e=="function"}var Me=e=>e?"true":void 0;function vE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tix(e)?e instanceof Array?[...e]:e[t]:e,iL=(...e)=>{let t=" ";for(const n of e)if(typeof n=="string"&&n.length>0){t=n;break}return t},oL=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function l1(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function sL(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function LG(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function tl(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function lL(e,t,n){return Math.min(Math.max(e,t),n)}function aL(e,t=100){return Math.min(Math.max(e,0),t)}var a1={};function uL(e,t,...n){const i=`[Hero UI] : ${e}`;typeof console>"u"||a1[i]||(a1[i]=!0)}function gf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}var u1=new Map;function cL(e,t){if(e===t)return e;let n=u1.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=u1.get(t);return r?(r.forEach(i=>i.current=e),e):t}function mn(...e){let t={...e[0]};for(let n=1;n=65&&i.charCodeAt(2)<=90?t[i]=gf(s,l):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?t[i]=hn(s,l):i==="id"&&s&&l?t.id=cL(s,l):t[i]=l!==void 0?l:s}}return t}function yE(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const s=c1(i,t);return n||(n=typeof s=="function"),s});if(n)return()=>{r.forEach((i,s)=>{typeof i=="function"?i?.():c1(e[s],null)})}}}function c1(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function fL(e,t){if(e!=null){if(rL(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function dL(...e){return t=>{e.forEach(n=>fL(n,t))}}function pL(){const e=()=>()=>{};return S.useSyncExternalStore(e,()=>!0,()=>!1)}var hL=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),mL=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),f1=/^(data-.*)$/,gL=/^(aria-.*)$/,ng=/^(on[A-Z].*)$/;function vf(e,t={}){let{labelable:n=!0,enabled:r=!0,propNames:i,omitPropNames:s,omitEventNames:l,omitDataProps:c,omitEventProps:d}=t,h={};if(!r)return e;for(const m in e)s?.has(m)||l?.has(m)&&ng.test(m)||ng.test(m)&&!mL.has(m)||c&&f1.test(m)||d&&ng.test(m)||(Object.prototype.hasOwnProperty.call(e,m)&&(hL.has(m)||n&&gL.test(m)||i?.has(m)||f1.test(m))||ng.test(m))&&(h[m]=e[m]);return h}var[vL,Ti]=nx({name:"ProviderContext",strict:!1});const yL=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),bL=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function bE(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return yL.has(n.script)}let t=e.split("-")[0];return bL.has(t)}const xE={prefix:String(Math.round(Math.random()*1e10)),current:0},wE=We.createContext(xE),xL=We.createContext(!1);let By=new WeakMap;function wL(e=!1){let t=S.useContext(wE),n=S.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let l=By.get(s);l==null?By.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==l.state&&(t.current=l.id,By.delete(s))}n.current=++t.current}return n.current}function SL(e){let t=S.useContext(wE),n=wL(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function kL(e){let t=We.useId(),[n]=S.useState(fh()),r=n?"react-aria":`react-aria${xE.prefix}`;return e||`${r}-${t}`}const CL=typeof We.useId=="function"?kL:SL;function EL(){return!1}function PL(){return!0}function TL(e){return()=>{}}function fh(){return typeof We.useSyncExternalStore=="function"?We.useSyncExternalStore(TL,EL,PL):S.useContext(xL)}const _L=Symbol.for("react-aria.i18n.locale");function SE(){let e=typeof window<"u"&&window[_L]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:bE(e)?"rtl":"ltr"}}let B0=SE(),Ep=new Set;function d1(){B0=SE();for(let e of Ep)e(B0)}function kE(){let e=fh(),[t,n]=S.useState(B0);return S.useEffect(()=>(Ep.size===0&&window.addEventListener("languagechange",d1),Ep.add(n),()=>{Ep.delete(n),Ep.size===0&&window.removeEventListener("languagechange",d1)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const CE=We.createContext(null);function $L(e){let{locale:t,children:n}=e,r=kE(),i=We.useMemo(()=>t?{locale:t,direction:bE(t)?"rtl":"ltr"}:r,[r,t]);return We.createElement(CE.Provider,{value:i},n)}function dh(){let e=kE();return S.useContext(CE)||e}const IL=Symbol.for("react-aria.i18n.locale"),AL=Symbol.for("react-aria.i18n.strings");let Qc;class lv{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=RL(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[IL];if(Qc===void 0){let i=window[AL];if(!i)return null;Qc={};for(let s in i)Qc[s]=new lv({[n]:i[s]},n)}let r=Qc?.[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function RL(e,t,n="en-US"){if(t[e])return t[e];let r=LL(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function LL(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const p1=new Map,h1=new Map;class ML{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let s=this.locale+":"+r,l=p1.get(s);l||(l=new Intl.PluralRules(this.locale,{type:r}),p1.set(s,l));let c=l.select(t);return i=n[c]||n.other,typeof i=="function"?i():i}number(t){let n=h1.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),h1.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const m1=new WeakMap;function DL(e){let t=m1.get(e);return t||(t=new lv(e),m1.set(e,t)),t}function NL(e,t){return t&&lv.getGlobalDictionaryForPackage(t)||DL(e)}function FL(e,t){let{locale:n}=dh(),r=NL(e,t);return S.useMemo(()=>new ML(n,r),[n,r])}function OL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zL(e,t,n){OL(e,t),t.set(e,n)}const en=typeof document<"u"?We.useLayoutEffect:()=>{};function On(e){const t=S.useRef(null);return en(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function jL(e){let[t,n]=S.useState(e),r=S.useRef(null),i=On(()=>{if(!r.current)return;let l=r.current.next();if(l.done){r.current=null;return}t===l.value?i():n(l.value)});en(()=>{r.current&&i()});let s=On(l=>{r.current=l(t),i()});return[t,s]}let BL=!!(typeof window<"u"&&window.document&&window.document.createElement),cf=new Map,Pp;typeof FinalizationRegistry<"u"&&(Pp=new FinalizationRegistry(e=>{cf.delete(e)}));function yf(e){let[t,n]=S.useState(e),r=S.useRef(null),i=CL(t),s=S.useRef(null);if(Pp&&Pp.register(s,i),BL){const l=cf.get(i);l&&!l.includes(r)?l.push(r):cf.set(i,[r])}return en(()=>{let l=i;return()=>{Pp&&Pp.unregister(s),cf.delete(l)}},[i]),S.useEffect(()=>{let l=r.current;return l&&n(l),()=>{l&&(r.current=null)}}),i}function VL(e,t){if(e===t)return e;let n=cf.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=cf.get(t);return r?(r.forEach(i=>i.current=e),e):t}function V0(e=[]){let t=yf(),[n,r]=jL(t),i=S.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return en(i,[t,i,...e]),n}function bf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Zi=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function UL(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function KL(e){return UL(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let WL=!1,HL=!1;function MG(){return WL}function av(){return HL}function ii(e,t){if(!av())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:KL(n)?n=n.host:n=n.parentNode}return!1}const Dr=(e=document)=>{var t;if(!av())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function Sn(e){return av()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class GL{get currentNode(){return this._currentNode}set currentNode(t){if(!ii(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const n=[];let r=t,i=t;for(this._currentNode=t;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=r,c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});n.push(c),c.currentNode=i,this._currentSetFor.add(c),r=i=l.host}else r=r.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(s),s.currentNode=i,this._currentSetFor.add(s),this._walkerStack=n}get doc(){return this._doc}firstChild(){let t=this.currentNode,n=this.nextNode();return ii(t,n)?(n&&(this.currentNode=n),n):(this.currentNode=t,null)}lastChild(){let n=this._walkerStack[0].lastChild();return n&&(this.currentNode=n),n}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(t):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(t)),i===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let r=this.nextNode();return r&&(this.currentNode=r),r}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null;return null}const n=t.previousNode();if(n){if(n.shadowRoot){var r;let s;if(typeof this.filter=="function"?s=this.filter(n):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(s=this.filter.acceptNode(n)),s===NodeFilter.FILTER_ACCEPT)return n&&(this.currentNode=n),n;let l=this.lastChild();return l&&(this.currentNode=l),l}return n&&(this.currentNode=n),n}else if(this._walkerStack.length>1){this._walkerStack.shift();let i=this.previousNode();return i&&(this.currentNode=i),i}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,n,r,i){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const d=l.shadowRoot;if(d){const h=this._doc.createTreeWalker(d,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(h),NodeFilter.FILTER_ACCEPT}else{var c;if(typeof this.filter=="function")return this.filter(l);if(!((c=this.filter)===null||c===void 0)&&c.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=n,this.filter=i??null,this.whatToShow=r??NodeFilter.SHOW_ALL,this._currentNode=n,this._walkerStack.unshift(t.createTreeWalker(n,r,this._acceptNode));const s=n.shadowRoot;if(s){const l=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function qL(e,t,n,r){return av()?new GL(e,t,n,r):e.createTreeWalker(t,n,r)}function EE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=bf(s,l):(i==="className"||i==="UNSAFE_className")&&typeof s=="string"&&typeof l=="string"?t[i]=YL(s,l):i==="id"&&s&&l?t.id=VL(s,l):t[i]=l!==void 0?l:s}}return t}const XL=new Set(["id"]),QL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),JL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),ZL=/^(data-.*)$/;function $f(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,s={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(XL.has(l)||n&&QL.has(l)||r&&JL.has(l)||i?.has(l)||ZL.test(l))&&(s[l]=e[l]);return s}function Ql(e){if(eM())e.focus({preventScroll:!0});else{let t=tM(e);e.focus(),nM(t)}}let rg=null;function eM(){if(rg==null){rg=!1;try{document.createElement("div").focus({get preventScroll(){return rg=!0,!0}})}catch{}}return rg}function tM(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function ox(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function nl(e){let t=null;return()=>(t==null&&(t=e()),t)}const vu=nl(function(){return ox(/^Mac/i)}),rM=nl(function(){return ox(/^iPhone/i)}),PE=nl(function(){return ox(/^iPad/i)||vu()&&navigator.maxTouchPoints>1}),cv=nl(function(){return rM()||PE()}),iM=nl(function(){return vu()||cv()}),TE=nl(function(){return uv(/AppleWebKit/i)&&!_E()}),_E=nl(function(){return uv(/Chrome/i)}),sx=nl(function(){return uv(/Android/i)}),oM=nl(function(){return uv(/Firefox/i)}),$E=S.createContext({isNative:!0,open:aM,useHref:e=>e});function sM(e){let{children:t,navigate:n,useHref:r}=e,i=S.useMemo(()=>({isNative:!1,open:(s,l,c,d)=>{IE(s,h=>{lM(h,l)?n(c,d):yu(h,l)})},useHref:r||(s=>s)}),[n,r]);return We.createElement($E.Provider,{value:i},t)}function lx(){return S.useContext($E)}function lM(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function yu(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}=t;oM()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(vu()?s=!0:l=!0);let h=TE()&&vu()&&!PE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:l,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:s,ctrlKey:l,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});yu.isOpening=n,Ql(e),e.dispatchEvent(h),yu.isOpening=!1}yu.isOpening=!1;function IE(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function aM(e,t){IE(e,n=>yu(n,t))}function DG(e){let t=lx();var n;const r=t.useHref((n=e.href)!==null&&n!==void 0?n:"");return{"data-href":e.href?r:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}function NG(e){let t=lx();var n;const r=t.useHref((n=e?.href)!==null&&n!==void 0?n:"");return{href:e?.href?r:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Gl=new Map,U0=new Set;function g1(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Gl.get(r.target);i||(i=new Set,Gl.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Gl.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Gl.delete(r.target)),Gl.size===0)){for(let s of U0)s();U0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?g1():document.addEventListener("DOMContentLoaded",g1));function uM(){for(const[e]of Gl)"isConnected"in e&&!e.isConnected&&Gl.delete(e)}function AE(e){requestAnimationFrame(()=>{uM(),Gl.size===0?e():U0.add(e)})}function ax(){let e=S.useRef(new Map),t=S.useCallback((i,s,l,c)=>{let d=c?.once?(...h)=>{e.current.delete(l),l(...h)}:l;e.current.set(l,{type:s,eventTarget:i,fn:d,options:c}),i.addEventListener(s,d,c)},[]),n=S.useCallback((i,s,l,c)=>{var d;let h=((d=e.current.get(l))===null||d===void 0?void 0:d.fn)||l;i.removeEventListener(s,h,c),e.current.delete(l)},[]),r=S.useCallback(()=>{e.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return S.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function RE(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=yf(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function v1(e,t){const n=S.useRef(!0),r=S.useRef(null);en(()=>(n.current=!0,()=>{n.current=!1}),[]),en(()=>{n.current?n.current=!1:(!r.current||t.some((i,s)=>!Object.is(i,r[s])))&&e(),r.current=t},t)}function cM(){return typeof window.ResizeObserver<"u"}function y1(e){const{ref:t,box:n,onResize:r}=e;S.useEffect(()=>{let i=t?.current;if(i)if(cM()){const s=new window.ResizeObserver(l=>{l.length&&r()});return s.observe(i,{box:n}),()=>{i&&s.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function LE(e,t){en(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Wp(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function ME(e,t){let n=e;for(Wp(n,t)&&(n=n.parentElement);n&&!Wp(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function fM(e,t){const n=[];for(;e&&e!==document.documentElement;)Wp(e,t)&&n.push(e),e=e.parentElement;return n}function ig(e,t,n,r){let i=On(n),s=n==null;S.useEffect(()=>{if(s||!e.current)return;let l=e.current;return l.addEventListener(t,i,r),()=>{l.removeEventListener(t,i,r)}},[e,t,r,s,i])}function DE(e,t){let n=b1(e,t,"left"),r=b1(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,l=e.scrollLeft,c=e.scrollTop,{borderTopWidth:d,borderLeftWidth:h,scrollPaddingTop:m,scrollPaddingRight:g,scrollPaddingBottom:b,scrollPaddingLeft:x}=getComputedStyle(e),k=l+parseInt(h,10),P=c+parseInt(d,10),_=k+e.clientWidth,T=P+e.clientHeight,A=parseInt(m,10)||0,L=parseInt(b,10)||0,z=parseInt(g,10)||0,K=parseInt(x,10)||0;n<=l+K?l=n-parseInt(h,10)-K:n+i>_-z&&(l+=n+i-_+z),r<=P+A?c=r-parseInt(d,10)-A:r+s>T-L&&(c+=r+s-T+L),e.scrollLeft=l,e.scrollTop=c}function b1(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function x1(e,t){if(e&&document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let d=fM(e);for(let h of d)DE(h,e)}else{var n;let{left:d,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:m,top:g}=e.getBoundingClientRect();if(Math.abs(d-m)>1||Math.abs(h-g)>1){var r,i,s;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}}}function NE(e){return e.mozInputSource===0&&e.isTrusted?!0:sx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function dM(e){return!sx()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function pM(e,t,n){let r=S.useRef(t),i=On(()=>{n&&n(r.current)});S.useEffect(()=>{var s;let l=e==null||(s=e.current)===null||s===void 0?void 0:s.form;return l?.addEventListener("reset",i),()=>{l?.removeEventListener("reset",i)}},[e,i])}const hM="react-aria-clear-focus",mM="react-aria-focus";function cp(e){return vu()?e.metaKey:e.ctrlKey}var FE=gE();const OE=sv(FE),ux=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],gM=ux.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ux.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const vM=ux.join(':not([hidden]):not([tabindex="-1"]),');function zE(e){return e.matches(gM)}function yM(e){return e.matches(vM)}function If(e,t,n){let[r,i]=S.useState(e||t),s=S.useRef(e!==void 0),l=e!==void 0;S.useEffect(()=>{s.current,s.current=l},[l]);let c=l?e:r,d=S.useCallback((h,...m)=>{let g=(b,...x)=>{n&&(Object.is(c,b)||n(b,...x)),l||(c=b)};typeof h=="function"?i((x,...k)=>{let P=h(l?c:x,...k);return g(P,...m),l?x:P}):(l||i(h),g(h,...m))},[l,c,n]);return[c,d]}function Ng(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let Vy=new Map,K0=!1;try{K0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Fg=!1;try{Fg=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const jE={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class bM{format(t){let n="";if(!K0&&this.options.signDisplay!=null?n=wM(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Fg){var r;let{unit:i,unitDisplay:s="short",locale:l}=this.resolvedOptions();if(!i)return n;let c=(r=jE[i])===null||r===void 0?void 0:r[s];n+=c[l]||c.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!K0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Fg&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=xM(t,n),this.options=n}}function xM(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Fg){var r;let{unit:l,unitDisplay:c="short"}=t;if(!l)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=jE[l])===null||r===void 0)&&r[c]))throw new Error(`Unsupported unit ${l} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((l,c)=>l[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),s=e.format(n),l=i.replace(s,"").replace(/\u200e|\u061C/,"");return[...l].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(s,"!!!").replace(l,"+").replace("!!!",s)}else return e.format(n)}}function SM(e={}){let{locale:t}=dh();return S.useMemo(()=>new bM(t,e),[t,e])}let Uy=new Map;function kM(e){let{locale:t}=dh(),n=t+(e?Object.entries(e).sort((i,s)=>i[0]-1&&e.splice(n,1)}const Js=(e,t,n)=>n>t?t:n{};const fs={},BE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function VE(e){return typeof e=="object"&&e!==null}const UE=e=>/^0[^.\s]+$/u.test(e);function mx(e){let t;return()=>(t===void 0&&(t=e()),t)}const eo=e=>e,CM=(e,t)=>n=>t(e(n)),hh=(...e)=>e.reduce(CM),Gp=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class gx{constructor(){this.subscriptions=[]}add(t){return dx(this.subscriptions,t),()=>px(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,us=e=>e/1e3;function KE(e,t){return t?e*(1e3/t):0}const WE=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,EM=1e-7,PM=12;function TM(e,t,n,r,i){let s,l,c=0;do l=t+(n-t)/2,s=WE(l,r,i)-e,s>0?n=l:t=l;while(Math.abs(s)>EM&&++cTM(s,0,1,e,n);return s=>s===0||s===1?s:WE(i(s),t,r)}const HE=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,GE=e=>t=>1-e(1-t),qE=mh(.33,1.53,.69,.99),vx=GE(qE),YE=HE(vx),XE=e=>(e*=2)<1?.5*vx(e):.5*(2-Math.pow(2,-10*(e-1))),yx=e=>1-Math.sin(Math.acos(e)),QE=GE(yx),JE=HE(yx),_M=mh(.42,0,1,1),$M=mh(0,0,.58,1),ZE=mh(.42,0,.58,1),IM=e=>Array.isArray(e)&&typeof e[0]!="number",eP=e=>Array.isArray(e)&&typeof e[0]=="number",AM={linear:eo,easeIn:_M,easeInOut:ZE,easeOut:$M,circIn:yx,circInOut:JE,circOut:QE,backIn:vx,backInOut:YE,backOut:qE,anticipate:XE},RM=e=>typeof e=="string",w1=e=>{if(eP(e)){hx(e.length===4);const[t,n,r,i]=e;return mh(t,n,r,i)}else if(RM(e))return AM[e];return e},og=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function LM(e,t){let n=new Set,r=new Set,i=!1,s=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(h.schedule(m),e()),m(c)}const h={schedule:(m,g=!1,b=!1)=>{const k=b&&i?n:r;return g&&l.add(m),k.has(m)||k.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),n.clear(),i=!1,s&&(s=!1,h.process(m))}};return h}const MM=40;function tP(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=og.reduce((L,z)=>(L[z]=LM(s),L),{}),{setup:c,read:d,resolveKeyframes:h,preUpdate:m,update:g,preRender:b,render:x,postRender:k}=l,P=()=>{const L=fs.useManualTiming?i.timestamp:performance.now();n=!1,fs.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(L-i.timestamp,MM),1)),i.timestamp=L,i.isProcessing=!0,c.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),x.process(i),k.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(P))},_=()=>{n=!0,r=!0,i.isProcessing||e(P)};return{schedule:og.reduce((L,z)=>{const K=l[z];return L[z]=(M,J=!1,re=!1)=>(n||_(),K.schedule(M,J,re)),L},{}),cancel:L=>{for(let z=0;z(Cg===void 0&&oi.set(lr.isProcessing||fs.useManualTiming?lr.timestamp:performance.now()),Cg),set:e=>{Cg=e,queueMicrotask(DM)}},nP=e=>t=>typeof t=="string"&&t.startsWith(e),bx=nP("--"),NM=nP("var(--"),xx=e=>NM(e)?FM.test(e.split("/*")[0].trim()):!1,FM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Af={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qp={...Af,transform:e=>Js(0,1,e)},sg={...Af,default:1},Rp=e=>Math.round(e*1e5)/1e5,wx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OM(e){return e==null}const zM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sx=(e,t)=>n=>!!(typeof n=="string"&&zM.test(n)&&n.startsWith(e)||t&&!OM(n)&&Object.prototype.hasOwnProperty.call(n,t)),rP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,l,c]=r.match(wx);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},jM=e=>Js(0,255,e),Wy={...Af,transform:e=>Math.round(jM(e))},fu={test:Sx("rgb","red"),parse:rP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Wy.transform(e)+", "+Wy.transform(t)+", "+Wy.transform(n)+", "+Rp(qp.transform(r))+")"};function BM(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const W0={test:Sx("#"),parse:BM,transform:fu.transform},gh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Hl=gh("deg"),cs=gh("%"),et=gh("px"),VM=gh("vh"),UM=gh("vw"),S1={...cs,parse:e=>cs.parse(e)/100,transform:e=>cs.transform(e*100)},rf={test:Sx("hsl","hue"),parse:rP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+cs.transform(Rp(t))+", "+cs.transform(Rp(n))+", "+Rp(qp.transform(r))+")"},_n={test:e=>fu.test(e)||W0.test(e)||rf.test(e),parse:e=>fu.test(e)?fu.parse(e):rf.test(e)?rf.parse(e):W0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fu.transform(e):rf.transform(e),getAnimatableNone:e=>{const t=_n.parse(e);return t.alpha=0,_n.transform(t)}},KM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function WM(e){return isNaN(e)&&typeof e=="string"&&(e.match(wx)?.length||0)+(e.match(KM)?.length||0)>0}const iP="number",oP="color",HM="var",GM="var(",k1="${}",qM=/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 Yp(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const c=t.replace(qM,d=>(_n.test(d)?(r.color.push(s),i.push(oP),n.push(_n.parse(d))):d.startsWith(GM)?(r.var.push(s),i.push(HM),n.push(d)):(r.number.push(s),i.push(iP),n.push(parseFloat(d))),++s,k1)).split(k1);return{values:n,split:c,indexes:r,types:i}}function sP(e){return Yp(e).values}function lP(e){const{split:t,types:n}=Yp(e),r=t.length;return i=>{let s="";for(let l=0;ltypeof e=="number"?0:_n.test(e)?_n.getAnimatableNone(e):e;function XM(e){const t=sP(e);return lP(e)(t.map(YM))}const Zl={test:WM,parse:sP,createTransformer:lP,getAnimatableNone:XM};function Hy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function QM({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,l=0;if(!t)i=s=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;i=Hy(d,c,e+1/3),s=Hy(d,c,e),l=Hy(d,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function Og(e,t){return n=>n>0?t:e}const ln=(e,t,n)=>e+(t-e)*n,Gy=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},JM=[W0,fu,rf],ZM=e=>JM.find(t=>t.test(e));function C1(e){const t=ZM(e);if(!t)return!1;let n=t.parse(e);return t===rf&&(n=QM(n)),n}const E1=(e,t)=>{const n=C1(e),r=C1(t);if(!n||!r)return Og(e,t);const i={...n};return s=>(i.red=Gy(n.red,r.red,s),i.green=Gy(n.green,r.green,s),i.blue=Gy(n.blue,r.blue,s),i.alpha=ln(n.alpha,r.alpha,s),fu.transform(i))},H0=new Set(["none","hidden"]);function eD(e,t){return H0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tD(e,t){return n=>ln(e,t,n)}function kx(e){return typeof e=="number"?tD:typeof e=="string"?xx(e)?Og:_n.test(e)?E1:iD:Array.isArray(e)?aP:typeof e=="object"?_n.test(e)?E1:nD:Og}function aP(e,t){const n=[...e],r=n.length,i=e.map((s,l)=>kx(s)(s,t[l]));return s=>{for(let l=0;l{for(const s in r)n[s]=r[s](i);return n}}function rD(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Zl.createTransformer(t),r=Yp(e),i=Yp(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?H0.has(e)&&!i.values.length||H0.has(t)&&!r.values.length?eD(e,t):hh(aP(rD(r,i),i.values),n):Og(e,t)};function uP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ln(e,t,n):kx(e)(e,t)}const oD=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Xt.update(t,n),stop:()=>Jl(t),now:()=>lr.isProcessing?lr.timestamp:oi.now()}},cP=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=zg?1/0:t}function sD(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Cx(r),zg);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:us(i)}}const lD=5;function fP(e,t,n){const r=Math.max(t-lD,0);return KE(n-e(r),t-r)}const pn={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},qy=.001;function aD({duration:e=pn.duration,bounce:t=pn.bounce,velocity:n=pn.velocity,mass:r=pn.mass}){let i,s,l=1-t;l=Js(pn.minDamping,pn.maxDamping,l),e=Js(pn.minDuration,pn.maxDuration,us(e)),l<1?(i=h=>{const m=h*l,g=m*e,b=m-n,x=G0(h,l),k=Math.exp(-g);return qy-b/x*k},s=h=>{const g=h*l*e,b=g*n+n,x=Math.pow(l,2)*Math.pow(h,2)*e,k=Math.exp(-g),P=G0(Math.pow(h,2),l);return(-i(h)+qy>0?-1:1)*((b-x)*k)/P}):(i=h=>{const m=Math.exp(-h*e),g=(h-n)*e+1;return-qy+m*g},s=h=>{const m=Math.exp(-h*e),g=(n-h)*(e*e);return m*g});const c=5/e,d=cD(i,s,c);if(e=as(e),isNaN(d))return{stiffness:pn.stiffness,damping:pn.damping,duration:e};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const uD=12;function cD(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function pD(e){let t={velocity:pn.velocity,stiffness:pn.stiffness,damping:pn.damping,mass:pn.mass,isResolvedFromDuration:!1,...e};if(!P1(e,dD)&&P1(e,fD))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Js(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:pn.mass,stiffness:i,damping:s}}else{const n=aD(e);t={...t,...n,mass:pn.mass},t.isResolvedFromDuration=!0}return t}function jg(e=pn.visualDuration,t=pn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:d,damping:h,mass:m,duration:g,velocity:b,isResolvedFromDuration:x}=pD({...n,velocity:-us(n.velocity||0)}),k=b||0,P=h/(2*Math.sqrt(d*m)),_=l-s,T=us(Math.sqrt(d/m)),A=Math.abs(_)<5;r||(r=A?pn.restSpeed.granular:pn.restSpeed.default),i||(i=A?pn.restDelta.granular:pn.restDelta.default);let L;if(P<1){const K=G0(T,P);L=M=>{const J=Math.exp(-P*T*M);return l-J*((k+P*T*_)/K*Math.sin(K*M)+_*Math.cos(K*M))}}else if(P===1)L=K=>l-Math.exp(-T*K)*(_+(k+T*_)*K);else{const K=T*Math.sqrt(P*P-1);L=M=>{const J=Math.exp(-P*T*M),re=Math.min(K*M,300);return l-J*((k+P*T*_)*Math.sinh(re)+K*_*Math.cosh(re))/K}}const z={calculatedDuration:x&&g||null,next:K=>{const M=L(K);if(x)c.done=K>=g;else{let J=K===0?k:0;P<1&&(J=K===0?as(k):fP(L,K,M));const re=Math.abs(J)<=r,ae=Math.abs(l-M)<=i;c.done=re&&ae}return c.value=c.done?l:M,c},toString:()=>{const K=Math.min(Cx(z),zg),M=cP(J=>z.next(K*J).value,K,30);return K+"ms "+M},toTransition:()=>{}};return z}jg.applyToOptions=e=>{const t=sD(e,100,jg);return e.ease=t.ease,e.duration=as(t.duration),e.type="keyframes",e};function q0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:d,restDelta:h=.5,restSpeed:m}){const g=e[0],b={done:!1,value:g},x=re=>c!==void 0&&red,k=re=>c===void 0?d:d===void 0||Math.abs(c-re)-P*Math.exp(-re/r),L=re=>T+A(re),z=re=>{const ae=A(re),j=L(re);b.done=Math.abs(ae)<=h,b.value=b.done?T:j};let K,M;const J=re=>{x(b.value)&&(K=re,M=jg({keyframes:[b.value,k(b.value)],velocity:fP(L,re,b.value),damping:i,stiffness:s,restDelta:h,restSpeed:m}))};return J(0),{calculatedDuration:null,next:re=>{let ae=!1;return!M&&K===void 0&&(ae=!0,z(re),J(re)),K!==void 0&&re>=K?M.next(re-K):(!ae&&z(re),b)}}}function hD(e,t,n){const r=[],i=n||fs.mix||uP,s=e.length-1;for(let l=0;lt[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=hD(t,r,i),d=c.length,h=m=>{if(l&&m1)for(;gh(Js(e[0],e[s-1],m)):h}function gD(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gp(0,t,r);e.push(ln(n,1,i))}}function vD(e){const t=[0];return gD(t,e.length-1),t}function yD(e,t){return e.map(n=>n*t)}function bD(e,t){return e.map(()=>t||ZE).splice(0,e.length-1)}function Lp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=IM(r)?r.map(w1):w1(r),s={done:!1,value:t[0]},l=yD(n&&n.length===t.length?n:vD(t),e),c=mD(l,t,{ease:Array.isArray(i)?i:bD(t,i)});return{calculatedDuration:e,next:d=>(s.value=c(d),s.done=d>=e,s)}}const xD=e=>e!==null;function Ex(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(xD),c=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const wD={decay:q0,inertia:q0,tween:Lp,keyframes:Lp,spring:jg};function dP(e){typeof e.type=="string"&&(e.type=wD[e.type])}class Px{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const SD=e=>e/100;class Tx extends Px{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==oi.now()&&this.tick(oi.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(){const{options:t}=this;dP(t);const{type:n=Lp,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:l=0}=t;let{keyframes:c}=t;const d=n||Lp;d!==Lp&&typeof c[0]!="number"&&(this.mixKeyframes=hh(SD,uP(c[0],c[1])),c=[0,100]);const h=d({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...c].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Cx(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:m,repeat:g,repeatType:b,repeatDelay:x,type:k,onUpdate:P,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-h*(this.playbackSpeed>=0?1:-1),A=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let L=this.currentTime,z=r;if(g){const re=Math.min(this.currentTime,i)/c;let ae=Math.floor(re),j=re%1;!j&&re>=1&&(j=1),j===1&&ae--,ae=Math.min(ae,g+1),ae%2&&(b==="reverse"?(j=1-j,x&&(j-=x/c)):b==="mirror"&&(z=l)),L=Js(0,1,j)*c}const K=A?{done:!1,value:m[0]}:z.next(L);s&&(K.value=s(K.value));let{done:M}=K;!A&&d!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const J=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return J&&k!==q0&&(K.value=Ex(m,this.options,_,this.speed)),P&&P(K.value),J&&this.finish(),K}then(t,n){return this.finished.then(t,n)}get duration(){return us(this.calculatedDuration)}get time(){return us(this.currentTime)}set time(t){t=as(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(oi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=us(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=oD,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(oi.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 kD(e){for(let t=1;te*180/Math.PI,Y0=e=>{const t=du(Math.atan2(e[1],e[0]));return X0(t)},CD={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Y0,rotateZ:Y0,skewX:e=>du(Math.atan(e[1])),skewY:e=>du(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},X0=e=>(e=e%360,e<0&&(e+=360),e),T1=Y0,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ED={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:$1,scale:e=>(_1(e)+$1(e))/2,rotateX:e=>X0(du(Math.atan2(e[6],e[5]))),rotateY:e=>X0(du(Math.atan2(-e[2],e[0]))),rotateZ:T1,rotate:T1,skewX:e=>du(Math.atan(e[4])),skewY:e=>du(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Q0(e){return e.includes("scale")?1:0}function J0(e,t){if(!e||e==="none")return Q0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=ED,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CD,i=c}if(!i)return Q0(t);const s=r[t],l=i[1].split(",").map(TD);return typeof s=="function"?s(l):l[s]}const PD=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return J0(n,t)};function TD(e){return parseFloat(e.trim())}const Rf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Cu=new Set(Rf),I1=e=>e===Af||e===et,_D=new Set(["x","y","z"]),$D=Rf.filter(e=>!_D.has(e));function ID(e){const t=[];return $D.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const mu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>J0(t,"x"),y:(e,{transform:t})=>J0(t,"y")};mu.translateX=mu.x;mu.translateY=mu.y;const gu=new Set;let Z0=!1,eb=!1,tb=!1;function pP(){if(eb){const e=Array.from(gu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=ID(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,l])=>{r.getValue(s)?.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}eb=!1,Z0=!1,gu.forEach(e=>e.complete(tb)),gu.clear()}function hP(){gu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eb=!0)})}function AD(){tb=!0,hP(),pP(),tb=!1}class _x{constructor(t,n,r,i,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(gu.add(this),Z0||(Z0=!0,Xt.read(hP),Xt.resolveKeyframes(pP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&s===void 0&&i.set(t[0])}kD(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),gu.delete(this)}cancel(){this.state==="scheduled"&&(gu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const RD=e=>e.startsWith("--");function LD(e,t,n){RD(t)?e.style.setProperty(t,n):e.style[t]=n}const MD=mx(()=>window.ScrollTimeline!==void 0),DD={};function ND(e,t){const n=mx(e);return()=>DD[t]??n()}const mP=ND(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tp=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,A1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tp([0,.65,.55,1]),circOut:Tp([.55,0,1,.45]),backIn:Tp([.31,.01,.66,-.59]),backOut:Tp([.33,1.53,.69,.99])};function gP(e,t){if(e)return typeof e=="function"?mP()?cP(e,t):"ease-out":eP(e)?Tp(e):Array.isArray(e)?e.map(n=>gP(n,t)||A1.easeOut):A1[e]}function FD(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:l="loop",ease:c="easeOut",times:d}={},h=void 0){const m={[t]:n};d&&(m.offset=d);const g=gP(c,i);Array.isArray(g)&&(m.easing=g);const b={delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(m,b)}function vP(e){return typeof e=="function"&&"applyToOptions"in e}function OD({type:e,...t}){return vP(e)&&mP()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class zD extends Px{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:c,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,hx(typeof t.type!="string");const h=OD(t);this.animation=FD(n,r,i,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Ex(i,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):LD(n,r,m),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(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;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return us(Number(t))}get time(){return us(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=as(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&MD()?(this.animation.timeline=t,eo):n(this)}}const yP={anticipate:XE,backInOut:YE,circInOut:JE};function jD(e){return e in yP}function BD(e){typeof e.ease=="string"&&jD(e.ease)&&(e.ease=yP[e.ease])}const R1=10;class VD extends zD{constructor(t){BD(t),dP(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Tx({...l,autoplay:!1}),d=as(this.finishedTime??this.time);n.setWithVelocity(c.sample(d-R1).value,c.sample(d).value,R1),c.stop()}}const L1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zl.test(e)||e==="0")&&!e.startsWith("url("));function UD(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function GD(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:h}=t.owner.getProps();return HD()&&n&&WD.has(n)&&(n!=="transform"||!h)&&!d&&!r&&i!=="mirror"&&s!==0&&l!=="inertia"}const qD=40;class YD extends Px{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:d,motionValue:h,element:m,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=oi.now();const b={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:l,name:d,motionValue:h,element:m,...g},x=m?.KeyframeResolver||_x;this.keyframeResolver=new x(c,(k,P,_)=>this.onKeyframesResolved(k,P,b,!_),d,h,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:l,velocity:c,delay:d,isHandoff:h,onUpdate:m}=r;this.resolvedAt=oi.now(),KD(t,s,l,c)||((fs.instantAnimations||!d)&&m?.(Ex(t,r,n)),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const b={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>qD?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!h&&GD(b)?new VD({...b,element:b.motionValue.owner.current}):new Tx(b);x.finished.then(()=>this.notifyFinished()).catch(eo),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AD()),this._animation}get duration(){return this.animation.duration}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()}}const XD=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QD(e){const t=XD.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function bP(e,t,n=1){const[r,i]=QD(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return BE(l)?parseFloat(l):l}return xx(i)?bP(i,t,n+1):i}function $x(e,t){return e?.[t]??e?.default??e}const xP=new Set(["width","height","top","left","right","bottom",...Rf]),JD={test:e=>e==="auto",parse:e=>e},wP=e=>t=>t.test(e),SP=[Af,et,cs,Hl,UM,VM,JD],M1=e=>SP.find(wP(e));function ZD(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||UE(e):!0}const e3=new Set(["brightness","contrast","saturate","opacity"]);function t3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wx)||[];if(!r)return e;const i=n.replace(r,"");let s=e3.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const n3=/\b([a-z-]*)\(.*?\)/gu,nb={...Zl,getAnimatableNone:e=>{const t=e.match(n3);return t?t.map(t3).join(" "):e}},D1={...Af,transform:Math.round},r3={rotate:Hl,rotateX:Hl,rotateY:Hl,rotateZ:Hl,scale:sg,scaleX:sg,scaleY:sg,scaleZ:sg,skew:Hl,skewX:Hl,skewY:Hl,distance:et,translateX:et,translateY:et,translateZ:et,x:et,y:et,z:et,perspective:et,transformPerspective:et,opacity:qp,originX:S1,originY:S1,originZ:et},Ix={borderWidth:et,borderTopWidth:et,borderRightWidth:et,borderBottomWidth:et,borderLeftWidth:et,borderRadius:et,radius:et,borderTopLeftRadius:et,borderTopRightRadius:et,borderBottomRightRadius:et,borderBottomLeftRadius:et,width:et,maxWidth:et,height:et,maxHeight:et,top:et,right:et,bottom:et,left:et,padding:et,paddingTop:et,paddingRight:et,paddingBottom:et,paddingLeft:et,margin:et,marginTop:et,marginRight:et,marginBottom:et,marginLeft:et,backgroundPositionX:et,backgroundPositionY:et,...r3,zIndex:D1,fillOpacity:qp,strokeOpacity:qp,numOctaves:D1},i3={...Ix,color:_n,backgroundColor:_n,outlineColor:_n,fill:_n,stroke:_n,borderColor:_n,borderTopColor:_n,borderRightColor:_n,borderBottomColor:_n,borderLeftColor:_n,filter:nb,WebkitFilter:nb},kP=e=>i3[e];function CP(e,t){let n=kP(e);return n!==nb&&(n=Zl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const o3=new Set(["auto","none","0"]);function s3(e,t,n){let r=0,i;for(;r{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const a3=new Set(["opacity","clipPath","filter","transform"]);function u3(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const EP=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function PP(e){return VE(e)&&"offsetHeight"in e}const N1=30,c3=e=>!isNaN(parseFloat(e));class TP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=oi.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=c3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}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 this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>N1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,N1);return KE(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xf(e,t){return new TP(e,t)}const{schedule:Ax}=tP(queueMicrotask,!1),ko={x:!1,y:!1};function _P(){return ko.x||ko.y}function f3(e){return e==="x"||e==="y"?ko[e]?null:(ko[e]=!0,()=>{ko[e]=!1}):ko.x||ko.y?null:(ko.x=ko.y=!0,()=>{ko.x=ko.y=!1})}function $P(e,t){const n=u3(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function F1(e){return!(e.pointerType==="touch"||_P())}function d3(e,t,n={}){const[r,i,s]=$P(e,n),l=c=>{if(!F1(c))return;const{target:d}=c,h=t(d,c);if(typeof h!="function"||!d)return;const m=g=>{F1(g)&&(h(g),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),s}const IP=(e,t)=>t?e===t?!0:IP(e,t.parentElement):!1,Rx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,p3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function h3(e){return p3.has(e.tagName)||e.tabIndex!==-1}const Eg=new WeakSet;function O1(e){return t=>{t.key==="Enter"&&e(t)}}function Yy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const m3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=O1(()=>{if(Eg.has(n))return;Yy(n,"down");const i=O1(()=>{Yy(n,"up")}),s=()=>Yy(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function z1(e){return Rx(e)&&!_P()}function g3(e,t,n={}){const[r,i,s]=$P(e,n),l=c=>{const d=c.currentTarget;if(!z1(c))return;Eg.add(d);const h=t(d,c),m=(x,k)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),Eg.has(d)&&Eg.delete(d),z1(x)&&typeof h=="function"&&h(x,{success:k})},g=x=>{m(x,d===window||d===document||n.useGlobalTarget||IP(d,x.target))},b=x=>{m(x,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",b,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,i),PP(c)&&(c.addEventListener("focus",h=>m3(h,i)),!h3(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function AP(e){return VE(e)&&"ownerSVGElement"in e}function v3(e){return AP(e)&&e.tagName==="svg"}const br=e=>!!(e&&e.getVelocity),y3=[...SP,_n,Zl],b3=e=>y3.find(wP(e)),Xp=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class x3 extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=PP(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function w3({children:e,isPresent:t,anchorX:n,root:r}){const i=S.useId(),s=S.useRef(null),l=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=S.useContext(Xp);return S.useInsertionEffect(()=>{const{width:d,height:h,top:m,left:g,right:b}=l.current;if(t||!s.current||!d||!h)return;const x=n==="left"?`left: ${g}`:`right: ${b}`;s.current.dataset.motionPopId=i;const k=document.createElement("style");c&&(k.nonce=c);const P=r??document.head;return P.appendChild(k),k.sheet&&k.sheet.insertRule(`
- [data-motion-pop-id="${i}"] {
- position: absolute !important;
- width: ${d}px !important;
- height: ${h}px !important;
- ${x}px !important;
- top: ${m}px !important;
- }
- `),()=>{P.removeChild(k),P.contains(k)&&P.removeChild(k)}},[t]),N.jsx(x3,{isPresent:t,childRef:s,sizeRef:l,children:S.cloneElement(e,{ref:s})})}const S3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:l,anchorX:c,root:d})=>{const h=ph(k3),m=S.useId();let g=!0,b=S.useMemo(()=>(g=!1,{id:m,initial:t,isPresent:n,custom:i,onExitComplete:x=>{h.set(x,!0);for(const k of h.values())if(!k)return;r&&r()},register:x=>(h.set(x,!1),()=>h.delete(x))}),[n,h,r]);return s&&g&&(b={...b}),S.useMemo(()=>{h.forEach((x,k)=>h.set(k,!1))},[n]),S.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(e=N.jsx(w3,{isPresent:n,anchorX:c,root:d,children:e})),N.jsx(fv.Provider,{value:b,children:e})};function k3(){return new Map}function RP(e=!0){const t=S.useContext(fv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const l=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const lg=e=>e.key||"";function j1(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Lf=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:l=!1,anchorX:c="left",root:d})=>{const[h,m]=RP(l),g=S.useMemo(()=>j1(e),[e]),b=l&&!h?[]:g.map(lg),x=S.useRef(!0),k=S.useRef(g),P=ph(()=>new Map),[_,T]=S.useState(g),[A,L]=S.useState(g);fx(()=>{x.current=!1,k.current=g;for(let M=0;M{const J=lg(M),re=l&&!h?!1:g===A||b.includes(J),ae=()=>{if(P.has(J))P.set(J,!0);else return;let j=!0;P.forEach(B=>{B||(j=!1)}),j&&(K?.(),L(k.current),l&&m?.(),r&&r())};return N.jsx(S3,{isPresent:re,initial:!x.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:d,onExitComplete:re?void 0:ae,anchorX:c,children:M},J)})})},C3=S.createContext(null);function E3(){const e=S.useRef(!1);return fx(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function P3(){const e=E3(),[t,n]=S.useState(0),r=S.useCallback(()=>{e.current&&n(t+1)},[t]);return[S.useCallback(()=>Xt.postRender(r),[r]),t]}const T3=e=>!e.isLayoutDirty&&e.willUpdate(!1);function B1(){const e=new Set,t=new WeakMap,n=()=>e.forEach(T3);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);const i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}const LP=e=>e===!0,_3=e=>LP(e===!0)||e==="id",$3=({children:e,id:t,inherit:n=!0})=>{const r=S.useContext(Hp),i=S.useContext(C3),[s,l]=P3(),c=S.useRef(null),d=r.id||i;c.current===null&&(_3(n)&&d&&(t=t?d+"-"+t:d),c.current={id:t,group:LP(n)&&r.group||B1()});const h=S.useMemo(()=>({...c.current,forceRender:s}),[l]);return N.jsx(Hp.Provider,{value:h,children:e})},Lx=S.createContext({strict:!1}),V1={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"]},wf={};for(const e in V1)wf[e]={isEnabled:t=>V1[e].some(n=>!!t[n])};function rb(e){for(const t in e)wf[t]={...wf[t],...e[t]}}function Sf({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Xy(t)),i=S.useRef(void 0);if(!Xy(t)){const{renderer:s,...l}=t;i.current=s,rb(l)}return S.useEffect(()=>{Xy(t)&&t().then(({renderer:s,...l})=>{rb(l),i.current=s,r(!0)})},[]),N.jsx(Lx.Provider,{value:{renderer:i.current,strict:n},children:e})}function Xy(e){return typeof e=="function"}const I3=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bg(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||I3.has(e)}let MP=e=>!Bg(e);function DP(e){typeof e=="function"&&(MP=t=>t.startsWith("on")?!Bg(t):e(t))}try{DP(require("@emotion/is-prop-valid").default)}catch{}function A3(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(MP(i)||n===!0&&Bg(i)||!t&&!Bg(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function R3({children:e,isValidProp:t,...n}){t&&DP(t),n={...S.useContext(Xp),...n},n.isStatic=ph(()=>n.isStatic);const r=S.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return N.jsx(Xp.Provider,{value:r,children:e})}const dv=S.createContext({});function pv(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Qp(e){return typeof e=="string"||Array.isArray(e)}const Mx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dx=["initial",...Mx];function hv(e){return pv(e.animate)||Dx.some(t=>Qp(e[t]))}function NP(e){return!!(hv(e)||e.variants)}function L3(e,t){if(hv(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qp(n)?n:void 0,animate:Qp(r)?r:void 0}}return e.inherit!==!1?t:{}}function M3(e){const{initial:t,animate:n}=L3(e,S.useContext(dv));return S.useMemo(()=>({initial:t,animate:n}),[U1(t),U1(n)])}function U1(e){return Array.isArray(e)?e.join(" "):e}const Jp={};function D3(e){for(const t in e)Jp[t]=e[t],bx(t)&&(Jp[t].isCSSVariable=!0)}function FP(e,{layout:t,layoutId:n}){return Cu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Jp[e]||e==="opacity")}const N3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F3=Rf.length;function O3(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function OP(e,t,n){for(const r in t)!br(t[r])&&!FP(r,n)&&(e[r]=t[r])}function z3({transformTemplate:e},t){return S.useMemo(()=>{const n=Fx();return Nx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function j3(e,t){const n=e.style||{},r={};return OP(r,n,e),Object.assign(r,z3(e,t)),r}function B3(e,t){const n={},r=j3(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const V3={offset:"stroke-dashoffset",array:"stroke-dasharray"},U3={offset:"strokeDashoffset",array:"strokeDasharray"};function K3(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?V3:U3;e[s.offset]=et.transform(-r);const l=et.transform(t),c=et.transform(n);e[s.array]=`${l} ${c}`}function zP(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...c},d,h,m){if(Nx(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=m?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),i!==void 0&&K3(g,i,s,l,!1)}const jP=()=>({...Fx(),attrs:{}}),BP=e=>typeof e=="string"&&e.toLowerCase()==="svg";function W3(e,t,n,r){const i=S.useMemo(()=>{const s=jP();return zP(s,t,BP(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};OP(s,e.style,e),i.style={...s,...i.style}}return i}const H3=["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 Ox(e){return typeof e!="string"||e.includes("-")?!1:!!(H3.indexOf(e)>-1||/[A-Z]/u.test(e))}function G3(e,t,n,{latestValues:r},i,s=!1){const c=(Ox(e)?W3:B3)(t,r,i,e),d=A3(t,typeof e=="string",s),h=e!==S.Fragment?{...d,...c,ref:n}:{},{children:m}=t,g=S.useMemo(()=>br(m)?m.get():m,[m]);return S.createElement(e,{...h,children:g})}function K1(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function zx(e,t,n,r){if(typeof t=="function"){const[i,s]=K1(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=K1(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Pg(e){return br(e)?e.get():e}function q3({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Y3(n,r,i,e),renderState:t()}}function Y3(e,t,n,r){const i={},s=r(e,{});for(const b in s)i[b]=Pg(s[b]);let{initial:l,animate:c}=e;const d=hv(e),h=NP(e);t&&h&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const g=m?c:l;if(g&&typeof g!="boolean"&&!pv(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x(t,n)=>{const r=S.useContext(dv),i=S.useContext(fv),s=()=>q3(e,t,r,i);return n?s():ph(s)};function jx(e,t,n){const{style:r}=e,i={};for(const s in r)(br(r[s])||t.style&&br(t.style[s])||FP(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const X3=VP({scrapeMotionValuesFromProps:jx,createRenderState:Fx});function UP(e,t,n){const r=jx(e,t,n);for(const i in e)if(br(e[i])||br(t[i])){const s=Rf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const Q3=VP({scrapeMotionValuesFromProps:UP,createRenderState:jP}),J3=Symbol.for("motionComponentSymbol");function of(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Z3(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):of(n)&&(n.current=r))},[t])}const Bx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),e4="framerAppearId",KP="data-"+Bx(e4),WP=S.createContext({});function t4(e,t,n,r,i){const{visualElement:s}=S.useContext(dv),l=S.useContext(Lx),c=S.useContext(fv),d=S.useContext(Xp).reducedMotion,h=S.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,g=S.useContext(WP);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&n4(h.current,n,i,g);const b=S.useRef(!1);S.useInsertionEffect(()=>{m&&b.current&&m.update(n,c)});const x=n[KP],k=S.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return fx(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),k.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!k.current&&m.animationState&&m.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),k.current=!1))}),m}function n4(e,t,n,r){const{layoutId:i,layout:s,drag:l,dragConstraints:c,layoutScroll:d,layoutRoot:h,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:HP(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!l||c&&of(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:d,layoutRoot:h})}function HP(e){if(e)return e.options.allowProjection!==!1?e.projection:HP(e.parent)}function Qy(e,{forwardMotionProps:t=!1}={},n,r){n&&rb(n);const i=Ox(e)?Q3:X3;function s(c,d){let h;const m={...S.useContext(Xp),...c,layoutId:r4(c)},{isStatic:g}=m,b=M3(c),x=i(c,g);if(!g&&cx){i4();const k=o4(m);h=k.MeasureLayout,b.visualElement=t4(e,x,m,r,k.ProjectionNode)}return N.jsxs(dv.Provider,{value:b,children:[h&&b.visualElement?N.jsx(h,{visualElement:b.visualElement,...m}):null,G3(e,c,Z3(x,b.visualElement,d),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(s);return l[J3]=e,l}function r4({layoutId:e}){const t=S.useContext(Hp).id;return t&&e!==void 0?t+"-"+e:e}function i4(e,t){S.useContext(Lx).strict}function o4(e){const{drag:t,layout:n}=wf;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function GP(e,t){if(typeof Proxy>"u")return Qy;const n=new Map,r=(s,l)=>Qy(s,l,e,t),i=(s,l)=>r(s,l);return new Proxy(i,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Qy(l,void 0,e,t)),n.get(l))})}const kf=GP();function qP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function s4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jy(e){return e===void 0||e===1}function ib({scale:e,scaleX:t,scaleY:n}){return!Jy(e)||!Jy(t)||!Jy(n)}function uu(e){return ib(e)||YP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function YP(e){return W1(e.x)||W1(e.y)}function W1(e){return e&&e!=="0%"}function Vg(e,t,n){const r=e-n,i=t*r;return n+i}function H1(e,t,n,r,i){return i!==void 0&&(e=Vg(e,i,r)),Vg(e,n,r)+t}function ob(e,t=0,n=1,r,i){e.min=H1(e.min,t,n,r,i),e.max=H1(e.max,t,n,r,i)}function XP(e,{x:t,y:n}){ob(e.x,t.translate,t.scale,t.originPoint),ob(e.y,n.translate,n.scale,n.originPoint)}const G1=.999999999999,q1=1.0000000000001;function a4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,l;for(let c=0;cG1&&(t.x=1),t.yG1&&(t.y=1)}function sf(e,t){e.min=e.min+t,e.max=e.max+t}function Y1(e,t,n,r,i=.5){const s=ln(e.min,e.max,i);ob(e,t,n,s,r)}function lf(e,t){Y1(e.x,t.x,t.scaleX,t.scale,t.originX),Y1(e.y,t.y,t.scaleY,t.scale,t.originY)}function QP(e,t){return qP(l4(e.getBoundingClientRect(),t))}function u4(e,t,n){const r=QP(e,n),{scroll:i}=t;return i&&(sf(r.x,i.offset.x),sf(r.y,i.offset.y)),r}const X1=()=>({translate:0,scale:1,origin:0,originPoint:0}),af=()=>({x:X1(),y:X1()}),Q1=()=>({min:0,max:0}),wn=()=>({x:Q1(),y:Q1()}),sb={current:null},JP={current:!1};function c4(){if(JP.current=!0,!!cx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sb.current=e.matches;e.addEventListener("change",t),t()}else sb.current=!1}const f4=new WeakMap;function d4(e,t,n){for(const r in t){const i=t[r],s=n[r];if(br(i))e.addValue(r,i);else if(br(s))e.addValue(r,xf(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,xf(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const J1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class p4{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_x,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=oi.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),JP.current||c4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Jl(this.notifyUpdate),Jl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Cu.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Xt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in wf){const n=wf[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(BE(r)||UE(r))?r=parseFloat(r):!b3(r)&&Zl.test(n)&&(r=CP(t,n)),this.setBaseTarget(t,br(r)?r.get():r)),br(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=zx(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!br(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ax.render(this.render)}}class ZP extends p4{constructor(){super(...arguments),this.KeyframeResolver=l3}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;br(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function eT(e,{style:t,vars:n},r,i){const s=e.style;let l;for(l in t)s[l]=t[l];i?.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function h4(e){return window.getComputedStyle(e)}class m4 extends ZP{constructor(){super(...arguments),this.type="html",this.renderInstance=eT}readValueFromInstance(t,n){if(Cu.has(n))return this.projection?.isProjecting?Q0(n):PD(t,n);{const r=h4(t),i=(bx(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return QP(t,n)}build(t,n,r){Nx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jx(t,n,r)}}const tT=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function g4(e,t,n,r){eT(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(tT.has(i)?i:Bx(i),t.attrs[i])}class v4 extends ZP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Cu.has(n)){const r=kP(n);return r&&r.default||0}return n=tT.has(n)?n:Bx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UP(t,n,r)}build(t,n,r){zP(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){g4(t,n,r,i)}mount(t){this.isSVGTag=BP(t.tagName),super.mount(t)}}const y4=(e,t)=>Ox(e)?new v4(t):new m4(t,{allowProjection:e!==S.Fragment});function Zp(e,t,n){const r=e.getProps();return zx(r,t,n!==void 0?n:r.custom,e)}const lb=e=>Array.isArray(e);function b4(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xf(n))}function x4(e){return lb(e)?e[e.length-1]||0:e}function w4(e,t){const n=Zp(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const l in s){const c=x4(s[l]);b4(e,l,c)}}function S4(e){return!!(br(e)&&e.add)}function ab(e,t){const n=e.getValue("willChange");if(S4(n))return n.add(t);if(!n&&fs.WillChange){const r=new fs.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function nT(e){return e.props[KP]}const k4=e=>e!==null;function C4(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(k4),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const E4={type:"spring",stiffness:500,damping:25,restSpeed:10},P4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),T4={type:"keyframes",duration:.8},_4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$4=(e,{keyframes:t})=>t.length>2?T4:Cu.has(e)?e.startsWith("scale")?P4(t[1]):E4:_4;function I4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:l,repeatDelay:c,from:d,elapsed:h,...m}){return!!Object.keys(m).length}const Vx=(e,t,n,r={},i,s)=>l=>{const c=$x(r,e)||{},d=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-as(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:b=>{t.set(b),c.onUpdate&&c.onUpdate(b)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:i};I4(c)||Object.assign(m,$4(e,m)),m.duration&&(m.duration=as(m.duration)),m.repeatDelay&&(m.repeatDelay=as(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let g=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(g=!0)),(fs.instantAnimations||fs.skipAnimations)&&(g=!0,m.duration=0,m.delay=0),m.allowFlatten=!c.type&&!c.ease,g&&!s&&t.get()!==void 0){const b=C4(m.keyframes,c);if(b!==void 0){Xt.update(()=>{m.onUpdate(b),m.onComplete()});return}}return c.isSync?new Tx(m):new YD(m)};function A4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rT(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(s=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in c){const g=e.getValue(m,e.latestValues[m]??null),b=c[m];if(b===void 0||h&&A4(h,m))continue;const x={delay:n,...$x(s||{},m)},k=g.get();if(k!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===k&&!x.velocity)continue;let P=!1;if(window.MotionHandoffAnimation){const T=nT(e);if(T){const A=window.MotionHandoffAnimation(T,m,Xt);A!==null&&(x.startTime=A,P=!0)}}ab(e,m),g.start(Vx(m,g,b,e.shouldReduceMotion&&xP.has(m)?{type:!1}:x,e,P));const _=g.animation;_&&d.push(_)}return l&&Promise.all(d).then(()=>{Xt.update(()=>{l&&w4(e,l)})}),d}function ub(e,t,n={}){const r=Zp(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(rT(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return R4(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,h]=c==="beforeChildren"?[s,l]:[l,s];return d().then(()=>h())}else return Promise.all([s(),l(n.delay)])}function R4(e,t,n=0,r=0,i=0,s=1,l){const c=[],d=e.variantChildren.size,h=(d-1)*i,m=typeof r=="function",g=m?b=>r(b,d):s===1?(b=0)=>b*i:(b=0)=>h-b*i;return Array.from(e.variantChildren).sort(L4).forEach((b,x)=>{b.notify("AnimationStart",t),c.push(ub(b,t,{...l,delay:n+(m?0:r)+g(x)}).then(()=>b.notify("AnimationComplete",t)))}),Promise.all(c)}function L4(e,t){return e.sortNodePosition(t)}function M4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ub(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ub(e,t,n);else{const i=typeof t=="function"?Zp(e,t,n.custom):t;r=Promise.all(rT(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function iT(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>M4(e,n,r)))}function z4(e){let t=O4(e),n=Z1(),r=!0;const i=d=>(h,m)=>{const g=Zp(e,m,d==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:x,...k}=g;h={...h,...k,...x}}return h};function s(d){t=d(e)}function l(d){const{props:h}=e,m=oT(e.parent)||{},g=[],b=new Set;let x={},k=1/0;for(let _=0;_k&&z,ae=!1;const j=Array.isArray(L)?L:[L];let B=j.reduce(i(T),{});K===!1&&(B={});const{prevResolvedValues:Y={}}=A,te={...Y,...B},G=q=>{re=!0,b.has(q)&&(ae=!0,b.delete(q)),A.needsAnimating[q]=!0;const W=e.getValue(q);W&&(W.liveStyle=!1)};for(const q in te){const W=B[q],se=Y[q];if(x.hasOwnProperty(q))continue;let R=!1;lb(W)&&lb(se)?R=!iT(W,se):R=W!==se,R?W!=null?G(q):b.add(q):W!==void 0&&b.has(q)?G(q):A.protectedKeys[q]=!0}A.prevProp=L,A.prevResolvedValues=B,A.isActive&&(x={...x,...B}),r&&e.blockInitialAnimation&&(re=!1),re&&(!(M&&J)||ae)&&g.push(...j.map(q=>({animation:q,options:{type:T}})))}if(b.size){const _={};if(typeof h.initial!="boolean"){const T=Zp(e,Array.isArray(h.initial)?h.initial[0]:h.initial);T&&T.transition&&(_.transition=T.transition)}b.forEach(T=>{const A=e.getBaseTarget(T),L=e.getValue(T);L&&(L.liveStyle=!0),_[T]=A??null}),g.push({animation:_})}let P=!!g.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(g):Promise.resolve()}function c(d,h){if(n[d].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(d,h)),n[d].isActive=h;const m=l(d);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Z1(),r=!0}}}function j4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!iT(t,e):!1}function nu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Z1(){return{animate:nu(!0),whileInView:nu(),whileHover:nu(),whileTap:nu(),whileDrag:nu(),whileFocus:nu(),exit:nu()}}class ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}class B4 extends ea{constructor(t){super(t),t.animationState||(t.animationState=z4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();pv(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let V4=0;class U4 extends ea{constructor(){super(...arguments),this.id=V4++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const K4={animation:{Feature:B4},exit:{Feature:U4}};function eh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function vh(e){return{point:{x:e.pageX,y:e.pageY}}}const W4=e=>t=>Rx(t)&&e(t,vh(t));function Mp(e,t,n,r){return eh(e,t,W4(n),r)}const sT=1e-4,H4=1-sT,G4=1+sT,lT=.01,q4=0-lT,Y4=0+lT;function Mr(e){return e.max-e.min}function X4(e,t,n){return Math.abs(e-t)<=n}function eS(e,t,n,r=.5){e.origin=r,e.originPoint=ln(t.min,t.max,e.origin),e.scale=Mr(n)/Mr(t),e.translate=ln(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H4&&e.scale<=G4||isNaN(e.scale))&&(e.scale=1),(e.translate>=q4&&e.translate<=Y4||isNaN(e.translate))&&(e.translate=0)}function Dp(e,t,n,r){eS(e.x,t.x,n.x,r?r.originX:void 0),eS(e.y,t.y,n.y,r?r.originY:void 0)}function tS(e,t,n){e.min=n.min+t.min,e.max=e.min+Mr(t)}function Q4(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}function nS(e,t,n){e.min=t.min-n.min,e.max=e.min+Mr(t)}function Np(e,t,n){nS(e.x,t.x,n.x),nS(e.y,t.y,n.y)}function Yi(e){return[e("x"),e("y")]}const aT=({current:e})=>e?e.ownerDocument.defaultView:null,rS=(e,t)=>Math.abs(e-t);function J4(e,t){const n=rS(e.x,t.x),r=rS(e.y,t.y);return Math.sqrt(n**2+r**2)}class uT{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=e0(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,k=J4(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!k)return;const{point:P}=b,{timestamp:_}=lr;this.history.push({...P,timestamp:_});const{onStart:T,onMove:A}=this.handlers;x||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),A&&A(this.lastMoveEvent,b)},this.handlePointerMove=(b,x)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Zy(x,this.transformPagePoint),Xt.update(this.updatePoint,!0)},this.handlePointerUp=(b,x)=>{this.end();const{onEnd:k,onSessionEnd:P,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=e0(b.type==="pointercancel"?this.lastMoveEventInfo:Zy(x,this.transformPagePoint),this.history);this.startEvent&&k&&k(b,T),P&&P(b,T)},!Rx(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=i||window;const c=vh(t),d=Zy(c,this.transformPagePoint),{point:h}=d,{timestamp:m}=lr;this.history=[{...h,timestamp:m}];const{onSessionStart:g}=n;g&&g(t,e0(d,this.history)),this.removeListeners=hh(Mp(this.contextWindow,"pointermove",this.handlePointerMove),Mp(this.contextWindow,"pointerup",this.handlePointerUp),Mp(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Jl(this.updatePoint)}}function Zy(e,t){return t?{point:t(e.point)}:e}function iS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function e0({point:e},t){return{point:e,delta:iS(e,cT(t)),offset:iS(e,Z4(t)),velocity:eN(t,.1)}}function Z4(e){return e[0]}function cT(e){return e[e.length-1]}function eN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=cT(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>as(t)));)n--;if(!r)return{x:0,y:0};const s=us(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function tN(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ln(n,e,r.max):Math.min(e,n)),e}function oS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nN(e,{top:t,left:n,bottom:r,right:i}){return{x:oS(e.x,n,i),y:oS(e.y,t,r)}}function sS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Gp(t.min,t.max-r,e.min):r>i&&(n=Gp(e.min,e.max-i,t.min)),Js(0,1,n)}function oN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const cb=.35;function sN(e=cb){return e===!1?e=0:e===!0&&(e=cb),{x:lS(e,"left","right"),y:lS(e,"top","bottom")}}function lS(e,t,n){return{min:aS(e,t),max:aS(e,n)}}function aS(e,t){return typeof e=="number"?e:e[t]||0}const lN=new WeakMap;class aN{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=wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(vh(g).point)},l=(g,b)=>{const{drag:x,dragPropagation:k,onDragStart:P}=this.getProps();if(x&&!k&&(this.openDragLock&&this.openDragLock(),this.openDragLock=f3(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yi(T=>{let A=this.getAxisMotionValue(T).get()||0;if(cs.test(A)){const{projection:L}=this.visualElement;if(L&&L.layout){const z=L.layout.layoutBox[T];z&&(A=Mr(z)*(parseFloat(A)/100))}}this.originPoint[T]=A}),P&&Xt.postRender(()=>P(g,b)),ab(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:k,onDirectionLock:P,onDrag:_}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:T}=b;if(k&&this.currentDirection===null){this.currentDirection=uN(T),this.currentDirection!==null&&P&&P(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),_&&_(g,b)},d=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Yi(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new uT(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:d,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:aT(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:l}=i;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&Xt.postRender(()=>c(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ag(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=tN(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&of(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=nN(r.layoutBox,t):this.constraints=!1,this.elastic=sN(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Yi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=oN(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!of(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=u4(r,i.root,this.visualElement.getTransformPagePoint());let l=rN(i.layout.layoutBox,s);if(n){const c=n(s4(l));this.hasMutatedConstraints=!!c,c&&(l=qP(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},h=Yi(m=>{if(!ag(m,n,this.currentDirection))return;let g=d&&d[m]||{};l&&(g={min:0,max:0});const b=i?200:1e6,x=i?40:1e7,k={type:"inertia",velocity:r?t[m]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(m,k)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ab(this.visualElement,t),r.start(Vx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Yi(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yi(n=>{const{drag:r}=this.getProps();if(!ag(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];s.set(t[n]-ln(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!of(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Yi(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const d=c.get();i[l]=iN({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yi(l=>{if(!ag(l,t,null))return;const c=this.getAxisMotionValue(l),{min:d,max:h}=this.constraints[l];c.set(ln(d,h,i[l]))})}addListeners(){if(!this.visualElement.current)return;lN.set(this.visualElement,this);const t=this.visualElement.current,n=Mp(t,"pointerdown",d=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();of(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Xt.read(r);const l=eh(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:h})=>{this.isDragging&&h&&(Yi(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=d[m].translate,g.set(g.get()+d[m].translate))}),this.visualElement.render())}));return()=>{l(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:l=cb,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function ag(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cN extends ea{constructor(t){super(t),this.removeGroupControls=eo,this.removeListeners=eo,this.controls=new aN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eo}unmount(){this.removeGroupControls(),this.removeListeners()}}const uS=e=>(t,n)=>{e&&Xt.postRender(()=>e(t,n))};class fN extends ea{constructor(){super(...arguments),this.removePointerDownListener=eo}onPointerDown(t){this.session=new uT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:uS(t),onStart:uS(n),onMove:r,onEnd:(s,l)=>{delete this.session,i&&Xt.postRender(()=>i(s,l))}}}mount(){this.removePointerDownListener=Mp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(et.test(e))e=parseFloat(e);else return e;const n=cS(e,t.target.x),r=cS(e,t.target.y);return`${n}% ${r}%`}},dN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Zl.parse(e);if(i.length>5)return r;const s=Zl.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,d=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=d;const h=ln(c,d,.5);return typeof i[2+l]=="number"&&(i[2+l]/=h),typeof i[3+l]=="number"&&(i[3+l]/=h),s(i)}};let fS=!1;class pN extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;D3(hN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),fS&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,fS=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||Xt.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ax.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fT(e){const[t,n]=RP(),r=S.useContext(Hp);return N.jsx(pN,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(WP),isPresent:t,safeToRemove:n})}const hN={borderRadius:{...fp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fp,borderTopRightRadius:fp,borderBottomLeftRadius:fp,borderBottomRightRadius:fp,boxShadow:dN};function mN(e,t,n){const r=br(e)?e:xf(e);return r.start(Vx("",r,t,n)),r.animation}const gN=(e,t)=>e.depth-t.depth;class vN{constructor(){this.children=[],this.isDirty=!1}add(t){dx(this.children,t),this.isDirty=!0}remove(t){px(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gN),this.isDirty=!1,this.children.forEach(t)}}function yN(e,t){const n=oi.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Jl(r),e(s-t))};return Xt.setup(r,!0),()=>Jl(r)}const dT=["TopLeft","TopRight","BottomLeft","BottomRight"],bN=dT.length,dS=e=>typeof e=="string"?parseFloat(e):e,pS=e=>typeof e=="number"||et.test(e);function xN(e,t,n,r,i,s){i?(e.opacity=ln(0,n.opacity??1,wN(r)),e.opacityExit=ln(t.opacity??1,0,SN(r))):s&&(e.opacity=ln(t.opacity??1,n.opacity??1,r));for(let l=0;lrt?1:n(Gp(e,t,r))}function mS(e,t){e.min=t.min,e.max=t.max}function Gi(e,t){mS(e.x,t.x),mS(e.y,t.y)}function gS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vS(e,t,n,r,i){return e-=t,e=Vg(e,1/n,r),i!==void 0&&(e=Vg(e,1/i,r)),e}function kN(e,t=0,n=1,r=.5,i,s=e,l=e){if(cs.test(t)&&(t=parseFloat(t),t=ln(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ln(s.min,s.max,r);e===s&&(c-=t),e.min=vS(e.min,t,n,c,i),e.max=vS(e.max,t,n,c,i)}function yS(e,t,[n,r,i],s,l){kN(e,t[n],t[r],t[i],t.scale,s,l)}const CN=["x","scaleX","originX"],EN=["y","scaleY","originY"];function bS(e,t,n,r){yS(e.x,t,CN,n?n.x:void 0,r?r.x:void 0),yS(e.y,t,EN,n?n.y:void 0,r?r.y:void 0)}function xS(e){return e.translate===0&&e.scale===1}function hT(e){return xS(e.x)&&xS(e.y)}function wS(e,t){return e.min===t.min&&e.max===t.max}function PN(e,t){return wS(e.x,t.x)&&wS(e.y,t.y)}function SS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mT(e,t){return SS(e.x,t.x)&&SS(e.y,t.y)}function kS(e){return Mr(e.x)/Mr(e.y)}function CS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class TN{constructor(){this.members=[]}add(t){dx(this.members,t),t.scheduleRender()}remove(t){if(px(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function _N(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,l=n?.z||0;if((i||s||l)&&(r=`translate3d(${i}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:g,rotateY:b,skewX:x,skewY:k}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),g&&(r+=`rotateX(${g}deg) `),b&&(r+=`rotateY(${b}deg) `),x&&(r+=`skewX(${x}deg) `),k&&(r+=`skewY(${k}deg) `)}const c=e.x.scale*t.x,d=e.y.scale*t.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const t0=["","X","Y","Z"],$N=1e3;let IN=0;function n0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gT(r)}function vT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t?.()){this.id=IN++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(LN),this.nodes.forEach(FN),this.nodes.forEach(ON),this.nodes.forEach(MN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;dthis.root.updateBlockedByResize=!1;Xt.read(()=>{g=window.innerWidth}),e(l,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,m&&m(),m=yN(b,250),Tg.hasAnimatedSinceResize&&(Tg.hasAnimatedSinceResize=!1,this.nodes.forEach(TS)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||h.getDefaultTransition()||UN,{onLayoutAnimationStart:P,onLayoutAnimationComplete:_}=h.getProps(),T=!this.targetLayout||!mT(this.targetLayout,x),A=!g&&b;if(this.options.layoutRoot||this.resumeFrom||A||g&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...$x(k,"layout"),onPlay:P,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(m,A)}else g||TS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Jl(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(zN),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mr(this.snapshot.measuredBox.x)&&!Mr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d{const K=z/1e3;_S(g.x,l.x,K),_S(g.y,l.y,K),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Np(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BN(this.relativeTarget,this.relativeTargetOrigin,b,K),L&&PN(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=wn()),Gi(L,this.relativeTarget)),P&&(this.animationValues=m,xN(m,h,this.latestValues,K,A,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=K},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Jl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xt.update(()=>{Tg.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xf(0)),this.currentAnimation=mN(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($N),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:d,layout:h,latestValues:m}=l;if(!(!c||!d||!h)){if(this!==l&&this.layout&&h&&yT(this.options.animationType,this.layout.layoutBox,h.layoutBox)){d=this.target||wn();const g=Mr(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+g;const b=Mr(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+b}Gi(c,d),lf(c,m),Dp(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new TN),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){const{layoutId:l}=this.options;return l?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:l}=this.options;return l?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:d}={}){const h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const h={};d.z&&n0("z",l,h,this.animationValues);for(let m=0;ml.currentAnimation?.stop()),this.root.nodes.forEach(ES),this.root.sharedNodes.clear()}}}function AN(e){e.updateLayout()}function RN(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?Yi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Mr(g);g.min=n[m].min,g.max=g.min+b}):yT(i,t.layoutBox,n)&&Yi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Mr(n[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const l=af();Dp(l,n,t.layoutBox);const c=af();s?Dp(c,e.applyTransform(r,!0),t.measuredBox):Dp(c,n,t.layoutBox);const d=!hT(l);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const x=wn();Np(x,t.layoutBox,g.layoutBox);const k=wn();Np(k,n,b.layoutBox),mT(x,k)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function LN(e){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 MN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DN(e){e.clearSnapshot()}function ES(e){e.clearMeasurements()}function PS(e){e.isLayoutDirty=!1}function NN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function TS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FN(e){e.resolveTargetDelta()}function ON(e){e.calcProjection()}function zN(e){e.resetSkewAndRotation()}function jN(e){e.removeLeadSnapshot()}function _S(e,t,n){e.translate=ln(t.translate,0,n),e.scale=ln(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function $S(e,t,n,r){e.min=ln(t.min,n.min,r),e.max=ln(t.max,n.max,r)}function BN(e,t,n,r){$S(e.x,t.x,n.x,r),$S(e.y,t.y,n.y,r)}function VN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UN={duration:.45,ease:[.4,0,.1,1]},IS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),AS=IS("applewebkit/")&&!IS("chrome/")?Math.round:eo;function RS(e){e.min=AS(e.min),e.max=AS(e.max)}function KN(e){RS(e.x),RS(e.y)}function yT(e,t,n){return e==="position"||e==="preserve-aspect"&&!X4(kS(t),kS(n),.2)}function WN(e){return e!==e.root&&e.scroll?.wasRoot}const HN=vT({attachResizeListener:(e,t)=>eh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r0={current:void 0},bT=vT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r0.current){const e=new HN({});e.mount(window),e.setOptions({layoutScroll:!0}),r0.current=e}return r0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GN={pan:{Feature:fN},drag:{Feature:cN,ProjectionNode:bT,MeasureLayout:fT}};function LS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Xt.postRender(()=>s(t,vh(t)))}class qN extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=d3(t,(n,r)=>(LS(this.node,r,"Start"),i=>LS(this.node,i,"End"))))}unmount(){}}class YN extends ea{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=hh(eh(this.node.current,"focus",()=>this.onFocus()),eh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function MS(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Xt.postRender(()=>s(t,vh(t)))}class XN extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=g3(t,(n,r)=>(MS(this.node,r,"Start"),(i,{success:s})=>MS(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const fb=new WeakMap,i0=new WeakMap,QN=e=>{const t=fb.get(e.target);t&&t(e)},JN=e=>{e.forEach(QN)};function ZN({root:e,...t}){const n=e||document;i0.has(n)||i0.set(n,{});const r=i0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(JN,{root:e,...t})),r[i]}function eF(e,t,n){const r=ZN(t);return fb.set(e,n),r.observe(e),()=>{fb.delete(e),r.unobserve(e)}}const tF={some:0,all:1};class nF extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:tF[i]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:g}=this.node.getProps(),b=h?m:g;b&&b(d)};return eF(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(rF(t,n))&&this.startObserver()}unmount(){}}function rF({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iF={inView:{Feature:nF},tap:{Feature:XN},focus:{Feature:YN},hover:{Feature:qN}},oF={layout:{ProjectionNode:bT,MeasureLayout:fT}},sF={...K4,...iF,...GN,...oF},ff=GP(sF,y4);class lF extends TP{constructor(){super(...arguments),this.isEnabled=!1}add(t){(Cu.has(t)||a3.has(t))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function aF(){return ph(()=>new lF("auto"))}const ls={top:"top",bottom:"top",left:"left",right:"left"},Ug={top:"bottom",bottom:"top",left:"right",right:"left"},uF={top:"left",left:"top"},db={top:"height",left:"width"},xT={width:"totalWidth",height:"totalHeight"},ug={};let qn=typeof document<"u"?window.visualViewport:null;function DS(e){let t=0,n=0,r=0,i=0,s=0,l=0,c={};var d;let h=((d=qn?.scale)!==null&&d!==void 0?d:1)>1;if(e.tagName==="BODY"){let k=document.documentElement;r=k.clientWidth,i=k.clientHeight;var m;t=(m=qn?.width)!==null&&m!==void 0?m:r;var g;n=(g=qn?.height)!==null&&g!==void 0?g:i,c.top=k.scrollTop||e.scrollTop,c.left=k.scrollLeft||e.scrollLeft,qn&&(s=qn.offsetTop,l=qn.offsetLeft)}else({width:t,height:n,top:s,left:l}=df(e)),c.top=e.scrollTop,c.left=e.scrollLeft,r=t,i=n;if(TE()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){c.top=0,c.left=0;var b;s=(b=qn?.pageTop)!==null&&b!==void 0?b:0;var x;l=(x=qn?.pageLeft)!==null&&x!==void 0?x:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:c,top:s,left:l}}function cF(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function NS(e,t,n,r,i,s,l){var c;let d=(c=i.scroll[e])!==null&&c!==void 0?c:0,h=r[db[e]],m=r.scroll[ls[e]]+s,g=h+r.scroll[ls[e]]-s,b=t-d+l[e]-r[ls[e]],x=t-d+n+l[e]-r[ls[e]];return bg?Math.max(g-x,m-b):0}function fF(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function FS(e){if(ug[e])return ug[e];let[t,n]=e.split(" "),r=ls[t]||"right",i=uF[r];ls[n]||(n="center");let s=db[r],l=db[i];return ug[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:s,crossSize:l},ug[e]}function o0(e,t,n,r,i,s,l,c,d,h){let{placement:m,crossPlacement:g,axis:b,crossAxis:x,size:k,crossSize:P}=r,_={};var T;_[x]=(T=e[x])!==null&&T!==void 0?T:0;var A,L,z,K;g==="center"?_[x]+=(((A=e[P])!==null&&A!==void 0?A:0)-((L=n[P])!==null&&L!==void 0?L:0))/2:g!==x&&(_[x]+=((z=e[P])!==null&&z!==void 0?z:0)-((K=n[P])!==null&&K!==void 0?K:0)),_[x]+=s;const M=e[x]-n[P]+d+h,J=e[x]+e[P]-d-h;if(_[x]=Ng(_[x],M,J),m===b){const re=c?l[k]:t[xT[k]];_[Ug[b]]=Math.floor(re-e[b]+i)}else _[b]=Math.floor(e[b]+e[k]+i);return _}function dF(e,t,n,r,i,s,l,c){const d=r?n.height:t[xT.height];var h;let m=e.top!=null?n.top+e.top:n.top+(d-((h=e.bottom)!==null&&h!==void 0?h:0)-l);var g,b,x,k,P,_;let T=c!=="top"?Math.max(0,t.height+t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0)-m-(((b=i.top)!==null&&b!==void 0?b:0)+((x=i.bottom)!==null&&x!==void 0?x:0)+s)):Math.max(0,m+l-(t.top+((k=t.scroll.top)!==null&&k!==void 0?k:0))-(((P=i.top)!==null&&P!==void 0?P:0)+((_=i.bottom)!==null&&_!==void 0?_:0)+s));return Math.min(t.height-s*2,T)}function OS(e,t,n,r,i,s){let{placement:l,axis:c,size:d}=s;var h,m;if(l===c)return Math.max(0,n[c]-e[c]-((h=e.scroll[c])!==null&&h!==void 0?h:0)+t[c]-((m=r[c])!==null&&m!==void 0?m:0)-r[Ug[c]]-i);var g;return Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-((g=r[c])!==null&&g!==void 0?g:0)-r[Ug[c]]-i)}function pF(e,t,n,r,i,s,l,c,d,h,m,g,b,x,k,P){let _=FS(e),{size:T,crossAxis:A,crossSize:L,placement:z,crossPlacement:K}=_,M=o0(t,c,n,_,m,g,h,b,k,P),J=m,re=OS(c,h,t,i,s+m,_);if(l&&r[T]>re){let me=FS(`${Ug[z]} ${K}`),Ee=o0(t,c,n,me,m,g,h,b,k,P);OS(c,h,t,i,s+m,me)>re&&(_=me,M=Ee,J=m)}let ae="bottom";_.axis==="top"?_.placement==="top"?ae="top":_.placement==="bottom"&&(ae="bottom"):_.crossAxis==="top"&&(_.crossPlacement==="top"?ae="bottom":_.crossPlacement==="bottom"&&(ae="top"));let j=NS(A,M[A],n[L],c,d,s,h);M[A]+=j;let B=dF(M,c,h,b,i,s,n.height,ae);x&&x{if(!n||r===null)return;let i=s=>{let l=s.target;if(!t.current||l instanceof Node&&!l.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let c=r||gF.get(t.current);c&&c()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let xn=typeof document<"u"?window.visualViewport:null;function yF(e){let{direction:t}=dh(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:s=i,placement:l="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:b=!0,isOpen:x=!0,onClose:k,maxHeight:P,arrowBoundaryOffset:_=0}=e,[T,A]=S.useState(null),L=[b,l,i.current,r.current,s.current,c,d,h,m,g,x,t,P,_,n],z=S.useRef(xn?.scale);S.useEffect(()=>{x&&(z.current=xn?.scale)},[x]);let K=S.useCallback(()=>{if(b===!1||!x||!i.current||!r.current||!h||xn?.scale!==z.current)return;let j=null;if(s.current&&s.current.contains(document.activeElement)){var B;let W=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),se=s.current.getBoundingClientRect();var Y;if(j={type:"top",offset:((Y=W?.top)!==null&&Y!==void 0?Y:0)-se.top},j.offset>se.height/2){j.type="bottom";var te;j.offset=((te=W?.bottom)!==null&&te!==void 0?te:0)-se.bottom}}let G=i.current;if(!P&&i.current){var fe;G.style.top="0px",G.style.bottom="";var Z;G.style.maxHeight=((Z=(fe=window.visualViewport)===null||fe===void 0?void 0:fe.height)!==null&&Z!==void 0?Z:window.innerHeight)+"px"}let q=hF({placement:xF(l,t),overlayNode:i.current,targetNode:r.current,scrollNode:s.current||i.current,padding:c,shouldFlip:d,boundaryElement:h,offset:m,crossOffset:g,maxHeight:P,arrowSize:n,arrowBoundaryOffset:_});if(q.position){if(G.style.top="",G.style.bottom="",G.style.left="",G.style.right="",Object.keys(q.position).forEach(W=>G.style[W]=q.position[W]+"px"),G.style.maxHeight=q.maxHeight!=null?q.maxHeight+"px":"",j&&document.activeElement&&s.current){let W=document.activeElement.getBoundingClientRect(),se=s.current.getBoundingClientRect(),R=W[j.type]-se[j.type];s.current.scrollTop+=R-j.offset}A(q)}},L);en(K,L),bF(K),y1({ref:i,onResize:K}),y1({ref:r,onResize:K});let M=S.useRef(!1);en(()=>{let j,B=()=>{M.current=!0,clearTimeout(j),j=setTimeout(()=>{M.current=!1},500),K()},Y=()=>{M.current&&B()};return xn?.addEventListener("resize",B),xn?.addEventListener("scroll",Y),()=>{xn?.removeEventListener("resize",B),xn?.removeEventListener("scroll",Y)}},[K]);let J=S.useCallback(()=>{M.current||k?.()},[k,M]);vF({triggerRef:r,isOpen:x,onClose:k&&J});var re,ae;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...T?.position,maxHeight:(re=T?.maxHeight)!==null&&re!==void 0?re:"100vh"}},placement:(ae=T?.placement)!==null&&ae!==void 0?ae:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:T?.arrowOffsetLeft,top:T?.arrowOffsetTop}},updatePosition:K}}function bF(e){en(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function xF(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function wF(e){const t=Zi(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:l,visibility:c}=s(e);i=l!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function SF(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function wT(e,t){return e.nodeName!=="#comment"&&wF(e)&&SF(e,t)&&(!e.parentElement||wT(e.parentElement,e))}function Ux(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ST(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function kT(e){let t=S.useRef({isFocused:!1,observer:null});en(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=On(r=>{e?.(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,s=l=>{if(t.current.isFocused=!1,i.disabled){let c=Ux(l);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Kg=!1;function kF(e){for(;e&&!zE(e);)e=e.parentElement;let t=Zi(e),n=t.document.activeElement;if(!n||n===e)return;Kg=!0;let r=!1,i=m=>{(m.target===n||r)&&m.stopImmediatePropagation()},s=m=>{(m.target===n||r)&&(m.stopImmediatePropagation(),!e&&!r&&(r=!0,Ql(n),d()))},l=m=>{(m.target===e||r)&&m.stopImmediatePropagation()},c=m=>{(m.target===e||r)&&(m.stopImmediatePropagation(),r||(r=!0,Ql(n),d()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",c,!0),t.addEventListener("focus",l,!0);let d=()=>{cancelAnimationFrame(h),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",c,!0),t.removeEventListener("focus",l,!0),Kg=!1,r=!1},h=requestAnimationFrame(d);return d}let uf="default",pb="",_g=new WeakMap;function CF(e){if(cv()){if(uf==="default"){const t=At(e);pb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}uf="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";_g.set(e,e.style[t]),e.style[t]="none"}}function BS(e){if(cv()){if(uf!=="disabled")return;uf="restoring",setTimeout(()=>{AE(()=>{if(uf==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=pb||""),pb="",uf="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_g.has(e)){let t=_g.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_g.delete(e)}}const Kx=We.createContext({register:()=>{}});Kx.displayName="PressResponderContext";function EF(e,t){return t.get?t.get.call(e):t.value}function CT(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function PF(e,t){var n=CT(e,t,"get");return EF(e,n)}function TF(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function VS(e,t,n){var r=CT(e,t,"set");return TF(e,r,n),n}function _F(e){let t=S.useContext(Kx);if(t){let{register:n,...r}=t;e=ar(r,e),n()}return LE(t,e.ref),e}var cg=new WeakMap;class fg{continuePropagation(){VS(this,cg,!1)}get shouldStopPropagation(){return PF(this,cg)}constructor(t,n,r,i){zL(this,cg,{writable:!0,value:void 0}),VS(this,cg,!0);var s;let l=(s=i?.target)!==null&&s!==void 0?s:r.currentTarget;const c=l?.getBoundingClientRect();let d,h=0,m,g=null;r.clientX!=null&&r.clientY!=null&&(m=r.clientX,g=r.clientY),c&&(m!=null&&g!=null?(d=m-c.left,h=g-c.top):(d=c.width/2,h=c.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=d,this.y=h}}const US=Symbol("linkClicked"),KS="react-aria-pressable-style",WS="data-react-aria-pressable";function mv(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:s,onClick:l,isDisabled:c,isPressed:d,preventFocusOnPress:h,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:g,ref:b,...x}=_F(e),[k,P]=S.useState(!1),_=S.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:T,removeAllGlobalListeners:A}=ax(),L=On((B,Y)=>{let te=_.current;if(c||te.didFirePressStart)return!1;let G=!0;if(te.isTriggeringEvent=!0,r){let fe=new fg("pressstart",Y,B);r(fe),G=fe.shouldStopPropagation}return n&&n(!0),te.isTriggeringEvent=!1,te.didFirePressStart=!0,P(!0),G}),z=On((B,Y,te=!0)=>{let G=_.current;if(!G.didFirePressStart)return!1;G.didFirePressStart=!1,G.isTriggeringEvent=!0;let fe=!0;if(i){let Z=new fg("pressend",Y,B);i(Z),fe=Z.shouldStopPropagation}if(n&&n(!1),P(!1),t&&te&&!c){let Z=new fg("press",Y,B);t(Z),fe&&(fe=Z.shouldStopPropagation)}return G.isTriggeringEvent=!1,fe}),K=On((B,Y)=>{let te=_.current;if(c)return!1;if(s){te.isTriggeringEvent=!0;let G=new fg("pressup",Y,B);return s(G),te.isTriggeringEvent=!1,G.shouldStopPropagation}return!0}),M=On(B=>{let Y=_.current;if(Y.isPressed&&Y.target){Y.didFirePressStart&&Y.pointerType!=null&&z(ru(Y.target,B),Y.pointerType,!1),Y.isPressed=!1,Y.isOverTarget=!1,Y.activePointerId=null,Y.pointerType=null,A(),g||BS(Y.target);for(let te of Y.disposables)te();Y.disposables=[]}}),J=On(B=>{m&&M(B)}),re=On(B=>{l?.(B)}),ae=On((B,Y)=>{if(l){let te=new MouseEvent("click",B);ST(te,Y),l(Ux(te))}}),j=S.useMemo(()=>{let B=_.current,Y={onKeyDown(G){if(s0(G.nativeEvent,G.currentTarget)&&ii(G.currentTarget,Sn(G.nativeEvent))){var fe;HS(Sn(G.nativeEvent),G.key)&&G.preventDefault();let Z=!0;if(!B.isPressed&&!G.repeat){B.target=G.currentTarget,B.isPressed=!0,B.pointerType="keyboard",Z=L(G,"keyboard");let q=G.currentTarget,W=se=>{s0(se,q)&&!se.repeat&&ii(q,Sn(se))&&B.target&&K(ru(B.target,se),"keyboard")};T(At(G.currentTarget),"keyup",bf(W,te),!0)}Z&&G.stopPropagation(),G.metaKey&&vu()&&((fe=B.metaKeyEvents)===null||fe===void 0||fe.set(G.key,G.nativeEvent))}else G.key==="Meta"&&(B.metaKeyEvents=new Map)},onClick(G){if(!(G&&!ii(G.currentTarget,Sn(G.nativeEvent)))&&G&&G.button===0&&!B.isTriggeringEvent&&!yu.isOpening){let fe=!0;if(c&&G.preventDefault(),!B.ignoreEmulatedMouseEvents&&!B.isPressed&&(B.pointerType==="virtual"||NE(G.nativeEvent))){let Z=L(G,"virtual"),q=K(G,"virtual"),W=z(G,"virtual");re(G),fe=Z&&q&&W}else if(B.isPressed&&B.pointerType!=="keyboard"){let Z=B.pointerType||G.nativeEvent.pointerType||"virtual",q=K(ru(G.currentTarget,G),Z),W=z(ru(G.currentTarget,G),Z,!0);fe=q&&W,B.isOverTarget=!1,re(G),M(G)}B.ignoreEmulatedMouseEvents=!1,fe&&G.stopPropagation()}}},te=G=>{var fe;if(B.isPressed&&B.target&&s0(G,B.target)){var Z;HS(Sn(G),G.key)&&G.preventDefault();let W=Sn(G),se=ii(B.target,Sn(G));z(ru(B.target,G),"keyboard",se),se&&ae(G,B.target),A(),G.key!=="Enter"&&Wx(B.target)&&ii(B.target,W)&&!G[US]&&(G[US]=!0,yu(B.target,G,!1)),B.isPressed=!1,(Z=B.metaKeyEvents)===null||Z===void 0||Z.delete(G.key)}else if(G.key==="Meta"&&(!((fe=B.metaKeyEvents)===null||fe===void 0)&&fe.size)){var q;let W=B.metaKeyEvents;B.metaKeyEvents=void 0;for(let se of W.values())(q=B.target)===null||q===void 0||q.dispatchEvent(new KeyboardEvent("keyup",se))}};if(typeof PointerEvent<"u"){Y.onPointerDown=Z=>{if(Z.button!==0||!ii(Z.currentTarget,Sn(Z.nativeEvent)))return;if(dM(Z.nativeEvent)){B.pointerType="virtual";return}B.pointerType=Z.pointerType;let q=!0;if(!B.isPressed){B.isPressed=!0,B.isOverTarget=!0,B.activePointerId=Z.pointerId,B.target=Z.currentTarget,g||CF(B.target),q=L(Z,B.pointerType);let W=Sn(Z.nativeEvent);"releasePointerCapture"in W&&W.releasePointerCapture(Z.pointerId),T(At(Z.currentTarget),"pointerup",G,!1),T(At(Z.currentTarget),"pointercancel",fe,!1)}q&&Z.stopPropagation()},Y.onMouseDown=Z=>{if(ii(Z.currentTarget,Sn(Z.nativeEvent))&&Z.button===0){if(h){let q=kF(Z.target);q&&B.disposables.push(q)}Z.stopPropagation()}},Y.onPointerUp=Z=>{!ii(Z.currentTarget,Sn(Z.nativeEvent))||B.pointerType==="virtual"||Z.button===0&&!B.isPressed&&K(Z,B.pointerType||Z.pointerType)},Y.onPointerEnter=Z=>{Z.pointerId===B.activePointerId&&B.target&&!B.isOverTarget&&B.pointerType!=null&&(B.isOverTarget=!0,L(ru(B.target,Z),B.pointerType))},Y.onPointerLeave=Z=>{Z.pointerId===B.activePointerId&&B.target&&B.isOverTarget&&B.pointerType!=null&&(B.isOverTarget=!1,z(ru(B.target,Z),B.pointerType,!1),J(Z))};let G=Z=>{if(Z.pointerId===B.activePointerId&&B.isPressed&&Z.button===0&&B.target){if(ii(B.target,Sn(Z))&&B.pointerType!=null){let q=!1,W=setTimeout(()=>{B.isPressed&&B.target instanceof HTMLElement&&(q?M(Z):(Ql(B.target),B.target.click()))},80);T(Z.currentTarget,"click",()=>q=!0,!0),B.disposables.push(()=>clearTimeout(W))}else M(Z);B.isOverTarget=!1}},fe=Z=>{M(Z)};Y.onDragStart=Z=>{ii(Z.currentTarget,Sn(Z.nativeEvent))&&M(Z)}}return Y},[T,c,h,A,g,M,J,z,L,K,re,ae]);return S.useEffect(()=>{if(!b)return;const B=At(b.current);if(!B||!B.head||B.getElementById(KS))return;const Y=B.createElement("style");Y.id=KS,Y.textContent=`
-@layer {
- [${WS}] {
- touch-action: pan-x pan-y pinch-zoom;
- }
-}
- `.trim(),B.head.prepend(Y)},[b]),S.useEffect(()=>{let B=_.current;return()=>{var Y;g||BS((Y=B.target)!==null&&Y!==void 0?Y:void 0);for(let te of B.disposables)te();B.disposables=[]}},[g]),{isPressed:d||k,pressProps:ar(x,j,{[WS]:!0})}}function Wx(e){return e.tagName==="A"&&e.hasAttribute("href")}function s0(e,t){const{key:n,code:r}=e,i=t,s=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Zi(i).HTMLInputElement&&!ET(i,n)||i instanceof Zi(i).HTMLTextAreaElement||i.isContentEditable)&&!((s==="link"||!s&&Wx(i))&&n!=="Enter")}function ru(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function $F(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Wx(e)}function HS(e,t){return e instanceof HTMLInputElement?!ET(e,t):$F(e)}const IF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ET(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":IF.has(e.type)}let Zs=null,th=new Set,Fp=new Map,bu=!1,hb=!1;const AF={Tab:!0,Escape:!0};function gv(e,t){for(let n of th)n(e,t)}function RF(e){return!(e.metaKey||!vu()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wg(e){bu=!0,RF(e)&&(Zs="keyboard",gv("keyboard",e))}function pf(e){Zs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(bu=!0,gv("pointer",e))}function PT(e){NE(e)&&(bu=!0,Zs="virtual")}function TT(e){e.target===window||e.target===document||Kg||!e.isTrusted||(!bu&&!hb&&(Zs="virtual",gv("virtual",e)),bu=!1,hb=!1)}function _T(){Kg||(bu=!1,hb=!0)}function Hg(e){if(typeof window>"u"||typeof document>"u"||Fp.get(Zi(e)))return;const t=Zi(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){bu=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wg,!0),n.addEventListener("keyup",Wg,!0),n.addEventListener("click",PT,!0),t.addEventListener("focus",TT,!0),t.addEventListener("blur",_T,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",pf,!0),n.addEventListener("pointermove",pf,!0),n.addEventListener("pointerup",pf,!0)),t.addEventListener("beforeunload",()=>{$T(e)},{once:!0}),Fp.set(t,{focus:r})}const $T=(e,t)=>{const n=Zi(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),Fp.has(n)&&(n.HTMLElement.prototype.focus=Fp.get(n).focus,r.removeEventListener("keydown",Wg,!0),r.removeEventListener("keyup",Wg,!0),r.removeEventListener("click",PT,!0),n.removeEventListener("focus",TT,!0),n.removeEventListener("blur",_T,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",pf,!0),r.removeEventListener("pointermove",pf,!0),r.removeEventListener("pointerup",pf,!0)),Fp.delete(n))};function LF(e){const t=At(e);let n;return t.readyState!=="loading"?Hg(e):(n=()=>{Hg(e)},t.addEventListener("DOMContentLoaded",n)),()=>$T(e,n)}typeof document<"u"&&LF();function Hx(){return Zs!=="pointer"}function nh(){return Zs}function MF(e){Zs=e,gv(e,null)}function OG(){Hg();let[e,t]=S.useState(Zs);return S.useEffect(()=>{let n=()=>{t(Zs)};return th.add(n),()=>{th.delete(n)}},[]),fh()?null:e}const DF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function NF(e,t,n){let r=At(n?.target);const i=typeof window<"u"?Zi(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Zi(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,l=typeof window<"u"?Zi(n?.target).HTMLElement:HTMLElement,c=typeof window<"u"?Zi(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!DF.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof l&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!AF[n.key])}function FF(e,t,n){Hg(),S.useEffect(()=>{let r=(i,s)=>{NF(!!n?.isTextInput,i,s)&&e(Hx())};return th.add(r),()=>{th.delete(r)}},t)}function xu(e){const t=At(e),n=Dr(t);if(nh()==="virtual"){let r=n;AE(()=>{Dr(t)===r&&e.isConnected&&Ql(e)})}else Ql(e)}function IT(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const s=S.useCallback(d=>{if(d.target===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),l=kT(s),c=S.useCallback(d=>{const h=At(d.target),m=h?Dr(h):Dr();d.target===d.currentTarget&&m===Sn(d.nativeEvent)&&(n&&n(d),i&&i(!0),l(d))},[i,n,l]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:!t&&(r||i)?s:void 0}}}function GS(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function OF(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:GS(e.onKeyDown),onKeyUp:GS(e.onKeyUp)}}}let zF=We.createContext(null);function jF(e){let t=S.useContext(zF)||{};LE(t,e);let{ref:n,...r}=t;return r}function vv(e,t){let{focusProps:n}=IT(e),{keyboardProps:r}=OF(e),i=ar(n,r),s=jF(t),l=e.isDisabled?{}:s,c=S.useRef(e.autoFocus);S.useEffect(()=>{c.current&&t.current&&xu(t.current),c.current=!1},[t]);let d=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(d=void 0),{focusableProps:ar({...i,tabIndex:d},l)}}function BF({children:e}){let t=S.useMemo(()=>({register:()=>{}}),[]);return We.createElement(Kx.Provider,{value:t},e)}function yv(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,s=S.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:c}=ax(),d=S.useCallback(g=>{g.currentTarget.contains(g.target)&&s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,c(),n&&n(g),i&&i(!1))},[n,i,s,c]),h=kT(d),m=S.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const b=At(g.target),x=Dr(b);if(!s.current.isFocusWithin&&x===Sn(g.nativeEvent)){r&&r(g),i&&i(!0),s.current.isFocusWithin=!0,h(g);let k=g.currentTarget;l(b,"focus",P=>{if(s.current.isFocusWithin&&!ii(k,P.target)){let _=new b.defaultView.FocusEvent("blur",{relatedTarget:P.target});ST(_,k);let T=Ux(_);d(T)}},{capture:!0})}},[r,i,h,l,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:d}}}let mb=!1,l0=0;function VF(){mb=!0,setTimeout(()=>{mb=!1},50)}function qS(e){e.pointerType==="touch"&&VF()}function UF(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",qS),l0++,()=>{l0--,!(l0>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",qS)}}function Cf(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[s,l]=S.useState(!1),c=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(UF,[]);let{addGlobalListener:d,removeAllGlobalListeners:h}=ax(),{hoverProps:m,triggerHoverEnd:g}=S.useMemo(()=>{let b=(P,_)=>{if(c.pointerType=_,i||_==="touch"||c.isHovered||!P.currentTarget.contains(P.target))return;c.isHovered=!0;let T=P.currentTarget;c.target=T,d(At(P.target),"pointerover",A=>{c.isHovered&&c.target&&!ii(c.target,A.target)&&x(A,A.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:T,pointerType:_}),n&&n(!0),l(!0)},x=(P,_)=>{let T=c.target;c.pointerType="",c.target=null,!(_==="touch"||!c.isHovered||!T)&&(c.isHovered=!1,h(),r&&r({type:"hoverend",target:T,pointerType:_}),n&&n(!1),l(!1))},k={};return typeof PointerEvent<"u"&&(k.onPointerEnter=P=>{mb&&P.pointerType==="mouse"||b(P,P.pointerType)},k.onPointerLeave=P=>{!i&&P.currentTarget.contains(P.target)&&x(P,P.pointerType)}),{hoverProps:k,triggerHoverEnd:x}},[t,n,r,i,c,d,h]);return S.useEffect(()=>{i&&g({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:m,isHovered:s}}function KF(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,s=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=On(d=>{n&&YS(d,t)&&(i&&i(d),s.current.isPointerDown=!0)}),c=On(d=>{n&&n(d)});S.useEffect(()=>{let d=s.current;if(r)return;const h=t.current,m=At(h);if(typeof PointerEvent<"u"){let g=b=>{d.isPointerDown&&YS(b,t)&&c(b),d.isPointerDown=!1};return m.addEventListener("pointerdown",l,!0),m.addEventListener("click",g,!0),()=>{m.removeEventListener("pointerdown",l,!0),m.removeEventListener("click",g,!0)}}},[t,r,l,c])}function YS(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const XS=We.createContext(null),gb="react-aria-focus-scope-restore";let Ht=null;function WF(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,s=S.useRef(null),l=S.useRef(null),c=S.useRef([]),{parentNode:d}=S.useContext(XS)||{},h=S.useMemo(()=>new yb({scopeRef:c}),[c]);en(()=>{let b=d||$n.root;if($n.getTreeNode(b.scopeRef)&&Ht&&!Gg(Ht,b.scopeRef)){let x=$n.getTreeNode(Ht);x&&(b=x)}b.addChild(h),$n.addNode(h)},[h,d]),en(()=>{let b=$n.getTreeNode(c);b&&(b.contain=!!n)},[n]),en(()=>{var b;let x=(b=s.current)===null||b===void 0?void 0:b.nextSibling,k=[],P=_=>_.stopPropagation();for(;x&&x!==l.current;)k.push(x),x.addEventListener(gb,P),x=x.nextSibling;return c.current=k,()=>{for(let _ of k)_.removeEventListener(gb,P)}},[t]),XF(c,r,n),GF(c,n),QF(c,r,n),YF(c,i),S.useEffect(()=>{const b=Dr(At(c.current?c.current[0]:void 0));let x=null;if(to(b,c.current)){for(let k of $n.traverse())k.scopeRef&&to(b,k.scopeRef.current)&&(x=k);x===$n.getTreeNode(c)&&(Ht=x.scopeRef)}},[c]),en(()=>()=>{var b,x,k;let P=(k=(x=$n.getTreeNode(c))===null||x===void 0||(b=x.parent)===null||b===void 0?void 0:b.scopeRef)!==null&&k!==void 0?k:null;(c===Ht||Gg(c,Ht))&&(!P||$n.getTreeNode(P))&&(Ht=P),$n.removeTreeNode(c)},[c]);let m=S.useMemo(()=>HF(c),[]),g=S.useMemo(()=>({focusManager:m,parentNode:h}),[h,m]);return We.createElement(XS.Provider,{value:g},We.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,We.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function HF(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:l}=t;var c;let d=r||Dr(At((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[0].previousElementSibling,m=pu(n),g=Xs(m,{tabbable:i,accept:l},n);g.currentNode=to(d,n)?d:h;let b=g.nextNode();return!b&&s&&(g.currentNode=h,b=g.nextNode()),b&&Ys(b,!0),b},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:s,accept:l}=t;var c;let d=r||Dr(At((c=n[0])!==null&&c!==void 0?c:void 0)),h=n[n.length-1].nextElementSibling,m=pu(n),g=Xs(m,{tabbable:i,accept:l},n);g.currentNode=to(d,n)?d:h;let b=g.previousNode();return!b&&s&&(g.currentNode=h,b=g.previousNode()),b&&Ys(b,!0),b},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=pu(n),l=Xs(s,{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let c=l.nextNode();return c&&Ys(c,!0),c},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,s=pu(n),l=Xs(s,{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let c=l.previousNode();return c&&Ys(c,!0),c}}}function pu(e){return e[0].parentElement}function _p(e){let t=$n.getTreeNode(Ht);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function GF(e,t){let n=S.useRef(void 0),r=S.useRef(void 0);en(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const s=At(i?i[0]:void 0);let l=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!_p(e)||h.isComposing)return;let m=Dr(s),g=e.current;if(!g||!to(m,g))return;let b=pu(g),x=Xs(b,{tabbable:!0},g);if(!m)return;x.currentNode=m;let k=h.shiftKey?x.previousNode():x.nextNode();k||(x.currentNode=h.shiftKey?g[g.length-1].nextElementSibling:g[0].previousElementSibling,k=h.shiftKey?x.previousNode():x.nextNode()),h.preventDefault(),k&&Ys(k,!0)},c=h=>{(!Ht||Gg(Ht,e))&&to(Sn(h),e.current)?(Ht=e,n.current=Sn(h)):_p(e)&&!ql(Sn(h),e)?n.current?n.current.focus():Ht&&Ht.current&&vb(Ht.current):_p(e)&&(n.current=Sn(h))},d=h=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let m=nh(),g=(m==="virtual"||m===null)&&sx()&&_E(),b=Dr(s);if(!g&&b&&_p(e)&&!ql(b,e)){Ht=e;let k=Sn(h);if(k&&k.isConnected){var x;n.current=k,(x=n.current)===null||x===void 0||x.focus()}else Ht.current&&vb(Ht.current)}})};return s.addEventListener("keydown",l,!1),s.addEventListener("focusin",c,!1),i?.forEach(h=>h.addEventListener("focusin",c,!1)),i?.forEach(h=>h.addEventListener("focusout",d,!1)),()=>{s.removeEventListener("keydown",l,!1),s.removeEventListener("focusin",c,!1),i?.forEach(h=>h.removeEventListener("focusin",c,!1)),i?.forEach(h=>h.removeEventListener("focusout",d,!1))}},[e,t]),en(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function AT(e){return ql(e)}function to(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ql(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of $n.traverse($n.getTreeNode(t)))if(n&&to(e,n.current))return!0;return!1}function qF(e){return ql(e,Ht)}function Gg(e,t){var n;let r=(n=$n.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Ys(e,t=!1){if(e!=null&&!t)try{xu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function RT(e,t=!0){let n=e[0].previousElementSibling,r=pu(e),i=Xs(r,{tabbable:t},e);i.currentNode=n;let s=i.nextNode();return t&&!s&&(r=pu(e),i=Xs(r,{tabbable:!1},e),i.currentNode=n,s=i.nextNode()),s}function vb(e,t=!0){Ys(RT(e,t))}function YF(e,t){const n=We.useRef(t);S.useEffect(()=>{if(n.current){Ht=e;const r=At(e.current?e.current[0]:void 0);!to(Dr(r),Ht.current)&&e.current&&vb(e.current)}n.current=!1},[e])}function XF(e,t,n){en(()=>{if(t||n)return;let r=e.current;const i=At(r?r[0]:void 0);let s=l=>{let c=Sn(l);to(c,e.current)?Ht=e:AT(c)||(Ht=null)};return i.addEventListener("focusin",s,!1),r?.forEach(l=>l.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),r?.forEach(l=>l.removeEventListener("focusin",s,!1))}},[e,t,n])}function QS(e){let t=$n.getTreeNode(Ht);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function QF(e,t,n){const r=S.useRef(typeof document<"u"?Dr(At(e.current?e.current[0]:void 0)):null);en(()=>{let i=e.current;const s=At(i?i[0]:void 0);if(!t||n)return;let l=()=>{(!Ht||Gg(Ht,e))&&to(Dr(s),e.current)&&(Ht=e)};return s.addEventListener("focusin",l,!1),i?.forEach(c=>c.addEventListener("focusin",l,!1)),()=>{s.removeEventListener("focusin",l,!1),i?.forEach(c=>c.removeEventListener("focusin",l,!1))}},[e,n]),en(()=>{const i=At(e.current?e.current[0]:void 0);if(!t)return;let s=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!_p(e)||l.isComposing)return;let c=i.activeElement;if(!ql(c,e)||!QS(e))return;let d=$n.getTreeNode(e);if(!d)return;let h=d.nodeToRestore,m=Xs(i.body,{tabbable:!0});m.currentNode=c;let g=l.shiftKey?m.previousNode():m.nextNode();if((!h||!h.isConnected||h===i.body)&&(h=void 0,d.nodeToRestore=void 0),(!g||!ql(g,e))&&h){m.currentNode=h;do g=l.shiftKey?m.previousNode():m.nextNode();while(ql(g,e));l.preventDefault(),l.stopPropagation(),g?Ys(g,!0):AT(h)?Ys(h,!0):c.blur()}};return n||i.addEventListener("keydown",s,!0),()=>{n||i.removeEventListener("keydown",s,!0)}},[e,t,n]),en(()=>{const i=At(e.current?e.current[0]:void 0);if(!t)return;let s=$n.getTreeNode(e);if(s){var l;return s.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let c=$n.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,h=Dr(i);if(t&&d&&(h&&ql(h,e)||h===i.body&&QS(e))){let m=$n.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let g=m.getTreeNode(e);for(;g;){if(g.nodeToRestore&&g.nodeToRestore.isConnected){JS(g.nodeToRestore);return}g=g.parent}for(g=m.getTreeNode(e);g;){if(g.scopeRef&&g.scopeRef.current&&$n.getTreeNode(g.scopeRef)){let b=RT(g.scopeRef.current,!0);JS(b);return}g=g.parent}}})}}}},[e,t])}function JS(e){e.dispatchEvent(new CustomEvent(gb,{bubbles:!0,cancelable:!0}))&&Ys(e)}function Xs(e,t,n){let r=t?.tabbable?yM:zE,i=e?.nodeType===Node.ELEMENT_NODE?e:null,s=At(i),l=qL(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(c){var d;return!(t==null||(d=t.from)===null||d===void 0)&&d.contains(c)?NodeFilter.FILTER_REJECT:r(c)&&wT(c)&&(!n||to(c,n))&&(!t?.accept||t.accept(c))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(l.currentNode=t.from),l}class Gx{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let s=new yb({scopeRef:t});i.addChild(s),s.parent=i,this.fastMap.set(t,s),r&&(s.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&to(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(s=>r&&r.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Gx;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let $n=new Gx;function rh(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=S.useRef({isFocused:!1,isFocusVisible:t||Hx()}),[s,l]=S.useState(!1),[c,d]=S.useState(()=>i.current.isFocused&&i.current.isFocusVisible),h=S.useCallback(()=>d(i.current.isFocused&&i.current.isFocusVisible),[]),m=S.useCallback(x=>{i.current.isFocused=x,l(x),h()},[h]);FF(x=>{i.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:g}=IT({isDisabled:r,onFocusChange:m}),{focusWithinProps:b}=yv({isDisabled:!r,onFocusWithinChange:m});return{isFocused:s,isFocusVisible:c,focusProps:r?b:g}}function JF(e){let t=t5(At(e));t!==e&&(t&&ZF(t,e),e&&e5(e,t))}function ZF(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function e5(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function t5(e){let t=Dr(e),n=t?.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}const a0=typeof document<"u"&&window.visualViewport,n5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let dg=0,u0;function r5(e={}){let{isDisabled:t}=e;en(()=>{if(!t)return dg++,dg===1&&(cv()?u0=o5():u0=i5()),()=>{dg--,dg===0&&u0()}},[t])}function i5(){let e=window.innerWidth-document.documentElement.clientWidth;return bf(e>0&&("scrollbarGutter"in document.documentElement.style?hu(document.documentElement,"scrollbarGutter","stable"):hu(document.documentElement,"paddingRight",`${e}px`)),hu(document.documentElement,"overflow","hidden"))}function o5(){let e,t,n=h=>{e=ME(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=hu(e,"overscrollBehavior","contain"))},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},i=()=>{t&&t()},s=h=>{let m=h.target;s5(m)&&(c(),m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",a0&&(a0.height{ZS(m)}):a0.addEventListener("resize",()=>ZS(m),{once:!0}))}))},l=null,c=()=>{if(l)return;let h=()=>{window.scrollTo(0,0)},m=window.pageXOffset,g=window.pageYOffset;l=bf(dp(window,"scroll",h),hu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),hu(document.documentElement,"overflow","hidden"),hu(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(m,g)}),window.scrollTo(0,0)},d=bf(dp(document,"touchstart",n,{passive:!1,capture:!0}),dp(document,"touchmove",r,{passive:!1,capture:!0}),dp(document,"touchend",i,{passive:!1,capture:!0}),dp(document,"focus",s,!0));return()=>{t?.(),l?.(),d()}}function hu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function dp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ZS(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ME(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,s=n.getBoundingClientRect().top;s>i+n.clientHeight&&(r.scrollTop+=s-i)}n=r.parentElement}}function s5(e){return e instanceof HTMLInputElement&&!n5.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const l5=S.createContext({});function LT(){var e;return(e=S.useContext(l5))!==null&&e!==void 0?e:{}}const bb=We.createContext(null);function a5(e){let{children:t}=e,n=S.useContext(bb),[r,i]=S.useState(0),s=S.useMemo(()=>({parent:n,modalCount:r,addModal(){i(l=>l+1),n&&n.addModal()},removeModal(){i(l=>l-1),n&&n.removeModal()}}),[n,r]);return We.createElement(bb.Provider,{value:s},t)}function u5(){let e=S.useContext(bb);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function c5(e){let{modalProviderProps:t}=u5();return We.createElement("div",{"data-overlay-container":!0,...e,...t})}function MT(e){return We.createElement(a5,null,We.createElement(c5,e))}function ek(e){let t=fh(),{portalContainer:n=t?null:document.body,...r}=e,{getContainer:i}=LT();if(!e.portalContainer&&i&&(n=i()),We.useEffect(()=>{if(n?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let s=We.createElement(MT,r);return OE.createPortal(s,n)}var DT={};DT={dismiss:"تجاهل"};var NT={};NT={dismiss:"Отхвърляне"};var FT={};FT={dismiss:"Odstranit"};var OT={};OT={dismiss:"Luk"};var zT={};zT={dismiss:"Schließen"};var jT={};jT={dismiss:"Απόρριψη"};var BT={};BT={dismiss:"Dismiss"};var VT={};VT={dismiss:"Descartar"};var UT={};UT={dismiss:"Lõpeta"};var KT={};KT={dismiss:"Hylkää"};var WT={};WT={dismiss:"Rejeter"};var HT={};HT={dismiss:"התעלם"};var GT={};GT={dismiss:"Odbaci"};var qT={};qT={dismiss:"Elutasítás"};var YT={};YT={dismiss:"Ignora"};var XT={};XT={dismiss:"閉じる"};var QT={};QT={dismiss:"무시"};var JT={};JT={dismiss:"Atmesti"};var ZT={};ZT={dismiss:"Nerādīt"};var e_={};e_={dismiss:"Lukk"};var t_={};t_={dismiss:"Negeren"};var n_={};n_={dismiss:"Zignoruj"};var r_={};r_={dismiss:"Descartar"};var i_={};i_={dismiss:"Dispensar"};var o_={};o_={dismiss:"Revocare"};var s_={};s_={dismiss:"Пропустить"};var l_={};l_={dismiss:"Zrušiť"};var a_={};a_={dismiss:"Opusti"};var u_={};u_={dismiss:"Odbaci"};var c_={};c_={dismiss:"Avvisa"};var f_={};f_={dismiss:"Kapat"};var d_={};d_={dismiss:"Скасувати"};var p_={};p_={dismiss:"取消"};var h_={};h_={dismiss:"關閉"};var m_={};m_={"ar-AE":DT,"bg-BG":NT,"cs-CZ":FT,"da-DK":OT,"de-DE":zT,"el-GR":jT,"en-US":BT,"es-ES":VT,"et-EE":UT,"fi-FI":KT,"fr-FR":WT,"he-IL":HT,"hr-HR":GT,"hu-HU":qT,"it-IT":YT,"ja-JP":XT,"ko-KR":QT,"lt-LT":JT,"lv-LV":ZT,"nb-NO":e_,"nl-NL":t_,"pl-PL":n_,"pt-BR":r_,"pt-PT":i_,"ro-RO":o_,"ru-RU":s_,"sk-SK":l_,"sl-SI":a_,"sr-SP":u_,"sv-SE":c_,"tr-TR":f_,"uk-UA":d_,"zh-CN":p_,"zh-TW":h_};const tk={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function f5(e={}){let{style:t,isFocusable:n}=e,[r,i]=S.useState(!1),{focusWithinProps:s}=yv({isDisabled:!n,onFocusWithinChange:c=>i(c)}),l=S.useMemo(()=>r?t:t?{...tk,...t}:tk,[r]);return{visuallyHiddenProps:{...s,style:l}}}function d5(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...s}=e,{visuallyHiddenProps:l}=f5(e);return We.createElement(n,ar(s,l),t)}function p5(e){return e&&e.__esModule?e.default:e}function nk(e){let{onDismiss:t,...n}=e,r=FL(p5(m_),"@react-aria/overlays"),i=RE(n,r.format("dismiss")),s=()=>{t&&t()};return We.createElement(d5,null,We.createElement("button",{...i,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}let pp=new WeakMap,qi=[];function h5(e,t=document.body){let n=new Set(e),r=new Set,i=d=>{for(let b of d.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(b);let h=b=>{if(n.has(b)||b.parentElement&&r.has(b.parentElement)&&b.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let x of n)if(b.contains(x))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},m=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),g=h(d);if(g===NodeFilter.FILTER_ACCEPT&&s(d),g!==NodeFilter.FILTER_REJECT){let b=m.nextNode();for(;b!=null;)s(b),b=m.nextNode()}},s=d=>{var h;let m=(h=pp.get(d))!==null&&h!==void 0?h:0;d.getAttribute("aria-hidden")==="true"&&m===0||(m===0&&d.setAttribute("aria-hidden","true"),r.add(d),pp.set(d,m+1))};qi.length&&qi[qi.length-1].disconnect(),i(t);let l=new MutationObserver(d=>{for(let h of d)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...r].some(m=>m.contains(h.target))){for(let m of h.removedNodes)m instanceof Element&&(n.delete(m),r.delete(m));for(let m of h.addedNodes)(m instanceof HTMLElement||m instanceof SVGElement)&&(m.dataset.liveAnnouncer==="true"||m.dataset.reactAriaTopLayer==="true")?n.add(m):m instanceof Element&&i(m)}});l.observe(t,{childList:!0,subtree:!0});let c={visibleNodes:n,hiddenNodes:r,observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return qi.push(c),()=>{l.disconnect();for(let d of r){let h=pp.get(d);h!=null&&(h===1?(d.removeAttribute("aria-hidden"),pp.delete(d)):pp.set(d,h-1))}c===qi[qi.length-1]?(qi.pop(),qi.length&&qi[qi.length-1].observe()):qi.splice(qi.indexOf(c),1)}}const g_=We.createContext(null);function m5(e){let t=fh(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,s]=S.useState(!1),l=S.useMemo(()=>({contain:i,setContain:s}),[i,s]),{getContainer:c}=LT();if(!e.portalContainer&&c&&(n=c()),!n)return null;let d=e.children;return e.disableFocusManagement||(d=We.createElement(WF,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},d)),d=We.createElement(g_.Provider,{value:l},We.createElement(BF,null,d)),OE.createPortal(d,n)}function v_(){let e=S.useContext(g_),t=e?.setContain;en(()=>{t?.(!0)},[t])}var g5=({children:e,navigate:t,disableAnimation:n,useHref:r,disableRipple:i=!1,skipFramerMotionAnimations:s=n,reducedMotion:l="never",validationBehavior:c,locale:d="en-US",labelPlacement:h,defaultDates:m,createCalendar:g,spinnerVariant:b,...x})=>{let k=e;t&&(k=N.jsx(sM,{navigate:t,useHref:r,children:k}));const P=S.useMemo(()=>(n&&s&&(fs.skipAnimations=!0),{createCalendar:g,defaultDates:m,disableAnimation:n,disableRipple:i,validationBehavior:c,labelPlacement:h,spinnerVariant:b}),[g,m?.maxDate,m?.minDate,n,i,c,h,b]);return N.jsx(vL,{value:P,children:N.jsx($L,{locale:d,children:N.jsx(R3,{reducedMotion:l,children:N.jsx(MT,{...x,children:k})})})})};function zG(e){const t=Ti(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function v5(e){const t=Ti(),n=t?.labelPlacement;return S.useMemo(()=>{var r,i;const s=(i=(r=e.labelPlacement)!=null?r:n)!=null?i:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,n,e.label])}function _i(e){return S.forwardRef(e)}var ta=(e,t,n=!0)=>{if(!t)return[e,{}];const r=t.reduce((i,s)=>s in e?{...i,[s]:e[s]}:i,{});return n?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,l)=>({...s,[l]:e[l]}),{}),r]:[e,r]},y5={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},b5={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},x5={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},w5={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},S5={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},k5={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},C5={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},Ze={solid:y5,shadow:b5,bordered:x5,flat:w5,faded:S5,light:k5,ghost:C5},E5={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},P5={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},T5={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},_5={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},rs="250ms",$5={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":rs},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":rs},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":rs},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":rs},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":rs},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":rs},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":rs},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":rs},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":rs},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":rs}},I5={...P5,...$5,...T5,..._5,...E5},pg=["small","medium","large"],xb={theme:{spacing:["divider"],radius:pg},classGroups:{shadow:[{shadow:pg}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...pg]}],"border-w":[{border:pg}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(I5).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},rk=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ni=e=>!e||typeof e!="object"||Object.keys(e).length===0,A5=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function y_(e,t){e.forEach(function(n){Array.isArray(n)?y_(n,t):t.push(n)})}function b_(e){let t=[];return y_(e,t),t}var x_=(...e)=>b_(e).filter(Boolean),w_=(e,t)=>{let n={},r=Object.keys(e),i=Object.keys(t);for(let s of r)if(i.includes(s)){let l=e[s],c=t[s];Array.isArray(l)||Array.isArray(c)?n[s]=x_(c,l):typeof l=="object"&&typeof c=="object"?n[s]=w_(l,c):n[s]=c+" "+l}else n[s]=e[s];for(let s of i)r.includes(s)||(n[s]=t[s]);return n},ik=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const qx="-",R5=e=>{const t=M5(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(qx);return c[0]===""&&c.length!==1&&c.shift(),S_(c,t)||L5(l)},getConflictingClassGroupIds:(l,c)=>{const d=n[l]||[];return c&&r[l]?[...d,...r[l]]:d}}},S_=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?S_(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(qx);return t.validators.find(({validator:l})=>l(s))?.classGroupId},ok=/^\[(.+)\]$/,L5=e=>{if(ok.test(e)){const t=ok.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},M5=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)wb(n[i],r,i,t);return r},wb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:sk(t,i);s.classGroupId=n;return}if(typeof i=="function"){if(D5(i)){wb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([s,l])=>{wb(l,sk(t,s),n,r)})})},sk=(e,t)=>{let n=e;return t.split(qx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},D5=e=>e.isThemeGetter,N5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return i(s,l),l},set(s,l){n.has(s)?n.set(s,l):i(s,l)}}},Sb="!",kb=":",F5=kb.length,O5=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let l=0,c=0,d=0,h;for(let k=0;kd?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:x}};if(t){const i=t+kb,s=r;r=l=>l.startsWith(i)?s(l.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},z5=e=>e.endsWith(Sb)?e.substring(0,e.length-1):e.startsWith(Sb)?e.substring(1):e,j5=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(i.push(...s.sort(),l),s=[]):s.push(l)}),i.push(...s.sort()),i}},B5=e=>({cache:N5(e.cacheSize),parseClassName:O5(e),sortModifiers:j5(e),...R5(e)}),V5=/\s+/,U5=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(V5);let d="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:g,modifiers:b,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:P}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let _=!!P,T=r(_?k.substring(0,P):k);if(!T){if(!_){d=m+(d.length>0?" "+d:d);continue}if(T=r(k),!T){d=m+(d.length>0?" "+d:d);continue}_=!1}const A=s(b).join(":"),L=x?A+Sb:A,z=L+T;if(l.includes(z))continue;l.push(z);const K=i(T,_);for(let M=0;M0?" "+d:d)}return d};function K5(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rg(m),e());return n=B5(h),r=n.cache.get,i=n.cache.set,s=c,c(d)}function c(d){const h=r(d);if(h)return h;const m=U5(d,n);return i(d,m),m}return function(){return s(K5.apply(null,arguments))}}const Yn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},C_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W5=/^\d+\/\d+$/,H5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G5=/\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$/,q5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Y5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jc=e=>W5.test(e),mt=e=>!!e&&!Number.isNaN(Number(e)),iu=e=>!!e&&Number.isInteger(Number(e)),lk=e=>e.endsWith("%")&&mt(e.slice(0,-1)),Kl=e=>H5.test(e),Q5=()=>!0,J5=e=>G5.test(e)&&!q5.test(e),Yx=()=>!1,Z5=e=>Y5.test(e),eO=e=>X5.test(e),tO=e=>!Ne(e)&&!Fe(e),nO=e=>Mf(e,__,Yx),Ne=e=>C_.test(e),ou=e=>Mf(e,$_,J5),c0=e=>Mf(e,pO,mt),rO=e=>Mf(e,P_,Yx),iO=e=>Mf(e,T_,eO),oO=e=>Mf(e,Yx,Z5),Fe=e=>E_.test(e),hg=e=>Df(e,$_),sO=e=>Df(e,hO),lO=e=>Df(e,P_),aO=e=>Df(e,__),uO=e=>Df(e,T_),cO=e=>Df(e,mO,!0),Mf=(e,t,n)=>{const r=C_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Df=(e,t,n=!1)=>{const r=E_.exec(e);return r?r[1]?t(r[1]):n:!1},P_=e=>e==="position",fO=new Set(["image","url"]),T_=e=>fO.has(e),dO=new Set(["length","size","percentage"]),__=e=>dO.has(e),$_=e=>e==="length",pO=e=>e==="number",hO=e=>e==="family-name",mO=e=>e==="shadow",Eb=()=>{const e=Yn("color"),t=Yn("font"),n=Yn("text"),r=Yn("font-weight"),i=Yn("tracking"),s=Yn("leading"),l=Yn("breakpoint"),c=Yn("container"),d=Yn("spacing"),h=Yn("radius"),m=Yn("shadow"),g=Yn("inset-shadow"),b=Yn("drop-shadow"),x=Yn("blur"),k=Yn("perspective"),P=Yn("aspect"),_=Yn("ease"),T=Yn("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],M=()=>[Fe,Ne,d],J=()=>[Jc,"full","auto",...M()],re=()=>[iu,"none","subgrid",Fe,Ne],ae=()=>["auto",{span:["full",iu,Fe,Ne]},Fe,Ne],j=()=>[iu,"auto",Fe,Ne],B=()=>["auto","min","max","fr",Fe,Ne],Y=()=>["start","end","center","between","around","evenly","stretch","baseline"],te=()=>["start","end","center","stretch"],G=()=>["auto",...M()],fe=()=>[Jc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],Z=()=>[e,Fe,Ne],q=()=>[lk,ou],W=()=>["","none","full",h,Fe,Ne],se=()=>["",mt,hg,ou],R=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["","none",x,Fe,Ne],O=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Fe,Ne],me=()=>["none",mt,Fe,Ne],Ee=()=>["none",mt,Fe,Ne],we=()=>[mt,Fe,Ne],je=()=>[Jc,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kl],breakpoint:[Kl],color:[Q5],container:[Kl],"drop-shadow":[Kl],ease:["in","out","in-out"],font:[tO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kl],shadow:[Kl],spacing:["px",mt],text:[Kl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jc,Ne,Fe,P]}],container:["container"],columns:[{columns:[mt,Ne,Fe,c]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),Ne,Fe]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[iu,"auto",Fe,Ne]}],basis:[{basis:[Jc,"full","auto",c,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mt,Jc,"auto","initial","none",Ne]}],grow:[{grow:["",mt,Fe,Ne]}],shrink:[{shrink:["",mt,Fe,Ne]}],order:[{order:[iu,"first","last","none",Fe,Ne]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...te(),"baseline"]}],"align-self":[{self:["auto",...te(),"baseline"]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],w:[{w:[c,"screen",...fe()]}],"min-w":[{"min-w":[c,"screen","none",...fe()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...fe()]}],h:[{h:["screen",...fe()]}],"min-h":[{"min-h":["screen","none",...fe()]}],"max-h":[{"max-h":["screen",...fe()]}],"font-size":[{text:["base",n,hg,ou]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Fe,c0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lk,Ne]}],"font-family":[{font:[sO,Ne,t]}],"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:[i,Fe,Ne]}],"line-clamp":[{"line-clamp":[mt,"none",Fe,c0]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",Fe,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Fe,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[mt,"from-font","auto",Fe,ou]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[mt,"auto",Fe,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Fe,Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Fe,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),lO,rO]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",aO,nO]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},iu,Fe,Ne],radial:["",Fe,Ne],conic:[iu,Fe,Ne]},uO,iO]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[mt,Fe,Ne]}],"outline-w":[{outline:["",mt,hg,ou]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,cO,oO]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",Fe,Ne,g]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[mt,ou]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Z()}],opacity:[{opacity:[mt,Fe,Ne]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none",Fe,Ne]}],blur:[{blur:oe()}],brightness:[{brightness:[mt,Fe,Ne]}],contrast:[{contrast:[mt,Fe,Ne]}],"drop-shadow":[{"drop-shadow":["","none",b,Fe,Ne]}],grayscale:[{grayscale:["",mt,Fe,Ne]}],"hue-rotate":[{"hue-rotate":[mt,Fe,Ne]}],invert:[{invert:["",mt,Fe,Ne]}],saturate:[{saturate:[mt,Fe,Ne]}],sepia:[{sepia:["",mt,Fe,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",Fe,Ne]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[mt,Fe,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[mt,Fe,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mt,Fe,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mt,Fe,Ne]}],"backdrop-invert":[{"backdrop-invert":["",mt,Fe,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[mt,Fe,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[mt,Fe,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",mt,Fe,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Fe,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mt,"initial",Fe,Ne]}],ease:[{ease:["linear","initial",_,Fe,Ne]}],delay:[{delay:[mt,Fe,Ne]}],animate:[{animate:["none",T,Fe,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,Fe,Ne]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:we()}],"skew-x":[{"skew-x":we()}],"skew-y":[{"skew-y":we()}],transform:[{transform:[Fe,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:je()}],"translate-x":[{"translate-x":je()}],"translate-y":[{"translate-y":je()}],"translate-z":[{"translate-z":je()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"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",Fe,Ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Fe,Ne]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[mt,hg,ou,c0]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},gO=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:s={}})=>($p(e,"cacheSize",t),$p(e,"prefix",n),$p(e,"experimentalParseClassName",r),mg(e.theme,s.theme),mg(e.classGroups,s.classGroups),mg(e.conflictingClassGroups,s.conflictingClassGroups),mg(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),$p(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),gg(e.theme,i.theme),gg(e.classGroups,i.classGroups),gg(e.conflictingClassGroups,i.conflictingClassGroups),gg(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),I_(e,i,"orderSensitiveModifiers"),e),$p=(e,t,n)=>{n!==void 0&&(e[t]=n)},mg=(e,t)=>{if(t)for(const n in t)$p(e,n,t[n])},gg=(e,t)=>{if(t)for(const n in t)I_(e,t,n)},I_=(e,t,n)=>{const r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},A_=(e,...t)=>typeof e=="function"?Cb(Eb,e,...t):Cb(()=>gO(Eb(),e),...t),vO=Cb(Eb);var yO={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},R_=e=>e||void 0,ih=(...e)=>R_(b_(e).filter(Boolean).join(" ")),f0=null,qs={},Pb=!1,hp=(...e)=>t=>t.twMerge?((!f0||Pb)&&(Pb=!1,f0=ni(qs)?vO:A_({...qs,extend:{theme:qs.theme,classGroups:qs.classGroups,conflictingClassGroupModifiers:qs.conflictingClassGroupModifiers,conflictingClassGroups:qs.conflictingClassGroups,...qs.extend}})),R_(f0(ih(e)))):ih(e),ak=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=ih(e[n],t[n]):e[n]=t[n];return e},bO=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:s=[],compoundSlots:l=[],defaultVariants:c={}}=e,d={...yO,...t},h=n!=null&&n.base?ih(n.base,e?.base):e?.base,m=n!=null&&n.variants&&!ni(n.variants)?w_(i,n.variants):i,g=n!=null&&n.defaultVariants&&!ni(n.defaultVariants)?{...n.defaultVariants,...c}:c;!ni(d.twMergeConfig)&&!A5(d.twMergeConfig,qs)&&(Pb=!0,qs=d.twMergeConfig);let b=ni(n?.slots),x=ni(r)?{}:{base:ih(e?.base,b&&n?.base),...r},k=b?x:ak({...n?.slots},ni(x)?{base:e?.base}:x),P=ni(n?.compoundVariants)?s:x_(n?.compoundVariants,s),_=A=>{if(ni(m)&&ni(r)&&b)return hp(h,A?.class,A?.className)(d);if(P&&!Array.isArray(P))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof P}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let L=(Y,te,G=[],fe)=>{let Z=G;if(typeof te=="string")Z=Z.concat(ik(te).split(" ").map(q=>`${Y}:${q}`));else if(Array.isArray(te))Z=Z.concat(te.reduce((q,W)=>q.concat(`${Y}:${W}`),[]));else if(typeof te=="object"&&typeof fe=="string"){for(let q in te)if(te.hasOwnProperty(q)&&q===fe){let W=te[q];if(W&&typeof W=="string"){let se=ik(W);Z[fe]?Z[fe]=Z[fe].concat(se.split(" ").map(R=>`${Y}:${R}`)):Z[fe]=se.split(" ").map(R=>`${Y}:${R}`)}else Array.isArray(W)&&W.length>0&&(Z[fe]=W.reduce((se,R)=>se.concat(`${Y}:${R}`),[]))}}return Z},z=(Y,te=m,G=null,fe=null)=>{var Z;let q=te[Y];if(!q||ni(q))return null;let W=(Z=fe?.[Y])!=null?Z:A?.[Y];if(W===null)return null;let se=rk(W),R=Array.isArray(d.responsiveVariants)&&d.responsiveVariants.length>0||d.responsiveVariants===!0,V=g?.[Y],oe=[];if(typeof se=="object"&&R)for(let[Ee,we]of Object.entries(se)){let je=q[we];if(Ee==="initial"){V=we;continue}Array.isArray(d.responsiveVariants)&&!d.responsiveVariants.includes(Ee)||(oe=L(Ee,je,oe,G))}let O=se!=null&&typeof se!="object"?se:rk(V),me=q[O||"false"];return typeof oe=="object"&&typeof G=="string"&&oe[G]?ak(oe,me):oe.length>0?(oe.push(me),G==="base"?oe.join(" "):oe):me},K=()=>m?Object.keys(m).map(Y=>z(Y,m)):null,M=(Y,te)=>{if(!m||typeof m!="object")return null;let G=new Array;for(let fe in m){let Z=z(fe,m,Y,te),q=Y==="base"&&typeof Z=="string"?Z:Z&&Z[Y];q&&(G[G.length]=q)}return G},J={};for(let Y in A)A[Y]!==void 0&&(J[Y]=A[Y]);let re=(Y,te)=>{var G;let fe=typeof A?.[Y]=="object"?{[Y]:(G=A[Y])==null?void 0:G.initial}:{};return{...g,...J,...fe,...te}},ae=(Y=[],te)=>{let G=[];for(let{class:fe,className:Z,...q}of Y){let W=!0;for(let[se,R]of Object.entries(q)){let V=re(se,te)[se];if(Array.isArray(R)){if(!R.includes(V)){W=!1;break}}else{let oe=O=>O==null||O===!1;if(oe(R)&&oe(V))continue;if(V!==R){W=!1;break}}}W&&(fe&&G.push(fe),Z&&G.push(Z))}return G},j=Y=>{let te=ae(P,Y);if(!Array.isArray(te))return te;let G={};for(let fe of te)if(typeof fe=="string"&&(G.base=hp(G.base,fe)(d)),typeof fe=="object")for(let[Z,q]of Object.entries(fe))G[Z]=hp(G[Z],q)(d);return G},B=Y=>{if(l.length<1)return null;let te={};for(let{slots:G=[],class:fe,className:Z,...q}of l){if(!ni(q)){let W=!0;for(let se of Object.keys(q)){let R=re(se,Y)[se];if(R===void 0||(Array.isArray(q[se])?!q[se].includes(R):q[se]!==R)){W=!1;break}}if(!W)continue}for(let W of G)te[W]=te[W]||[],te[W].push([fe,Z])}return te};if(!ni(r)||!b){let Y={};if(typeof k=="object"&&!ni(k))for(let te of Object.keys(k))Y[te]=G=>{var fe,Z;return hp(k[te],M(te,G),((fe=j(G))!=null?fe:[])[te],((Z=B(G))!=null?Z:[])[te],G?.class,G?.className)(d)};return Y}return hp(h,K(),ae(P),A?.class,A?.className)(d)},T=()=>{if(!(!m||typeof m!="object"))return Object.keys(m)};return _.variantKeys=T(),_.extend=n,_.base=h,_.slots=k,_.variants=m,_.defaultVariants=g,_.compoundSlots=l,_.compoundVariants=P,_},Nr=(e,t)=>{var n,r,i;return bO(e,{...t,twMerge:(n=t?.twMerge)!=null?n:!0,twMergeConfig:{...t?.twMergeConfig,theme:{...(r=t?.twMergeConfig)==null?void 0:r.theme,...xb.theme},classGroups:{...(i=t?.twMergeConfig)==null?void 0:i.classGroups,...xb.classGroups}}})},uk=Nr({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),yh=["outline-hidden","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],xO=["outline-hidden","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],Zc={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},jG=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],ck=Nr({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...yh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-hidden","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Ze.solid.foreground},primary:{base:"before:bg-primary",content:Ze.solid.primary},secondary:{base:"before:bg-secondary",content:Ze.solid.secondary},success:{base:"before:bg-success",content:Ze.solid.success},warning:{base:"before:bg-warning",content:Ze.solid.warning},danger:{base:"before:bg-danger",content:Ze.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]});Nr({slots:{base:"flex flex-col gap-2 w-full",label:"",labelWrapper:"flex justify-between",value:"",track:"z-0 relative bg-default-300/50 overflow-hidden rtl:rotate-180",indicator:"h-full"},variants:{color:{default:{indicator:"bg-default-400"},primary:{indicator:"bg-primary"},secondary:{indicator:"bg-secondary"},success:{indicator:"bg-success"},warning:{indicator:"bg-warning"},danger:{indicator:"bg-danger"}},size:{sm:{label:"text-small",value:"text-small",track:"h-1"},md:{label:"text-medium",value:"text-medium",track:"h-3"},lg:{label:"text-large",value:"text-large",track:"h-5"}},radius:{none:{track:"rounded-none",indicator:"rounded-none"},sm:{track:"rounded-small",indicator:"rounded-small"},md:{track:"rounded-medium",indicator:"rounded-medium"},lg:{track:"rounded-large",indicator:"rounded-large"},full:{track:"rounded-full",indicator:"rounded-full"}},isStriped:{true:{indicator:"bg-stripe-gradient-default bg-stripe-size"}},isIndeterminate:{true:{indicator:["absolute","w-full","origin-left","animate-indeterminate-bar"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-transform !duration-500"}}},defaultVariants:{color:"primary",size:"md",radius:"full",isStriped:!1,isIndeterminate:!1,isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{indicator:"!transition-none motion-reduce:transition-none"}},{color:"primary",isStriped:!0,class:{indicator:"bg-stripe-gradient-primary bg-stripe-size"}},{color:"secondary",isStriped:!0,class:{indicator:"bg-stripe-gradient-secondary bg-stripe-size"}},{color:"success",isStriped:!0,class:{indicator:"bg-stripe-gradient-success bg-stripe-size"}},{color:"warning",isStriped:!0,class:{indicator:"bg-stripe-gradient-warning bg-stripe-size"}},{color:"danger",isStriped:!0,class:{indicator:"bg-stripe-gradient-danger bg-stripe-size"}}]},{twMerge:!0});var fk=Nr({slots:{base:"flex flex-col justify-center gap-1 max-w-fit items-center",label:"",svgWrapper:"relative block",svg:"z-0 relative overflow-hidden",track:"h-full stroke-default-300/50",indicator:"h-full stroke-current",value:"absolute font-normal inset-0 flex items-center justify-center"},variants:{color:{default:{svg:"text-default-400"},primary:{svg:"text-primary"},secondary:{svg:"text-secondary"},success:{svg:"text-success"},warning:{svg:"text-warning"},danger:{svg:"text-danger"}},size:{sm:{svg:"w-8 h-8",label:"text-small",value:"text-[0.5rem]"},md:{svg:"w-10 h-10",label:"text-small",value:"text-[0.55rem]"},lg:{svg:"w-12 h-12",label:"text-medium",value:"text-[0.6rem]"}},isIndeterminate:{true:{svg:"animate-spinner-ease-spin"}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:{},false:{indicator:"transition-all !duration-500"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1},compoundVariants:[{disableAnimation:!0,isIndeterminate:!1,class:{svg:"!transition-none motion-reduce:transition-none"}}]}),wO=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],SO=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],dk=Nr({base:[],variants:{orientation:{vertical:["overflow-y-auto",...wO],horizontal:["overflow-x-auto",...SO]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),pk=Nr({slots:{base:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","pointer-events-none","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2","data-[loaded=true]:pointer-events-auto","data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent","data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0"],content:["opacity-0","group-data-[loaded=true]:opacity-100"]},variants:{disableAnimation:{true:{base:"before:animate-none before:transition-none after:transition-none",content:"transition-none"},false:{base:"transition-background !duration-300",content:"transition-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{}}),hk=Nr({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-hidden placeholder:text-foreground-500 focus-visible:outline-hidden","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-hidden","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...yh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...xO]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),mk=Nr({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-hidden","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-hidden","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...yh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),kO=Nr({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),CO=Nr({base:"flex flex-col gap-2 items-start"}),gk=Nr({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),EO=Nr({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-hidden","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...yh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:Ze.solid.default},{variant:"solid",color:"primary",class:Ze.solid.primary},{variant:"solid",color:"secondary",class:Ze.solid.secondary},{variant:"solid",color:"success",class:Ze.solid.success},{variant:"solid",color:"warning",class:Ze.solid.warning},{variant:"solid",color:"danger",class:Ze.solid.danger},{variant:"shadow",color:"default",class:Ze.shadow.default},{variant:"shadow",color:"primary",class:Ze.shadow.primary},{variant:"shadow",color:"secondary",class:Ze.shadow.secondary},{variant:"shadow",color:"success",class:Ze.shadow.success},{variant:"shadow",color:"warning",class:Ze.shadow.warning},{variant:"shadow",color:"danger",class:Ze.shadow.danger},{variant:"bordered",color:"default",class:Ze.bordered.default},{variant:"bordered",color:"primary",class:Ze.bordered.primary},{variant:"bordered",color:"secondary",class:Ze.bordered.secondary},{variant:"bordered",color:"success",class:Ze.bordered.success},{variant:"bordered",color:"warning",class:Ze.bordered.warning},{variant:"bordered",color:"danger",class:Ze.bordered.danger},{variant:"flat",color:"default",class:Ze.flat.default},{variant:"flat",color:"primary",class:Ze.flat.primary},{variant:"flat",color:"secondary",class:Ze.flat.secondary},{variant:"flat",color:"success",class:Ze.flat.success},{variant:"flat",color:"warning",class:Ze.flat.warning},{variant:"flat",color:"danger",class:Ze.flat.danger},{variant:"faded",color:"default",class:Ze.faded.default},{variant:"faded",color:"primary",class:Ze.faded.primary},{variant:"faded",color:"secondary",class:Ze.faded.secondary},{variant:"faded",color:"success",class:Ze.faded.success},{variant:"faded",color:"warning",class:Ze.faded.warning},{variant:"faded",color:"danger",class:Ze.faded.danger},{variant:"light",color:"default",class:[Ze.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[Ze.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[Ze.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[Ze.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[Ze.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[Ze.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[Ze.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[Ze.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[Ze.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[Ze.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[Ze.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[Ze.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Zc.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Zc.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Zc.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Zc.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Zc.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Zc.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});Nr({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var PO=Nr({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),TO=Nr({slots:{base:"",heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-hidden items-center tap-highlight-transparent",...yh],startContent:"shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-medium",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{variant:{splitted:{base:"px-4 bg-content1 shadow-medium rounded-medium"}},isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableIndicatorAnimation:!1}});function L_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");i=d(n.map(h=>{if(h=AO(h),h in vk)return;vk[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":IO,m||(b.as="script"),b.crossOrigin="",b.href=h,c&&b.setAttribute("nonce",c),document.head.appendChild(b),m)return new Promise((x,k)=>{b.addEventListener("load",x),b.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function RO(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:l,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button"}=e,_;n==="button"?_={type:P,disabled:r}:_={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:T,isPressed:A}=mv({onPressStart:s,onPressEnd:l,onPressChange:d,onPress:i,onPressUp:c,onClick:g,isDisabled:r,preventFocusOnPress:h,ref:t}),{focusableProps:L}=vv(e,t);m&&(L.tabIndex=r?-1:L.tabIndex);let z=ar(L,T,$f(e,{labelable:!0}));return{isPressed:A,buttonProps:ar(_,z,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function LO(e,t,n){let{item:r,isDisabled:i}=e,s=r.key,l=t.selectionManager,c=S.useId(),d=S.useId(),h=t.disabledKeys.has(r.key)||i;S.useEffect(()=>{s===t.focusedKey&&document.activeElement!==n.current&&n.current&&xu(n.current)},[n,s,t.focusedKey]);let m=S.useCallback(P=>{l.canSelectItem(s)&&(l.select(s,P),t.toggleKey(s))},[s,l]);const g=S.useCallback(P=>{l.selectionBehavior==="replace"&&l.extendSelection(P),l.setFocusedKey(P)},[l]),b=S.useCallback(P=>{const T={ArrowDown:()=>{const A=t.collection.getKeyAfter(s);if(A&&t.disabledKeys.has(A)){const L=t.collection.getKeyAfter(A);L&&g(L)}else A&&g(A)},ArrowUp:()=>{const A=t.collection.getKeyBefore(s);if(A&&t.disabledKeys.has(A)){const L=t.collection.getKeyBefore(A);L&&g(L)}else A&&g(A)},Home:()=>{const A=t.collection.getFirstKey();A&&g(A)},End:()=>{const A=t.collection.getLastKey();A&&g(A)}}[P.key];T&&(P.preventDefault(),l.canSelectItem(s)&&T(P))},[s,l]);let{buttonProps:x}=RO({id:c,elementType:"button",isDisabled:h,onKeyDown:b,onPress:m},n),k=t.selectionManager.isSelected(r.key);return{buttonProps:{...x,"aria-expanded":k,"aria-controls":k?d:void 0},regionProps:{id:d,role:"region","aria-labelledby":c}}}function yk(e){return iM()?e.altKey:e.ctrlKey}function $g(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,s=(n=e.current)===null||n===void 0?void 0:n.dataset.collection;return s&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),(r=e.current)===null||r===void 0?void 0:r.querySelector(i)}const M_=new WeakMap;function MO(e){let t=yf();return M_.set(e,t),t}function BG(e){return M_.get(e)}const DO=1e3;function NO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=S.useRef({search:"",timeout:void 0}).current,s=l=>{let c=FO(l.key);if(!(!c||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))){if(c===" "&&i.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),i.search+=c,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=t.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},DO)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function FO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function OO(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:s=!1,disallowEmptySelection:l=!1,disallowSelectAll:c=!1,escapeKeyBehavior:d="clearSelection",selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:m=!1,shouldUseVirtualFocus:g,allowsTabNavigation:b=!1,isVirtualized:x,scrollRef:k=r,linkBehavior:P="action"}=e,{direction:_}=dh(),T=lx(),A=q=>{var W;if(q.altKey&&q.key==="Tab"&&q.preventDefault(),!(!((W=r.current)===null||W===void 0)&&W.contains(q.target)))return;const se=($e,Rt)=>{if($e!=null){if(t.isLink($e)&&P==="selection"&&h&&!yk(q)){FE.flushSync(()=>{t.setFocusedKey($e,Rt)});let bt=$g(r,$e),Qt=t.getItemProps($e);bt&&T.open(bt,q,Qt.href,Qt.routerOptions);return}if(t.setFocusedKey($e,Rt),t.isLink($e)&&P==="override")return;q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):h&&!yk(q)&&t.replaceSelection($e)}};switch(q.key){case"ArrowDown":if(n.getKeyBelow){var R,V,oe;let $e=t.focusedKey!=null?(R=n.getKeyBelow)===null||R===void 0?void 0:R.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);$e==null&&s&&($e=(oe=n.getFirstKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey)),$e!=null&&(q.preventDefault(),se($e))}break;case"ArrowUp":if(n.getKeyAbove){var O,me,Ee;let $e=t.focusedKey!=null?(O=n.getKeyAbove)===null||O===void 0?void 0:O.call(n,t.focusedKey):(me=n.getLastKey)===null||me===void 0?void 0:me.call(n);$e==null&&s&&($e=(Ee=n.getLastKey)===null||Ee===void 0?void 0:Ee.call(n,t.focusedKey)),$e!=null&&(q.preventDefault(),se($e))}break;case"ArrowLeft":if(n.getKeyLeftOf){var we,je,Oe;let $e=t.focusedKey!=null?(we=n.getKeyLeftOf)===null||we===void 0?void 0:we.call(n,t.focusedKey):null;$e==null&&s&&($e=_==="rtl"?(je=n.getFirstKey)===null||je===void 0?void 0:je.call(n,t.focusedKey):(Oe=n.getLastKey)===null||Oe===void 0?void 0:Oe.call(n,t.focusedKey)),$e!=null&&(q.preventDefault(),se($e,_==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Te,tt,yt;let $e=t.focusedKey!=null?(Te=n.getKeyRightOf)===null||Te===void 0?void 0:Te.call(n,t.focusedKey):null;$e==null&&s&&($e=_==="rtl"?(tt=n.getLastKey)===null||tt===void 0?void 0:tt.call(n,t.focusedKey):(yt=n.getFirstKey)===null||yt===void 0?void 0:yt.call(n,t.focusedKey)),$e!=null&&(q.preventDefault(),se($e,_==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let $e=n.getFirstKey(t.focusedKey,cp(q));t.setFocusedKey($e),$e!=null&&(cp(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):h&&t.replaceSelection($e))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&q.shiftKey)return;q.preventDefault();let $e=n.getLastKey(t.focusedKey,cp(q));t.setFocusedKey($e),$e!=null&&(cp(q)&&q.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):h&&t.replaceSelection($e))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let $e=n.getKeyPageBelow(t.focusedKey);$e!=null&&(q.preventDefault(),se($e))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let $e=n.getKeyPageAbove(t.focusedKey);$e!=null&&(q.preventDefault(),se($e))}break;case"a":cp(q)&&t.selectionMode==="multiple"&&c!==!0&&(q.preventDefault(),t.selectAll());break;case"Escape":d==="clearSelection"&&!l&&t.selectedKeys.size!==0&&(q.stopPropagation(),q.preventDefault(),t.clearSelection());break;case"Tab":if(!b){if(q.shiftKey)r.current.focus();else{let $e=Xs(r.current,{tabbable:!0}),Rt,bt;do bt=$e.lastChild(),bt&&(Rt=bt);while(bt);Rt&&!Rt.contains(document.activeElement)&&Ql(Rt)}break}}},L=S.useRef({top:0,left:0});ig(k,"scroll",x?void 0:()=>{var q,W,se,R;L.current={top:(se=(q=k.current)===null||q===void 0?void 0:q.scrollTop)!==null&&se!==void 0?se:0,left:(R=(W=k.current)===null||W===void 0?void 0:W.scrollLeft)!==null&&R!==void 0?R:0}});let z=q=>{if(t.isFocused){q.currentTarget.contains(q.target)||t.setFocused(!1);return}if(q.currentTarget.contains(q.target)){if(t.setFocused(!0),t.focusedKey==null){var W,se;let oe=me=>{me!=null&&(t.setFocusedKey(me),h&&!t.isSelected(me)&&t.replaceSelection(me))},O=q.relatedTarget;var R,V;O&&q.currentTarget.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?oe((R=t.lastSelectedKey)!==null&&R!==void 0?R:(W=n.getLastKey)===null||W===void 0?void 0:W.call(n)):oe((V=t.firstSelectedKey)!==null&&V!==void 0?V:(se=n.getFirstKey)===null||se===void 0?void 0:se.call(n))}else!x&&k.current&&(k.current.scrollTop=L.current.top,k.current.scrollLeft=L.current.left);if(t.focusedKey!=null&&k.current){let oe=$g(r,t.focusedKey);oe instanceof HTMLElement&&(!oe.contains(document.activeElement)&&!g&&Ql(oe),nh()==="keyboard"&&x1(oe,{containingElement:r.current}))}}},K=q=>{q.currentTarget.contains(q.relatedTarget)||t.setFocused(!1)},M=S.useRef(!1);ig(r,mM,g?q=>{let{detail:W}=q;q.stopPropagation(),t.setFocused(!0),W?.focusStrategy==="first"&&(M.current=!0)}:void 0);let J=On(()=>{var q,W;let se=(W=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&W!==void 0?W:null;se==null?(JF(r.current),t.collection.size>0&&(M.current=!1)):(t.setFocusedKey(se),M.current=!1)});v1(()=>{M.current&&J()},[t.collection,J]);let re=On(()=>{t.collection.size>0&&(M.current=!1)});v1(()=>{re()},[t.focusedKey,re]),ig(r,hM,g?q=>{var W;q.stopPropagation(),t.setFocused(!1),!((W=q.detail)===null||W===void 0)&&W.clearFocusKey&&t.setFocusedKey(null)}:void 0);const ae=S.useRef(i),j=S.useRef(!1);S.useEffect(()=>{if(ae.current){var q,W;let V=null;var se;i==="first"&&(V=(se=(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n))!==null&&se!==void 0?se:null);var R;i==="last"&&(V=(R=(W=n.getLastKey)===null||W===void 0?void 0:W.call(n))!==null&&R!==void 0?R:null);let oe=t.selectedKeys;if(oe.size){for(let O of oe)if(t.canSelectItem(O)){V=O;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!g&&r.current&&xu(r.current),t.collection.size>0&&(ae.current=!1,j.current=!0)}});let B=S.useRef(t.focusedKey),Y=S.useRef(null);S.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==B.current||j.current)&&k.current&&r.current){let q=nh(),W=$g(r,t.focusedKey);if(!(W instanceof HTMLElement))return;(q==="keyboard"||j.current)&&(Y.current&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{k.current&&(DE(k.current,W),q!=="virtual"&&x1(W,{containingElement:r.current}))}))}!g&&t.isFocused&&t.focusedKey==null&&B.current!=null&&r.current&&xu(r.current),B.current=t.focusedKey,j.current=!1}),S.useEffect(()=>()=>{Y.current&&cancelAnimationFrame(Y.current)},[]),ig(r,"react-aria-focus-scope-restore",q=>{q.preventDefault(),t.setFocused(!0)});let te={onKeyDown:A,onFocus:z,onBlur:K,onMouseDown(q){k.current===q.target&&q.preventDefault()}},{typeSelectProps:G}=NO({keyboardDelegate:n,selectionManager:t});m||(te=ar(G,te));let fe;g||(fe=t.focusedKey==null?0:-1);let Z=MO(t.collection);return{collectionProps:ar(te,{tabIndex:fe,"data-collection":Z})}}class bk{getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?$g(this.ref,t):null;if(!r)return null;let i=n.getBoundingClientRect(),s=r.getBoundingClientRect();return{x:s.left-i.left+n.scrollLeft,y:s.top-i.top+n.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t?.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t?.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,s;return{x:(n=t?.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t?.scrollTop)!==null&&r!==void 0?r:0,width:(i=t?.offsetWidth)!==null&&i!==void 0?i:0,height:(s=t?.offsetHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class zO{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if(i?.type==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,s=this.layoutDelegate.getItemRect(i);if(!s||i==null)return null;let l=s;do{if(i=n(i),i==null)break;s=this.layoutDelegate.getItemRect(i)}while(s&&r(l,s)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Wp(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let s=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let s=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>s&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!Wp(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.xs||new zO({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:c,layoutDelegate:l}),[s,l,n,r,i,c,d]),{collectionProps:m}=OO({...e,ref:i,selectionManager:t,keyboardDelegate:h});return{listProps:m}}function BO(e,t,n){let{listProps:r}=jO({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:n});return delete r.onKeyDownCapture,{accordionProps:{...r,tabIndex:void 0}}}function VO(e){var t,n;const r=Ti(),{ref:i,as:s,item:l,onFocusChange:c}=e,{state:d,className:h,indicator:m,children:g,title:b,subtitle:x,startContent:k,motionProps:P,focusedKey:_,variant:T,isCompact:A=!1,classNames:L={},isDisabled:z=!1,hideIndicator:K=!1,disableAnimation:M=(t=r?.disableAnimation)!=null?t:!1,keepContentMounted:J=!1,disableIndicatorAnimation:re=!1,HeadingComponent:ae=s||"h2",onPress:j,onPressStart:B,onPressEnd:Y,onPressChange:te,onPressUp:G,onClick:fe,...Z}=e,q=s||"div",W=typeof q=="string",se=Ji(i),R=d.disabledKeys.has(l.key)||z,V=d.selectionManager.isSelected(l.key),{buttonProps:oe,regionProps:O}=LO({item:l,isDisabled:R},{...d,focusedKey:_},se),{onFocus:me,onBlur:Ee,...we}=oe,{isFocused:je,isFocusVisible:Oe,focusProps:Te}=rh({autoFocus:(n=l.props)==null?void 0:n.autoFocus}),{isHovered:tt,hoverProps:yt}=Cf({isDisabled:R}),{pressProps:$e,isPressed:Rt}=mv({ref:se,isDisabled:R,onPress:j,onPressStart:B,onPressEnd:Y,onPressChange:te,onPressUp:G}),bt=S.useCallback(()=>{c?.(!0,l.key)},[]),Qt=S.useCallback(()=>{c?.(!1,l.key)},[]),Ue=S.useMemo(()=>({...L}),[tl(L)]),st=S.useMemo(()=>TO({isCompact:A,isDisabled:R,hideIndicator:K,disableAnimation:M,disableIndicatorAnimation:re,variant:T}),[A,R,K,M,re,T]),Rn=hn(Ue?.base,h),Or=S.useCallback((pe={})=>({"data-open":Me(V),"data-disabled":Me(R),"data-slot":"base",className:st.base({class:Rn}),...mn(vf(Z,{enabled:W}),pe)}),[Rn,W,Z,st,l.props,V,R]),kn=(pe={})=>{var ke,Be;return{ref:se,"data-open":Me(V),"data-focus":Me(je),"data-focus-visible":Me(Oe),"data-disabled":Me(R),"data-hover":Me(tt),"data-pressed":Me(Rt),"data-slot":"trigger",className:st.trigger({class:Ue?.trigger}),onFocus:l1(bt,me,Te.onFocus,Z.onFocus,(ke=l.props)==null?void 0:ke.onFocus),onBlur:l1(Qt,Ee,Te.onBlur,Z.onBlur,(Be=l.props)==null?void 0:Be.onBlur),...mn(we,yt,$e,pe,{onClick:gf($e.onClick,fe)})}},Lt=S.useCallback((pe={})=>({"data-open":Me(V),"data-disabled":Me(R),"data-slot":"content",className:st.content({class:Ue?.content}),...mn(O,pe)}),[st,Ue,O,V,R,Ue?.content]),jt=S.useCallback((pe={})=>({"aria-hidden":Me(!0),"data-open":Me(V),"data-disabled":Me(R),"data-slot":"indicator",className:st.indicator({class:Ue?.indicator}),...pe}),[st,Ue?.indicator,V,R,Ue?.indicator]),ur=S.useCallback((pe={})=>({"data-open":Me(V),"data-disabled":Me(R),"data-slot":"heading",className:st.heading({class:Ue?.heading}),...pe}),[st,Ue?.heading,V,R,Ue?.heading]),ro=S.useCallback((pe={})=>({"data-open":Me(V),"data-disabled":Me(R),"data-slot":"title",className:st.title({class:Ue?.title}),...pe}),[st,Ue?.title,V,R,Ue?.title]),Xn=S.useCallback((pe={})=>({"data-open":Me(V),"data-disabled":Me(R),"data-slot":"subtitle",className:st.subtitle({class:Ue?.subtitle}),...pe}),[st,Ue,V,R,Ue?.subtitle]);return{Component:q,HeadingComponent:ae,item:l,slots:st,classNames:Ue,domRef:se,indicator:m,children:g,title:b,subtitle:x,startContent:k,isOpen:V,isDisabled:R,hideIndicator:K,keepContentMounted:J,disableAnimation:M,motionProps:P,getBaseProps:Or,getHeadingProps:ur,getButtonProps:kn,getContentProps:Lt,getIndicatorProps:jt,getTitleProps:ro,getSubtitleProps:Xn}}var xk=e=>N.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:N.jsx("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),UO=e=>N.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:N.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),KO=e=>{const{isSelected:t,isIndeterminate:n,disableAnimation:r,...i}=e;return N.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:N.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},Op={ease:[.36,.66,.4,1]},qg={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:Op.ease}},exit:{opacity:0,transition:{duration:.3,ease:Op.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}},wk=()=>Fr(()=>import("./index-BDLYWa-3.js"),[]).then(e=>e.default),D_=_i((e,t)=>{const{Component:n,HeadingComponent:r,classNames:i,slots:s,indicator:l,children:c,title:d,subtitle:h,startContent:m,isOpen:g,isDisabled:b,hideIndicator:x,keepContentMounted:k,disableAnimation:P,motionProps:_,getBaseProps:T,getHeadingProps:A,getButtonProps:L,getTitleProps:z,getSubtitleProps:K,getContentProps:M,getIndicatorProps:J}=VO({...e,ref:t}),re=aF(),j=S.useMemo(()=>typeof l=="function"?l({indicator:N.jsx(xk,{}),isOpen:g,isDisabled:b}):l||null,[l,g,b])||N.jsx(xk,{}),B=S.useMemo(()=>{if(P)return k?N.jsx("div",{...M(),children:c}):g&&N.jsx("div",{...M(),children:c});const Y={exit:{...qg.collapse.exit,overflowY:"hidden"},enter:{...qg.collapse.enter,overflowY:"unset"}};return k?N.jsx(Sf,{features:wk,children:N.jsx(kf.section,{animate:g?"enter":"exit",exit:"exit",initial:"exit",style:{willChange:re},variants:Y,onKeyDown:te=>{te.stopPropagation()},..._,children:N.jsx("div",{...M(),children:c})},"accordion-content")}):N.jsx(Lf,{initial:!1,children:g&&N.jsx(Sf,{features:wk,children:N.jsx(kf.section,{animate:"enter",exit:"exit",initial:"exit",style:{willChange:re},variants:Y,onKeyDown:te=>{te.stopPropagation()},..._,children:N.jsx("div",{...M(),children:c})},"accordion-content")})})},[g,P,k,c,_]);return N.jsxs(n,{...T(),children:[N.jsx(r,{...A(),children:N.jsxs("button",{...L(),children:[m&&N.jsx("div",{className:s.startContent({class:i?.startContent}),children:m}),N.jsxs("div",{className:s.titleWrapper({class:i?.titleWrapper}),children:[d&&N.jsx("span",{...z(),children:d}),h&&N.jsx("span",{...K(),children:h})]}),!x&&j&&N.jsx("span",{...J(),children:j})]})}),B]})});D_.displayName="HeroUI.AccordionItem";var WO=D_;class HO{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t,n=n||new Set;let r=c=>{if(this.keyMap.set(c.key,c),c.childNodes&&(c.type==="section"||n.has(c.key)))for(let d of c.childNodes)r(d)};for(let c of t)r(c);let i=null,s=0;for(let[c,d]of this.keyMap)i?(i.nextKey=c,d.prevKey=i.key):(this.firstKey=c,d.prevKey=void 0),d.type==="item"&&(d.index=s++),i=d,i.nextKey=void 0;var l;this.lastKey=(l=i?.key)!==null&&l!==void 0?l:null}}class Co extends Set{constructor(t,n,r){super(t),t instanceof Co?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function GO(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function qO(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:s="all"}=e,l=S.useRef(!1),[,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),[,m]=S.useState(null),g=S.useMemo(()=>Sk(e.selectedKeys),[e.selectedKeys]),b=S.useMemo(()=>Sk(e.defaultSelectedKeys,new Co),[e.defaultSelectedKeys]),[x,k]=If(g,b,e.onSelectionChange),P=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[_,T]=S.useState(i);i==="replace"&&_==="toggle"&&typeof x=="object"&&x.size===0&&T("replace");let A=S.useRef(i);return S.useEffect(()=>{i!==A.current&&(T(i),A.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:_,setSelectionBehavior:T,get isFocused(){return l.current},setFocused(L){l.current=L,c(L)},get focusedKey(){return d.current},get childFocusStrategy(){return h.current},setFocusedKey(L,z="first"){d.current=L,h.current=z,m(L)},selectedKeys:x,setSelectedKeys(L){(r||!GO(L,x))&&k(L)},disabledKeys:P,disabledBehavior:s}}function Sk(e,t){return e?e==="all"?"all":new Co(e):t}function N_(e){return null}N_.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:s}=t,l=t.title||t.children,c=t.textValue||(typeof l=="string"?l:"")||t["aria-label"]||"";!c&&n?.suppressTextValueWarning,yield{type:"item",props:t,rendered:l,textValue:c,"aria-label":t["aria-label"],hasChildNodes:YO(t),*childNodes(){if(r)for(let d of r)yield{type:"item",value:d};else if(i){let d=[];We.Children.forEach(s,h=>{d.push({type:"item",element:h})}),yield*d}}}};function YO(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&We.Children.count(e.children)>0)}let XO=N_;class QO{build(t,n){return this.context=n,kk(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(We.isValidElement(n)&&n.type===We.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let s of r)yield*this.getFullNode({value:s,index:i},{renderer:n}),i++}else{let i=[];We.Children.forEach(n,l=>{l&&i.push(l)});let s=0;for(let l of i){let c=this.getFullNode({element:l,index:s},{});for(let d of c)s++,yield d}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let s=n.value;if(s!=null){var l;let c=(l=s.key)!==null&&l!==void 0?l:s.id;if(c==null)throw new Error("No key found for item");return c}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(We.isValidElement(t.element)&&t.element.type===We.Fragment){let _=[];We.Children.forEach(t.element.props.children,A=>{_.push(A)});var s;let T=(s=t.index)!==null&&s!==void 0?s:0;for(const A of _)yield*this.getFullNode({element:A,index:T++},n,r,i);return}let l=t.element;if(!l&&t.value&&n&&n.renderer){let _=this.cache.get(t.value);if(_&&(!_.shouldInvalidate||!_.shouldInvalidate(this.context))){_.index=t.index,_.parentKey=i?i.key:null,yield _;return}l=n.renderer(t.value)}if(We.isValidElement(l)){let _=l.type;if(typeof _!="function"&&typeof _.getCollectionNode!="function"){let z=l.type;throw new Error(`Unknown element <${z}> in collection.`)}let T=_.getCollectionNode(l.props,this.context);var c;let A=(c=t.index)!==null&&c!==void 0?c:0,L=T.next();for(;!L.done&&L.value;){let z=L.value;t.index=A;var d;let K=(d=z.key)!==null&&d!==void 0?d:null;K==null&&(K=z.element?null:this.getKey(l,t,n,r));let J=[...this.getFullNode({...z,key:K,index:A,wrapper:JO(t.wrapper,z.wrapper)},this.getChildState(n,z),r?`${r}${l.key}`:l.key,i)];for(let re of J){var h,m;re.value=(m=(h=z.value)!==null&&h!==void 0?h:t.value)!==null&&m!==void 0?m:null,re.value&&this.cache.set(re.value,re);var g;if(t.type&&re.type!==t.type)throw new Error(`Unsupported type <${d0(re.type)}> in <${d0((g=i?.type)!==null&&g!==void 0?g:"unknown parent type")}>. Only <${d0(t.type)}> is supported.`);A++,yield re}L=T.next(J)}return}if(t.key==null||t.type==null)return;let b=this;var x,k;let P={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(x=t.value)!==null&&x!==void 0?x:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(k=t.textValue)!==null&&k!==void 0?k:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:kk(function*(){if(!t.hasChildNodes||!t.childNodes)return;let _=0;for(let T of t.childNodes()){T.key!=null&&(T.key=`${P.key}${T.key}`);let A=b.getFullNode({...T,index:_},b.getChildState(n,T),P.key,P);for(let L of A)_++,yield L}})};yield P}constructor(){this.cache=new WeakMap}}function kk(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function JO(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function d0(e){return e[0].toUpperCase()+e.slice(1)}function ZO(e,t,n){let r=S.useMemo(()=>new QO,[]),{children:i,items:s,collection:l}=e;return S.useMemo(()=>{if(l)return l;let d=r.build({children:i,items:s},n);return t(d)},[r,i,s,l,n,t])}function e6(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function t6(e){return n6(e,0)}function n6(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function VG(e){let t;for(let n of e)t=n;return t}function p0(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Ck(e,t),t],i=[...Ck(e,n),n],s=r.slice(0,i.length).findIndex((l,c)=>l!==i[c]);return s!==-1?(t=r[s],n=i[s],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(i.findIndex(l=>l===t)>=0,-1)}function Ck(e,t){let n=[],r=t;for(;r?.parentKey!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class Xx{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&p0(this.collection,i,t)<0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&p0(this.collection,i,t)>0)&&(t=i)}var n;return(n=t?.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new Co([n],n,n);else{let l=this.state.selectedKeys;var i;let c=(i=l.anchorKey)!==null&&i!==void 0?i:n;r=new Co(l,c,n);var s;for(let d of this.getKeyRange(c,(s=l.currentKey)!==null&&s!==void 0?s:n))r.delete(d);for(let d of this.getKeyRange(n,c))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?p0(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],s=t;for(;s!=null;){let l=this.collection.getItem(s);if(l&&(l.type==="item"||l.type==="cell"&&this.allowsCellSelection)&&i.push(s),s===n)return i;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new Co(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new Co([n],n,n):new Co;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Co;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let l=this.collection.getItem(r);l?.type==="item"&&t.push(r);var s;l?.hasChildNodes&&(this.allowsCellSelection||l.type!=="item")&&n((s=(i=t6(e6(l,this.collection)))===null||i===void 0?void 0:i.key)!==null&&s!==void 0?s:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Co)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}withCollection(t){return new Xx(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=r?.layoutDelegate||null}}function r6(e){let{onExpandedChange:t}=e,[n,r]=If(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=qO(e),s=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),l=ZO(e,S.useCallback(d=>new HO(d,{expandedKeys:n}),[n]),null);return S.useEffect(()=>{i.focusedKey!=null&&!l.getItem(i.focusedKey)&&i.setFocusedKey(null)},[l,i.focusedKey]),{collection:l,expandedKeys:n,disabledKeys:s,toggleKey:d=>{r(i6(n,d))},setExpandedKeys:r,selectionManager:new Xx(l,i)}}function i6(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function o6(e){var t;const n=Ti(),{ref:r,as:i,className:s,items:l,variant:c,motionProps:d,expandedKeys:h,disabledKeys:m,selectedKeys:g,children:b,defaultExpandedKeys:x,selectionMode:k="single",selectionBehavior:P="toggle",keepContentMounted:_=!1,disallowEmptySelection:T,defaultSelectedKeys:A,onExpandedChange:L,onSelectionChange:z,dividerProps:K={},isCompact:M=!1,isDisabled:J=!1,showDivider:re=!0,hideIndicator:ae=!1,disableAnimation:j=(t=n?.disableAnimation)!=null?t:!1,disableIndicatorAnimation:B=!1,itemClasses:Y,...te}=e,[G,fe]=S.useState(null),Z=i||"div",q=typeof Z=="string",W=Ji(r),se=S.useMemo(()=>PO({variant:c,className:s}),[c,s]),V={children:S.useMemo(()=>{let Te=[];return We.Children.map(b,tt=>{var yt;if(We.isValidElement(tt)&&typeof((yt=tt.props)==null?void 0:yt.children)!="string"){const $e=We.cloneElement(tt,{hasChildItems:!1});Te.push($e)}else Te.push(tt)}),Te},[b]),items:l},oe={expandedKeys:h,defaultExpandedKeys:x,onExpandedChange:L},O={disabledKeys:m,selectedKeys:g,selectionMode:k,selectionBehavior:P,disallowEmptySelection:T,defaultSelectedKeys:A??x,onSelectionChange:z,...V,...oe},me=r6(O);me.selectionManager.setFocusedKey=Te=>{fe(Te)};const{accordionProps:Ee}=BO({...V,...oe},me,W),we=S.useMemo(()=>({state:me,focusedKey:G,motionProps:d,isCompact:M,isDisabled:J,hideIndicator:ae,disableAnimation:j,keepContentMounted:_,disableIndicatorAnimation:B}),[G,M,J,ae,g,j,_,me?.expandedKeys.values,B,me.expandedKeys.size,me.disabledKeys.size,d]),je=S.useCallback((Te={})=>({ref:W,className:se,"data-orientation":"vertical",...mn(Ee,vf(te,{enabled:q}),Te)}),[]),Oe=S.useCallback((Te,tt)=>{Te&&fe(tt)},[]);return{Component:Z,values:we,state:me,focusedKey:G,getBaseProps:je,isSplitted:c==="splitted",classNames:se,showDivider:re,dividerProps:K,disableAnimation:j,handleFocusChanged:Oe,itemClasses:Y}}function s6(e){let t=vf(e,{enabled:typeof e.elementType=="string"}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}function l6(e){const{as:t,className:n,orientation:r,...i}=e;let s=t||"hr";s==="hr"&&r==="vertical"&&(s="div");const{separatorProps:l}=s6({elementType:typeof s=="string"?s:"hr",orientation:r}),c=S.useMemo(()=>kO({orientation:r,className:n}),[r,n]),d=S.useCallback((h={})=>({className:c,role:"separator","data-orientation":r,...l,...i,...h}),[c,r,l,i]);return{Component:s,getDividerProps:d}}var F_=_i((e,t)=>{const{Component:n,getDividerProps:r}=l6({...e});return N.jsx(n,{ref:t,...r()})});F_.displayName="HeroUI.Divider";var a6=F_,O_=_i((e,t)=>{const{Component:n,values:r,state:i,isSplitted:s,showDivider:l,getBaseProps:c,disableAnimation:d,handleFocusChanged:h,itemClasses:m,dividerProps:g}=o6({...e,ref:t}),b=S.useCallback((k,P)=>h(k,P),[h]),x=S.useMemo(()=>[...i.collection].map((k,P)=>{const _={...m,...k.props.classNames||{}};return N.jsxs(S.Fragment,{children:[N.jsx(WO,{item:k,variant:e.variant,onFocusChange:b,...r,...k.props,classNames:_}),!k.props.hidden&&!s&&l&&P{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},c6=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],UG=(e,t)=>{if(t.includes("-")){const[n]=t.split("-");if(n.includes(e))return!1}return!0},Pk=(e,t)=>{if(t.includes("-")){const[,n]=t.split("-");return`${e}-${n}`}return e},f6=XO,mp=f6,bv=globalThis?.document?S.useLayoutEffect:S.useEffect;function d6(e={}){const{onLoad:t,onError:n,ignoreFallback:r,src:i,crossOrigin:s,srcSet:l,sizes:c,loading:d,shouldBypassImageLoad:h=!1}=e,m=pL(),g=S.useRef(m?new Image:null),[b,x]=S.useState("pending");S.useEffect(()=>{g.current&&(g.current.onload=_=>{k(),x("loaded"),t?.(_)},g.current.onerror=_=>{k(),x("failed"),n?.(_)})},[g.current]);const k=()=>{g.current&&(g.current.onload=null,g.current.onerror=null,g.current=null)},P=S.useCallback(()=>{if(!i)return"pending";if(r||h)return"loaded";const _=new Image;return _.src=i,s&&(_.crossOrigin=s),l&&(_.srcset=l),c&&(_.sizes=c),d&&(_.loading=d),g.current=_,_.complete&&_.naturalWidth?"loaded":"loading"},[i,s,l,c,t,n,d,h]);return bv(()=>{m&&x(P())},[m,P]),r?"loaded":b}var[KG,p6]=nx({name:"ButtonGroupContext",strict:!1});function z_(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:s,onPressEnd:l,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:b,target:x,rel:k,type:P="button",allowTextSelectionOnPress:_}=e,T;n==="button"?T={type:P,disabled:r}:T={role:"button",href:n==="a"&&!r?b:void 0,target:n==="a"?x:void 0,type:n==="input"?P:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?k:void 0};let{pressProps:A,isPressed:L}=mv({onClick:g,onPressStart:s,onPressEnd:l,onPressUp:c,onPressChange:d,onPress:i,isDisabled:r,preventFocusOnPress:h,allowTextSelectionOnPress:_,ref:t}),{focusableProps:z}=vv(e,t);m&&(z.tabIndex=r?-1:z.tabIndex);let K=ar(z,A,$f(e,{labelable:!0}));return{isPressed:L,buttonProps:ar(T,K,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var h6=()=>Fr(()=>import("./index-BDLYWa-3.js"),[]).then(e=>e.default),j_=e=>{const{ripples:t=[],motionProps:n,color:r="currentColor",style:i,onClear:s}=e;return N.jsx(N.Fragment,{children:t.map(l=>{const c=lL(.01*l.size,.2,l.size>100?.75:.5);return N.jsx(Sf,{features:h6,children:N.jsx(Lf,{mode:"popLayout",children:N.jsx(kf.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:r,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:l.y,left:l.x,width:`${l.size}px`,height:`${l.size}px`,...i},transition:{duration:c},onAnimationComplete:()=>{s(l.key)},...n})})},l.key)})})};j_.displayName="HeroUI.Ripple";var m6=j_;function g6(e={}){const[t,n]=S.useState([]),r=S.useCallback(s=>{const l=s.target,c=Math.max(l.clientWidth,l.clientHeight);n(d=>[...d,{key:sL(d.length.toString()),size:c,x:s.x-c/2,y:s.y-c/2}])},[]),i=S.useCallback(s=>{n(l=>l.filter(c=>c.key!==s))},[]);return{ripples:t,onClear:i,onPress:r,...e}}function v6(e){var t,n,r,i,s,l,c,d,h;const m=p6(),g=Ti(),b=!!m,{ref:x,as:k,children:P,startContent:_,endContent:T,autoFocus:A,className:L,spinner:z,isLoading:K=!1,disableRipple:M=!1,fullWidth:J=(t=m?.fullWidth)!=null?t:!1,radius:re=m?.radius,size:ae=(n=m?.size)!=null?n:"md",color:j=(r=m?.color)!=null?r:"default",variant:B=(i=m?.variant)!=null?i:"solid",disableAnimation:Y=(l=(s=m?.disableAnimation)!=null?s:g?.disableAnimation)!=null?l:!1,isDisabled:te=(c=m?.isDisabled)!=null?c:!1,isIconOnly:G=(d=m?.isIconOnly)!=null?d:!1,spinnerPlacement:fe="start",onPress:Z,onClick:q,...W}=e,se=k||"button",R=typeof se=="string",V=Ji(x),oe=(h=M||g?.disableRipple)!=null?h:Y,{isFocusVisible:O,isFocused:me,focusProps:Ee}=rh({autoFocus:A}),we=te||K,je=S.useMemo(()=>EO({size:ae,color:j,variant:B,radius:re,fullWidth:J,isDisabled:we,isInGroup:b,disableAnimation:Y,isIconOnly:G,className:L}),[ae,j,B,re,J,we,b,G,Y,L]),{onPress:Oe,onClear:Te,ripples:tt}=g6(),yt=S.useCallback(jt=>{oe||we||Y||V.current&&Oe(jt)},[oe,we,Y,V,Oe]),{buttonProps:$e,isPressed:Rt}=z_({elementType:k,isDisabled:we,onPress:gf(Z,yt),onClick:q,...W},V),{isHovered:bt,hoverProps:Qt}=Cf({isDisabled:we}),Ue=S.useCallback((jt={})=>({"data-disabled":Me(we),"data-focus":Me(me),"data-pressed":Me(Rt),"data-focus-visible":Me(O),"data-hover":Me(bt),"data-loading":Me(K),...mn($e,Ee,Qt,vf(W,{enabled:R}),vf(jt)),className:je}),[K,we,me,Rt,R,O,bt,$e,Ee,Qt,W,je]),st=jt=>S.isValidElement(jt)?S.cloneElement(jt,{"aria-hidden":!0,focusable:!1}):null,Rn=st(_),Or=st(T),kn=S.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[ae],[ae]),Lt=S.useCallback(()=>({ripples:tt,onClear:Te}),[tt,Te]);return{Component:se,children:P,domRef:V,spinner:z,styles:je,startContent:Rn,endContent:Or,isLoading:K,spinnerPlacement:fe,spinnerSize:kn,disableRipple:oe,getButtonProps:Ue,getRippleProps:Lt,isIconOnly:G}}function y6(e){var t,n;const[r,i]=ta(e,uk.variantKeys),s=Ti(),l=(n=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?n:"default",{children:c,className:d,classNames:h,label:m,...g}=r,b=S.useMemo(()=>uk({...i}),[tl(i)]),x=hn(h?.base,d),k=m||c,P=S.useMemo(()=>k&&typeof k=="string"?k:g["aria-label"]?"":"Loading",[c,k,g["aria-label"]]),_=S.useCallback(()=>({"aria-label":P,className:b.base({class:x}),...g}),[P,b,x,g]);return{label:k,slots:b,classNames:h,variant:l,getSpinnerProps:_}}var B_=_i((e,t)=>{const{slots:n,classNames:r,label:i,variant:s,getSpinnerProps:l}=y6({...e});return s==="wave"||s==="dots"?N.jsxs("div",{ref:t,...l(),children:[N.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(3)].map((c,d)=>N.jsx("i",{className:n.dots({class:r?.dots}),style:{"--dot-index":d}},`dot-${d}`))}),i&&N.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="simple"?N.jsxs("div",{ref:t,...l(),children:[N.jsxs("svg",{className:n.wrapper({class:r?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[N.jsx("circle",{className:n.circle1({class:r?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),N.jsx("path",{className:n.circle2({class:r?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),i&&N.jsx("span",{className:n.label({class:r?.label}),children:i})]}):s==="spinner"?N.jsxs("div",{ref:t,...l(),children:[N.jsx("div",{className:n.wrapper({class:r?.wrapper}),children:[...new Array(12)].map((c,d)=>N.jsx("i",{className:n.spinnerBars({class:r?.spinnerBars}),style:{"--bar-index":d}},`star-${d}`))}),i&&N.jsx("span",{className:n.label({class:r?.label}),children:i})]}):N.jsxs("div",{ref:t,...l(),children:[N.jsxs("div",{className:n.wrapper({class:r?.wrapper}),children:[N.jsx("i",{className:n.circle1({class:r?.circle1})}),N.jsx("i",{className:n.circle2({class:r?.circle2})})]}),i&&N.jsx("span",{className:n.label({class:r?.label}),children:i})]})});B_.displayName="HeroUI.Spinner";var b6=B_,V_=_i((e,t)=>{const{Component:n,domRef:r,children:i,spinnerSize:s,spinner:l=N.jsx(b6,{color:"current",size:s}),spinnerPlacement:c,startContent:d,endContent:h,isLoading:m,disableRipple:g,getButtonProps:b,getRippleProps:x,isIconOnly:k}=v6({...e,ref:t});return N.jsxs(n,{ref:r,...b(),children:[d,m&&c==="start"&&l,m&&k?null:i,m&&c==="end"&&l,h,!g&&N.jsx(m6,{...x()})]})});V_.displayName="HeroUI.Button";var To=V_;const U_={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},K_={...U_,customError:!0,valid:!1},gp={isInvalid:!1,validationDetails:U_,validationErrors:[]},W_=S.createContext({}),Tk="__formValidationState"+Date.now();function x6(e){if(e[Tk]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}=e[Tk];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:s}}return w6(e)}function w6(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:s,validate:l,validationBehavior:c="aria"}=e;n&&(t||(t=n==="invalid"));let d=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:K_}:null,h=S.useMemo(()=>{if(!l||i==null)return null;let j=S6(l,i);return _k(j)},[l,i]);s?.validationDetails.valid&&(s=void 0);let m=S.useContext(W_),g=S.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Tb(m[j])):Tb(m[r]):[],[m,r]),[b,x]=S.useState(m),[k,P]=S.useState(!1);m!==b&&(x(m),P(!1));let _=S.useMemo(()=>_k(k?[]:g),[k,g]),T=S.useRef(gp),[A,L]=S.useState(gp),z=S.useRef(gp),K=()=>{if(!M)return;J(!1);let j=h||s||T.current;h0(j,z.current)||(z.current=j,L(j))},[M,J]=S.useState(!1);return S.useEffect(K),{realtimeValidation:d||_||h||s||gp,displayValidation:c==="native"?d||_||A:d||_||h||s||A,updateValidation(j){c==="aria"&&!h0(A,j)?L(j):T.current=j},resetValidation(){let j=gp;h0(j,z.current)||(z.current=j,L(j)),c==="native"&&J(!1),P(!0)},commitValidation(){c==="native"&&J(!0),P(!0)}}}function Tb(e){return e?Array.isArray(e)?e:[e]:[]}function S6(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Tb(n)}return[]}function _k(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:K_}:null}function h0(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function k6(e,t,n){let{validationBehavior:r,focus:i}=e;en(()=>{if(r==="native"&&n?.current&&!n.current.disabled){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(E6(n.current))}});let s=On(()=>{t.resetValidation()}),l=On(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let m=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&m&&P6(m)===n.current){var g;i?i():(g=n.current)===null||g===void 0||g.focus(),MF("keyboard")}d.preventDefault()}),c=On(()=>{t.commitValidation()});S.useEffect(()=>{let d=n?.current;if(!d)return;let h=d.form;return d.addEventListener("invalid",l),d.addEventListener("change",c),h?.addEventListener("reset",s),()=>{d.removeEventListener("invalid",l),d.removeEventListener("change",c),h?.removeEventListener("reset",s)}},[n,l,c,s,r])}function C6(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function E6(e){return{isInvalid:!e.validity.valid,validationDetails:C6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function P6(e){for(let t=0;t{if(typeof e=="function"){const s=e,l=s(i);return()=>{typeof l=="function"?l():s(null)}}else if(e)return e.current=i,()=>{e.current=null}},[e]);return S.useMemo(()=>({get current(){return t.current},set current(i){t.current=i,n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))}}),[r])}function G_(e,t){let n=S.useContext(e);if(t===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let r=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!t&&!n.slots[$k])throw new Error(`A slot prop is required. Valid slot names are ${r}.`);let i=t||$k;if(!n.slots[i])throw new Error(`Invalid slot "${t}". Valid slot names are ${r}.`);return n.slots[i]}return n}function $6(e,t,n){let r=G_(n,e.slot)||{},{ref:i,...s}=r,l=_6(S.useMemo(()=>yE(t,i),[t,i])),c=mn(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?c.style=d=>{let h=typeof s.style=="function"?s.style(d):s.style,m={...d.defaultStyle,...h},g=typeof e.style=="function"?e.style({...d,defaultStyle:m}):e.style;return{...m,...g}}:c.style={...s.style,...e.style}),[c,l]}var _b=S.createContext(null),I6=S.forwardRef(function(t,n){[t,n]=$6(t,n,_b);let{validationErrors:r,validationBehavior:i="native",children:s,className:l,...c}=t;const d=S.useMemo(()=>CO({className:l}),[l]);return N.jsx("form",{noValidate:i!=="native",...c,ref:n,className:d,children:N.jsx(_b.Provider,{value:{...t,validationBehavior:i},children:N.jsx(W_.Provider,{value:r??{},children:s})})})}),A6=S.forwardRef(function(t,n){var r,i;const s=Ti(),l=(i=(r=t.validationBehavior)!=null?r:s?.validationBehavior)!=null?i:"native";return N.jsx(I6,{...t,ref:n,validationBehavior:l})});function Ik(e,t=[]){const n=S.useRef(e);return bv(()=>{n.current=e}),S.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function q_(e){let[t,n]=If(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),i=S.useCallback(()=>{n(!1)},[n]),s=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:s}}const R6=1500,Ak=500;let su={},L6=0,vp=!1,Hs=null,lu=null;function M6(e={}){let{delay:t=R6,closeDelay:n=Ak}=e,{isOpen:r,open:i,close:s}=q_(e),l=S.useMemo(()=>`${++L6}`,[]),c=S.useRef(null),d=S.useRef(s),h=()=>{su[l]=b},m=()=>{for(let k in su)k!==l&&(su[k](!0),delete su[k])},g=()=>{c.current&&clearTimeout(c.current),c.current=null,m(),h(),vp=!0,i(),Hs&&(clearTimeout(Hs),Hs=null),lu&&(clearTimeout(lu),lu=null)},b=k=>{k||n<=0?(c.current&&clearTimeout(c.current),c.current=null,d.current()):c.current||(c.current=setTimeout(()=>{c.current=null,d.current()},n)),Hs&&(clearTimeout(Hs),Hs=null),vp&&(lu&&clearTimeout(lu),lu=setTimeout(()=>{delete su[l],lu=null,vp=!1},Math.max(Ak,n)))},x=()=>{m(),h(),!r&&!Hs&&!vp?Hs=setTimeout(()=>{Hs=null,vp=!0,g()},t):r||g()};return S.useEffect(()=>{d.current=s},[s]),S.useEffect(()=>()=>{c.current&&clearTimeout(c.current),su[l]&&delete su[l]},[l]),{isOpen:r,open:k=>{!k&&t>0&&!c.current?x():g()},close:b}}function D6(e,t){let n=$f(e,{labelable:!0}),{hoverProps:r}=Cf({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:ar(n,r,{role:"tooltip"})}}function N6(e,t,n){let{isDisabled:r,trigger:i}=e,s=yf(),l=S.useRef(!1),c=S.useRef(!1),d=()=>{(l.current||c.current)&&t.open(c.current)},h=T=>{!l.current&&!c.current&&t.close(T)};S.useEffect(()=>{let T=A=>{n&&n.current&&A.key==="Escape"&&(A.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",T,!0),()=>{document.removeEventListener("keydown",T,!0)}},[n,t]);let m=()=>{i!=="focus"&&(nh()==="pointer"?l.current=!0:l.current=!1,d())},g=()=>{i!=="focus"&&(c.current=!1,l.current=!1,h())},b=()=>{c.current=!1,l.current=!1,h(!0)},x=()=>{Hx()&&(c.current=!0,d())},k=()=>{c.current=!1,l.current=!1,h(!0)},{hoverProps:P}=Cf({isDisabled:r,onHoverStart:m,onHoverEnd:g}),{focusableProps:_}=vv({isDisabled:r,onFocus:x,onBlur:k},n);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...ar(_,P,{onPointerDown:b,onKeyDown:b,tabIndex:void 0})},tooltipProps:{id:s}}}var Gs=[];function Y_(e,t){const{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:i=!1,isOpen:s,onClose:l,shouldCloseOnBlur:c,shouldCloseOnInteractOutside:d}=e;S.useEffect(()=>(s&&Gs.push(t),()=>{const P=Gs.indexOf(t);P>=0&&Gs.splice(P,1)}),[s,t]);const h=()=>{Gs[Gs.length-1]===t&&l&&l()},m=P=>{(!d||d(P.target))&&(Gs[Gs.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),P.pointerType!=="touch"&&h())},g=P=>{P.pointerType==="touch"&&(!d||d(P.target))&&(Gs[Gs.length-1]===t&&n&&(P.stopPropagation(),P.preventDefault()),h())},b=P=>{P.key==="Escape"&&!i&&!P.nativeEvent.isComposing&&(P.stopPropagation(),P.preventDefault(),h())};KF({isDisabled:!(r&&s),onInteractOutside:r&&s?g:void 0,onInteractOutsideStart:m,ref:t});const{focusWithinProps:x}=yv({isDisabled:!c,onBlurWithin:P=>{!P.relatedTarget||qF(P.relatedTarget)||(!d||d(P.relatedTarget))&&h()}}),k=P=>{P.target===P.currentTarget&&P.preventDefault()};return{overlayProps:{onKeyDown:b,...x},underlayProps:{onPointerDown:k}}}function F6(e){var t,n;const r=Ti(),[i,s]=ta(e,ck.variantKeys),{ref:l,as:c,isOpen:d,content:h,children:m,defaultOpen:g,onOpenChange:b,isDisabled:x,trigger:k,shouldFlip:P=!0,containerPadding:_=12,placement:T="top",delay:A=0,closeDelay:L=500,showArrow:z=!1,offset:K=7,crossOffset:M=0,isDismissable:J,shouldCloseOnBlur:re=!0,portalContainer:ae,isKeyboardDismissDisabled:j=!1,updatePositionDeps:B=[],shouldCloseOnInteractOutside:Y,className:te,onClose:G,motionProps:fe,classNames:Z,...q}=i,W=c||"div",se=(n=(t=e?.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,R=M6({delay:A,closeDelay:L,isDisabled:x,defaultOpen:g,isOpen:d,onOpenChange:Ue=>{b?.(Ue),Ue||G?.()}}),V=S.useRef(null),oe=S.useRef(null),O=S.useId(),me=R.isOpen&&!x;S.useImperativeHandle(l,()=>ZR(oe));const{triggerProps:Ee,tooltipProps:we}=N6({isDisabled:x,trigger:k},R,V),{tooltipProps:je}=D6({isOpen:me,...mn(i,we)},R),{overlayProps:Oe,placement:Te,updatePosition:tt}=yF({isOpen:me,targetRef:V,placement:c6(T),overlayRef:oe,offset:z?K+3:K,crossOffset:M,shouldFlip:P,containerPadding:_});bv(()=>{B.length&&tt()},B);const{overlayProps:yt}=Y_({isOpen:me,onClose:R.close,isDismissable:J,shouldCloseOnBlur:re,isKeyboardDismissDisabled:j,shouldCloseOnInteractOutside:Y},oe),$e=S.useMemo(()=>{var Ue,st,Rn;return ck({...s,disableAnimation:se,radius:(Ue=e?.radius)!=null?Ue:"md",size:(st=e?.size)!=null?st:"md",shadow:(Rn=e?.shadow)!=null?Rn:"sm"})},[tl(s),se,e?.radius,e?.size,e?.shadow]),Rt=S.useCallback((Ue={},st=null)=>({...mn(Ee,Ue),ref:dL(st,V),"aria-describedby":me?O:void 0}),[Ee,me,O,R]),bt=S.useCallback(()=>({ref:oe,"data-slot":"base","data-open":Me(me),"data-arrow":Me(z),"data-disabled":Me(x),"data-placement":Pk(Te||"top",T),...mn(je,yt,q),style:mn(Oe.style,q.style,i.style),className:$e.base({class:Z?.base}),id:O}),[$e,me,z,x,Te,T,je,yt,q,Oe,i,O]),Qt=S.useCallback(()=>({"data-slot":"content","data-open":Me(me),"data-arrow":Me(z),"data-disabled":Me(x),"data-placement":Pk(Te||"top",T),className:$e.content({class:hn(Z?.content,te)})}),[$e,me,z,x,Te,T,Z]);return{Component:W,content:h,children:m,isOpen:me,triggerRef:V,showArrow:z,portalContainer:ae,placement:T,disableAnimation:se,isDisabled:x,motionProps:fe,getTooltipContentProps:Qt,getTriggerProps:Rt,getTooltipProps:bt}}var O6=()=>Fr(()=>import("./index-BDLYWa-3.js"),[]).then(e=>e.default),X_=_i((e,t)=>{var n;const{Component:r,children:i,content:s,isOpen:l,portalContainer:c,placement:d,disableAnimation:h,motionProps:m,getTriggerProps:g,getTooltipProps:b,getTooltipContentProps:x}=F6({...e,ref:t});let k;try{if(S.Children.count(i)!==1)throw new Error;if(!S.isValidElement(i))k=N.jsx("p",{...g(),children:i});else{const K=i,M=(n=K.props.ref)!=null?n:K.ref;k=S.cloneElement(K,g(K.props,M))}}catch{k=N.jsx("span",{}),uL("Tooltip must have only one child node. Please, check your code.")}const{ref:P,id:_,style:T,...A}=b(),L=N.jsx("div",{ref:P,id:_,style:T,children:N.jsx(kf.div,{animate:"enter",exit:"exit",initial:"exit",variants:qg.scaleSpring,...mn(m,A),style:{...u6(d)},children:N.jsx(r,{...x(),children:s})},`${_}-tooltip-inner`)},`${_}-tooltip-content`);return N.jsxs(N.Fragment,{children:[k,h?l&&N.jsx(ek,{portalContainer:c,children:N.jsx("div",{ref:P,id:_,style:T,...A,children:N.jsx(r,{...x(),children:s})})}):N.jsx(Sf,{features:O6,children:N.jsx(Lf,{children:l&&N.jsx(ek,{portalContainer:c,children:L})})})]})});X_.displayName="HeroUI.Tooltip";var z6=X_;function j6(e={}){const{rerender:t=!1,delay:n=0}=e,r=S.useRef(!1),[i,s]=S.useState(!1);return S.useEffect(()=>{r.current=!0;let l=null;return t&&(n>0?l=setTimeout(()=>{s(!0)},n):s(!0)),()=>{r.current=!1,t&&s(!1),l&&clearTimeout(l)}},[t]),[S.useCallback(()=>r.current,[]),i]}function B6(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:s,formatOptions:l={style:"percent"}}=e,c=$f(e,{labelable:!0}),{labelProps:d,fieldProps:h}=H_({...e,labelElementType:"span"});t=Ng(t,n,r);let m=(t-n)/(r-n),g=SM(l);if(!s&&!i){let b=l.style==="percent"?m:t;i=g.format(b)}return{progressBarProps:ar(c,{...h,"aria-valuenow":s?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":s?void 0:i,role:"progressbar"}),labelProps:d}}function V6(e){var t,n,r;const i=Ti(),[s,l]=ta(e,fk.variantKeys),{ref:c,as:d,id:h,className:m,classNames:g,label:b,valueLabel:x,value:k=void 0,minValue:P=0,maxValue:_=100,strokeWidth:T,showValueLabel:A=!1,formatOptions:L={style:"percent"},...z}=s,K=d||"div",M=Ji(c),J=hn(g?.base,m),[,re]=j6({rerender:!0,delay:100}),ae=((t=e.isIndeterminate)!=null?t:!0)&&k===void 0,j=(r=(n=e.disableAnimation)!=null?n:i?.disableAnimation)!=null?r:!1,{progressBarProps:B,labelProps:Y}=B6({id:h,label:b,value:k,minValue:P,maxValue:_,valueLabel:x,formatOptions:L,isIndeterminate:ae,"aria-labelledby":e["aria-labelledby"],"aria-label":e["aria-label"]}),te=S.useMemo(()=>fk({...l,disableAnimation:j,isIndeterminate:ae}),[tl(l),j,ae]),G=j?!0:re,fe=16,Z=T||(e.size==="sm"?2:3),q=16-Z,W=2*q*Math.PI,se=S.useMemo(()=>G?ae?.25:k?aL((k-P)/(_-P),1):0:0,[G,k,P,_,ae]),R=W-se*W,V=S.useCallback((we={})=>({ref:M,"data-indeterminate":Me(ae),"data-disabled":Me(e.isDisabled),className:te.base({class:J}),...mn(B,z,we)}),[M,te,ae,e.isDisabled,J,B,z]),oe=S.useCallback((we={})=>({className:te.label({class:g?.label}),...mn(Y,we)}),[te,g,Y]),O=S.useCallback((we={})=>({viewBox:"0 0 32 32",fill:"none",strokeWidth:Z,className:te.svg({class:g?.svg}),...we}),[Z,te,g]),me=S.useCallback((we={})=>({cx:fe,cy:fe,r:q,role:"presentation",strokeDasharray:`${W} ${W}`,strokeDashoffset:R,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:te.indicator({class:g?.indicator}),...we}),[te,g,R,W,q]),Ee=S.useCallback((we={})=>({cx:fe,cy:fe,r:q,role:"presentation",strokeDasharray:`${W} ${W}`,strokeDashoffset:0,transform:"rotate(-90 16 16)",strokeLinecap:"round",className:te.track({class:g?.track}),...we}),[te,g,W,q]);return{Component:K,domRef:M,slots:te,classNames:g,label:b,showValueLabel:A,getProgressBarProps:V,getLabelProps:oe,getSvgProps:O,getIndicatorProps:me,getTrackProps:Ee}}var Q_=_i((e,t)=>{const{Component:n,slots:r,classNames:i,label:s,showValueLabel:l,getProgressBarProps:c,getLabelProps:d,getSvgProps:h,getIndicatorProps:m,getTrackProps:g}=V6({ref:t,...e}),b=c();return N.jsxs(n,{...b,children:[N.jsxs("div",{className:r.svgWrapper({class:i?.svgWrapper}),children:[N.jsxs("svg",{...h(),children:[N.jsx("circle",{...g()}),N.jsx("circle",{...m()})]}),l&&N.jsx("span",{className:r.value({class:i?.value}),children:b["aria-valuetext"]})]}),s&&N.jsx("span",{...d(),children:s})]})});Q_.displayName="HeroUI.CircularProgress";var U6=Q_;function K6(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:s=!1,type:l="text",validationBehavior:c="aria"}=e,[d,h]=If(e.value,e.defaultValue||"",e.onChange),{focusableProps:m}=vv(e,t),g=x6({...e,value:d}),{isInvalid:b,validationErrors:x,validationDetails:k}=g.displayValidation,{labelProps:P,fieldProps:_,descriptionProps:T,errorMessageProps:A}=T6({...e,isInvalid:b,errorMessage:e.errorMessage||x}),L=$f(e,{labelable:!0});const z={type:l,pattern:e.pattern};return pM(t,d,h),k6(e,g,t),S.useEffect(()=>{if(t.current instanceof Zi(t.current).HTMLTextAreaElement){let K=t.current;Object.defineProperty(K,"defaultValue",{get:()=>K.value,set:()=>{},configurable:!0})}},[t]),{labelProps:P,inputProps:ar(L,n==="input"?z:void 0,{disabled:r,readOnly:s,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":b||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:d,onChange:K=>h(K.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(We.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...m,..._}),descriptionProps:T,errorMessageProps:A,isInvalid:b,validationErrors:x,validationDetails:k}}function W6(e){var t,n,r,i,s,l,c;const d=Ti(),{validationBehavior:h}=G_(_b)||{},[m,g]=ta(e,hk.variantKeys),{ref:b,as:x,type:k,label:P,baseRef:_,wrapperRef:T,description:A,className:L,classNames:z,autoFocus:K,startContent:M,endContent:J,onClear:re,onChange:ae,validationState:j,validationBehavior:B=(t=h??d?.validationBehavior)!=null?t:"native",innerWrapperRef:Y,onValueChange:te=()=>{},...G}=m,fe=S.useCallback(Ye=>{te(Ye??"")},[te]),[Z,q]=S.useState(!1),W=x||"div",se=(r=(n=e.disableAnimation)!=null?n:d?.disableAnimation)!=null?r:!1,R=Ji(b),V=Ji(_),oe=Ji(T),O=Ji(Y),[me,Ee]=If(m.value,(i=m.defaultValue)!=null?i:"",fe),we=k==="file",je=((c=(l=(s=R?.current)==null?void 0:s.files)==null?void 0:l.length)!=null?c:0)>0,Oe=["date","time","month","week","range"].includes(k),Te=!nL(me)||Oe||je,tt=Te||Z,yt=k==="hidden",$e=e.isMultiline,Rt=hn(z?.base,L,Te?"is-filled":""),bt=S.useCallback(()=>{var Ye;we?R.current.value="":Ee(""),re?.(),(Ye=R.current)==null||Ye.focus()},[Ee,re,we]);bv(()=>{R.current&&Ee(R.current.value)},[R.current]);const{labelProps:Qt,inputProps:Ue,isInvalid:st,validationErrors:Rn,validationDetails:Or,descriptionProps:kn,errorMessageProps:Lt}=K6({...e,validationBehavior:B,autoCapitalize:e.autoCapitalize,value:me,"aria-label":e.label?e["aria-label"]:iL(e["aria-label"],e.placeholder),inputElementType:$e?"textarea":"input",onChange:Ee},R);we&&(delete Ue.value,delete Ue.onChange);const{isFocusVisible:jt,isFocused:ur,focusProps:ro}=rh({autoFocus:K,isTextInput:!0}),{isHovered:Xn,hoverProps:pe}=Cf({isDisabled:!!e?.isDisabled}),{isHovered:ke,hoverProps:Be}=Cf({isDisabled:!!e?.isDisabled}),{focusProps:rt,isFocusVisible:ct}=rh(),{focusWithinProps:Jt}=yv({onFocusWithinChange:q}),{pressProps:cr}=mv({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:bt}),tn=j==="invalid"||st,an=v5({labelPlacement:e.labelPlacement,label:P}),Sr=typeof m.errorMessage=="function"?m.errorMessage({isInvalid:tn,validationErrors:Rn,validationDetails:Or}):m.errorMessage||Rn?.join(" "),Mt=!!re||e.isClearable,Qn=!!P||!!A||!!Sr,nn=!!m.placeholder,il=!!P,ps=!!A||!!Sr,ai=an==="outside-left",ui=an==="outside-top",oa=an==="outside"||ai||ui,Tu=an==="inside",hs=R.current?(!R.current.value||R.current.value===""||!me||me==="")&&nn:!1,zr=!!M,sa=oa?ai||ui||nn||an==="outside"&&zr:!1,la=an==="outside"&&!nn&&!zr,Gt=S.useMemo(()=>hk({...g,isInvalid:tn,labelPlacement:an,isClearable:Mt,disableAnimation:se}),[tl(g),tn,an,Mt,zr,se]),ms=S.useCallback((Ye={})=>({ref:V,className:Gt.base({class:Rt}),"data-slot":"base","data-filled":Me(Te||nn||zr||hs||we),"data-filled-within":Me(tt||nn||zr||hs||we),"data-focus-within":Me(Z),"data-focus-visible":Me(jt),"data-readonly":Me(e.isReadOnly),"data-focus":Me(ur),"data-hover":Me(Xn||ke),"data-required":Me(e.isRequired),"data-invalid":Me(tn),"data-disabled":Me(e.isDisabled),"data-has-elements":Me(Qn),"data-has-helper":Me(ps),"data-has-label":Me(il),"data-has-value":Me(!hs),"data-hidden":Me(yt),...Jt,...Ye}),[Gt,Rt,Te,ur,Xn,ke,tn,ps,il,Qn,hs,zr,Z,jt,tt,nn,Jt,yt,e.isReadOnly,e.isRequired,e.isDisabled]),gs=S.useCallback((Ye={})=>({"data-slot":"label",className:Gt.label({class:z?.label}),...mn(Qt,Be,Ye)}),[Gt,ke,Qt,z?.label]),Ao=S.useCallback(Ye=>{Ye.key==="Escape"&&me&&(Mt||re)&&!e.isReadOnly&&(Ee(""),re?.())},[me,Ee,re,Mt,e.isReadOnly]),aa=S.useCallback((Ye={})=>({"data-slot":"input","data-filled":Me(Te),"data-filled-within":Me(tt),"data-has-start-content":Me(zr),"data-has-end-content":Me(!!J),"data-type":k,className:Gt.input({class:hn(z?.input,Te?"is-filled":"",$e?"pe-0":"",k==="password"?"[&::-ms-reveal]:hidden":"")}),...mn(ro,Ue,vf(G,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(Ue))}),Ye),"aria-readonly":Me(e.isReadOnly),onChange:gf(Ue.onChange,ae),onKeyDown:gf(Ue.onKeyDown,Ye.onKeyDown,Ao),ref:R}),[Gt,me,ro,Ue,G,Te,tt,zr,J,z?.input,e.isReadOnly,e.isRequired,ae,Ao]),vs=S.useCallback((Ye={})=>({ref:oe,"data-slot":"input-wrapper","data-hover":Me(Xn||ke),"data-focus-visible":Me(jt),"data-focus":Me(ur),className:Gt.inputWrapper({class:hn(z?.inputWrapper,Te?"is-filled":"")}),...mn(Ye,pe),onClick:io=>{R.current&&io.currentTarget===io.target&&R.current.focus()},style:{cursor:"text",...Ye.style}}),[Gt,Xn,ke,jt,ur,me,z?.inputWrapper]),ol=S.useCallback((Ye={})=>({...Ye,ref:O,"data-slot":"inner-wrapper",onClick:io=>{R.current&&io.currentTarget===io.target&&R.current.focus()},className:Gt.innerWrapper({class:hn(z?.innerWrapper,Ye?.className)})}),[Gt,z?.innerWrapper]),sl=S.useCallback((Ye={})=>({...Ye,"data-slot":"main-wrapper",className:Gt.mainWrapper({class:hn(z?.mainWrapper,Ye?.className)})}),[Gt,z?.mainWrapper]),ua=S.useCallback((Ye={})=>({...Ye,"data-slot":"helper-wrapper",className:Gt.helperWrapper({class:hn(z?.helperWrapper,Ye?.className)})}),[Gt,z?.helperWrapper]),jf=S.useCallback((Ye={})=>({...Ye,...kn,"data-slot":"description",className:Gt.description({class:hn(z?.description,Ye?.className)})}),[Gt,z?.description]),Bf=S.useCallback((Ye={})=>({...Ye,...Lt,"data-slot":"error-message",className:Gt.errorMessage({class:hn(z?.errorMessage,Ye?.className)})}),[Gt,Lt,z?.errorMessage]),Vf=S.useCallback((Ye={})=>({...Ye,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":Me(ct),className:Gt.clearButton({class:hn(z?.clearButton,Ye?.className)}),...mn(cr,rt)}),[Gt,ct,cr,rt,z?.clearButton]);return{Component:W,classNames:z,domRef:R,label:P,description:A,startContent:M,endContent:J,labelPlacement:an,isClearable:Mt,hasHelper:ps,hasStartContent:zr,isLabelOutside:sa,isOutsideLeft:ai,isOutsideTop:ui,isLabelOutsideAsPlaceholder:la,shouldLabelBeOutside:oa,shouldLabelBeInside:Tu,hasPlaceholder:nn,isInvalid:tn,errorMessage:Sr,getBaseProps:ms,getLabelProps:gs,getInputProps:aa,getMainWrapperProps:sl,getInputWrapperProps:vs,getInnerWrapperProps:ol,getHelperWrapperProps:ua,getDescriptionProps:jf,getErrorMessageProps:Bf,getClearButtonProps:Vf}}function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{Component:d,label:h,description:m,startContent:g,endContent:b,hasHelper:x,shouldLabelBeOutside:k,shouldLabelBeInside:P,isInvalid:_,errorMessage:T,getBaseProps:A,getLabelProps:L,getInputProps:z,getInnerWrapperProps:K,getInputWrapperProps:M,getHelperWrapperProps:J,getDescriptionProps:re,getErrorMessageProps:ae,isClearable:j,getClearButtonProps:B}=W6({...l,ref:c,isMultiline:!0}),[Y,te]=S.useState(t>1),[G,fe]=S.useState(!1),Z=h?N.jsx("label",{...L(),children:h}):null,q=z(),W=(me,Ee)=>{if(t===1&&te(me>=Ee.rowHeight*2),n>t){const we=me>=n*Ee.rowHeight;fe(we)}s?.(me,Ee)},se=i?N.jsx("textarea",{...q,style:mn(q.style,e??{})}):N.jsx(az,{...q,cacheMeasurements:r,"data-hide-scroll":Me(!G),maxRows:n,minRows:t,style:mn(q.style,e??{}),onHeightChange:W}),R=S.useMemo(()=>j?N.jsx("button",{...B(),children:N.jsx(UO,{})}):null,[j,B]),V=S.useMemo(()=>g||b?N.jsxs("div",{...K(),children:[g,se,b]}):N.jsx("div",{...K(),children:se}),[g,q,b,K]),oe=_&&T,O=oe||m;return N.jsxs(d,{...A(),children:[k?Z:null,N.jsxs("div",{...M(),"data-has-multiple-rows":Me(Y),children:[P?Z:null,V,R]}),x&&O?N.jsx("div",{...J(),children:oe?N.jsx("div",{...ae(),children:T}):N.jsx("div",{...re(),children:m})}):null]})});J_.displayName="HeroUI.Textarea";var uz=J_;function cz(e,t){let{role:n="dialog"}=e,r=V0();r=e["aria-label"]?void 0:r;let i=S.useRef(!1);return S.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){xu(t.current);let s=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),xu(t.current)),i.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),v_(),{dialogProps:{...$f(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:s=>{i.current&&s.stopPropagation()}},titleProps:{id:r}}}function fz(e){var t,n;const r=Ti(),[i,s]=ta(e,gk.variantKeys),{ref:l,as:c,src:d,className:h,classNames:m,loading:g,isBlurred:b,fallbackSrc:x,isLoading:k,disableSkeleton:P=!!x,removeWrapper:_=!1,onError:T,onLoad:A,srcSet:L,sizes:z,crossOrigin:K,...M}=i,J=d6({src:d,loading:g,onError:T,onLoad:A,ignoreFallback:!1,srcSet:L,sizes:z,crossOrigin:K,shouldBypassImageLoad:c!==void 0}),re=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,ae=J==="loaded"&&!k,j=J==="loading"||k,B=e.isZoomed,Y=c||"img",te=Ji(l),{w:G,h:fe}=S.useMemo(()=>({w:i.width?typeof i.width=="number"?`${i.width}px`:i.width:"fit-content",h:i.height?typeof i.height=="number"?`${i.height}px`:i.height:"auto"}),[i?.width,i?.height]),Z=(!d||!ae)&&!!x,q=j&&!P,W=S.useMemo(()=>gk({...s,disableAnimation:re,showSkeleton:q}),[tl(s),re,q]),se=hn(h,m?.img),R=(O={})=>{const me=hn(se,O?.className);return{src:d,ref:te,"data-loaded":Me(ae),className:W.img({class:me}),loading:g,srcSet:L,sizes:z,crossOrigin:K,...M,style:{...M?.height&&{height:fe},...O.style,...M.style}}},V=S.useCallback(()=>{const O=Z?{backgroundImage:`url(${x})`}:{};return{className:W.wrapper({class:m?.wrapper}),style:{...O,maxWidth:G}}},[W,Z,x,m?.wrapper,G]),oe=S.useCallback(()=>({src:d,"aria-hidden":Me(!0),className:W.blurredImg({class:m?.blurredImg})}),[W,d,m?.blurredImg]);return{Component:Y,domRef:te,slots:W,classNames:m,isBlurred:b,disableSkeleton:P,fallbackSrc:x,removeWrapper:_,isZoomed:B,isLoading:j,getImgProps:R,getWrapperProps:V,getBlurredImgProps:oe}}var Z_=_i((e,t)=>{const{Component:n,domRef:r,slots:i,classNames:s,isBlurred:l,isZoomed:c,fallbackSrc:d,removeWrapper:h,disableSkeleton:m,getImgProps:g,getWrapperProps:b,getBlurredImgProps:x}=fz({...e,ref:t}),k=N.jsx(n,{ref:r,...g()});if(h)return k;const P=N.jsx("div",{className:i.zoomedWrapper({class:s?.zoomedWrapper}),children:k});return l?N.jsxs("div",{...b(),children:[c?P:k,S.cloneElement(k,x())]}):c||!m||d?N.jsxs("div",{...b(),children:[" ",c?P:k]}):k});Z_.displayName="HeroUI.Image";var m0=Z_,[dz,e2]=nx({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),t2=_i((e,t)=>{const{as:n,children:r,className:i,...s}=e,{slots:l,classNames:c,bodyId:d,setBodyMounted:h}=e2(),m=Ji(t),g=n||"div";return S.useEffect(()=>(h(!0),()=>h(!1)),[h]),N.jsx(g,{ref:m,className:l.body({class:hn(c?.body,i)}),id:d,...s,children:r})});t2.displayName="HeroUI.ModalBody";var pz=t2,hz={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:Op.ease},opacity:{duration:.4,ease:Op.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:Op.ease}}},ss=typeof document<"u"&&window.visualViewport,mz=We.createContext(!1);function gz(){return!1}function vz(){return!0}function yz(e){return()=>{}}function bz(){return typeof We.useSyncExternalStore=="function"?We.useSyncExternalStore(yz,gz,vz):S.useContext(mz)}function xz(){let e=bz(),[t,n]=S.useState(()=>e?{width:0,height:0}:Fk());return S.useEffect(()=>{let r=()=>{n(i=>{let s=Fk();return s.width===i.width&&s.height===i.height?i:s})};return ss?ss.addEventListener("resize",r):window.addEventListener("resize",r),()=>{ss?ss.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),t}function Fk(){return{width:ss&&ss?.width||window.innerWidth,height:ss&&ss?.height||window.innerHeight}}var Ok=()=>Fr(()=>import("./index-BDLYWa-3.js"),[]).then(e=>e.default),n2=e=>{const{as:t,children:n,role:r="dialog",...i}=e,{Component:s,domRef:l,slots:c,classNames:d,motionProps:h,backdrop:m,closeButton:g,hideCloseButton:b,disableAnimation:x,getDialogProps:k,getBackdropProps:P,getCloseButtonProps:_,onClose:T}=e2(),A=t||s||"div",L=xz(),{dialogProps:z}=cz({role:r},l),K=S.isValidElement(g)?S.cloneElement(g,_()):N.jsx("button",{..._(),children:N.jsx(KO,{})}),M=S.useCallback(Y=>{Y.key==="Tab"&&Y.nativeEvent.isComposing&&(Y.stopPropagation(),Y.preventDefault())},[]),J=k(mn(z,i)),re=N.jsxs(A,{...J,onKeyDown:gf(J.onKeyDown,M),children:[N.jsx(nk,{onDismiss:T}),!b&&K,typeof n=="function"?n(T):n,N.jsx(nk,{onDismiss:T})]}),ae=S.useMemo(()=>m==="transparent"?null:x?N.jsx("div",{...P()}):N.jsx(Sf,{features:Ok,children:N.jsx(kf.div,{animate:"enter",exit:"exit",initial:"exit",variants:qg.fade,...P()})}),[m,x,P]),j={"--visual-viewport-height":L.height+"px"},B=x?N.jsx("div",{className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",style:j,children:re}):N.jsx(Sf,{features:Ok,children:N.jsx(kf.div,{animate:"enter",className:c.wrapper({class:d?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:hz,...h,style:j,children:re})});return N.jsxs("div",{tabIndex:-1,children:[ae,B]})};n2.displayName="HeroUI.ModalContent";var wz=n2;function Sz(e={shouldBlockScroll:!0},t,n){let{overlayProps:r,underlayProps:i}=Y_({...e,isOpen:t.isOpen,onClose:t.close},n);return r5({isDisabled:!t.isOpen||!e.shouldBlockScroll}),v_(),S.useEffect(()=>{if(t.isOpen&&n.current)return h5([n.current])},[t.isOpen,n]),{modalProps:ar(r),underlayProps:i}}function kz(e){var t,n,r;const i=Ti(),[s,l]=ta(e,mk.variantKeys),{ref:c,as:d,className:h,classNames:m,isOpen:g,defaultOpen:b,onOpenChange:x,motionProps:k,closeButton:P,isDismissable:_=!0,hideCloseButton:T=!1,shouldBlockScroll:A=!0,portalContainer:L,isKeyboardDismissDisabled:z=!1,onClose:K,...M}=s,J=d||"section",re=Ji(c),ae=S.useRef(null),[j,B]=S.useState(!1),[Y,te]=S.useState(!1),G=(n=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?n:!1,fe=S.useId(),Z=S.useId(),q=S.useId(),W=q_({isOpen:g,defaultOpen:b,onOpenChange:Te=>{x?.(Te),Te||K?.()}}),{modalProps:se,underlayProps:R}=Sz({isDismissable:_,shouldBlockScroll:A,isKeyboardDismissDisabled:z},W,re),{buttonProps:V}=z_({onPress:W.close},ae),{isFocusVisible:oe,focusProps:O}=rh(),me=hn(m?.base,h),Ee=S.useMemo(()=>mk({...l,disableAnimation:G}),[tl(l),G]),we=(Te={},tt=null)=>{var yt;return{ref:yE(tt,re),...mn(se,M,Te),className:Ee.base({class:hn(me,Te.className)}),id:fe,"data-open":Me(W.isOpen),"data-dismissable":Me(_),"aria-modal":Me(!0),"data-placement":(yt=e?.placement)!=null?yt:"right","aria-labelledby":j?Z:void 0,"aria-describedby":Y?q:void 0}},je=S.useCallback((Te={})=>({className:Ee.backdrop({class:m?.backdrop}),...R,...Te}),[Ee,m,R]),Oe=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":Me(oe),className:Ee.closeButton({class:m?.closeButton}),...mn(V,O)});return{Component:J,slots:Ee,domRef:re,headerId:Z,bodyId:q,motionProps:k,classNames:m,isDismissable:_,closeButton:P,hideCloseButton:T,portalContainer:L,shouldBlockScroll:A,backdrop:(r=e.backdrop)!=null?r:"opaque",isOpen:W.isOpen,onClose:W.close,disableAnimation:G,setBodyMounted:te,setHeaderMounted:B,getDialogProps:we,getBackdropProps:je,getCloseButtonProps:Oe}}var r2=_i((e,t)=>{const{children:n,...r}=e,i=kz({...r,ref:t}),s=N.jsx(m5,{portalContainer:i.portalContainer,children:n});return N.jsx(dz,{value:i,children:i.disableAnimation&&i.isOpen?s:N.jsx(Lf,{children:i.isOpen?s:null})})});r2.displayName="HeroUI.Modal";var Cz=r2;function Ez(e={}){const{id:t,defaultOpen:n,isOpen:r,onClose:i,onOpen:s,onChange:l=()=>{}}=e,c=Ik(s),d=Ik(i),[h,m]=If(r,n||!1,l),g=S.useId(),b=t||g,x=r!==void 0,k=S.useCallback(()=>{x||m(!1),d?.()},[x,d]),P=S.useCallback(()=>{x||m(!0),c?.()},[x,c]),_=S.useCallback(()=>{(h?k:P)()},[h,P,k]);return{isOpen:!!h,onOpen:P,onClose:k,onOpenChange:_,isControlled:x,getButtonProps:(T={})=>({...T,"aria-expanded":h,"aria-controls":b,onClick:bf(T.onClick,_)}),getDisclosureProps:(T={})=>({...T,hidden:!h,id:b})}}function Pz(e){var t,n;const r=Ti(),[i,s]=ta(e,pk.variantKeys),{as:l,children:c,isLoaded:d=!1,className:h,classNames:m,...g}=i,b=l||"div",x=(n=(t=e.disableAnimation)!=null?t:r?.disableAnimation)!=null?n:!1,k=S.useMemo(()=>pk({...s,disableAnimation:x}),[tl(s),x,c]),P=hn(m?.base,h);return{Component:b,children:c,slots:k,classNames:m,getSkeletonProps:(A={})=>({"data-loaded":Me(d),className:k.base({class:hn(P,A?.className)}),...g}),getContentProps:(A={})=>({className:k.content({class:hn(m?.content,A?.className)})})}}var i2=_i((e,t)=>{const{Component:n,children:r,getSkeletonProps:i,getContentProps:s}=Pz({...e});return N.jsx(n,{ref:t,...i(),children:N.jsx("div",{...s(),children:r})})});i2.displayName="HeroUI.Skeleton";var o2=i2;function Tz(e={}){const{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:s=0,onVisibilityChange:l,updateDeps:c=[]}=e,d=S.useRef(i);S.useEffect(()=>{const h=t?.current;if(!h||!n)return;const m=(x,k,P,_,T)=>{if(i==="auto"){const A=`${_}${oL(T)}Scroll`;k&&P?(h.dataset[A]="true",h.removeAttribute(`data-${_}-scroll`),h.removeAttribute(`data-${T}-scroll`)):(h.dataset[`${_}Scroll`]=k.toString(),h.dataset[`${T}Scroll`]=P.toString(),h.removeAttribute(`data-${_}-${T}-scroll`))}else{const A=k&&P?"both":k?_:P?T:"none";A!==d.current&&(l?.(A),d.current=A)}},g=()=>{var x,k;const P=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],_=h.querySelector('ul[data-slot="list"]'),T=+((x=_?.getAttribute("data-virtual-scroll-height"))!=null?x:h.scrollHeight),A=+((k=_?.getAttribute("data-virtual-scroll-top"))!=null?k:h.scrollTop);for(const{type:L,prefix:z,suffix:K}of P)if(r===L||r==="both"){const M=L==="vertical"?A>s:h.scrollLeft>s,J=L==="vertical"?A+h.clientHeight+s{["top","bottom","top-bottom","left","right","left-right"].forEach(x=>{h.removeAttribute(`data-${x}-scroll`)})};return g(),h.addEventListener("scroll",g,!0),i!=="auto"&&(b(),i==="both"?(h.dataset.topBottomScroll=String(r==="vertical"),h.dataset.leftRightScroll=String(r==="horizontal")):(h.dataset.topBottomScroll="false",h.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(x=>{h.dataset[`${x}Scroll`]=String(i===x)}))),()=>{h.removeEventListener("scroll",g,!0),b()}},[...c,n,i,r,l,t])}function _z(e){var t;const[n,r]=ta(e,dk.variantKeys),{ref:i,as:s,children:l,className:c,style:d,size:h=40,offset:m=0,visibility:g="auto",isEnabled:b=!0,onVisibilityChange:x,...k}=n,P=s||"div",_=Ji(i);Tz({domRef:_,offset:m,visibility:g,isEnabled:b,onVisibilityChange:x,updateDeps:[l],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const T=S.useMemo(()=>dk({...r,className:c}),[tl(r),c]);return{Component:P,styles:T,domRef:_,children:l,getBaseProps:(L={})=>{var z;return{ref:_,className:T,"data-orientation":(z=e.orientation)!=null?z:"vertical",style:{"--scroll-shadow-size":`${h}px`,...d,...L.style},...k,...L}}}}var s2=_i((e,t)=>{const{Component:n,children:r,getBaseProps:i}=_z({...e,ref:t});return N.jsx(n,{...i(),children:r})});s2.displayName="HeroUI.ScrollShadow";var l2=s2,Eo=(e=>(e.LIGHT="light",e.DARK="dark",e))(Eo||{});const a2=S.createContext(null),WG={Like:"like",Dislike:"dislike"},$z={Start:"START"},hf={User:"user",Assistant:"assistant"};class Iz{constructor(t={}){if(this.chunkQueue=new Map,this.baseUrl=t.baseUrl??"",this.auth=t.auth,this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.slice(0,-1)),!!this.baseUrl)try{new URL(this.baseUrl)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}. Please provide a valid URL.`)}}getBaseUrl(){return this.baseUrl}_buildApiUrl(t){return`${this.baseUrl}${t}`}async _makeRequest(t,n={}){const r={"Content-Type":"application/json"};n.body instanceof FormData&&delete r["Content-Type"];const i={...r,...this.normalizeHeaders(n.headers)};this.auth?.getToken&&(i.Authorization=`Bearer ${this.auth.getToken()}`);const s=await fetch(t,{...n,headers:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(s.status===401&&this.auth?.onUnauthorized?.(),!s.ok)throw new Error(`HTTP error! status: ${s.status}`);return s}async makeRequest(t,...n){const r=n[0],{method:i="GET",body:s,pathParams:l,queryParams:c,headers:d={},...h}=r||{},m={method:i,headers:d,...h};s&&i!=="GET"&&(s instanceof FormData?(m.body=s,m.headers&&"Content-Type"in m.headers&&delete m.headers["Content-Type"]):m.body=typeof s=="string"?s:JSON.stringify(s));let g=t.toString();if(l&&typeof l=="object"&&(g=g.replace(/:([^/]+)/g,(x,k)=>{if(k in l){const P=l[k];return encodeURIComponent(String(P))}else throw new Error(`Path parameter ${k} is required`)})),c&&Object.keys(c).length>0){const x=new URLSearchParams;for(const[k,P]of Object.entries(c))P!=null&&x.append(k,String(P));g+=`?${x.toString()}`}return g=this._buildApiUrl(g),(await this._makeRequest(g,m)).json()}makeStreamRequest(t,n,r,i,s){let l=!1;const c=async h=>{const m=h.body?.pipeThrough(new TextDecoderStream).getReader();if(!m)throw new Error("Response body is null");let g="";for(;!l&&!i?.aborted;)try{const{value:b,done:x}=await m.read();if(x){r.onClose?.();break}g+=b;const k=g.split(`
-`);g=k.pop()??"";for(const P of k)if(P.startsWith("data: "))try{const _=P.replace("data: ","").trim(),T=JSON.parse(_);if(!this.isChatResponse(T)){console.warn("Received response that isn't ChatResponse, skipping.",T);continue}if(T.type==="chunked_content"){this.handleChunkedContent(T,r);continue}await r.onMessage(T)}catch(_){console.error("Error parsing JSON:",_),await r.onError(new Error("Error processing server response"))}}catch(b){if(i?.aborted)return;console.error("Stream error:",b),await r.onError(new Error("Error reading stream"));break}},d=async()=>{try{const m={...{"Content-Type":"application/json",Accept:"text/event-stream"},...s};this.auth?.getToken&&(m.Authorization=`Bearer ${this.auth.getToken()}`);const g=await fetch(this._buildApiUrl(t.toString()),{method:"POST",headers:m,body:JSON.stringify(n),signal:i,...this.auth?.credentials?{credentials:this.auth?.credentials}:{}});if(g.status===401&&this.auth?.onUnauthorized?.(),!g.ok)throw new Error(`HTTP error! status: ${g.status}`);await c(g)}catch(h){if(i?.aborted)return;console.error("Request error:",h);const m=h instanceof Error?h.message:"Error connecting to server";await r.onError(new Error(m))}};try{d()}catch(h){const m=h instanceof Error?h.message:"Failed to start stream";r.onError(new Error(m))}return()=>{l=!0}}isChatResponse(t){return t!==null&&typeof t=="object"&&"type"in t&&"content"in t}normalizeHeaders(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):t:{}}async handleChunkedContent(t,n){const i=t.content,{content_type:s,id:l,chunk_index:c,total_chunks:d,mime_type:h,data:m}=i;this.chunkQueue.has(l)||this.chunkQueue.set(l,{chunks:new Map,totalChunks:d,mimeType:h});const g=this.chunkQueue.get(l);if(g.chunks.set(c,m),g.chunks.size!==d)return;const x=Array.from({length:d},(k,P)=>g.chunks.get(P)).join("");try{atob(x)}catch(k){this.chunkQueue.delete(l),console.error("❌ Invalid base64 data: ",k),await n.onError(new Error("Error reading stream"))}if(s==="image"){const k={type:"image",content:{id:l,url:`${g.mimeType},${x}`}};await n.onMessage(k)}this.chunkQueue.delete(l)}}const u2=S.createContext(null);function Az({children:e,...t}){const n=S.useMemo(()=>new Iz(t),[t]),r=S.useMemo(()=>({client:n}),[n]);return N.jsx(u2.Provider,{value:r,children:e})}function Jx(){const e=S.useContext(u2);if(!e)throw new Error("useRagbitsContext must be used within a RagbitsProvider");return e}function Rz(e,t){const{client:n}=Jx(),[r,i]=S.useState(null),[s,l]=S.useState(null),[c,d]=S.useState(!1),h=S.useRef(null),m=S.useCallback(()=>{if(!h.current)return null;h.current.abort(),h.current=null,d(!1)},[]),g=S.useCallback(async(...x)=>{const k=x[0];h.current&&c&&h.current.abort();const P=new AbortController;h.current=P,d(!0),l(null);try{const T={...{...t,...k||{},headers:{...t?.headers,...k?.headers||{}}},signal:P.signal},A=await n.makeRequest(e,T);return P.signal.aborted||(i(A),h.current=null),A}catch(_){if(!P.signal.aborted){const T=_ instanceof Error?_:new Error("API call failed");throw l(T),h.current=null,T}throw _}finally{P.signal.aborted||d(!1)}},[n,e,t,c]),b=S.useCallback(()=>{m(),i(null),l(null),d(!1)},[m]);return{data:r,error:s,isLoading:c,call:g,reset:b,abort:m}}function Lz(){return window.matchMedia("(prefers-color-scheme: dark)").matches?Eo.DARK:Eo.LIGHT}function zk(){const e=window.localStorage.getItem("theme");return e===Eo.DARK||e===Eo.LIGHT?e:Lz()}function Mz(e){return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}const Dz=({children:e})=>{const t=S.useSyncExternalStore(Mz,zk,zk),n=S.useRef(!1),{client:r}=Jx();S.useEffect(()=>{if(n.current)return;(async()=>{try{const c=r.getBaseUrl(),d=await fetch(`${c}/api/theme`);if(d.ok){const h=await d.text(),m=document.getElementById("heroui-custom-theme");m&&m.remove();const g=document.createElement("style");g.id="heroui-custom-theme",g.textContent=h,document.head.appendChild(g),console.log("Custom HeroUI theme loaded successfully"),n.current=!0}}catch(c){console.warn("No custom theme available:",c),n.current=!0}})()},[]),S.useEffect(()=>{document.documentElement.classList.toggle("dark",t===Eo.DARK)},[t]);const i=S.useCallback(l=>{window.localStorage.setItem("theme",l),window.dispatchEvent(new Event("storage"))},[]),s=S.useMemo(()=>({theme:t,setTheme:i}),[t,i]);return N.jsx(a2.Provider,{value:s,children:e})},c2=Object.freeze({left:0,top:0,width:16,height:16}),Yg=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Zx=Object.freeze({...c2,...Yg}),Ib=Object.freeze({...Zx,body:"",hidden:!1});function Nz(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function jk(e,t){const n=Nz(e,t);for(const r in Ib)r in Yg?r in e&&!(r in n)&&(n[r]=Yg[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Fz(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(l){if(n[l])return i[l]=[];if(!(l in i)){i[l]=null;const c=r[l]&&r[l].parent,d=c&&s(c);d&&(i[l]=[c].concat(d))}return i[l]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Oz(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function l(c){s=jk(r[c]||i[c],s)}return l(t),n.forEach(l),jk(e,s)}function f2(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=Fz(e);for(const i in r){const s=r[i];s&&(t(i,Oz(e,i,s)),n.push(i))}return n}const zz={provider:"",aliases:{},not_found:{},...c2};function g0(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function d2(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!g0(e,zz))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!g0(s,Ib))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],l=s.parent;if(!i||typeof l!="string"||!n[l]&&!r[l]||!g0(s,Ib))return null}return t}const p2=/^[a-z0-9]+(-[a-z0-9]+)*$/,xv=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const c=i.pop(),d=i.pop(),h={provider:i.length>0?i[0]:r,prefix:d,name:c};return t&&!Ig(h)?null:h}const s=i[0],l=s.split("-");if(l.length>1){const c={provider:r,prefix:l.shift(),name:l.join("-")};return t&&!Ig(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!Ig(c,n)?null:c}return null},Ig=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Bk=Object.create(null);function jz(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ef(e,t){const n=Bk[e]||(Bk[e]=Object.create(null));return n[t]||(n[t]=jz(e,t))}function h2(e,t){return d2(t)?f2(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Bz(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let oh=!1;function m2(e){return typeof e=="boolean"&&(oh=e),oh}function Vk(e){const t=typeof e=="string"?xv(e,!0,oh):e;if(t){const n=Ef(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Vz(e,t){const n=xv(e,!0,oh);if(!n)return!1;const r=Ef(n.provider,n.prefix);return t?Bz(r,n.name,t):(r.missing.add(n.name),!0)}function Uz(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),oh&&!t&&!e.prefix){let i=!1;return d2(e)&&(e.prefix="",f2(e,(s,l)=>{Vz(s,l)&&(i=!0)})),i}const n=e.prefix;if(!Ig({prefix:n,name:"a"}))return!1;const r=Ef(t,n);return!!h2(r,e)}const g2=Object.freeze({width:null,height:null}),v2=Object.freeze({...g2,...Yg}),Kz=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Wz=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Uk(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Kz);if(r===null||!r.length)return e;const i=[];let s=r.shift(),l=Wz.test(s);for(;;){if(l){const c=parseFloat(s);isNaN(c)?i.push(s):i.push(Math.ceil(c*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");l=!l}}function Hz(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf(""+t);if(i===-1||s===-1)break;const l=e.indexOf(">",s);if(l===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(l+1)}return{defs:n,content:e}}function Gz(e,t){return e?""+e+""+t:t}function qz(e,t,n){const r=Hz(e);return Gz(r.defs,t+r.content+n)}const Yz=e=>e==="unset"||e==="undefined"||e==="none";function Xz(e,t){const n={...Zx,...e},r={...v2,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(P=>{const _=[],T=P.hFlip,A=P.vFlip;let L=P.rotate;T?A?L+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):A&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let z;switch(L<0&&(L-=Math.floor(L/4)*4),L=L%4,L){case 1:z=i.height/2+i.top,_.unshift("rotate(90 "+z.toString()+" "+z.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:z=i.width/2+i.left,_.unshift("rotate(-90 "+z.toString()+" "+z.toString()+")");break}L%2===1&&(i.left!==i.top&&(z=i.left,i.left=i.top,i.top=z),i.width!==i.height&&(z=i.width,i.width=i.height,i.height=z)),_.length&&(s=qz(s,'',""))});const l=r.width,c=r.height,d=i.width,h=i.height;let m,g;l===null?(g=c===null?"1em":c==="auto"?h:c,m=Uk(g,d/h)):(m=l==="auto"?d:l,g=c===null?Uk(m,h/d):c==="auto"?h:c);const b={},x=(P,_)=>{Yz(_)||(b[P]=_.toString())};x("width",m),x("height",g);const k=[i.left,i.top,d,h];return b.viewBox=k.join(" "),{attributes:b,viewBox:k,body:s}}const Qz=/\sid="(\S+)"/g,Jz="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Zz=0;function e8(e,t=Jz){const n=[];let r;for(;r=Qz.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const l=typeof t=="function"?t(s):t+(Zz++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Ab=Object.create(null);function t8(e,t){Ab[e]=t}function Rb(e){return Ab[e]||Ab[""]}function ew(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const tw=Object.create(null),yp=["https://api.simplesvg.com","https://api.unisvg.com"],Ag=[];for(;yp.length>0;)yp.length===1||Math.random()>.5?Ag.push(yp.shift()):Ag.push(yp.pop());tw[""]=ew({resources:["https://api.iconify.design"].concat(Ag)});function n8(e,t){const n=ew(t);return n===null?!1:(tw[e]=n,!0)}function nw(e){return tw[e]}const r8=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Kk=r8();function i8(e,t){const n=nw(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(l=>{i=Math.max(i,l.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function o8(e){return e===404}const s8=(e,t,n)=>{const r=[],i=i8(e,t),s="icons";let l={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,h)=>{c+=d.length+1,c>=i&&h>0&&(r.push(l),l={type:s,provider:e,prefix:t,icons:[]},c=d.length),l.icons.push(d)}),r.push(l),r};function l8(e){if(typeof e=="string"){const t=nw(e);if(t)return t.path}return"/"}const a8=(e,t,n)=>{if(!Kk){n("abort",424);return}let r=l8(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});r+=s+".json?"+d.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;Kk(e+r).then(s=>{const l=s.status;if(l!==200){setTimeout(()=>{n(o8(l)?"abort":"next",l)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},u8={prepare:s8,send:a8};function c8(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,l=i.prefix,c=i.name,d=n[s]||(n[s]=Object.create(null)),h=d[l]||(d[l]=Ef(s,l));let m;c in h.icons?m=t.loaded:l===""||h.missing.has(c)?m=t.missing:m=t.pending;const g={provider:s,prefix:l,name:c};m.push(g)}),t}function y2(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function f8(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const l=s.icons,c=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==i)return!0;const h=d.name;if(e.icons[h])l.loaded.push({provider:r,prefix:i,name:h});else if(e.missing.has(h))l.missing.push({provider:r,prefix:i,name:h});else return n=!0,!0;return!1}),l.pending.length!==c&&(n||y2([e],s.id),s.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),s.abort))})}))}let d8=0;function p8(e,t,n){const r=d8++,i=y2.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(s)}),i}function h8(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?xv(i,t,n):i;s&&r.push(s)}),r}var m8={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function g8(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let l;if(e.random){let M=e.resources.slice(0);for(l=[];M.length>1;){const J=Math.floor(Math.random()*M.length);l.push(M[J]),M=M.slice(0,J).concat(M.slice(J+1))}l=l.concat(M)}else l=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let d="pending",h=0,m,g=null,b=[],x=[];typeof r=="function"&&x.push(r);function k(){g&&(clearTimeout(g),g=null)}function P(){d==="pending"&&(d="aborted"),k(),b.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),b=[]}function _(M,J){J&&(x=[]),typeof M=="function"&&x.push(M)}function T(){return{startTime:c,payload:t,status:d,queriesSent:h,queriesPending:b.length,subscribe:_,abort:P}}function A(){d="failed",x.forEach(M=>{M(void 0,m)})}function L(){b.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),b=[]}function z(M,J,re){const ae=J!=="success";switch(b=b.filter(j=>j!==M),d){case"pending":break;case"failed":if(ae||!e.dataAfterTimeout)return;break;default:return}if(J==="abort"){m=re,A();return}if(ae){m=re,b.length||(l.length?K():A());return}if(k(),L(),!e.random){const j=e.resources.indexOf(M.resource);j!==-1&&j!==e.index&&(e.index=j)}d="completed",x.forEach(j=>{j(re)})}function K(){if(d!=="pending")return;k();const M=l.shift();if(M===void 0){if(b.length){g=setTimeout(()=>{k(),d==="pending"&&(L(),A())},e.timeout);return}A();return}const J={status:"pending",resource:M,callback:(re,ae)=>{z(J,re,ae)}};b.push(J),h++,g=setTimeout(K,e.rotate),n(M,t,J.callback)}return setTimeout(K),T}function b2(e){const t={...m8,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function i(c,d,h){const m=g8(t,c,d,(g,b)=>{r(),h&&h(g,b)});return n.push(m),m}function s(c){return n.find(d=>c(d))||null}return{query:i,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Wk(){}const v0=Object.create(null);function v8(e){if(!v0[e]){const t=nw(e);if(!t)return;const n=b2(t),r={config:t,redundancy:n};v0[e]=r}return v0[e]}function y8(e,t,n){let r,i;if(typeof e=="string"){const s=Rb(e);if(!s)return n(void 0,424),Wk;i=s.send;const l=v8(e);l&&(r=l.redundancy)}else{const s=ew(e);if(s){r=b2(s);const l=e.resources?e.resources[0]:"",c=Rb(l);c&&(i=c.send)}}return!r||!i?(n(void 0,424),Wk):r.query(t,i,n)().abort}function Hk(){}function b8(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,f8(e)}))}function x8(e){const t=[],n=[];return e.forEach(r=>{(r.match(p2)?t:n).push(r)}),{valid:t,invalid:n}}function bp(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!h2(e,n).length){r();return}}catch(i){console.error(i)}r(),b8(e)}function Gk(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function w8(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){Gk(e.loadIcons(i,r,n),m=>{bp(e,i,m)});return}if(s){i.forEach(m=>{const g=s(m,r,n);Gk(g,b=>{const x=b?{prefix:r,icons:{[m]:b}}:null;bp(e,[m],x)})});return}const{valid:l,invalid:c}=x8(i);if(c.length&&bp(e,c,null),!l.length)return;const d=r.match(p2)?Rb(n):null;if(!d){bp(e,l,null);return}d.prepare(n,r,l).forEach(m=>{y8(n,m,g=>{bp(e,m.icons,g)})})}))}const x2=(e,t)=>{const n=h8(e,!0,m2()),r=c8(n);if(!r.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(r.loaded,r.missing,r.pending,Hk)}),()=>{d=!1}}const i=Object.create(null),s=[];let l,c;return r.pending.forEach(d=>{const{provider:h,prefix:m}=d;if(m===c&&h===l)return;l=h,c=m,s.push(Ef(h,m));const g=i[h]||(i[h]=Object.create(null));g[m]||(g[m]=[])}),r.pending.forEach(d=>{const{provider:h,prefix:m,name:g}=d,b=Ef(h,m),x=b.pendingIcons||(b.pendingIcons=new Set);x.has(g)||(x.add(g),i[h][m].push(g))}),s.forEach(d=>{const h=i[d.provider][d.prefix];h.length&&w8(d,h)}),t?p8(t,r,s):Hk};function S8(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in g2?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const k8=/[\s,]+/;function C8(e,t){t.split(k8).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function E8(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function P8(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"}function T8(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function _8(e){return"data:image/svg+xml,"+T8(e)}function $8(e){return'url("'+_8(e)+'")'}let zp;function I8(){try{zp=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{zp=null}}function A8(e){return zp===void 0&&I8(),zp?zp.createHTML(e):e}const w2={...v2,inline:!1},R8={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},L8={display:"inline-block"},Lb={backgroundColor:"currentColor"},S2={backgroundColor:"transparent"},qk={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Yk={WebkitMask:Lb,mask:Lb,background:S2};for(const e in Yk){const t=Yk[e];for(const n in qk)t[e+n]=qk[n]}const M8={...w2,inline:!0};function Xk(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const D8=(e,t,n)=>{const r=t.inline?M8:w2,i=S8(r,t),s=t.mode||"svg",l={},c=t.style||{},d={...s==="svg"?R8:{}};if(n){const _=xv(n,!1,!0);if(_){const T=["iconify"],A=["provider","prefix"];for(const L of A)_[L]&&T.push("iconify--"+_[L]);d.className=T.join(" ")}}for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":d.ref=T;break;case"className":d[_]=(d[_]?d[_]+" ":"")+T;break;case"inline":case"hFlip":case"vFlip":i[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&C8(i,T);break;case"color":l.color=T;break;case"rotate":typeof T=="string"?i[_]=E8(T):typeof T=="number"&&(i[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete d["aria-hidden"];break;default:r[_]===void 0&&(d[_]=T)}}const h=Xz(e,i),m=h.attributes;if(i.inline&&(l.verticalAlign="-0.125em"),s==="svg"){d.style={...l,...c},Object.assign(d,m);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),d.dangerouslySetInnerHTML={__html:A8(e8(h.body,T?()=>T+"ID"+_++:"iconifyReact"))},S.createElement("svg",d)}const{body:g,width:b,height:x}=e,k=s==="mask"||(s==="bg"?!1:g.indexOf("currentColor")!==-1),P=P8(g,{...m,width:b+"",height:x+""});return d.style={...l,"--svg":$8(P),width:Xk(m.width),height:Xk(m.height),...L8,...k?Lb:S2,...c},S.createElement("span",d)};m2(!0);t8("",u8);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Uz(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;n8(n,i)||console.error(r)}catch{console.error(r)}}}}function k2(e){const[t,n]=S.useState(!!e.ssr),[r,i]=S.useState({});function s(x){if(x){const k=e.icon;if(typeof k=="object")return{name:"",data:k};const P=Vk(k);if(P)return{name:k,data:P}}return{name:""}}const[l,c]=S.useState(s(!!e.ssr));function d(){const x=r.callback;x&&(x(),i({}))}function h(x){if(JSON.stringify(l)!==JSON.stringify(x))return d(),c(x),!0}function m(){var x;const k=e.icon;if(typeof k=="object"){h({name:"",data:k});return}const P=Vk(k);if(h({name:k,data:P}))if(P===void 0){const _=x2([k],m);i({callback:_})}else P&&((x=e.onLoad)===null||x===void 0||x.call(e,k))}S.useEffect(()=>(n(!0),d),[]),S.useEffect(()=>{t&&m()},[e.icon,t]);const{name:g,data:b}=l;return b?D8({...Zx,...b},e,g):e.children?e.children:e.fallback?e.fallback:S.createElement("span",{})}const si=S.forwardRef((e,t)=>k2({...e,_ref:t}));S.forwardRef((e,t)=>k2({inline:!0,...e,_ref:t}));var Ip={exports:{}};var N8=Ip.exports,Qk;function F8(){return Qk||(Qk=1,(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",g=1,b=2,x=4,k=1,P=2,_=1,T=2,A=4,L=8,z=16,K=32,M=64,J=128,re=256,ae=512,j=30,B="...",Y=800,te=16,G=1,fe=2,Z=3,q=1/0,W=9007199254740991,se=17976931348623157e292,R=NaN,V=4294967295,oe=V-1,O=V>>>1,me=[["ary",J],["bind",_],["bindKey",T],["curry",L],["curryRight",z],["flip",ae],["partial",K],["partialRight",M],["rearg",re]],Ee="[object Arguments]",we="[object Array]",je="[object AsyncFunction]",Oe="[object Boolean]",Te="[object Date]",tt="[object DOMException]",yt="[object Error]",$e="[object Function]",Rt="[object GeneratorFunction]",bt="[object Map]",Qt="[object Number]",Ue="[object Null]",st="[object Object]",Rn="[object Promise]",Or="[object Proxy]",kn="[object RegExp]",Lt="[object Set]",jt="[object String]",ur="[object Symbol]",ro="[object Undefined]",Xn="[object WeakMap]",pe="[object WeakSet]",ke="[object ArrayBuffer]",Be="[object DataView]",rt="[object Float32Array]",ct="[object Float64Array]",Jt="[object Int8Array]",cr="[object Int16Array]",tn="[object Int32Array]",an="[object Uint8Array]",Sr="[object Uint8ClampedArray]",Mt="[object Uint16Array]",Qn="[object Uint32Array]",nn=/\b__p \+= '';/g,il=/\b(__p \+=) '' \+/g,ps=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ai=/&(?:amp|lt|gt|quot|#39);/g,ui=/[&<>"']/g,oa=RegExp(ai.source),Tu=RegExp(ui.source),hs=/<%-([\s\S]+?)%>/g,zr=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,la=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gt=/^\w*$/,ms=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gs=/[\\^$.*+?()[\]{}|]/g,Ao=RegExp(gs.source),aa=/^\s+/,vs=/\s/,ol=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,ua=/,? & /,jf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bf=/[()=,{}\[\]\/\s]/,Vf=/\\(\\)?/g,Ye=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,io=/\w*$/,Ph=/^[-+]0x[0-9a-f]+$/i,Dv=/^0b[01]+$/i,Th=/^\[object .+?Constructor\]$/,_h=/^0o[0-7]+$/i,$h=/^(?:0|[1-9]\d*)$/,Ih=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_u=/($^)/,Nv=/['\n\r\u2028\u2029\\]/g,Bt="\\ud800-\\udfff",Fv="\\u0300-\\u036f",Uf="\\ufe20-\\ufe2f",Ah="\\u20d0-\\u20ff",ca=Fv+Uf+Ah,Rh="\\u2700-\\u27bf",Kf="a-z\\xdf-\\xf6\\xf8-\\xff",$u="\\xac\\xb1\\xd7\\xf7",Ii="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ov="\\u2000-\\u206f",ci=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lh="A-Z\\xc0-\\xd6\\xd8-\\xde",Mh="\\ufe0e\\ufe0f",Dh=$u+Ii+Ov+ci,ll="['’]",Iu="["+Bt+"]",al="["+Dh+"]",ys="["+ca+"]",Nh="\\d+",zv="["+Rh+"]",Au="["+Kf+"]",Wf="[^"+Bt+Dh+Nh+Rh+Kf+Lh+"]",fa="\\ud83c[\\udffb-\\udfff]",da="(?:"+ys+"|"+fa+")",Fh="[^"+Bt+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",bs="["+Lh+"]",Hf="\\u200d",Ru="(?:"+Au+"|"+Wf+")",Oh="(?:"+bs+"|"+Wf+")",Gf="(?:"+ll+"(?:d|ll|m|re|s|t|ve))?",qf="(?:"+ll+"(?:D|LL|M|RE|S|T|VE))?",Lu=da+"?",ha="["+Mh+"]?",Ro="(?:"+Hf+"(?:"+[Fh,pa,Ct].join("|")+")"+ha+Lu+")*",Lo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ul=ha+Lu+Ro,ma="(?:"+[zv,pa,Ct].join("|")+")"+ul,Do="(?:"+[Fh+ys+"?",ys,pa,Ct,Iu].join("|")+")",jv=RegExp(ll,"g"),zh=RegExp(ys,"g"),xs=RegExp(fa+"(?="+fa+")|"+Do+ul,"g"),Bv=RegExp([bs+"?"+Au+"+"+Gf+"(?="+[al,bs,"$"].join("|")+")",Oh+"+"+qf+"(?="+[al,bs+Ru,"$"].join("|")+")",bs+"?"+Ru+"+"+Gf,bs+"+"+qf,Mo,Lo,Nh,ma].join("|"),"g"),jh=RegExp("["+Hf+Bt+ca+Mh+"]"),Mu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Vv=-1,Pt={};Pt[rt]=Pt[ct]=Pt[Jt]=Pt[cr]=Pt[tn]=Pt[an]=Pt[Sr]=Pt[Mt]=Pt[Qn]=!0,Pt[Ee]=Pt[we]=Pt[ke]=Pt[Oe]=Pt[Be]=Pt[Te]=Pt[yt]=Pt[$e]=Pt[bt]=Pt[Qt]=Pt[st]=Pt[kn]=Pt[Lt]=Pt[jt]=Pt[Xn]=!1;var Et={};Et[Ee]=Et[we]=Et[ke]=Et[Be]=Et[Oe]=Et[Te]=Et[rt]=Et[ct]=Et[Jt]=Et[cr]=Et[tn]=Et[bt]=Et[Qt]=Et[st]=Et[kn]=Et[Lt]=Et[jt]=Et[ur]=Et[an]=Et[Sr]=Et[Mt]=Et[Qn]=!0,Et[yt]=Et[$e]=Et[Xn]=!1;var cl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Du={"&":"&","<":"<",">":">",'"':""","'":"'"},Uv={"&":"&","<":"<",">":">",""":'"',"'":"'"},Kv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yf=parseFloat,Nu=parseInt,Fu=typeof eg=="object"&&eg&&eg.Object===Object&&eg,Vh=typeof self=="object"&&self&&self.Object===Object&&self,Vt=Fu||Vh||Function("return this")(),ga=t&&!t.nodeType&&t,Ai=ga&&!0&&e&&!e.nodeType&&e,Xf=Ai&&Ai.exports===ga,fl=Xf&&Fu.process,Jn=(function(){try{var ne=Ai&&Ai.require&&Ai.require("util").types;return ne||fl&&fl.binding&&fl.binding("util")}catch{}})(),Qf=Jn&&Jn.isArrayBuffer,fr=Jn&&Jn.isDate,ws=Jn&&Jn.isMap,Ou=Jn&&Jn.isRegExp,dl=Jn&&Jn.isSet,Uh=Jn&&Jn.isTypedArray;function Zn(ne,he,ce){switch(ce.length){case 0:return ne.call(he);case 1:return ne.call(he,ce[0]);case 2:return ne.call(he,ce[0],ce[1]);case 3:return ne.call(he,ce[0],ce[1],ce[2])}return ne.apply(he,ce)}function Jf(ne,he,ce,Ie){for(var nt=-1,xt=ne==null?0:ne.length;++nt-1}function ed(ne,he,ce){for(var Ie=-1,nt=ne==null?0:ne.length;++Ie-1;);return ce}function ld(ne,he){for(var ce=ne.length;ce--&&pl(he,ne[ce],0)>-1;);return ce}function Qh(ne,he){for(var ce=ne.length,Ie=0;ce--;)ne[ce]===he&&++Ie;return Ie}var Jh=Vu(cl),Zh=Vu(Du);function em(ne){return"\\"+Kv[ne]}function hl(ne,he){return ne==null?n:ne[he]}function ml(ne){return jh.test(ne)}function Xv(ne){return Mu.test(ne)}function Qv(ne){for(var he,ce=[];!(he=ne.next()).done;)ce.push(he.value);return ce}function Uu(ne){var he=-1,ce=Array(ne.size);return ne.forEach(function(Ie,nt){ce[++he]=[nt,Ie]}),ce}function ad(ne,he){return function(ce){return ne(he(ce))}}function jr(ne,he){for(var ce=-1,Ie=ne.length,nt=0,xt=[];++ce-1}function fm(u,f){var y=this.__data__,E=Kn(y,u);return E<0?(++this.size,y.push([u,f])):y[E][1]=f,this}er.prototype.clear=Pl,er.prototype.delete=hr,er.prototype.get=rc,er.prototype.has=cm,er.prototype.set=fm;function Vr(u){var f=-1,y=u==null?0:u.length;for(this.clear();++f=f?u:f)),u}function mr(u,f,y,E,$,F){var H,Q=f&g,ie=f&b,ge=f&x;if(y&&(H=$?y(u,E,$,F):y(u)),H!==n)return H;if(!sn(u))return u;var ve=ot(u);if(ve){if(H=Wa(u),!Q)return tr(u,H)}else{var xe=Dn(u),_e=xe==$e||xe==Rt;if(Ul(u))return Id(u,Q);if(xe==st||xe==Ee||_e&&!$){if(H=ie||_e?{}:Nn(u),!Q)return ie?oy(u,di(H,u)):xc(u,Ft(H,u))}else{if(!Et[xe])return $?u:{};H=sy(u,xe,Q)}}F||(F=new Un);var Ve=F.get(u);if(Ve)return Ve;F.set(u,H),Fw(u)?u.forEach(function(Je){H.add(mr(Je,f,y,Je,u,F))}):Dw(u)&&u.forEach(function(Je,pt){H.set(pt,mr(Je,f,y,pt,u,F))});var Qe=ge?ie?Va:Ba:ie?Zr:Gn,ft=ve?n:Qe(u);return zn(ft||u,function(Je,pt){ft&&(pt=Je,Je=u[pt]),$s(H,pt,mr(Je,f,y,pt,u,F))}),H}function mm(u){var f=Gn(u);return function(y){return $a(y,u,f)}}function $a(u,f,y){var E=y.length;if(u==null)return!E;for(u=Tt(u);E--;){var $=y[E],F=f[$],H=u[$];if(H===n&&!($ in u)||!F(H))return!1}return!0}function gd(u,f,y){if(typeof u!="function")throw new Br(l);return jl(function(){u.apply(n,y)},f)}function Oi(u,f,y,E){var $=-1,F=ju,H=!0,Q=u.length,ie=[],ge=f.length;if(!Q)return ie;y&&(f=$t(f,kr(y))),E?(F=ed,H=!1):f.length>=i&&(F=oo,H=!1,f=new Ps(f));e:for(;++$$?0:$+y),E=E===n||E>$?$:at(E),E<0&&(E+=$),E=y>E?0:zw(E);y0&&y(Q)?f>1?Zt(Q,f-1,y,E,$):Fo($,Q):E||($[$.length]=Q)}return $}var ac=Sc(),Aa=Sc(!0);function Tr(u,f){return u&&ac(u,f,Gn)}function Wo(u,f){return u&&Aa(u,f,Gn)}function _l(u,f){return No(f,function(y){return Us(u[y])})}function fo(u,f){f=Vi(f,u);for(var y=0,E=f.length;u!=null&&yf}function Wr(u,f){return u!=null&&wt.call(u,f)}function As(u,f){return u!=null&&f in Tt(u)}function yd(u,f,y){return u>=jn(f,y)&&u=120&&ve.length>=120)?new Ps(H&&ve):n}ve=u[0];var xe=-1,_e=Q[0];e:for(;++xe<$&&ge.length-1;)Q!==u&&Xu.call(Q,ie,1),Xu.call(u,ie,1);return u}function gn(u,f){for(var y=u?f.length:0,E=y-1;y--;){var $=f[y];if(y==E||$!==F){var F=$;Kt($)?Xu.call(u,$,1):vc(u,$)}}return u}function Al(u,f){return u+zo(Ca()*(f-u+1))}function Da(u,f,y,E){for(var $=-1,F=cn(Cs((f-u)/(y||1)),0),H=ce(F);F--;)H[E?F:++$]=u,u+=y;return H}function Ls(u,f){var y="";if(!u||f<1||f>W)return y;do f%2&&(y+=u),f=zo(f/2),f&&(u+=u);while(f);return y}function lt(u,f){return _r(Ac(u,f,ei),u+"")}function Wn(u){return Ni(Xc(u))}function Cd(u,f){var y=Xc(u);return Rc(y,co(f,0,y.length))}function Ms(u,f,y,E){if(!sn(u))return u;f=Vi(f,u);for(var $=-1,F=f.length,H=F-1,Q=u;Q!=null&&++$$?0:$+f),y=y>$?$:y,y<0&&(y+=$),$=f>y?0:y-f>>>0,f>>>=0;for(var F=ce($);++E<$;)F[E]=u[E+f];return F}function Ed(u,f){var y;return zi(u,function(E,$,F){return y=f(E,$,F),!y}),!!y}function Rl(u,f,y){var E=0,$=u==null?E:u.length;if(typeof f=="number"&&f===f&&$<=O){for(;E<$;){var F=E+$>>>1,H=u[F];H!==null&&!xi(H)&&(y?H<=f:H=i){var ge=f?null:_m(u);if(ge)return Oo(ge);H=!1,$=oo,ie=new Ps}else ie=f?[]:Q;e:for(;++E=E?u:Hn(u,f,y)}var $d=lm||function(u){return Vt.clearTimeout(u)};function Id(u,f){if(f)return u.slice();var y=u.length,E=cd?cd(y):new u.constructor(y);return u.copy(E),E}function Oa(u){var f=new u.constructor(u.byteLength);return new Sa(f).set(new Sa(u)),f}function wm(u,f){var y=f?Oa(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.byteLength)}function Sm(u){var f=new u.constructor(u.source,io.exec(u));return f.lastIndex=u.lastIndex,f}function km(u){return Er?Tt(Er.call(u)):{}}function Cm(u,f){var y=f?Oa(u.buffer):u.buffer;return new u.constructor(y,u.byteOffset,u.length)}function Ad(u,f){if(u!==f){var y=u!==n,E=u===null,$=u===u,F=xi(u),H=f!==n,Q=f===null,ie=f===f,ge=xi(f);if(!Q&&!ge&&!F&&u>f||F&&H&&ie&&!Q&&!ge||E&&H&&ie||!y&&ie||!$)return 1;if(!E&&!F&&!ge&&u=Q)return ie;var ge=y[E];return ie*(ge=="desc"?-1:1)}}return u.index-f.index}function Em(u,f,y,E){for(var $=-1,F=u.length,H=y.length,Q=-1,ie=f.length,ge=cn(F-H,0),ve=ce(ie+ge),xe=!E;++Q1?y[$-1]:n,H=$>2?y[2]:n;for(F=u.length>3&&typeof F=="function"?($--,F):n,H&&rr(y[0],y[1],H)&&(F=$<3?n:F,$=1),f=Tt(f);++E<$;){var Q=y[E];Q&&u(f,Q,E,F)}return f})}function Yr(u,f){return function(y,E){if(y==null)return y;if(!Jr(y))return u(y,E);for(var $=y.length,F=f?$:-1,H=Tt(y);(f?F--:++F<$)&&E(H[F],F,H)!==!1;);return y}}function Sc(u){return function(f,y,E){for(var $=-1,F=Tt(f),H=E(f),Q=H.length;Q--;){var ie=H[u?Q:++$];if(y(F[ie],ie,F)===!1)break}return f}}function kc(u,f,y){var E=f&_,$=Nl(u);function F(){var H=this&&this!==Vt&&this instanceof F?$:u;return H.apply(E?y:this,arguments)}return F}function Ld(u){return function(f){f=_t(f);var y=ml(f)?Cr(f):n,E=y?y[0]:f.charAt(0),$=y?vo(y,1).join(""):f.slice(1);return E[u]()+$}}function Ds(u){return function(f){return td(qw(Gw(f).replace(jv,"")),u,"")}}function Nl(u){return function(){var f=arguments;switch(f.length){case 0:return new u;case 1:return new u(f[0]);case 2:return new u(f[0],f[1]);case 3:return new u(f[0],f[1],f[2]);case 4:return new u(f[0],f[1],f[2],f[3]);case 5:return new u(f[0],f[1],f[2],f[3],f[4]);case 6:return new u(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new u(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var y=Cl(u.prototype),E=u.apply(y,f);return sn(E)?E:y}}function Md(u,f,y){var E=Nl(u);function $(){for(var F=arguments.length,H=ce(F),Q=F,ie=yo($);Q--;)H[Q]=arguments[Q];var ge=F<3&&H[0]!==ie&&H[F-1]!==ie?[]:jr(H,ie);if(F-=ge.length,F-1?$[F?f[H]:H]:n}}function Cc(u){return Ki(function(f){var y=f.length,E=y,$=Bn.prototype.thru;for(u&&f.reverse();E--;){var F=f[E];if(typeof F!="function")throw new Br(l);if($&&!H&&Ol(F)=="wrapper")var H=new Bn([],!0)}for(E=H?E:y;++E1&&vt.reverse(),ve&&ieQ))return!1;var ge=F.get(u),ve=F.get(f);if(ge&&ve)return ge==f&&ve==u;var xe=-1,_e=!0,Ve=y&P?new Ps:n;for(F.set(u,f),F.set(f,u);++xe1?"& ":"")+f[E],f=f.join(y>2?", ":" "),u.replace(ol,`{
-/* [wrapped with `+f+`] */
-`)}function $c(u){return ot(u)||tu(u)||!!(sm&&u&&u[sm])}function Kt(u,f){var y=typeof u;return f=f??W,!!f&&(y=="number"||y!="symbol"&&$h.test(u))&&u>-1&&u%1==0&&u0){if(++f>=Y)return arguments[0]}else f=0;return u.apply(n,arguments)}}function Rc(u,f){var y=-1,E=u.length,$=E-1;for(f=f===n?E:f;++y1?u[f-1]:n;return y=typeof y=="function"?(u.pop(),y):n,Yt(u,y)});function Bc(u){var f=D(u);return f.__chain__=!0,f}function vy(u,f){return f(u),u}function bi(u,f){return f(u)}var Vc=Ki(function(u){var f=u.length,y=f?u[0]:0,E=this.__wrapped__,$=function(F){return lc(F,u)};return f>1||this.__actions__.length||!(E instanceof it)||!Kt(y)?this.thru($):(E=E.slice(y,+y+(f?1:0)),E.__actions__.push({func:bi,args:[$],thisArg:n}),new Bn(E,this.__chain__).thru(function(F){return f&&!F.length&&F.push(n),F}))});function Bs(){return Bc(this)}function Uc(){return new Bn(this.value(),this.__chain__)}function rp(){this.__values__===n&&(this.__values__=Ow(this.value()));var u=this.__index__>=this.__values__.length,f=u?n:this.__values__[this.__index__++];return{done:u,value:f}}function ip(){return this}function yy(u){for(var f,y=this;y instanceof Mi;){var E=Fm(y);E.__index__=0,E.__values__=n,f?$.__wrapped__=E:f=E;var $=E;y=y.__wrapped__}return $.__wrapped__=u,f}function op(){var u=this.__wrapped__;if(u instanceof it){var f=u;return this.__actions__.length&&(f=new it(this)),f=f.reverse(),f.__actions__.push({func:bi,args:[Oc],thisArg:n}),new Bn(f,this.__chain__)}return this.thru(Oc)}function by(){return Ll(this.__wrapped__,this.__actions__)}var Hm=wc(function(u,f,y){wt.call(u,y)?++u[y]:Fi(u,y,1)});function Gm(u,f,y){var E=ot(u)?Zf:Ia;return y&&rr(u,f,y)&&(f=n),E(u,Ge(f,3))}function Kc(u,f){var y=ot(u)?No:vd;return y(u,Ge(f,3))}var Wc=Ns(Qo),qm=Ns(Ya);function sp(u,f){return Zt(Vs(u,f),1)}function xy(u,f){return Zt(Vs(u,f),q)}function Ym(u,f,y){return y=y===n?1:at(y),Zt(Vs(u,f),y)}function Hc(u,f){var y=ot(u)?zn:zi;return y(u,Ge(f,3))}function Za(u,f){var y=ot(u)?zu:gm;return y(u,Ge(f,3))}var lp=wc(function(u,f,y){wt.call(u,y)?u[y].push(f):Fi(u,y,[f])});function Gc(u,f,y,E){u=Jr(u)?u:Xc(u),y=y&&!E?at(y):0;var $=u.length;return y<0&&(y=cn($+y,0)),Jm(u)?y<=$&&u.indexOf(f,y)>-1:!!$&&pl(u,f,y)>-1}var Xm=lt(function(u,f,y){var E=-1,$=typeof f=="function",F=Jr(u)?ce(u.length):[];return zi(u,function(H){F[++E]=$?Zn(f,H,y):Hr(H,f,y)}),F}),wy=wc(function(u,f,y){Fi(u,y,f)});function Vs(u,f){var y=ot(u)?$t:wd;return y(u,Ge(f,3))}function Sy(u,f,y,E){return u==null?[]:(ot(f)||(f=f==null?[]:[f]),y=E?n:y,ot(y)||(y=y==null?[]:[y]),Ma(u,f,y))}var eu=wc(function(u,f,y){u[y?0:1].push(f)},function(){return[[],[]]});function ky(u,f,y){var E=ot(u)?td:qh,$=arguments.length<3;return E(u,Ge(f,4),y,$,zi)}function qc(u,f,y){var E=ot(u)?Wv:qh,$=arguments.length<3;return E(u,Ge(f,4),y,$,gm)}function o(u,f){var y=ot(u)?No:vd;return y(u,Ce(Ge(f,3)))}function a(u){var f=ot(u)?Ni:Wn;return f(u)}function p(u,f,y){(y?rr(u,f,y):f===n)?f=1:f=at(f);var E=ot(u)?_s:Cd;return E(u,f)}function v(u){var f=ot(u)?hm:qr;return f(u)}function w(u){if(u==null)return 0;if(Jr(u))return Jm(u)?Ss(u):u.length;var f=Dn(u);return f==bt||f==Lt?u.size:mo(u).length}function C(u,f,y){var E=ot(u)?nd:Ed;return y&&rr(u,f,y)&&(f=n),E(u,Ge(f,3))}var I=lt(function(u,f){if(u==null)return[];var y=f.length;return y>1&&rr(u,f[0],f[1])?f=[]:y>2&&rr(f[0],f[1],f[2])&&(f=[f[0]]),Ma(u,Zt(f,1),[])}),U=Dt||function(){return Vt.Date.now()};function X(u,f){if(typeof f!="function")throw new Br(l);return u=at(u),function(){if(--u<1)return f.apply(this,arguments)}}function de(u,f,y){return f=y?n:f,f=u&&f==null?u.length:f,Ui(u,J,n,n,n,n,f)}function be(u,f){var y;if(typeof f!="function")throw new Br(l);return u=at(u),function(){return--u>0&&(y=f.apply(this,arguments)),u<=1&&(f=n),y}}var Se=lt(function(u,f,y){var E=_;if(y.length){var $=jr(y,yo(Se));E|=K}return Ui(u,E,f,y,$)}),ye=lt(function(u,f,y){var E=_|T;if(y.length){var $=jr(y,yo(ye));E|=K}return Ui(f,E,u,y,$)});function Ae(u,f,y){f=y?n:f;var E=Ui(u,L,n,n,n,n,n,f);return E.placeholder=Ae.placeholder,E}function Le(u,f,y){f=y?n:f;var E=Ui(u,z,n,n,n,n,n,f);return E.placeholder=Le.placeholder,E}function De(u,f,y){var E,$,F,H,Q,ie,ge=0,ve=!1,xe=!1,_e=!0;if(typeof u!="function")throw new Br(l);f=Hi(f)||0,sn(y)&&(ve=!!y.leading,xe="maxWait"in y,F=xe?cn(Hi(y.maxWait)||0,f):F,_e="trailing"in y?!!y.trailing:_e);function Ve(bn){var So=E,Ws=$;return E=$=n,ge=bn,H=u.apply(Ws,So),H}function Qe(bn){return ge=bn,Q=jl(pt,f),ve?Ve(bn):H}function ft(bn){var So=bn-ie,Ws=bn-ge,Qw=f-So;return xe?jn(Qw,F-Ws):Qw}function Je(bn){var So=bn-ie,Ws=bn-ge;return ie===n||So>=f||So<0||xe&&Ws>=F}function pt(){var bn=U();if(Je(bn))return vt(bn);Q=jl(pt,ft(bn))}function vt(bn){return Q=n,_e&&E?Ve(bn):(E=$=n,H)}function wi(){Q!==n&&$d(Q),ge=0,E=ie=$=Q=n}function Ir(){return Q===n?H:vt(U())}function Si(){var bn=U(),So=Je(bn);if(E=arguments,$=this,ie=bn,So){if(Q===n)return Qe(ie);if(xe)return $d(Q),Q=jl(pt,f),Ve(ie)}return Q===n&&(Q=jl(pt,f)),H}return Si.cancel=wi,Si.flush=Ir,Si}var on=lt(function(u,f){return gd(u,1,f)}),le=lt(function(u,f,y){return gd(u,Hi(f)||0,y)});function ee(u){return Ui(u,ae)}function ue(u,f){if(typeof u!="function"||f!=null&&typeof f!="function")throw new Br(l);var y=function(){var E=arguments,$=f?f.apply(this,E):E[0],F=y.cache;if(F.has($))return F.get($);var H=u.apply(this,E);return y.cache=F.set($,H)||F,H};return y.cache=new(ue.Cache||Vr),y}ue.Cache=Vr;function Ce(u){if(typeof u!="function")throw new Br(l);return function(){var f=arguments;switch(f.length){case 0:return!u.call(this);case 1:return!u.call(this,f[0]);case 2:return!u.call(this,f[0],f[1]);case 3:return!u.call(this,f[0],f[1],f[2])}return!u.apply(this,f)}}function ze(u){return be(2,u)}var He=xm(function(u,f){f=f.length==1&&ot(f[0])?$t(f[0],kr(Ge())):$t(Zt(f,1),kr(Ge()));var y=f.length;return lt(function(E){for(var $=-1,F=jn(E.length,y);++$=f}),tu=fc((function(){return arguments})())?fc:function(u){return dn(u)&&wt.call(u,"callee")&&!Yu.call(u,"callee")},ot=ce.isArray,RI=Qf?kr(Qf):ym;function Jr(u){return u!=null&&Qm(u.length)&&!Us(u)}function yn(u){return dn(u)&&Jr(u)}function LI(u){return u===!0||u===!1||dn(u)&&Ln(u)==Oe}var Ul=dd||Dy,MI=fr?kr(fr):ho;function DI(u){return dn(u)&&u.nodeType===1&&!ap(u)}function NI(u){if(u==null)return!0;if(Jr(u)&&(ot(u)||typeof u=="string"||typeof u.splice=="function"||Ul(u)||Yc(u)||tu(u)))return!u.length;var f=Dn(u);if(f==bt||f==Lt)return!u.size;if(bo(u))return!mo(u).length;for(var y in u)if(wt.call(u,y))return!1;return!0}function FI(u,f){return Gr(u,f)}function OI(u,f,y){y=typeof y=="function"?y:n;var E=y?y(u,f):n;return E===n?Gr(u,f,n,y):!!E}function Ey(u){if(!dn(u))return!1;var f=Ln(u);return f==yt||f==tt||typeof u.message=="string"&&typeof u.name=="string"&&!ap(u)}function zI(u){return typeof u=="number"&&bl(u)}function Us(u){if(!sn(u))return!1;var f=Ln(u);return f==$e||f==Rt||f==je||f==Or}function Mw(u){return typeof u=="number"&&u==at(u)}function Qm(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=W}function sn(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function dn(u){return u!=null&&typeof u=="object"}var Dw=ws?kr(ws):bm;function jI(u,f){return u===f||$l(u,f,Ka(f))}function BI(u,f,y){return y=typeof y=="function"?y:n,$l(u,f,Ka(f),y)}function VI(u){return Nw(u)&&u!=+u}function UI(u){if(ay(u))throw new nt(s);return bd(u)}function KI(u){return u===null}function WI(u){return u==null}function Nw(u){return typeof u=="number"||dn(u)&&Ln(u)==Qt}function ap(u){if(!dn(u)||Ln(u)!=st)return!1;var f=fi(u);if(f===null)return!0;var y=wt.call(f,"constructor")&&f.constructor;return typeof y=="function"&&y instanceof y&&ba.call(y)==Gu}var Py=Ou?kr(Ou):Ra;function HI(u){return Mw(u)&&u>=-W&&u<=W}var Fw=dl?kr(dl):ji;function Jm(u){return typeof u=="string"||!ot(u)&&dn(u)&&Ln(u)==jt}function xi(u){return typeof u=="symbol"||dn(u)&&Ln(u)==ur}var Yc=Uh?kr(Uh):La;function GI(u){return u===n}function qI(u){return dn(u)&&Dn(u)==Xn}function YI(u){return dn(u)&&Ln(u)==pe}var XI=Pc(Go),QI=Pc(function(u,f){return u<=f});function Ow(u){if(!u)return[];if(Jr(u))return Jm(u)?Cr(u):tr(u);if(ao&&u[ao])return Qv(u[ao]());var f=Dn(u),y=f==bt?Uu:f==Lt?Oo:Xc;return y(u)}function Ks(u){if(!u)return u===0?u:0;if(u=Hi(u),u===q||u===-q){var f=u<0?-1:1;return f*se}return u===u?u:0}function at(u){var f=Ks(u),y=f%1;return f===f?y?f-y:f:0}function zw(u){return u?co(at(u),0,V):0}function Hi(u){if(typeof u=="number")return u;if(xi(u))return R;if(sn(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=sn(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=Yh(u);var y=Dv.test(u);return y||_h.test(u)?Nu(u.slice(2),y?2:8):Ph.test(u)?R:+u}function jw(u){return pi(u,Zr(u))}function JI(u){return u?co(at(u),-W,W):u===0?u:0}function _t(u){return u==null?"":gr(u)}var ZI=Dl(function(u,f){if(bo(f)||Jr(f)){pi(f,Gn(f),u);return}for(var y in f)wt.call(f,y)&&$s(u,y,f[y])}),Bw=Dl(function(u,f){pi(f,Zr(f),u)}),Zm=Dl(function(u,f,y,E){pi(f,Zr(f),u,E)}),eA=Dl(function(u,f,y,E){pi(f,Gn(f),u,E)}),tA=Ki(lc);function nA(u,f){var y=Cl(u);return f==null?y:Ft(y,f)}var rA=lt(function(u,f){u=Tt(u);var y=-1,E=f.length,$=E>2?f[2]:n;for($&&rr(f[0],f[1],$)&&(E=1);++y1),F}),pi(u,Va(u),y),E&&(y=mr(y,g|b|x,zd));for(var $=f.length;$--;)vc(y,f[$]);return y});function wA(u,f){return Uw(u,Ce(Ge(f)))}var SA=Ki(function(u,f){return u==null?{}:kd(u,f)});function Uw(u,f){if(u==null)return{};var y=$t(Va(u),function(E){return[E]});return f=Ge(f),qo(u,y,function(E,$){return f(E,$[0])})}function kA(u,f,y){f=Vi(f,u);var E=-1,$=f.length;for($||($=1,u=n);++E<$;){var F=u==null?n:u[vi(f[E])];F===n&&(E=$,F=y),u=Us(F)?F.call(u):F}return u}function CA(u,f,y){return u==null?u:Ms(u,f,y)}function EA(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:Ms(u,f,y,E)}var Kw=Nd(Gn),Ww=Nd(Zr);function PA(u,f,y){var E=ot(u),$=E||Ul(u)||Yc(u);if(f=Ge(f,4),y==null){var F=u&&u.constructor;$?y=E?new F:[]:sn(u)?y=Us(F)?Cl(fi(u)):{}:y={}}return($?zn:Tr)(u,function(H,Q,ie){return f(y,H,Q,ie)}),y}function TA(u,f){return u==null?!0:vc(u,f)}function _A(u,f,y){return u==null?u:_d(u,f,bc(y))}function $A(u,f,y,E){return E=typeof E=="function"?E:n,u==null?u:_d(u,f,bc(y),E)}function Xc(u){return u==null?[]:va(u,Gn(u))}function IA(u){return u==null?[]:va(u,Zr(u))}function AA(u,f,y){return y===n&&(y=f,f=n),y!==n&&(y=Hi(y),y=y===y?y:0),f!==n&&(f=Hi(f),f=f===f?f:0),co(Hi(u),f,y)}function RA(u,f,y){return f=Ks(f),y===n?(y=f,f=0):y=Ks(y),u=Hi(u),yd(u,f,y)}function LA(u,f,y){if(y&&typeof y!="boolean"&&rr(u,f,y)&&(f=y=n),y===n&&(typeof f=="boolean"?(y=f,f=n):typeof u=="boolean"&&(y=u,u=n)),u===n&&f===n?(u=0,f=1):(u=Ks(u),f===n?(f=u,u=0):f=Ks(f)),u>f){var E=u;u=f,f=E}if(y||u%1||f%1){var $=Ca();return jn(u+$*(f-u+Yf("1e-"+(($+"").length-1))),f)}return Al(u,f)}var MA=Ds(function(u,f,y){return f=f.toLowerCase(),u+(y?Hw(f):f)});function Hw(u){return $y(_t(u).toLowerCase())}function Gw(u){return u=_t(u),u&&u.replace(Ih,Jh).replace(zh,"")}function DA(u,f,y){u=_t(u),f=gr(f);var E=u.length;y=y===n?E:co(at(y),0,E);var $=y;return y-=f.length,y>=0&&u.slice(y,$)==f}function NA(u){return u=_t(u),u&&Tu.test(u)?u.replace(ui,Zh):u}function FA(u){return u=_t(u),u&&Ao.test(u)?u.replace(gs,"\\$&"):u}var OA=Ds(function(u,f,y){return u+(y?"-":"")+f.toLowerCase()}),zA=Ds(function(u,f,y){return u+(y?" ":"")+f.toLowerCase()}),jA=Ld("toLowerCase");function BA(u,f,y){u=_t(u),f=at(f);var E=f?Ss(u):0;if(!f||E>=f)return u;var $=(f-E)/2;return ja(zo($),y)+u+ja(Cs($),y)}function VA(u,f,y){u=_t(u),f=at(f);var E=f?Ss(u):0;return f&&E>>0,y?(u=_t(u),u&&(typeof f=="string"||f!=null&&!Py(f))&&(f=gr(f),!f&&ml(u))?vo(Cr(u),0,y):u.split(f,y)):[]}var YA=Ds(function(u,f,y){return u+(y?" ":"")+$y(f)});function XA(u,f,y){return u=_t(u),y=y==null?0:co(at(y),0,u.length),f=gr(f),u.slice(y,y+f.length)==f}function QA(u,f,y){var E=D.templateSettings;y&&rr(u,f,y)&&(f=n),u=_t(u),f=Zm({},f,E,Fd);var $=Zm({},f.imports,E.imports,Fd),F=Gn($),H=va($,F),Q,ie,ge=0,ve=f.interpolate||_u,xe="__p += '",_e=ya((f.escape||_u).source+"|"+ve.source+"|"+(ve===sa?Ye:_u).source+"|"+(f.evaluate||_u).source+"|$","g"),Ve="//# sourceURL="+(wt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Vv+"]")+`
-`;u.replace(_e,function(Je,pt,vt,wi,Ir,Si){return vt||(vt=wi),xe+=u.slice(ge,Si).replace(Nv,em),pt&&(Q=!0,xe+=`' +
-__e(`+pt+`) +
-'`),Ir&&(ie=!0,xe+=`';
-`+Ir+`;
-__p += '`),vt&&(xe+=`' +
-((__t = (`+vt+`)) == null ? '' : __t) +
-'`),ge=Si+Je.length,Je}),xe+=`';
-`;var Qe=wt.call(f,"variable")&&f.variable;if(!Qe)xe=`with (obj) {
-`+xe+`
-}
-`;else if(Bf.test(Qe))throw new nt(c);xe=(ie?xe.replace(nn,""):xe).replace(il,"$1").replace(ps,"$1;"),xe="function("+(Qe||"obj")+`) {
-`+(Qe?"":`obj || (obj = {});
-`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ie?`, __j = Array.prototype.join;
-function print() { __p += __j.call(arguments, '') }
-`:`;
-`)+xe+`return __p
-}`;var ft=Yw(function(){return xt(F,Ve+"return "+xe).apply(n,H)});if(ft.source=xe,Ey(ft))throw ft;return ft}function JA(u){return _t(u).toLowerCase()}function ZA(u){return _t(u).toUpperCase()}function eR(u,f,y){if(u=_t(u),u&&(y||f===n))return Yh(u);if(!u||!(f=gr(f)))return u;var E=Cr(u),$=Cr(f),F=Xh(E,$),H=ld(E,$)+1;return vo(E,F,H).join("")}function tR(u,f,y){if(u=_t(u),u&&(y||f===n))return u.slice(0,Wu(u)+1);if(!u||!(f=gr(f)))return u;var E=Cr(u),$=ld(E,Cr(f))+1;return vo(E,0,$).join("")}function nR(u,f,y){if(u=_t(u),u&&(y||f===n))return u.replace(aa,"");if(!u||!(f=gr(f)))return u;var E=Cr(u),$=Xh(E,Cr(f));return vo(E,$).join("")}function rR(u,f){var y=j,E=B;if(sn(f)){var $="separator"in f?f.separator:$;y="length"in f?at(f.length):y,E="omission"in f?gr(f.omission):E}u=_t(u);var F=u.length;if(ml(u)){var H=Cr(u);F=H.length}if(y>=F)return u;var Q=y-Ss(E);if(Q<1)return E;var ie=H?vo(H,0,Q).join(""):u.slice(0,Q);if($===n)return ie+E;if(H&&(Q+=ie.length-Q),Py($)){if(u.slice(Q).search($)){var ge,ve=ie;for($.global||($=ya($.source,_t(io.exec($))+"g")),$.lastIndex=0;ge=$.exec(ve);)var xe=ge.index;ie=ie.slice(0,xe===n?Q:xe)}}else if(u.indexOf(gr($),Q)!=Q){var _e=ie.lastIndexOf($);_e>-1&&(ie=ie.slice(0,_e))}return ie+E}function iR(u){return u=_t(u),u&&oa.test(u)?u.replace(ai,tm):u}var oR=Ds(function(u,f,y){return u+(y?" ":"")+f.toUpperCase()}),$y=Ld("toUpperCase");function qw(u,f,y){return u=_t(u),f=y?n:f,f===n?Xv(u)?ey(u):Gv(u):u.match(f)||[]}var Yw=lt(function(u,f){try{return Zn(u,n,f)}catch(y){return Ey(y)?y:new nt(y)}}),sR=Ki(function(u,f){return zn(f,function(y){y=vi(y),Fi(u,y,Se(u[y],u))}),u});function lR(u){var f=u==null?0:u.length,y=Ge();return u=f?$t(u,function(E){if(typeof E[1]!="function")throw new Br(l);return[y(E[0]),E[1]]}):[],lt(function(E){for(var $=-1;++$W)return[];var y=V,E=jn(u,V);f=Ge(f),u-=V;for(var $=sd(E,f);++y0||f<0)?new it(y):(u<0?y=y.takeRight(-u):u&&(y=y.drop(u)),f!==n&&(f=at(f),y=f<0?y.dropRight(-f):y.take(f-u)),y)},it.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},it.prototype.toArray=function(){return this.take(V)},Tr(it.prototype,function(u,f){var y=/^(?:filter|find|map|reject)|While$/.test(f),E=/^(?:head|last)$/.test(f),$=D[E?"take"+(f=="last"?"Right":""):f],F=E||/^find/.test(f);$&&(D.prototype[f]=function(){var H=this.__wrapped__,Q=E?[1]:arguments,ie=H instanceof it,ge=Q[0],ve=ie||ot(H),xe=function(pt){var vt=$.apply(D,Fo([pt],Q));return E&&_e?vt[0]:vt};ve&&y&&typeof ge=="function"&&ge.length!=1&&(ie=ve=!1);var _e=this.__chain__,Ve=!!this.__actions__.length,Qe=F&&!_e,ft=ie&&!Ve;if(!F&&ve){H=ft?H:new it(this);var Je=u.apply(H,Q);return Je.__actions__.push({func:bi,args:[xe],thisArg:n}),new Bn(Je,_e)}return Qe&&ft?u.apply(this,Q):(Je=this.thru(xe),Qe?E?Je.value()[0]:Je.value():Je)})}),zn(["pop","push","shift","sort","splice","unshift"],function(u){var f=so[u],y=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",E=/^(?:pop|shift)$/.test(u);D.prototype[u]=function(){var $=arguments;if(E&&!this.__chain__){var F=this.value();return f.apply(ot(F)?F:[],$)}return this[y](function(H){return f.apply(ot(H)?H:[],$)})}}),Tr(it.prototype,function(u,f){var y=D[f];if(y){var E=y.name+"";wt.call(Sl,E)||(Sl[E]=[]),Sl[E].push({name:f,func:y})}}),Sl[Fl(n,T).name]=[{name:"wrapper",func:n}],it.prototype.clone=nc,it.prototype.reverse=hd,it.prototype.value=El,D.prototype.at=Vc,D.prototype.chain=Bs,D.prototype.commit=Uc,D.prototype.next=rp,D.prototype.plant=yy,D.prototype.reverse=op,D.prototype.toJSON=D.prototype.valueOf=D.prototype.value=by,D.prototype.first=D.prototype.head,ao&&(D.prototype[ao]=ip),D}),gl=ty();Ai?((Ai.exports=gl)._=gl,ga._=gl):Vt._=gl}).call(N8)})(Ip,Ip.exports)),Ip.exports}var C2=F8();class O8{plugins={};activePlugins=[];slotFillers=new Map;listeners=new Set;slotFillersCache=new Map;hasSlotFillersCache=new Map;register(t){this.plugins[t.name]={isActivated:!1,config:t},this.notify()}activate(t){const n=this.plugins[t];if(!(!n||n.isActivated)){if(n.isActivated=!0,n.config.slots)for(const r of n.config.slots)this.registerSlot(t,r);n.config.onActivate&&n.config.onActivate(),this.produceActivePlugins(),this.notify()}}deactivate(t){const n=this.plugins[t];!n||!n.isActivated||(n.isActivated=!1,this.unregisterPluginSlots(t),n.config.onDeactivate&&n.config.onDeactivate(),this.produceActivePlugins(),this.notify())}isPluginActivated(t){const n=this.plugins[t];return!!n&&n.isActivated}getPlugin(t){const n=this.plugins[t];return!n||!n.isActivated?null:n}getActivePlugins(){return this.activePlugins}getSlotFillers(t){const n=this.slotFillers.get(t)??[],r=this.slotFillersCache.get(t);return r&&r.length===n.length&&r.every((i,s)=>i===n[s])?r:(this.slotFillersCache.set(t,n),n)}hasSlotFillers(t){const n=(this.slotFillers.get(t)?.length??0)>0,r=this.hasSlotFillersCache.get(t);return r===n?r:(this.hasSlotFillersCache.set(t,n),n)}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}registerSlot(t,n){const r=this.slotFillers.get(n.slot)??[],i={slot:n.slot,component:n.component,priority:n.priority,condition:n.condition,pluginName:t};r.push(i),r.sort((s,l)=>(l.priority??0)-(s.priority??0)),this.slotFillers.set(n.slot,r)}unregisterPluginSlots(t){for(const[n,r]of this.slotFillers.entries()){const i=r.filter(s=>s.pluginName!==t);this.slotFillers.set(n,i)}}notify(){this.listeners.forEach(t=>t())}produceActivePlugins(){this.activePlugins=C2.transform(this.plugins,(t,n)=>{n.isActivated&&t.push(n.config)},[])}}const Ot=new O8;function Eu(e,t,n,r){return{slot:e,component:t,priority:n,condition:r}}const Jk=S.lazy(()=>Fr(()=>import("./FeedbackForm-Vbmy7JJP.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),E2="FeedbackFormPlugin",z8={name:E2,components:{FeedbackForm:Jk},slots:[Eu("message.actions",Jk,5)]},Zk=S.lazy(()=>Fr(()=>import("./ChatOptionsForm-BEC_XLbA.js"),__vite__mapDeps([7,1,2,3,4,5,6]))),P2="ChatOptionsPlugin",j8={name:P2,components:{ChatOptionsForm:Zk},slots:[Eu("prompt.beforeSend",Zk,10)]},B8={config:{feedback:{like:{enabled:!1,form:null},dislike:{enabled:!1,form:null}},user_settings:{form:null},conversation_history:!1,authentication:{enabled:!1,auth_types:[],oauth2_providers:[]},show_usage:!1,debug_mode:!1,customization:null,supports_upload:!1}},bh=()=>S.useContext(T2)??B8,T2=S.createContext(void 0),V8="🐰",U8="Ragbits Chat",K8="by deepsense.ai",W8="Loading...",H8="";function _2(){return N.jsx("div",{className:In("bg-background flex h-screen w-screen items-start justify-center"),children:N.jsxs("div",{className:"text-default-900 m-auto flex flex-col items-center gap-4",children:[N.jsx(U6,{size:"lg","aria-label":"Progress indicator"}),N.jsx("p",{children:"Initializing..."})]})})}function G8(){return N.jsx("div",{className:In("bg-background flex h-screen w-screen items-start justify-center"),children:N.jsxs("div",{className:"text-default-900 m-auto flex flex-col items-center gap-4",children:[N.jsx("p",{className:"text-large",children:"Something went wrong during chat initialization."}),N.jsx("p",{className:"text-small text-default-500",children:"Try refreshing the page."})]})})}function q8({children:e}){const{call:t,...n}=Rz("/api/config"),r=S.useMemo(()=>n.data?{config:n.data}:null,[n.data]);return!n.data&&!n.error&&!n.isLoading&&t(),S.useEffect(()=>{document.title=W8},[]),n.isLoading?N.jsx(_2,{}):n.error||!r?N.jsx(G8,{}):N.jsx(T2.Provider,{value:r,children:e})}const eC=S.lazy(()=>Fr(()=>import("./ShareButton-DgsQmHSv.js"),__vite__mapDeps([8,6]))),$2="SharePluginName",Y8={name:$2,components:{ShareButton:eC},slots:[Eu("layout.headerActions",eC,5)]};var tC="popstate";function X8(e={}){function t(r,i){let{pathname:s,search:l,hash:c}=r.location;return Mb("",{pathname:s,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:sh(i)}return J8(t,n,null,e)}function An(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $o(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Q8(){return Math.random().toString(36).substring(2,10)}function nC(e,t){return{usr:e.state,key:e.key,idx:t}}function Mb(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?xh(t):t,state:n,key:t&&t.key||r||Q8()}}function sh({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function xh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function J8(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,c="POP",d=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function g(){c="POP";let _=m(),T=_==null?null:_-h;h=_,d&&d({action:c,location:P.location,delta:T})}function b(_,T){c="PUSH";let A=Mb(P.location,_,T);h=m()+1;let L=nC(A,h),z=P.createHref(A);try{l.pushState(L,"",z)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;i.location.assign(z)}s&&d&&d({action:c,location:P.location,delta:1})}function x(_,T){c="REPLACE";let A=Mb(P.location,_,T);h=m();let L=nC(A,h),z=P.createHref(A);l.replaceState(L,"",z),s&&d&&d({action:c,location:P.location,delta:0})}function k(_){return Z8(_)}let P={get action(){return c},get location(){return e(i,l)},listen(_){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(tC,g),d=_,()=>{i.removeEventListener(tC,g),d=null}},createHref(_){return t(i,_)},createURL:k,encodeLocation(_){let T=k(_);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:x,go(_){return l.go(_)}};return P}function Z8(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),An(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:sh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function I2(e,t,n="/"){return e7(e,t,n,!1)}function e7(e,t,n,r){let i=typeof t=="string"?xh(t):t,s=el(i.pathname||"/",n);if(s==null)return null;let l=A2(e);t7(l);let c=null;for(let d=0;c==null&&d{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(An(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let h=Qs([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(An(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),A2(s.children,t,m,h)),!(s.path==null&&!s.index)&&t.push({path:h,score:a7(h,s.index),routesMeta:m})};return e.forEach((s,l)=>{if(s.path===""||!s.path?.includes("?"))i(s,l);else for(let c of R2(s.path))i(s,l,c)}),t}function R2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=R2(r.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function t7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:u7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var n7=/^:[\w-]+$/,r7=3,i7=2,o7=1,s7=10,l7=-2,rC=e=>e==="*";function a7(e,t){let n=e.split("/"),r=n.length;return n.some(rC)&&(r+=l7),t&&(r+=i7),n.filter(i=>!rC(i)).reduce((i,s)=>i+(n7.test(s)?r7:s===""?o7:s7),r)}function u7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function c7(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let c=0;c{if(m==="*"){let k=c[b]||"";l=s.slice(0,s.length-k.length).replace(/(.)\/+$/,"$1")}const x=c[b];return g&&!x?h[m]=void 0:h[m]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:l,pattern:e}}function f7(e,t=!1,n=!0){$o(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function d7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $o(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function el(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function p7(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?xh(e):e;return{pathname:n?n.startsWith("/")?n:h7(n,t):t,search:v7(r),hash:y7(i)}}function h7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function y0(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function m7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rw(e){let t=m7(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function iw(e,t,n,r=!1){let i;typeof e=="string"?i=xh(e):(i={...e},An(!i.pathname||!i.pathname.includes("?"),y0("?","pathname","search",i)),An(!i.pathname||!i.pathname.includes("#"),y0("#","pathname","hash",i)),An(!i.search||!i.search.includes("#"),y0("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,c;if(l==null)c=n;else{let g=t.length-1;if(!r&&l.startsWith("..")){let b=l.split("/");for(;b[0]==="..";)b.shift(),g-=1;i.pathname=b.join("/")}c=g>=0?t[g]:"/"}let d=p7(i,c),h=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var Qs=e=>e.join("/").replace(/\/\/+/g,"/"),g7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function b7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var L2=["POST","PUT","PATCH","DELETE"];new Set(L2);var x7=["GET",...L2];new Set(x7);var Nf=S.createContext(null);Nf.displayName="DataRouter";var wv=S.createContext(null);wv.displayName="DataRouterState";S.createContext(!1);var M2=S.createContext({isTransitioning:!1});M2.displayName="ViewTransition";var w7=S.createContext(new Map);w7.displayName="Fetchers";var S7=S.createContext(null);S7.displayName="Await";var Io=S.createContext(null);Io.displayName="Navigation";var Sv=S.createContext(null);Sv.displayName="Location";var no=S.createContext({outlet:null,matches:[],isDataRoute:!1});no.displayName="Route";var ow=S.createContext(null);ow.displayName="RouteError";function k7(e,{relative:t}={}){An(Ff(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=S.useContext(Io),{hash:i,pathname:s,search:l}=wh(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:Qs([n,s])),r.createHref({pathname:c,search:l,hash:i})}function Ff(){return S.useContext(Sv)!=null}function na(){return An(Ff(),"useLocation() may be used only in the context of a component."),S.useContext(Sv).location}var D2="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N2(e){S.useContext(Io).static||S.useLayoutEffect(e)}function sw(){let{isDataRoute:e}=S.useContext(no);return e?O7():C7()}function C7(){An(Ff(),"useNavigate() may be used only in the context of a component.");let e=S.useContext(Nf),{basename:t,navigator:n}=S.useContext(Io),{matches:r}=S.useContext(no),{pathname:i}=na(),s=JSON.stringify(rw(r)),l=S.useRef(!1);return N2(()=>{l.current=!0}),S.useCallback((d,h={})=>{if($o(l.current,D2),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=iw(d,JSON.parse(s),i,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Qs([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,s,i,e])}var E7=S.createContext(null);function P7(e){let t=S.useContext(no).outlet;return t&&S.createElement(E7.Provider,{value:e},t)}function F2(){let{matches:e}=S.useContext(no),t=e[e.length-1];return t?t.params:{}}function wh(e,{relative:t}={}){let{matches:n}=S.useContext(no),{pathname:r}=na(),i=JSON.stringify(rw(n));return S.useMemo(()=>iw(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function T7(e,t){return O2(e)}function O2(e,t,n,r){An(Ff(),"useRoutes() may be used only in the context of a component.");let{navigator:i}=S.useContext(Io),{matches:s}=S.useContext(no),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",h=l?l.pathnameBase:"/",m=l&&l.route;{let T=m&&m.path||"";z2(d,!m||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${d}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
-
-Please change the parent to .`)}let g=na(),b;b=g;let x=b.pathname||"/",k=x;if(h!=="/"){let T=h.replace(/^\//,"").split("/");k="/"+x.replace(/^\//,"").split("/").slice(T.length).join("/")}let P=I2(e,{pathname:k});return $o(m||P!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),$o(P==null||P[P.length-1].route.element!==void 0||P[P.length-1].route.Component!==void 0||P[P.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),R7(P&&P.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:Qs([h,i.encodeLocation?i.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?h:Qs([h,i.encodeLocation?i.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),s,n,r)}function _7(){let e=F7(),t=b7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,l)}var $7=S.createElement(_7,null),I7=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(no.Provider,{value:this.props.routeContext},S.createElement(ow.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function A7({routeContext:e,match:t,children:n}){let r=S.useContext(Nf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(no.Provider,{value:e},n)}function R7(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n?.errors;if(s!=null){let d=i.findIndex(h=>h.route.id&&s?.[h.route.id]!==void 0);An(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,c=-1;if(n)for(let d=0;d=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((d,h,m)=>{let g,b=!1,x=null,k=null;n&&(g=s&&h.route.id?s[h.route.id]:void 0,x=h.route.errorElement||$7,l&&(c<0&&m===0?(z2("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,k=null):c===m&&(b=!0,k=h.route.hydrateFallbackElement||null)));let P=t.concat(i.slice(0,m+1)),_=()=>{let T;return g?T=x:b?T=k:h.route.Component?T=S.createElement(h.route.Component,null):h.route.element?T=h.route.element:T=d,S.createElement(A7,{match:h,routeContext:{outlet:d,matches:P,isDataRoute:n!=null},children:T})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?S.createElement(I7,{location:n.location,revalidation:n.revalidation,component:x,error:g,children:_(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):_()},null)}function lw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L7(e){let t=S.useContext(Nf);return An(t,lw(e)),t}function M7(e){let t=S.useContext(wv);return An(t,lw(e)),t}function D7(e){let t=S.useContext(no);return An(t,lw(e)),t}function aw(e){let t=D7(e),n=t.matches[t.matches.length-1];return An(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function N7(){return aw("useRouteId")}function F7(){let e=S.useContext(ow),t=M7("useRouteError"),n=aw("useRouteError");return e!==void 0?e:t.errors?.[n]}function O7(){let{router:e}=L7("useNavigate"),t=aw("useNavigate"),n=S.useRef(!1);return N2(()=>{n.current=!0}),S.useCallback(async(i,s={})=>{$o(n.current,D2),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var iC={};function z2(e,t,n){!t&&!iC[e]&&(iC[e]=!0,$o(!1,n))}S.memo(z7);function z7({routes:e,future:t,state:n}){return O2(e,void 0,n,t)}function HG({to:e,replace:t,state:n,relative:r}){An(Ff()," may be used only in the context of a component.");let{static:i}=S.useContext(Io);$o(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:s}=S.useContext(no),{pathname:l}=na(),c=sw(),d=iw(e,rw(s),l,r==="path"),h=JSON.stringify(d);return S.useEffect(()=>{c(JSON.parse(h),{replace:t,state:n,relative:r})},[c,h,r,t,n]),null}function j7(e){return P7(e.context)}function B7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){An(!Ff(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:l,navigator:i,static:s,future:{}}),[l,i,s]);typeof n=="string"&&(n=xh(n));let{pathname:d="/",search:h="",hash:m="",state:g=null,key:b="default"}=n,x=S.useMemo(()=>{let k=el(d,l);return k==null?null:{location:{pathname:k,search:h,hash:m,state:g,key:b},navigationType:r}},[l,d,h,m,g,b,r]);return $o(x!=null,` is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the won't render anything.`),x==null?null:S.createElement(Io.Provider,{value:c},S.createElement(Sv.Provider,{children:t,value:x}))}var Rg="get",Lg="application/x-www-form-urlencoded";function kv(e){return e!=null&&typeof e.tagName=="string"}function V7(e){return kv(e)&&e.tagName.toLowerCase()==="button"}function U7(e){return kv(e)&&e.tagName.toLowerCase()==="form"}function K7(e){return kv(e)&&e.tagName.toLowerCase()==="input"}function W7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function H7(e,t){return e.button===0&&(!t||t==="_self")&&!W7(e)}var vg=null;function G7(){if(vg===null)try{new FormData(document.createElement("form"),0),vg=!1}catch{vg=!0}return vg}var q7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function b0(e){return e!=null&&!q7.has(e)?($o(!1,`"${e}" is not a valid \`encType\` for \`