/")+"/"),fe(me,G,oe,"",function(je){return je})):me!=null&&(te(me)&&(me=B(me,oe+(me.key==null||A&&A.key===me.key?"":(""+me.key).replace(ye,"/")+"/")+pe)),G.push(me)),1;pe=0;var ge=ie===""?".":ie+":";if(k(A))for(var Oe=0;Oe"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),om.exports=CN(),om.exports}var c0;function MN(){if(c0)return ul;c0=1;var e=TN(),t=bf(),n=x1();function s(r){var a="https://react.dev/errors/"+r;if(1A||(r.current=ae[A],ae[A]=null,A--)}function ie(r,a){A++,ae[A]=r.current,r.current=a}var me=G(null),Ee=G(null),pe=G(null),ge=G(null);function Oe(r,a){switch(ie(pe,a),ie(Ee,r),ie(me,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?Ox(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=Ox(a),r=Nx(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}oe(me),ie(me,r)}function je(){oe(me),oe(Ee),oe(pe)}function Ue(r){r.memoizedState!==null&&ie(ge,r);var a=me.current,o=Nx(a,r.type);a!==o&&(ie(Ee,r),ie(me,o))}function Ye(r){Ee.current===r&&(oe(me),oe(Ee)),ge.current===r&&(oe(ge),sl._currentValue=Z)}var tt=Object.prototype.hasOwnProperty,xt=e.unstable_scheduleCallback,kt=e.unstable_cancelCallback,Qn=e.unstable_shouldYield,vr=e.unstable_requestPaint,qt=e.unstable_now,lo=e.unstable_getCurrentPriorityLevel,co=e.unstable_ImmediatePriority,Ks=e.unstable_UserBlockingPriority,j=e.unstable_NormalPriority,H=e.unstable_LowPriority,$=e.unstable_IdlePriority,de=e.log,ue=e.unstable_setDisableYieldValue,se=null,ve=null;function We(r){if(typeof de=="function"&&ue(r),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(se,r)}catch{}}var Le=Math.clz32?Math.clz32:Bn,Ft=Math.log,Jn=Math.LN2;function Bn(r){return r>>>=0,r===0?32:31-(Ft(r)/Jn|0)|0}var is=256,br=4194304;function Sn(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function os(r,a,o){var c=r.pendingLanes;if(c===0)return 0;var d=0,p=r.suspendedLanes,w=r.pingedLanes;r=r.warmLanes;var E=c&134217727;return E!==0?(c=E&~p,c!==0?d=Sn(c):(w&=E,w!==0?d=Sn(w):o||(o=E&~r,o!==0&&(d=Sn(o))))):(E=c&~p,E!==0?d=Sn(E):w!==0?d=Sn(w):o||(o=c&~r,o!==0&&(d=Sn(o)))),d===0?0:a!==0&&a!==d&&(a&p)===0&&(p=d&-d,o=a&-a,p>=o||p===32&&(o&4194048)!==0)?a:d}function er(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function uo(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var r=is;return is<<=1,(is&4194048)===0&&(is=256),r}function nt(){var r=br;return br<<=1,(br&62914560)===0&&(br=4194304),r}function ke(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Ze(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ln(r,a,o,c,d,p){var w=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var E=r.entanglements,R=r.expirationTimes,Y=r.hiddenUpdates;for(o=w&~o;0)":-1d||R[c]!==Y[d]){var K=` `+R[c].replace(" at new "," at ");return r.displayName&&K.includes("")&&(K=K.replace("",r.displayName)),K}while(1<=c&&0<=d);break}}}finally{Kf=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ha(o):""}function hA(r){switch(r.tag){case 26:case 27:case 5:return Ha(r.type);case 16:return Ha("Lazy");case 13:return Ha("Suspense");case 19:return Ha("SuspenseList");case 0:case 15:return Qf(r.type,!1);case 11:return Qf(r.type.render,!1);case 1:return Qf(r.type,!0);case 31:return Ha("Activity");default:return""}}function Tg(r){try{var a="";do a+=hA(r),r=r.return;while(r);return a}catch(o){return` Error generating stack: `+o.message+` `+o.stack}}function zn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Eg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function mA(r){var a=Eg(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),c=""+r[a];if(!r.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,p=o.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return d.call(this)},set:function(w){c=""+w,p.call(this,w)}}),Object.defineProperty(r,a,{enumerable:o.enumerable}),{getValue:function(){return c},setValue:function(w){c=""+w},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function hc(r){r._valueTracker||(r._valueTracker=mA(r))}function Cg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return r&&(c=Eg(r)?r.checked?"true":"false":r.value),r=c,r!==o?(a.setValue(r),!0):!1}function mc(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var pA=/[\n"\\]/g;function Un(r){return r.replace(pA,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Jf(r,a,o,c,d,p,w,E){r.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.type=w:r.removeAttribute("type"),a!=null?w==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+zn(a)):r.value!==""+zn(a)&&(r.value=""+zn(a)):w!=="submit"&&w!=="reset"||r.removeAttribute("value"),a!=null?ed(r,w,zn(a)):o!=null?ed(r,w,zn(o)):c!=null&&r.removeAttribute("value"),d==null&&p!=null&&(r.defaultChecked=!!p),d!=null&&(r.checked=d&&typeof d!="function"&&typeof d!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?r.name=""+zn(E):r.removeAttribute("name")}function Mg(r,a,o,c,d,p,w,E){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),a!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||a!=null))return;o=o!=null?""+zn(o):"",a=a!=null?""+zn(a):o,E||a===r.value||(r.value=a),r.defaultValue=a}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=E?r.checked:!!c,r.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(r.name=w)}function ed(r,a,o){a==="number"&&mc(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Ya(r,a,o,c){if(r=r.options,a){a={};for(var d=0;d"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ad=!1;if(Lr)try{var vo={};Object.defineProperty(vo,"passive",{get:function(){ad=!0}}),window.addEventListener("test",vo,vo),window.removeEventListener("test",vo,vo)}catch{ad=!1}var cs=null,id=null,yc=null;function Rg(){if(yc)return yc;var r,a=id,o=a.length,c,d="value"in cs?cs.value:cs.textContent,p=d.length;for(r=0;r=wo),zg=" ",Ug=!1;function Fg(r,a){switch(r){case"keyup":return YA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Ga=!1;function IA(r,a){switch(r){case"compositionend":return Hg(a);case"keypress":return a.which!==32?null:(Ug=!0,zg);case"textInput":return r=a.data,r===zg&&Ug?null:r;default:return null}}function qA(r,a){if(Ga)return r==="compositionend"||!fd&&Fg(r,a)?(r=Rg(),yc=id=cs=null,Ga=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:o,offset:a-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Xg(o)}}function Qg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Qg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Jg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=mc(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=mc(r.document)}return a}function md(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var eO=Lr&&"documentMode"in document&&11>=document.documentMode,$a=null,pd=null,Co=null,yd=!1;function ev(r,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;yd||$a==null||$a!==mc(c)||(c=$a,"selectionStart"in c&&md(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Co&&Eo(Co,c)||(Co=c,c=iu(pd,"onSelect"),0>=w,d-=w,zr=1<<32-Le(a)+d|o<p?p:8;var w=L.T,E={};L.T=E,th(r,!1,a,o);try{var R=d(),Y=L.S;if(Y!==null&&Y(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var K=cO(R,c);Uo(r,a,K,An(r))}else Uo(r,a,c,An(r))}catch(ee){Uo(r,a,{then:function(){},status:"rejected",reason:ee},An())}finally{q.p=p,L.T=w}}function mO(){}function Jd(r,a,o,c){if(r.tag!==5)throw Error(s(476));var d=tb(r).queue;eb(r,d,a,Z,o===null?mO:function(){return nb(r),o(c)})}function tb(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:Z},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function nb(r){var a=tb(r).next.queue;Uo(r,a,{},An())}function eh(){return rn(sl)}function rb(){return jt().memoizedState}function sb(){return jt().memoizedState}function pO(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=An();r=ds(o);var c=hs(a,r,o);c!==null&&(On(c,a,o),jo(c,a,o)),a={cache:Nd()},r.payload=a;return}a=a.return}}function yO(r,a,o){var c=An();o={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Uc(r)?ib(a,o):(o=xd(r,a,o,c),o!==null&&(On(o,r,c),ob(o,a,c)))}function ab(r,a,o){var c=An();Uo(r,a,o,c)}function Uo(r,a,o,c){var d={lane:c,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Uc(r))ib(a,d);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var w=a.lastRenderedState,E=p(w,o);if(d.hasEagerState=!0,d.eagerState=E,Tn(E,w))return Tc(r,a,d,0),vt===null&&Sc(),!1}catch{}if(o=xd(r,a,d,c),o!==null)return On(o,r,c),ob(o,a,c),!0}return!1}function th(r,a,o,c){if(c={lane:2,revertLane:Rh(),action:c,hasEagerState:!1,eagerState:null,next:null},Uc(r)){if(a)throw Error(s(479))}else a=xd(r,o,c,2),a!==null&&On(a,r,2)}function Uc(r){var a=r.alternate;return r===Ie||a!==null&&a===Ie}function ib(r,a){si=jc=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function ob(r,a,o){if((o&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,uc(r,o)}}var Fc={readContext:rn,use:Vc,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt},lb={readContext:rn,use:Vc,useCallback:function(r,a){return gn().memoizedState=[r,a===void 0?null:a],r},useContext:rn,useEffect:Iv,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,zc(4194308,4,Zv.bind(null,a,r),o)},useLayoutEffect:function(r,a){return zc(4194308,4,r,a)},useInsertionEffect:function(r,a){zc(4,2,r,a)},useMemo:function(r,a){var o=gn();a=a===void 0?null:a;var c=r();if(ua){We(!0);try{r()}finally{We(!1)}}return o.memoizedState=[c,a],c},useReducer:function(r,a,o){var c=gn();if(o!==void 0){var d=o(a);if(ua){We(!0);try{o(a)}finally{We(!1)}}}else d=a;return c.memoizedState=c.baseState=d,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:d},c.queue=r,r=r.dispatch=yO.bind(null,Ie,r),[c.memoizedState,r]},useRef:function(r){var a=gn();return r={current:r},a.memoizedState=r},useState:function(r){r=Zd(r);var a=r.queue,o=ab.bind(null,Ie,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Kd,useDeferredValue:function(r,a){var o=gn();return Qd(o,r,a)},useTransition:function(){var r=Zd(!1);return r=eb.bind(null,Ie,r.queue,!0,!1),gn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var c=Ie,d=gn();if(it){if(o===void 0)throw Error(s(407));o=o()}else{if(o=a(),vt===null)throw Error(s(349));(et&124)!==0||Ov(c,a,o)}d.memoizedState=o;var p={value:o,getSnapshot:a};return d.queue=p,Iv(Dv.bind(null,c,p,r),[r]),c.flags|=2048,ii(9,Bc(),Nv.bind(null,c,p,o,a),null),o},useId:function(){var r=gn(),a=vt.identifierPrefix;if(it){var o=Ur,c=zr;o=(c&~(1<<32-Le(c)-1)).toString(32)+o,a="«"+a+"R"+o,o=Pc++,0Re?(Xt=Ae,Ae=null):Xt=Ae.sibling;var st=W(z,Ae,U[Re],Q);if(st===null){Ae===null&&(Ae=Xt);break}r&&Ae&&st.alternate===null&&a(z,Ae),P=p(st,P,Re),Ge===null?xe=st:Ge.sibling=st,Ge=st,Ae=Xt}if(Re===U.length)return o(z,Ae),it&&sa(z,Re),xe;if(Ae===null){for(;ReRe?(Xt=Ae,Ae=null):Xt=Ae.sibling;var Ns=W(z,Ae,st.value,Q);if(Ns===null){Ae===null&&(Ae=Xt);break}r&&Ae&&Ns.alternate===null&&a(z,Ae),P=p(Ns,P,Re),Ge===null?xe=Ns:Ge.sibling=Ns,Ge=Ns,Ae=Xt}if(st.done)return o(z,Ae),it&&sa(z,Re),xe;if(Ae===null){for(;!st.done;Re++,st=U.next())st=ee(z,st.value,Q),st!==null&&(P=p(st,P,Re),Ge===null?xe=st:Ge.sibling=st,Ge=st);return it&&sa(z,Re),xe}for(Ae=c(Ae);!st.done;Re++,st=U.next())st=I(Ae,z,Re,st.value,Q),st!==null&&(r&&st.alternate!==null&&Ae.delete(st.key===null?Re:st.key),P=p(st,P,Re),Ge===null?xe=st:Ge.sibling=st,Ge=st);return r&&Ae.forEach(function(vN){return a(z,vN)}),it&&sa(z,Re),xe}function pt(z,P,U,Q){if(typeof U=="object"&&U!==null&&U.type===M&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$typeof){case b:e:{for(var xe=U.key;P!==null;){if(P.key===xe){if(xe=U.type,xe===M){if(P.tag===7){o(z,P.sibling),Q=d(P,U.props.children),Q.return=z,z=Q;break e}}else if(P.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$typeof===B&&ub(xe)===P.type){o(z,P.sibling),Q=d(P,U.props),Ho(Q,U),Q.return=z,z=Q;break e}o(z,P);break}else a(z,P);P=P.sibling}U.type===M?(Q=na(U.props.children,z.mode,Q,U.key),Q.return=z,z=Q):(Q=Cc(U.type,U.key,U.props,null,z.mode,Q),Ho(Q,U),Q.return=z,z=Q)}return w(z);case S:e:{for(xe=U.key;P!==null;){if(P.key===xe)if(P.tag===4&&P.stateNode.containerInfo===U.containerInfo&&P.stateNode.implementation===U.implementation){o(z,P.sibling),Q=d(P,U.children||[]),Q.return=z,z=Q;break e}else{o(z,P);break}else a(z,P);P=P.sibling}Q=Td(U,z.mode,Q),Q.return=z,z=Q}return w(z);case B:return xe=U._init,U=xe(U._payload),pt(z,P,U,Q)}if(fe(U))return Pe(z,P,U,Q);if(ne(U)){if(xe=ne(U),typeof xe!="function")throw Error(s(150));return U=xe.call(U),De(z,P,U,Q)}if(typeof U.then=="function")return pt(z,P,Hc(U),Q);if(U.$typeof===O)return pt(z,P,Oc(z,U),Q);Yc(z,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,P!==null&&P.tag===6?(o(z,P.sibling),Q=d(P,U),Q.return=z,z=Q):(o(z,P),Q=Sd(U,z.mode,Q),Q.return=z,z=Q),w(z)):o(z,P)}return function(z,P,U,Q){try{Fo=0;var xe=pt(z,P,U,Q);return oi=null,xe}catch(Ae){if(Ae===ko||Ae===Dc)throw Ae;var Ge=En(29,Ae,null,z.mode);return Ge.lanes=Q,Ge.return=z,Ge}}}var li=fb(!0),db=fb(!1),In=G(null),wr=null;function ps(r){var a=r.alternate;ie(Yt,Yt.current&1),ie(In,r),wr===null&&(a===null||ri.current!==null||a.memoizedState!==null)&&(wr=r)}function hb(r){if(r.tag===22){if(ie(Yt,Yt.current),ie(In,r),wr===null){var a=r.alternate;a!==null&&a.memoizedState!==null&&(wr=r)}}else ys()}function ys(){ie(Yt,Yt.current),ie(In,In.current)}function Wr(r){oe(In),wr===r&&(wr=null),oe(Yt)}var Yt=G(0);function Wc(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||Ih(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function nh(r,a,o,c){a=r.memoizedState,o=o(c,a),o=o==null?a:y({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var rh={enqueueSetState:function(r,a,o){r=r._reactInternals;var c=An(),d=ds(c);d.payload=a,o!=null&&(d.callback=o),a=hs(r,d,c),a!==null&&(On(a,r,c),jo(a,r,c))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var c=An(),d=ds(c);d.tag=1,d.payload=a,o!=null&&(d.callback=o),a=hs(r,d,c),a!==null&&(On(a,r,c),jo(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=An(),c=ds(o);c.tag=2,a!=null&&(c.callback=a),a=hs(r,c,o),a!==null&&(On(a,r,o),jo(a,r,o))}};function mb(r,a,o,c,d,p,w){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,p,w):a.prototype&&a.prototype.isPureReactComponent?!Eo(o,c)||!Eo(d,p):!0}function pb(r,a,o,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==r&&rh.enqueueReplaceState(a,a.state,null)}function fa(r,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(r=r.defaultProps){o===a&&(o=y({},o));for(var d in r)o[d]===void 0&&(o[d]=r[d])}return o}var Ic=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function yb(r){Ic(r)}function gb(r){console.error(r)}function vb(r){Ic(r)}function qc(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function bb(r,a,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function sh(r,a,o){return o=ds(o),o.tag=3,o.payload={element:null},o.callback=function(){qc(r,a)},o}function xb(r){return r=ds(r),r.tag=3,r}function wb(r,a,o,c){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var p=c.value;r.payload=function(){return d(p)},r.callback=function(){bb(a,o,c)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(r.callback=function(){bb(a,o,c),typeof d!="function"&&(Ss===null?Ss=new Set([this]):Ss.add(this));var E=c.stack;this.componentDidCatch(c.value,{componentStack:E!==null?E:""})})}function vO(r,a,o,c,d){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&Oo(a,o,d,!0),o=In.current,o!==null){switch(o.tag){case 13:return wr===null?Ah():o.alternate===null&&At===0&&(At=3),o.flags&=-257,o.flags|=65536,o.lanes=d,c===Rd?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),Nh(r,c,d)),!1;case 22:return o.flags|=65536,c===Rd?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),Nh(r,c,d)),!1}throw Error(s(435,o.tag))}return Nh(r,c,d),Ah(),!1}if(it)return a=In.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,c!==Md&&(r=Error(s(422),{cause:c}),Ao(Fn(r,o)))):(c!==Md&&(a=Error(s(423),{cause:c}),Ao(Fn(a,o))),r=r.current.alternate,r.flags|=65536,d&=-d,r.lanes|=d,c=Fn(c,o),d=sh(r.stateNode,c,d),Vd(r,d),At!==4&&(At=2)),!1;var p=Error(s(520),{cause:c});if(p=Fn(p,o),Zo===null?Zo=[p]:Zo.push(p),At!==4&&(At=2),a===null)return!0;c=Fn(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=d&-d,o.lanes|=r,r=sh(o.stateNode,c,r),Vd(o,r),!1;case 1:if(a=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ss===null||!Ss.has(p))))return o.flags|=65536,d&=-d,o.lanes|=d,d=xb(d),wb(d,r,o,c),Vd(o,d),!1}o=o.return}while(o!==null);return!1}var Sb=Error(s(461)),$t=!1;function Kt(r,a,o,c){a.child=r===null?db(a,null,o,c):li(a,r.child,o,c)}function Tb(r,a,o,c,d){o=o.render;var p=a.ref;if("ref"in c){var w={};for(var E in c)E!=="ref"&&(w[E]=c[E])}else w=c;return la(a),c=Fd(r,a,o,w,p,d),E=Hd(),r!==null&&!$t?(Yd(r,a,d),Ir(r,a,d)):(it&&E&&Ed(a),a.flags|=1,Kt(r,a,c,d),a.child)}function Eb(r,a,o,c,d){if(r===null){var p=o.type;return typeof p=="function"&&!wd(p)&&p.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=p,Cb(r,a,p,c,d)):(r=Cc(o.type,null,c,a,a.mode,d),r.ref=a.ref,r.return=a,a.child=r)}if(p=r.child,!dh(r,d)){var w=p.memoizedProps;if(o=o.compare,o=o!==null?o:Eo,o(w,c)&&r.ref===a.ref)return Ir(r,a,d)}return a.flags|=1,r=Br(p,c),r.ref=a.ref,r.return=a,a.child=r}function Cb(r,a,o,c,d){if(r!==null){var p=r.memoizedProps;if(Eo(p,c)&&r.ref===a.ref)if($t=!1,a.pendingProps=c=p,dh(r,d))(r.flags&131072)!==0&&($t=!0);else return a.lanes=r.lanes,Ir(r,a,d)}return ah(r,a,o,c,d)}function Mb(r,a,o){var c=a.pendingProps,d=c.children,p=r!==null?r.memoizedState:null;if(c.mode==="hidden"){if((a.flags&128)!==0){if(c=p!==null?p.baseLanes|o:o,r!==null){for(d=a.child=r.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;a.childLanes=p&~c}else a.childLanes=0,a.child=null;return _b(r,a,c,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Nc(a,p!==null?p.cachePool:null),p!==null?Cv(a,p):Bd(),hb(a);else return a.lanes=a.childLanes=536870912,_b(r,a,p!==null?p.baseLanes|o:o,o)}else p!==null?(Nc(a,p.cachePool),Cv(a,p),ys(),a.memoizedState=null):(r!==null&&Nc(a,null),Bd(),ys());return Kt(r,a,d,o),a.child}function _b(r,a,o,c){var d=kd();return d=d===null?null:{parent:Ht._currentValue,pool:d},a.memoizedState={baseLanes:o,cachePool:d},r!==null&&Nc(a,null),Bd(),hb(a),r!==null&&Oo(r,a,c,!0),null}function Gc(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function ah(r,a,o,c,d){return la(a),o=Fd(r,a,o,c,void 0,d),c=Hd(),r!==null&&!$t?(Yd(r,a,d),Ir(r,a,d)):(it&&c&&Ed(a),a.flags|=1,Kt(r,a,o,d),a.child)}function Ab(r,a,o,c,d,p){return la(a),a.updateQueue=null,o=_v(a,c,o,d),Mv(r),c=Hd(),r!==null&&!$t?(Yd(r,a,p),Ir(r,a,p)):(it&&c&&Ed(a),a.flags|=1,Kt(r,a,o,p),a.child)}function Ob(r,a,o,c,d){if(la(a),a.stateNode===null){var p=Qa,w=o.contextType;typeof w=="object"&&w!==null&&(p=rn(w)),p=new o(c,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=rh,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=c,p.state=a.memoizedState,p.refs={},jd(a),w=o.contextType,p.context=typeof w=="object"&&w!==null?rn(w):Qa,p.state=a.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(nh(a,o,w,c),p.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(w=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),w!==p.state&&rh.enqueueReplaceState(p,p.state,null),Vo(a,c,p,d),Po(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){p=a.stateNode;var E=a.memoizedProps,R=fa(o,E);p.props=R;var Y=p.context,K=o.contextType;w=Qa,typeof K=="object"&&K!==null&&(w=rn(K));var ee=o.getDerivedStateFromProps;K=typeof ee=="function"||typeof p.getSnapshotBeforeUpdate=="function",E=a.pendingProps!==E,K||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E||Y!==w)&&pb(a,p,c,w),fs=!1;var W=a.memoizedState;p.state=W,Vo(a,c,p,d),Po(),Y=a.memoizedState,E||W!==Y||fs?(typeof ee=="function"&&(nh(a,o,ee,c),Y=a.memoizedState),(R=fs||mb(a,o,R,c,W,Y,w))?(K||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=Y),p.props=c,p.state=Y,p.context=w,c=R):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{p=a.stateNode,Pd(r,a),w=a.memoizedProps,K=fa(o,w),p.props=K,ee=a.pendingProps,W=p.context,Y=o.contextType,R=Qa,typeof Y=="object"&&Y!==null&&(R=rn(Y)),E=o.getDerivedStateFromProps,(Y=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==ee||W!==R)&&pb(a,p,c,R),fs=!1,W=a.memoizedState,p.state=W,Vo(a,c,p,d),Po();var I=a.memoizedState;w!==ee||W!==I||fs||r!==null&&r.dependencies!==null&&Ac(r.dependencies)?(typeof E=="function"&&(nh(a,o,E,c),I=a.memoizedState),(K=fs||mb(a,o,K,c,W,I,R)||r!==null&&r.dependencies!==null&&Ac(r.dependencies))?(Y||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(c,I,R),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(c,I,R)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===r.memoizedProps&&W===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&W===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=I),p.props=c,p.state=I,p.context=R,c=K):(typeof p.componentDidUpdate!="function"||w===r.memoizedProps&&W===r.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===r.memoizedProps&&W===r.memoizedState||(a.flags|=1024),c=!1)}return p=c,Gc(r,a),c=(a.flags&128)!==0,p||c?(p=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,r!==null&&c?(a.child=li(a,r.child,null,d),a.child=li(a,null,o,d)):Kt(r,a,o,d),a.memoizedState=p.state,r=a.child):r=Ir(r,a,d),r}function Nb(r,a,o,c){return _o(),a.flags|=256,Kt(r,a,o,c),a.child}var ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oh(r){return{baseLanes:r,cachePool:gv()}}function lh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=qn),r}function Db(r,a,o){var c=a.pendingProps,d=!1,p=(a.flags&128)!==0,w;if((w=p)||(w=r!==null&&r.memoizedState===null?!1:(Yt.current&2)!==0),w&&(d=!0,a.flags&=-129),w=(a.flags&32)!==0,a.flags&=-33,r===null){if(it){if(d?ps(a):ys(),it){var E=_t,R;if(R=E){e:{for(R=E,E=xr;R.nodeType!==8;){if(!E){E=null;break e}if(R=rr(R.nextSibling),R===null){E=null;break e}}E=R}E!==null?(a.memoizedState={dehydrated:E,treeContext:ra!==null?{id:zr,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},R=En(18,null,null,0),R.stateNode=E,R.return=a,a.child=R,cn=a,_t=null,R=!0):R=!1}R||ia(a)}if(E=a.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return Ih(E)?a.lanes=32:a.lanes=536870912,null;Wr(a)}return E=c.children,c=c.fallback,d?(ys(),d=a.mode,E=$c({mode:"hidden",children:E},d),c=na(c,d,o,null),E.return=a,c.return=a,E.sibling=c,a.child=E,d=a.child,d.memoizedState=oh(o),d.childLanes=lh(r,w,o),a.memoizedState=ih,c):(ps(a),ch(a,E))}if(R=r.memoizedState,R!==null&&(E=R.dehydrated,E!==null)){if(p)a.flags&256?(ps(a),a.flags&=-257,a=uh(r,a,o)):a.memoizedState!==null?(ys(),a.child=r.child,a.flags|=128,a=null):(ys(),d=c.fallback,E=a.mode,c=$c({mode:"visible",children:c.children},E),d=na(d,E,o,null),d.flags|=2,c.return=a,d.return=a,c.sibling=d,a.child=c,li(a,r.child,null,o),c=a.child,c.memoizedState=oh(o),c.childLanes=lh(r,w,o),a.memoizedState=ih,a=d);else if(ps(a),Ih(E)){if(w=E.nextSibling&&E.nextSibling.dataset,w)var Y=w.dgst;w=Y,c=Error(s(419)),c.stack="",c.digest=w,Ao({value:c,source:null,stack:null}),a=uh(r,a,o)}else if($t||Oo(r,a,o,!1),w=(o&r.childLanes)!==0,$t||w){if(w=vt,w!==null&&(c=o&-o,c=(c&42)!==0?1:fo(c),c=(c&(w.suspendedLanes|o))!==0?0:c,c!==0&&c!==R.retryLane))throw R.retryLane=c,Ka(r,c),On(w,r,c),Sb;E.data==="$?"||Ah(),a=uh(r,a,o)}else E.data==="$?"?(a.flags|=192,a.child=r.child,a=null):(r=R.treeContext,_t=rr(E.nextSibling),cn=a,it=!0,aa=null,xr=!1,r!==null&&(Yn[Wn++]=zr,Yn[Wn++]=Ur,Yn[Wn++]=ra,zr=r.id,Ur=r.overflow,ra=a),a=ch(a,c.children),a.flags|=4096);return a}return d?(ys(),d=c.fallback,E=a.mode,R=r.child,Y=R.sibling,c=Br(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,Y!==null?d=Br(Y,d):(d=na(d,E,o,null),d.flags|=2),d.return=a,c.return=a,c.sibling=d,a.child=c,c=d,d=a.child,E=r.child.memoizedState,E===null?E=oh(o):(R=E.cachePool,R!==null?(Y=Ht._currentValue,R=R.parent!==Y?{parent:Y,pool:Y}:R):R=gv(),E={baseLanes:E.baseLanes|o,cachePool:R}),d.memoizedState=E,d.childLanes=lh(r,w,o),a.memoizedState=ih,c):(ps(a),o=r.child,r=o.sibling,o=Br(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,r!==null&&(w=a.deletions,w===null?(a.deletions=[r],a.flags|=16):w.push(r)),a.child=o,a.memoizedState=null,o)}function ch(r,a){return a=$c({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function $c(r,a){return r=En(22,r,null,a),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function uh(r,a,o){return li(a,r.child,null,o),r=ch(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function kb(r,a,o){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Ad(r.return,a,o)}function fh(r,a,o,c,d){var p=r.memoizedState;p===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:d}:(p.isBackwards=a,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=o,p.tailMode=d)}function Rb(r,a,o){var c=a.pendingProps,d=c.revealOrder,p=c.tail;if(Kt(r,a,c.children,o),c=Yt.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&kb(r,o,a);else if(r.tag===19)kb(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}switch(ie(Yt,c),d){case"forwards":for(o=a.child,d=null;o!==null;)r=o.alternate,r!==null&&Wc(r)===null&&(d=o),o=o.sibling;o=d,o===null?(d=a.child,a.child=null):(d=o.sibling,o.sibling=null),fh(a,!1,d,o,p);break;case"backwards":for(o=null,d=a.child,a.child=null;d!==null;){if(r=d.alternate,r!==null&&Wc(r)===null){a.child=d;break}r=d.sibling,d.sibling=o,o=d,d=r}fh(a,!0,o,null,p);break;case"together":fh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ir(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),ws|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(Oo(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(s(153));if(a.child!==null){for(r=a.child,o=Br(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=Br(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function dh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Ac(r)))}function bO(r,a,o){switch(a.tag){case 3:Oe(a,a.stateNode.containerInfo),us(a,Ht,r.memoizedState.cache),_o();break;case 27:case 5:Ue(a);break;case 4:Oe(a,a.stateNode.containerInfo);break;case 10:us(a,a.type,a.memoizedProps.value);break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ps(a),a.flags|=128,null):(o&a.child.childLanes)!==0?Db(r,a,o):(ps(a),r=Ir(r,a,o),r!==null?r.sibling:null);ps(a);break;case 19:var d=(r.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(Oo(r,a,o,!1),c=(o&a.childLanes)!==0),d){if(c)return Rb(r,a,o);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ie(Yt,Yt.current),c)break;return null;case 22:case 23:return a.lanes=0,Mb(r,a,o);case 24:us(a,Ht,r.memoizedState.cache)}return Ir(r,a,o)}function jb(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)$t=!0;else{if(!dh(r,o)&&(a.flags&128)===0)return $t=!1,bO(r,a,o);$t=(r.flags&131072)!==0}else $t=!1,it&&(a.flags&1048576)!==0&&uv(a,_c,a.index);switch(a.lanes=0,a.tag){case 16:e:{r=a.pendingProps;var c=a.elementType,d=c._init;if(c=d(c._payload),a.type=c,typeof c=="function")wd(c)?(r=fa(c,r),a.tag=1,a=Ob(null,a,c,r,o)):(a.tag=0,a=ah(null,a,c,r,o));else{if(c!=null){if(d=c.$typeof,d===k){a.tag=11,a=Tb(null,a,c,r,o);break e}else if(d===F){a.tag=14,a=Eb(null,a,c,r,o);break e}}throw a=J(c)||c,Error(s(306,a,""))}}return a;case 0:return ah(r,a,a.type,a.pendingProps,o);case 1:return c=a.type,d=fa(c,a.pendingProps),Ob(r,a,c,d,o);case 3:e:{if(Oe(a,a.stateNode.containerInfo),r===null)throw Error(s(387));c=a.pendingProps;var p=a.memoizedState;d=p.element,Pd(r,a),Vo(a,c,null,o);var w=a.memoizedState;if(c=w.cache,us(a,Ht,c),c!==p.cache&&Od(a,[Ht],o,!0),Po(),c=w.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:w.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Nb(r,a,c,o);break e}else if(c!==d){d=Fn(Error(s(424)),a),Ao(d),a=Nb(r,a,c,o);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,_t=rr(r.firstChild),cn=a,it=!0,aa=null,xr=!0,o=db(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(_o(),c===d){a=Ir(r,a,o);break e}Kt(r,a,c,o)}a=a.child}return a;case 26:return Gc(r,a),r===null?(o=Bx(a.type,null,a.pendingProps,null))?a.memoizedState=o:it||(o=a.type,r=a.pendingProps,c=lu(pe.current).createElement(o),c[nn]=a,c[pn]=r,Jt(c,o,r),Gt(c),a.stateNode=c):a.memoizedState=Bx(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Ue(a),r===null&&it&&(c=a.stateNode=Px(a.type,a.pendingProps,pe.current),cn=a,xr=!0,d=_t,Cs(a.type)?(qh=d,_t=rr(c.firstChild)):_t=d),Kt(r,a,a.pendingProps.children,o),Gc(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&it&&((d=c=_t)&&(c=GO(c,a.type,a.pendingProps,xr),c!==null?(a.stateNode=c,cn=a,_t=rr(c.firstChild),xr=!1,d=!0):d=!1),d||ia(a)),Ue(a),d=a.type,p=a.pendingProps,w=r!==null?r.memoizedProps:null,c=p.children,Hh(d,p)?c=null:w!==null&&Hh(d,w)&&(a.flags|=32),a.memoizedState!==null&&(d=Fd(r,a,fO,null,null,o),sl._currentValue=d),Gc(r,a),Kt(r,a,c,o),a.child;case 6:return r===null&&it&&((r=o=_t)&&(o=$O(o,a.pendingProps,xr),o!==null?(a.stateNode=o,cn=a,_t=null,r=!0):r=!1),r||ia(a)),null;case 13:return Db(r,a,o);case 4:return Oe(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=li(a,null,c,o):Kt(r,a,c,o),a.child;case 11:return Tb(r,a,a.type,a.pendingProps,o);case 7:return Kt(r,a,a.pendingProps,o),a.child;case 8:return Kt(r,a,a.pendingProps.children,o),a.child;case 12:return Kt(r,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,us(a,a.type,c.value),Kt(r,a,c.children,o),a.child;case 9:return d=a.type._context,c=a.pendingProps.children,la(a),d=rn(d),c=c(d),a.flags|=1,Kt(r,a,c,o),a.child;case 14:return Eb(r,a,a.type,a.pendingProps,o);case 15:return Cb(r,a,a.type,a.pendingProps,o);case 19:return Rb(r,a,o);case 31:return c=a.pendingProps,o=a.mode,c={mode:c.mode,children:c.children},r===null?(o=$c(c,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=Br(r.child,c),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return Mb(r,a,o);case 24:return la(a),c=rn(Ht),r===null?(d=kd(),d===null&&(d=vt,p=Nd(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=o),d=p),a.memoizedState={parent:c,cache:d},jd(a),us(a,Ht,d)):((r.lanes&o)!==0&&(Pd(r,a),Vo(a,null,null,o),Po()),d=r.memoizedState,p=a.memoizedState,d.parent!==c?(d={parent:c,cache:c},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),us(a,Ht,c)):(c=p.cache,us(a,Ht,c),c!==d.cache&&Od(a,[Ht],o,!0))),Kt(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function qr(r){r.flags|=4}function Pb(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Yx(a)){if(a=In.current,a!==null&&((et&4194048)===et?wr!==null:(et&62914560)!==et&&(et&536870912)===0||a!==wr))throw Ro=Rd,vv;r.flags|=8192}}function Zc(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?nt():536870912,r.lanes|=a,di|=a)}function Yo(r,a){if(!it)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function Et(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(a)for(var d=r.child;d!==null;)o|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=r,d=d.sibling;else for(d=r.child;d!==null;)o|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=r,d=d.sibling;return r.subtreeFlags|=c,r.childLanes=o,a}function xO(r,a,o){var c=a.pendingProps;switch(Cd(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(a),null;case 1:return Et(a),null;case 3:return o=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Hr(Ht),je(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Mo(a)?qr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,hv())),Et(a),null;case 26:return o=a.memoizedState,r===null?(qr(a),o!==null?(Et(a),Pb(a,o)):(Et(a),a.flags&=-16777217)):o?o!==r.memoizedState?(qr(a),Et(a),Pb(a,o)):(Et(a),a.flags&=-16777217):(r.memoizedProps!==c&&qr(a),Et(a),a.flags&=-16777217),null;case 27:Ye(a),o=pe.current;var d=a.type;if(r!==null&&a.stateNode!=null)r.memoizedProps!==c&&qr(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Et(a),null}r=me.current,Mo(a)?fv(a):(r=Px(d,c,o),a.stateNode=r,qr(a))}return Et(a),null;case 5:if(Ye(a),o=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&qr(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Et(a),null}if(r=me.current,Mo(a))fv(a);else{switch(d=lu(pe.current),r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=d.createElement("div"),r.innerHTML="&(H?ut(n.validatingFields,$,H):Vt(n.validatingFields,$))}),S.state.next({validatingFields:n.validatingFields,isValidating:!un(n.validatingFields)}))},_=(j,H=[],$,de,ue=!0,se=!0)=>{if(de&&&!t.disabled){if(u.action=!0,se&&Array.isArray(he(s,j))){const ve=$(he(s,j),de.argA,de.argB);ue&&ut(s,j,ve)}if(se&&Array.isArray(he(n.errors,j))){const ve=$(he(n.errors,j),de.argA,de.argB);ue&&ut(n.errors,j,ve),XL(n.errors,j)}if((v.touchedFields||b.touchedFields)&&se&&Array.isArray(he(n.touchedFields,j))){const ve=$(he(n.touchedFields,j),de.argA,de.argB);ue&&ut(n.touchedFields,j,ve)}(v.dirtyFields||b.dirtyFields)&&(n.dirtyFields=Di(i,l)),S.state.next({name:j,isDirty:ne(j,H),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ut(l,j,H)},O=(j,H)=>{ut(n.errors,j,H),S.state.next({errors:n.errors})},k=j=>{n.errors=j,S.state.next({errors:n.errors,isValid:!1})},D=(j,H,$,de)=>{const ue=he(s,j);if(ue){const se=he(l,j,St($)?he(i,j):$);St(se)||de&&de.defaultChecked||H?ut(l,j,H?se:vS(ue._f)):fe(j,se),u.mount&&!u.action&&C()}},V=(j,H,$,de,ue)=>{let se=!1,ve=!1;const We={name:j};if(!t.disabled){if(!$||de){(v.isDirty||b.isDirty)&&(ve=n.isDirty,n.isDirty=We.isDirty=ne(),se=ve!==We.isDirty);const Le=ur(he(i,j),H);ve=!!he(n.dirtyFields,j),Le?Vt(n.dirtyFields,j):ut(n.dirtyFields,j,!0),We.dirtyFields=n.dirtyFields,se=se||(v.dirtyFields||b.dirtyFields)&&ve!==!Le}if($){const Le=he(n.touchedFields,j);Le||(ut(n.touchedFields,j,$),We.touchedFields=n.touchedFields,se=se||(v.touchedFields||b.touchedFields)&&Le!==$)}se&&ue&&S.state.next(We)}return se?We:{}},F=(j,H,$,de)=>{const ue=he(n.errors,j),se=(v.isValid||b.isValid)&&Dn(H)&&n.isValid!==H;if(t.delayError&&$?(h=T(()=>O(j,$)),h(t.delayError)):(clearTimeout(m),h=null,$?ut(n.errors,j,$):Vt(n.errors,j)),($?!ur(ue,$):ue)||!un(de)||se){const ve={...de,...se&&Dn(H)?{isValid:H}:{},errors:n.errors,name:j};n={...n,...ve},S.state.next(ve)}},B=async j=>(N(j,!0),await t.resolver(l,t.context,WL(j||f.mount,s,t.criteriaMode,t.shouldUseNativeValidation))),te=async j=>{const{errors:H}=await B(j);if(N(j),j)for(const $ of j){const de=he(H,$);de?ut(n.errors,$,de):Vt(n.errors,$)}else n.errors=H;return H},re=async(j,H,$={valid:!0})=>{for(const de in j){const ue=j[de];if(ue){const{_f:se,...ve}=ue;if(se){const We=f.array.has(se.name),Le=ue._f&&IL(ue._f);Le&&v.validatingFields&&N([se.name],!0);const Ft=await ES(ue,f.disabled,l,M,t.shouldUseNativeValidation&&!H,We);if(Le&&v.validatingFields&&N([se.name]),Ft[se.name]&&($.valid=!1,H||e.shouldUseNativeValidation))break;!H&&(he(Ft,se.name)?We?KL(n.errors,Ft,se.name):ut(n.errors,se.name,Ft[se.name]):Vt(n.errors,se.name))}!un(ve)&&await re(ve,H,$)}}return $.valid},ye=()=>{for(const j of f.unMount){const H=he(s,j);H&&(H._f.refs?H._f.refs.every($=>!jm($)):!jm(H._f.ref))&&Oe(j)}f.unMount=new Set},ne=(j,H)=>!t.disabled&&(j&&H&&ut(l,j,H),!ur(G(),i)),ce=(j,H,$)=>kp(j,f,{...u.mount?l:St(H)?i:Rn(j)?{[j]:H}:H},$,H),J=j=>$y(he(u.mount?l:i,j,t.shouldUnregister?he(i,j,[]):[])),fe=(j,H,$={})=>{const de=he(s,j);let ue=H;if(de){const se=de._f;se&&(!se.disabled&&ut(l,j,aM(H,se)),ue=uf(se.ref)&&xn(H)?"":H,nM(se.ref)?[...se.ref.options].forEach(ve=>ve.selected=ue.includes(ve.value)):se.refs?ac(se.ref)?se.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(ue)?ve.checked=!!ue.find(We=>We===ve.value):ve.checked=ue===ve.value||!!ue)}):se.refs.forEach(ve=>ve.checked=ve.value===ue):eg(se.ref)?se.ref.value="":(se.ref.value=ue,se.ref.type||S.state.next({name:j,values:Pt(l)})))}($.shouldDirty||$.shouldTouch)&&V(j,ue,$.shouldTouch,$.shouldDirty,!0),$.shouldValidate&&A(j)},L=(j,H,$)=>{for(const de in H){if(!H.hasOwnProperty(de))return;const ue=H[de],se=j+"."+de,ve=he(s,se);(f.array.has(j)||zt(ue)||ve&&!ve._f)&&!_a(ue)?L(se,ue,$):fe(se,ue,$)}},q=(j,H,$={})=>{const de=he(s,j),ue=f.array.has(j),se=Pt(H);ut(l,j,se),ue?(S.array.next({name:j,values:Pt(l)}),(v.isDirty||v.dirtyFields||b.isDirty||b.dirtyFields)&&$.shouldDirty&&S.state.next({name:j,dirtyFields:Di(i,l),isDirty:ne(j,se)})):de&&!de._f&&!xn(se)?L(j,se,$):fe(j,se,$),wS(j,f)?S.state.next({...n,name:j,values:Pt(l)}):S.state.next({name:u.mount?j:void 0,values:Pt(l)})},Z=async j=>{u.mount=!0;const H=j.target;let $=H.name,de=!0;const ue=he(s,$),se=Le=>{de=Number.isNaN(Le)||_a(Le)&&isNaN(Le.getTime())||ur(Le,he(l,$,Le))},ve=bS(t.mode),We=bS(t.reValidateMode);if(ue){let Le,Ft;const Jn=H.type?vS(ue._f):KC(j),Bn=j.type===cf.BLUR||j.type===cf.FOCUS_OUT,is=!qL(ue._f)&&!t.resolver&&!he(n.errors,$)&&!ue._f.deps||ZL(Bn,he(n.touchedFields,$),n.isSubmitted,We,ve),br=wS($,f,Bn);ut(l,$,Jn),Bn?(!H||!H.readOnly)&&(ue._f.onBlur&&ue._f.onBlur(j),h&&h(0)):ue._f.onChange&&ue._f.onChange(j);const Sn=V($,Jn,Bn),os=!un(Sn)||br;if(!Bn&&S.state.next({name:$,type:j.type,values:Pt(l)}),is)return(v.isValid||b.isValid)&&(t.mode==="onBlur"?Bn&&C():Bn||C()),os&&S.state.next({name:$,...br?{}:Sn});if(!Bn&&br&&S.state.next({...n}),t.resolver){const{errors:er}=await B([$]);if(N([$]),se(Jn),de){const uo=SS(n.errors,s,$),Ve=SS(er,s,uo.name||$);Le=Ve.error,$=Ve.name,Ft=un(er)}}else N([$],!0),Le=(await ES(ue,f.disabled,l,M,t.shouldUseNativeValidation))[$],N([$]),se(Jn),de&&(Le?Ft=!1:(v.isValid||b.isValid)&&(Ft=await re(s,!0)));de&&(ue._f.deps&&(!Array.isArray(ue._f.deps)||ue._f.deps.length>0)&&A(ue._f.deps),F($,Ft,Le,Sn))}},ae=(j,H)=>{if(he(n.errors,H)&&j.focus)return j.focus(),1},A=async(j,H={})=>{let $,de;const ue=Nl(j);if(t.resolver){const se=await te(St(j)?j:ue);$=un(se),de=j?!ue.some(ve=>he(se,ve)):$}else j?(de=(await Promise.all(ue.map(async se=>{const ve=he(s,se);return await re(ve&&ve._f?{[se]:ve}:ve)}))).every(Boolean),!(!de&&!n.isValid)&&C()):de=$=await re(s);return S.state.next({...!Rn(j)||(v.isValid||b.isValid)&&$!==n.isValid?{}:{name:j},...t.resolver||!j?{isValid:$}:{},errors:n.errors}),H.shouldFocus&&!de&&Dl(s,ae,j?ue:f.mount),de},G=(j,H)=>{let $={...u.mount?l:i};return H&&($=tM(H.dirtyFields?n.dirtyFields:n.touchedFields,$)),St(j)?$:Rn(j)?he($,j):j.map(de=>he($,de))},oe=(j,H)=>({invalid:!!he((H||n).errors,j),isDirty:!!he((H||n).dirtyFields,j),error:he((H||n).errors,j),isValidating:!!he(n.validatingFields,j),isTouched:!!he((H||n).touchedFields,j)}),ie=j=>{const H=j?Nl(j):void 0;H?.forEach($=>Vt(n.errors,$)),H?H.forEach($=>{S.state.next({name:$,errors:n.errors})}):S.state.next({errors:{}})},me=(j,H,$)=>{const de=(he(s,j,{_f:{}})._f||{}).ref,ue=he(n.errors,j)||{},{ref:se,message:ve,type:We,...Le}=ue;ut(n.errors,j,{...Le,...H,ref:de}),S.state.next({name:j,errors:n.errors,isValid:!1}),&$.shouldFocus&&de&&de.focus&&de.focus()},Ee=(j,H)=>dn(j)?S.state.subscribe({next:$=>"values"in &j(ce(void 0,H),$)}):ce(j,H,!0),pe=j=>S.state.subscribe({next:H=>{$L(j.name,H.name,j.exact)&&GL(H,j.formState||v,lo,j.reRenderRoot)&&j.callback({values:{...l},...n,...H,defaultValues:i})}}).unsubscribe,ge=j=>(u.mount=!0,b={...b,...j.formState},pe({...j,formState:{...y,...j.formState}})),Oe=(j,H={})=>{for(const $ of j?Nl(j):f.mount)f.mount.delete($),f.array.delete($),H.keepValue||(Vt(s,$),Vt(l,$)),!H.keepError&&Vt(n.errors,$),!H.keepDirty&&Vt(n.dirtyFields,$),!H.keepTouched&&Vt(n.touchedFields,$),!H.keepIsValidating&&Vt(n.validatingFields,$),!t.shouldUnregister&&!H.keepDefaultValue&&Vt(i,$);S.state.next({values:Pt(l)}),S.state.next({...n,...H.keepDirty?{isDirty:ne()}:{}}),!H.keepIsValid&&C()},je=({disabled:j,name:H})=>{if(Dn(j)&&u.mount||j||f.disabled.has(H)){const ue=f.disabled.has(H)!==!!j;j?f.disabled.add(H):f.disabled.delete(H),ue&&u.mount&&!u.action&&C()}},Ue=(j,H={})=>{let $=he(s,j);const de=Dn(H.disabled)||Dn(t.disabled);return ut(s,j,{...$||{},_f:{...&$._f?$._f:{ref:{name:j}},name:j,mount:!0,...H}}),f.mount.add(j),$?je({disabled:Dn(H.disabled)?H.disabled:t.disabled,name:j}):D(j,!0,H.value),{...de?{disabled:H.disabled||t.disabled}:{},...t.progressive?{required:!!H.required,min:ml(H.min),max:ml(H.max),minLength:ml(H.minLength),maxLength:ml(H.maxLength),pattern:ml(H.pattern)}:{},name:j,onChange:Z,onBlur:Z,ref:ue=>{if(ue){Ue(j,H),$=he(s,j);const se=St(ue.value)&&ue.querySelectorAll&&ue.querySelectorAll("input,select,textarea")[0]||ue,ve=UL(se),We=$._f.refs||[];if(ve?We.find(Le=>Le===se):se===$._f.ref)return;ut(s,j,{_f:{...$._f,...ve?{refs:[...We.filter(jm),se,...Array.isArray(he(i,j))?[{}]:[]],ref:{type:se.type,name:j}}:{ref:se}}}),D(j,!1,void 0,se)}else $=he(s,j,{}),$._f&&($._f.mount=!1),(t.shouldUnregister||H.shouldUnregister)&&!(QC(f.array,j)&&u.action)&&f.unMount.add(j)}}},Ye=()=>t.shouldFocusError&&Dl(s,ae,f.mount),tt=j=>{Dn(j)&&(S.state.next({disabled:j}),Dl(s,(H,$)=>{const de=he(s,$);de&&(H.disabled=de._f.disabled||j,Array.isArray(de._f.refs)&&de._f.refs.forEach(ue=>{ue.disabled=de._f.disabled||j}))},0,!1))},xt=(j,H)=>async $=>{let de;&($.preventDefault&&$.preventDefault(),$.persist&&$.persist());let ue=Pt(l);if(S.state.next({isSubmitting:!0}),t.resolver){const{errors:se,values:ve}=await B();N(),n.errors=se,ue=Pt(ve)}else await re(s);if(f.disabled.size)for(const se of f.disabled)Vt(ue,se);if(Vt(n.errors,"root"),un(n.errors)){S.state.next({errors:{}});try{await j(ue,$)}catch(se){de=se}}else H&&await H({...n.errors},$),Ye(),setTimeout(Ye);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:un(n.errors)&&!de,submitCount:n.submitCount+1,errors:n.errors}),de)throw de},kt=(j,H={})=>{he(s,j)&&(St(H.defaultValue)?q(j,Pt(he(i,j))):(q(j,H.defaultValue),ut(i,j,Pt(H.defaultValue))),H.keepTouched||Vt(n.touchedFields,j),H.keepDirty||(Vt(n.dirtyFields,j),n.isDirty=H.defaultValue?ne(j,Pt(he(i,j))):ne()),H.keepError||(Vt(n.errors,j),v.isValid&&C()),S.state.next({...n}))},Qn=(j,H={})=>{const $=j?Pt(j):i,de=Pt($),ue=un(j),se=ue?i:de;if(H.keepDefaultValues||(i=$),!H.keepValues){if(H.keepDirtyValues){const ve=new Set([...f.mount,...Object.keys(Di(i,l))]);for(const We of Array.from(ve)){const Le=he(n.dirtyFields,We),Ft=he(l,We),Jn=he(se,We);Le&&!St(Ft)?ut(se,We,Ft):!Le&&!St(Jn)&&q(We,Jn)}}else{if(Gy&&St(j))for(const ve of f.mount){const We=he(s,ve);if(We&&We._f){const Le=Array.isArray(We._f.refs)?We._f.refs[0]:We._f.ref;if(uf(Le)){const Ft=Le.closest("form");if(Ft){Ft.reset();break}}}}if(H.keepFieldsRef)for(const ve of f.mount)q(ve,he(se,ve));else s={}}l=t.shouldUnregister?H.keepDefaultValues?Pt(i):{}:Pt(se),S.array.next({values:{...se}}),S.state.next({values:{...se}})}f={mount:H.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!H.keepIsValid||!!H.keepDirtyValues||!t.shouldUnregister&&!un(se),u.watch=!!t.shouldUnregister,u.keepIsValid=!!H.keepIsValid,u.action=!1,H.keepErrors||(n.errors={}),S.state.next({submitCount:H.keepSubmitCount?n.submitCount:0,isDirty:ue?!1:H.keepDirty?n.isDirty:!!(H.keepDefaultValues&&!ur(j,i)),isSubmitted:H.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ue?{}:H.keepDirtyValues?H.keepDefaultValues&&l?Di(i,l):n.dirtyFields:H.keepDefaultValues&&j?Di(i,j):H.keepDirty?n.dirtyFields:{},touchedFields:H.keepTouched?n.touchedFields:{},errors:H.keepErrors?n.errors:{},isSubmitSuccessful:H.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},vr=(j,H)=>Qn(dn(j)?j(l):j,{...t.resetOptions,...H}),qt=(j,H={})=>{const $=he(s,j),de=&$._f;if(de){const ue=de.refs?de.refs[0]:de.ref;ue.focus&&setTimeout(()=>{ue.focus(),H.shouldSelect&&dn(ue.select)&&ue.select()})}},lo=j=>{n={...n,...j}},Ks={control:{register:Ue,unregister:Oe,getFieldState:oe,handleSubmit:xt,setError:me,_subscribe:pe,_runSchema:B,_updateIsValidating:N,_focusError:Ye,_getWatch:ce,_getDirty:ne,_setValid:C,_setFieldArray:_,_setDisabledField:je,_setErrors:k,_getFieldArray:J,_reset:Qn,_resetDefaultValues:()=>dn(t.defaultValues)&&t.defaultValues().then(j=>{vr(j,t.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:ye,_disableForm:tt,_subjects:S,_proxyFormState:v,get _fields(){return s},get _formValues(){return l},get _state(){return u},set _state(j){u=j},get _defaultValues(){return i},get _names(){return f},set _names(j){f=j},get _formState(){return n},get _options(){return t},set _options(j){t={...t,...j}}},subscribe:ge,trigger:A,register:Ue,handleSubmit:xt,watch:Ee,setValue:q,getValues:G,reset:vr,resetField:kt,clearErrors:ie,unregister:Oe,setError:me,setFocus:qt,getFieldState:oe};return{...Ks,formControl:Ks}}function e6(e={}){const t=X.useRef(void 0),n=X.useRef(void 0),[s,i]=X.useState({isDirty:!1,isValidating:!1,isLoading:dn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:dn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:s},e.defaultValues&&!dn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...f}=JL(e);t.current={...f,formState:s}}const l=t.current.control;return l._options=e,Qy(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>i({...l._formState}),reRenderRoot:!0});return i(f=>({...f,isReady:!0})),l._formState.isReady=!0,u},[l]),X.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),X.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),X.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),X.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),X.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==s.isDirty&&l._subjects.state.next({isDirty:u})}},[l,s.isDirty]),X.useEffect(()=>{var u;e.values&&!ur(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),n.current=e.values,i(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),X.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=X.useMemo(()=>JC(s,l),[l,s]),t.current}const CS=(e,t,n)=>{if(e&&"reportValidity"in e){const s=he(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},oM=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?CS(s.ref,n,e):s.refs&&s.refs.forEach(i=>CS(i,n,e))}},t6=(e,t)=>{t.shouldUseNativeValidation&&oM(e,t);const n={};for(const s in e){const i=he(t.fields,s),l=Object.assign(e[s]||{},{ref:i&&i.ref});if(n6(t.names||Object.keys(e),s)){const u=Object.assign({},he(n,s));ut(u,"root",l),ut(n,s,u)}else ut(n,s,l)}return n},n6=(e,t)=>e.some(n=>n.startsWith(t+"."));var r6=function(e,t){for(var n={};e.length;){var s=e[0],i=s.code,l=s.message,u=s.path.join(".");if(!n[u])if("unionErrors"in s){var f=s.unionErrors[0].errors[0];n[u]={message:f.message,type:f.code}}else n[u]={message:l,type:i};if("unionErrors"in s&&s.unionErrors.forEach(function(y){return y.errors.forEach(function(v){return e.push(v)})}),t){var h=n[u].types,m=h&&h[s.code];n[u]=eM(u,t,n,i,m?[].concat(m,s.message):s.message)}e.shift()}return n},s6=function(e,t,n){return n===void 0&&(n={}),function(s,i,l){try{return Promise.resolve((function(u,f){try{var h=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(m){return l.shouldUseNativeValidation&&oM({},l),{errors:{},values:n.raw?s:m}})}catch(m){return f(m)}return h&&h.then?h.then(void 0,f):h})(0,function(u){if((function(f){return Array.isArray(f?.errors)})(u))return{values:{},errors:t6(r6(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}}},at;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const l={};for(const u of i)l[u]=u;return l},e.getValidEnumValues=i=>{const l=e.objectKeys(i).filter(f=>typeof i[i[f]]!="number"),u={};for(const f of l)u[f]=i[f];return e.objectValues(u)},e.objectValues=i=>e.objectKeys(i).map(function(l){return i[l]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const l=[];for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&l.push(u);return l},e.find=(i,l)=>{for(const u of i)if(l(u))return u},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function s(i,l=" | "){return i.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}e.joinValues=s,e.jsonStringifyReplacer=(i,l)=>typeof l=="bigint"?l.toString():l})(at||(at={}));var MS;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(MS||(MS={}));const Ce=at.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ls=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},le=at.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ss extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},s={_errors:[]},i=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(i);else if(u.code==="invalid_return_type")i(u.returnTypeError);else if(u.code==="invalid_arguments")i(u.argumentsError);else if(u.path.length===0)s._errors.push(n(u));else{let f=s,h=0;for(;hn.message){const n={},s=[];for(const i of this.issues)if(i.path.length>0){const l=i.path[0];n[l]=n[l]||[],n[l].push(t(i))}else s.push(t(i));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}ss.create=e=>new ss(e);const Pp=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,at.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${at.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${at.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${at.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:at.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,at.assertNever(e)}return{message:n}};let a6=Pp;function i6(){return a6}const o6=e=>{const{data:t,path:n,errorMaps:s,issueData:i}=e,l=[...n,...i.path||[]],u={...i,path:l};if(i.message!==void 0)return{...i,path:l,message:i.message};let f="";const h=s.filter(m=>!!m).slice().reverse();for(const m of h)f=m(u,{data:t,defaultError:f}).message;return{...i,path:l,message:f}};function be(e,t){const n=i6(),s=o6({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Pp?void 0:Pp].filter(i=>!!i)});e.common.issues.push(s)}class Pn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const i of n){if(i.status==="aborted")return Be;i.status==="dirty"&&t.dirty(),s.push(i.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const i of n){const l=await i.key,u=await i.value;s.push({key:l,value:u})}return Pn.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const i of n){const{key:l,value:u}=i;if(l.status==="aborted"||u.status==="aborted")return Be;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||i.alwaysSet)&&(s[l.value]=u.value)}return{status:t.value,value:s}}}const Be=Object.freeze({status:"aborted"}),wl=e=>({status:"dirty",value:e}),Kn=e=>({status:"valid",value:e}),_S=e=>e.status==="aborted",AS=e=>e.status==="dirty",Ii=e=>e.status==="valid",df=e=>typeof Promise<"u"&&e instanceof Promise;var _e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(_e||(_e={}));class Ws{constructor(t,n,s,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const OS=(e,t)=>{if(Ii(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ss(e.common.issues);return this._error=n,this._error}}};function $e(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:i}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(u,f)=>{const{message:h}=e;return u.code==="invalid_enum_value"?{message:h??f.defaultError}:typeof f.data>"u"?{message:h??s??f.defaultError}:u.code!=="invalid_type"?{message:f.defaultError}:{message:h??n??f.defaultError}},description:i}}class rt{get description(){return this._def.description}_getType(t){return Ls(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ls(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pn,ctx:{common:t.parent.common,data:t.data,parsedType:Ls(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(df(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){const s={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ls(t)},i=this._parseSync({data:t,path:s.path,parent:s});return OS(s,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ls(t)};if(!this["~standard"].async)try{const s=this._parseSync({data:t,path:[],parent:n});return Ii(s)?{value:s.value}:{issues:n.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(s=>Ii(s)?{value:s.value}:{issues:n.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ls(t)},i=this._parse({data:t,path:s.path,parent:s}),l=await(df(i)?i:Promise.resolve(i));return OS(s,l)}refine(t,n){const s=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,l)=>{const u=t(i),f=()=>l.addIssue({code:le.custom,...s(i)});return typeof Promise<"u"&&u instanceof Promise?u.then(h=>h?!0:(f(),!1)):u?!0:(f(),!1)})}refinement(t,n){return this._refinement((s,i)=>t(s)?!0:(i.addIssue(typeof n=="function"?n(s,i):n),!1))}_refinement(t){return new Gi({schema:this,typeName:ze.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Us.create(this,this._def)}nullable(){return $i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return kr.create(this)}promise(){return pf.create(this,this._def)}or(t){return hf.create([this,t],this._def)}and(t){return mf.create(this,t,this._def)}transform(t){return new Gi({...$e(this._def),schema:this,typeName:ze.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Lp({...$e(this._def),innerType:this,defaultValue:n,typeName:ze.ZodDefault})}brand(){return new N6({typeName:ze.ZodBranded,type:this,...$e(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Bp({...$e(this._def),innerType:this,catchValue:n,typeName:ze.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ng.create(this,t)}readonly(){return zp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const l6=/^c[^\s-]{8,}$/i,c6=/^[0-9a-z]+$/,u6=/^[0-9A-HJKMNP-TV-Z]{26}$/i,f6=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,d6=/^[a-z0-9_-]{21}$/i,h6=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,m6=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,p6=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,y6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Pm;const g6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,v6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,b6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,x6=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,w6=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,S6=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lM="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",T6=new RegExp(`^${lM} Non-Surgical Hair Replacement | Thom's Hair Salon — East Greenbush, NY );function cM(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function E6(e){return new RegExp(`^${cM(e)} Non-Surgical Hair Replacement | Thom's Hair Salon — East Greenbush, NY )}function C6(e){let t=`${lM}T${cM(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t} Non-Surgical Hair Replacement | Thom's Hair Salon — East Greenbush, NY )}function M6(e,t){return!!((t==="v4"||!t)&&g6.test(e)||(t==="v6"||!t)&&b6.test(e))}function _6(e,t){if(!h6.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(s));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function A6(e,t){return!!((t==="v4"||!t)&&v6.test(e)||(t==="v6"||!t)&&x6.test(e))}class zs extends rt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const l=this._getOrReturnCtx(t);return be(l,{code:le.invalid_type,expected:Ce.string,received:l.parsedType}),Be}const s=new Pn;let i;for(const l of this._def.checks)if(l.kind==="min")t.data.lengthl.value&&(i=this._getOrReturnCtx(t,i),be(i,{code:le.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),s.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,f=t.data.lengtht.test(i),{validation:n,code:le.invalid_string,..._e.errToObj(s)})}_addCheck(t){return new zs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._e.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._e.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",..._e.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",..._e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._e.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",..._e.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,..._e.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,..._e.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",..._e.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,..._e.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,..._e.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,..._e.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,..._e.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,..._e.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,..._e.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,..._e.errToObj(n)})}nonempty(t){return this.min(1,_e.errToObj(t))}trim(){return new zs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew zs({checks:[],typeName:ze.ZodString,coerce:e?.coerce??!1,...$e(e)});function O6(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,i=n>s?n:s,l=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return l%u/10**i}class Hl extends rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ce.number){const l=this._getOrReturnCtx(t);return be(l,{code:le.invalid_type,expected:Ce.number,received:l.parsedType}),Be}let s;const i=new Pn;for(const l of this._def.checks)l.kind==="int"?at.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),be(s,{code:le.invalid_type,expected:"integer",received:"float",message:l.message}),i.dirty()):l.kind==="min"?(l.inclusive?t.datal.value:t.data>=l.value)&&(s=this._getOrReturnCtx(t,s),be(s,{code:le.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),i.dirty()):l.kind==="multipleOf"?O6(t.data,l.value)!==0&&(s=this._getOrReturnCtx(t,s),be(s,{code:le.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),be(s,{code:le.not_finite,message:l.message}),i.dirty()):at.assertNever(l);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,s,i){return new Hl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:_e.toString(i)}]})}_addCheck(t){return new Hl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:_e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&at.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.valuenew Hl({checks:[],typeName:ze.ZodNumber,coerce:e?.coerce||!1,...$e(e)});class Yl extends rt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let s;const i=new Pn;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.datal.value:t.data>=l.value)&&(s=this._getOrReturnCtx(t,s),be(s,{code:le.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),i.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),be(s,{code:le.not_multiple_of,multipleOf:l.value,message:l.message}),i.dirty()):at.assertNever(l);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return be(n,{code:le.invalid_type,expected:Ce.bigint,received:n.parsedType}),Be}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,s,i){return new Yl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:_e.toString(i)}]})}_addCheck(t){return new Yl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Yl({checks:[],typeName:ze.ZodBigInt,coerce:e?.coerce??!1,...$e(e)});class NS extends rt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.boolean,received:s.parsedType}),Be}return Kn(t.data)}}NS.create=e=>new NS({typeName:ze.ZodBoolean,coerce:e?.coerce||!1,...$e(e)});class Wl extends rt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const l=this._getOrReturnCtx(t);return be(l,{code:le.invalid_type,expected:Ce.date,received:l.parsedType}),Be}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return be(l,{code:le.invalid_date}),Be}const s=new Pn;let i;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()l.value&&(i=this._getOrReturnCtx(t,i),be(i,{code:le.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):at.assertNever(l);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Wl({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:_e.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:_e.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Wl({checks:[],coerce:e?.coerce||!1,typeName:ze.ZodDate,...$e(e)});class DS extends rt{_parse(t){if(this._getType(t)!==Ce.symbol){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.symbol,received:s.parsedType}),Be}return Kn(t.data)}}DS.create=e=>new DS({typeName:ze.ZodSymbol,...$e(e)});class kS extends rt{_parse(t){if(this._getType(t)!==Ce.undefined){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.undefined,received:s.parsedType}),Be}return Kn(t.data)}}kS.create=e=>new kS({typeName:ze.ZodUndefined,...$e(e)});class RS extends rt{_parse(t){if(this._getType(t)!==Ce.null){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.null,received:s.parsedType}),Be}return Kn(t.data)}}RS.create=e=>new RS({typeName:ze.ZodNull,...$e(e)});class jS extends rt{constructor(){super(...arguments),this._any=!0}_parse(t){return Kn(t.data)}}jS.create=e=>new jS({typeName:ze.ZodAny,...$e(e)});class PS extends rt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Kn(t.data)}}PS.create=e=>new PS({typeName:ze.ZodUnknown,...$e(e)});class Is extends rt{_parse(t){const n=this._getOrReturnCtx(t);return be(n,{code:le.invalid_type,expected:Ce.never,received:n.parsedType}),Be}}Is.create=e=>new Is({typeName:ze.ZodNever,...$e(e)});class VS extends rt{_parse(t){if(this._getType(t)!==Ce.undefined){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.void,received:s.parsedType}),Be}return Kn(t.data)}}VS.create=e=>new VS({typeName:ze.ZodVoid,...$e(e)});class kr extends rt{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ce.array)return be(n,{code:le.invalid_type,expected:Ce.array,received:n.parsedType}),Be;if(i.exactLength!==null){const u=n.data.length>i.exactLength.value,f=n.data.lengthi.maxLength.value&&(be(n,{code:le.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((u,f)=>i.type._parseAsync(new Ws(n,u,n.path,f)))).then(u=>Pn.mergeArray(s,u));const l=[...n.data].map((u,f)=>i.type._parseSync(new Ws(n,u,n.path,f)));return Pn.mergeArray(s,l)}get element(){return this._def.type}min(t,n){return new kr({...this._def,minLength:{value:t,message:_e.toString(n)}})}max(t,n){return new kr({...this._def,maxLength:{value:t,message:_e.toString(n)}})}length(t,n){return new kr({...this._def,exactLength:{value:t,message:_e.toString(n)}})}nonempty(t){return this.min(1,t)}}kr.create=(e,t)=>new kr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ze.ZodArray,...$e(t)});function ki(e){if(e instanceof Bt){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=Us.create(ki(s))}return new Bt({...e._def,shape:()=>t})}else return e instanceof kr?new kr({...e._def,type:ki(e.element)}):e instanceof Us?Us.create(ki(e.unwrap())):e instanceof $i?$i.create(ki(e.unwrap())):e instanceof Da?Da.create(e.items.map(t=>ki(t))):e}class Bt extends rt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=at.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const m=this._getOrReturnCtx(t);return be(m,{code:le.invalid_type,expected:Ce.object,received:m.parsedType}),Be}const{status:s,ctx:i}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),f=[];if(!(this._def.catchall instanceof Is&&this._def.unknownKeys==="strip"))for(const m in i.data)u.includes(m)||f.push(m);const h=[];for(const m of u){const y=l[m],v=i.data[m];h.push({key:{status:"valid",value:m},value:y._parse(new Ws(i,v,i.path,m)),alwaysSet:m in i.data})}if(this._def.catchall instanceof Is){const m=this._def.unknownKeys;if(m==="passthrough")for(const y of f)h.push({key:{status:"valid",value:y},value:{status:"valid",value:i.data[y]}});else if(m==="strict")f.length>0&&(be(i,{code:le.unrecognized_keys,keys:f}),s.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const y of f){const v=i.data[y];h.push({key:{status:"valid",value:y},value:m._parse(new Ws(i,v,i.path,y)),alwaysSet:y in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const m=[];for(const y of h){const v=await y.key,b=await y.value;m.push({key:v,value:b,alwaysSet:y.alwaysSet})}return m}).then(m=>Pn.mergeObjectSync(s,m)):Pn.mergeObjectSync(s,h)}get shape(){return this._def.shape()}strict(t){return _e.errToObj,new Bt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{const i=this._def.errorMap?.(n,s).message??s.defaultError;return n.code==="unrecognized_keys"?{message:_e.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Bt({...this._def,unknownKeys:"strip"})}passthrough(){return new Bt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Bt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Bt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ze.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Bt({...this._def,catchall:t})}pick(t){const n={};for(const s of at.objectKeys(t))t[s]&&this.shape[s]&&(n[s]=this.shape[s]);return new Bt({...this._def,shape:()=>n})}omit(t){const n={};for(const s of at.objectKeys(this.shape))t[s]||(n[s]=this.shape[s]);return new Bt({...this._def,shape:()=>n})}deepPartial(){return ki(this)}partial(t){const n={};for(const s of at.objectKeys(this.shape)){const i=this.shape[s];t&&!t[s]?n[s]=i:n[s]=i.optional()}return new Bt({...this._def,shape:()=>n})}required(t){const n={};for(const s of at.objectKeys(this.shape))if(t&&!t[s])n[s]=this.shape[s];else{let l=this.shape[s];for(;l instanceof Us;)l=l._def.innerType;n[s]=l}return new Bt({...this._def,shape:()=>n})}keyof(){return uM(at.objectKeys(this.shape))}}Bt.create=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strip",catchall:Is.create(),typeName:ze.ZodObject,...$e(t)});Bt.strictCreate=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strict",catchall:Is.create(),typeName:ze.ZodObject,...$e(t)});Bt.lazycreate=(e,t)=>new Bt({shape:e,unknownKeys:"strip",catchall:Is.create(),typeName:ze.ZodObject,...$e(t)});class hf extends rt{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function i(l){for(const f of l)if(f.result.status==="valid")return f.result;for(const f of l)if(f.result.status==="dirty")return n.common.issues.push(...f.ctx.common.issues),f.result;const u=l.map(f=>new ss(f.ctx.common.issues));return be(n,{code:le.invalid_union,unionErrors:u}),Be}if(n.common.async)return Promise.all(s.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(i);{let l;const u=[];for(const h of s){const m={...n,common:{...n.common,issues:[]},parent:null},y=h._parseSync({data:n.data,path:n.path,parent:m});if(y.status==="valid")return y;y.status==="dirty"&&!l&&(l={result:y,ctx:m}),m.common.issues.length&&u.push(m.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const f=u.map(h=>new ss(h));return be(n,{code:le.invalid_union,unionErrors:f}),Be}}get options(){return this._def.options}}hf.create=(e,t)=>new hf({options:e,typeName:ze.ZodUnion,...$e(t)});function Vp(e,t){const n=Ls(e),s=Ls(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&s===Ce.object){const i=at.objectKeys(t),l=at.objectKeys(e).filter(f=>i.indexOf(f)!==-1),u={...e,...t};for(const f of l){const h=Vp(e[f],t[f]);if(!h.valid)return{valid:!1};u[f]=h.data}return{valid:!0,data:u}}else if(n===Ce.array&&s===Ce.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let l=0;l{if(_S(l)||_S(u))return Be;const f=Vp(l.value,u.value);return f.valid?((AS(l)||AS(u))&&n.dirty(),{status:n.value,value:f.data}):(be(s,{code:le.invalid_intersection_types}),Be)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([l,u])=>i(l,u)):i(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}mf.create=(e,t,n)=>new mf({left:e,right:t,typeName:ze.ZodIntersection,...$e(n)});class Da extends rt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ce.array)return be(s,{code:le.invalid_type,expected:Ce.array,received:s.parsedType}),Be;if(s.data.lengththis._def.items.length&&(be(s,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...s.data].map((u,f)=>{const h=this._def.items[f]||this._def.rest;return h?h._parse(new Ws(s,u,s.path,f)):null}).filter(u=>!!u);return s.common.async?Promise.all(l).then(u=>Pn.mergeArray(n,u)):Pn.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new Da({...this._def,rest:t})}}Da.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Da({items:e,typeName:ze.ZodTuple,rest:null,...$e(t)})};class LS extends rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ce.map)return be(s,{code:le.invalid_type,expected:Ce.map,received:s.parsedType}),Be;const i=this._def.keyType,l=this._def.valueType,u=[...s.data.entries()].map(([f,h],m)=>({key:i._parse(new Ws(s,f,s.path,[m,"key"])),value:l._parse(new Ws(s,h,s.path,[m,"value"]))}));if(s.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const h of u){const m=await h.key,y=await h.value;if(m.status==="aborted"||y.status==="aborted")return Be;(m.status==="dirty"||y.status==="dirty")&&n.dirty(),f.set(m.value,y.value)}return{status:n.value,value:f}})}else{const f=new Map;for(const h of u){const m=h.key,y=h.value;if(m.status==="aborted"||y.status==="aborted")return Be;(m.status==="dirty"||y.status==="dirty")&&n.dirty(),f.set(m.value,y.value)}return{status:n.value,value:f}}}}LS.create=(e,t,n)=>new LS({valueType:t,keyType:e,typeName:ze.ZodMap,...$e(n)});class Il extends rt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ce.set)return be(s,{code:le.invalid_type,expected:Ce.set,received:s.parsedType}),Be;const i=this._def;i.minSize!==null&&s.data.sizei.maxSize.value&&(be(s,{code:le.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const l=this._def.valueType;function u(h){const m=new Set;for(const y of h){if(y.status==="aborted")return Be;y.status==="dirty"&&n.dirty(),m.add(y.value)}return{status:n.value,value:m}}const f=[...s.data.values()].map((h,m)=>l._parse(new Ws(s,h,s.path,m)));return s.common.async?Promise.all(f).then(h=>u(h)):u(f)}min(t,n){return new Il({...this._def,minSize:{value:t,message:_e.toString(n)}})}max(t,n){return new Il({...this._def,maxSize:{value:t,message:_e.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Il.create=(e,t)=>new Il({valueType:e,minSize:null,maxSize:null,typeName:ze.ZodSet,...$e(t)});class BS extends rt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}BS.create=(e,t)=>new BS({getter:e,typeName:ze.ZodLazy,...$e(t)});class zS extends rt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return be(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),Be}return{status:"valid",value:t.data}}get value(){return this._def.value}}zS.create=(e,t)=>new zS({value:e,typeName:ze.ZodLiteral,...$e(t)});function uM(e,t){return new qi({values:e,typeName:ze.ZodEnum,...$e(t)})}class qi extends rt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return be(n,{expected:at.joinValues(s),received:n.parsedType,code:le.invalid_type}),Be}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return be(n,{received:n.data,code:le.invalid_enum_value,options:s}),Be}return Kn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return qi.create(t,{...this._def,...n})}exclude(t,n=this._def){return qi.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}qi.create=uM;class US extends rt{_parse(t){const n=at.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Ce.string&&s.parsedType!==Ce.number){const i=at.objectValues(n);return be(s,{expected:at.joinValues(i),received:s.parsedType,code:le.invalid_type}),Be}if(this._cache||(this._cache=new Set(at.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=at.objectValues(n);return be(s,{received:s.data,code:le.invalid_enum_value,options:i}),Be}return Kn(t.data)}get enum(){return this._def.values}}US.create=(e,t)=>new US({values:e,typeName:ze.ZodNativeEnum,...$e(t)});class pf extends rt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return be(n,{code:le.invalid_type,expected:Ce.promise,received:n.parsedType}),Be;const s=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Kn(s.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}pf.create=(e,t)=>new pf({type:e,typeName:ze.ZodPromise,...$e(t)});class Gi extends rt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),i=this._def.effect||null,l={addIssue:u=>{be(s,u),u.fatal?n.abort():n.dirty()},get path(){return s.path}};if(l.addIssue=l.addIssue.bind(l),i.type==="preprocess"){const u=i.transform(s.data,l);if(s.common.async)return Promise.resolve(u).then(async f=>{if(n.value==="aborted")return Be;const h=await this._def.schema._parseAsync({data:f,path:s.path,parent:s});return h.status==="aborted"?Be:h.status==="dirty"||n.value==="dirty"?wl(h.value):h});{if(n.value==="aborted")return Be;const f=this._def.schema._parseSync({data:u,path:s.path,parent:s});return f.status==="aborted"?Be:f.status==="dirty"||n.value==="dirty"?wl(f.value):f}}if(i.type==="refinement"){const u=f=>{const h=i.refinement(f,l);if(s.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(s.common.async===!1){const f=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?Be:(f.status==="dirty"&&n.dirty(),u(f.value),{status:n.value,value:f.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(f=>f.status==="aborted"?Be:(f.status==="dirty"&&n.dirty(),u(f.value).then(()=>({status:n.value,value:f.value}))))}if(i.type==="transform")if(s.common.async===!1){const u=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ii(u))return Be;const f=i.transform(u.value,l);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:f}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(u=>Ii(u)?Promise.resolve(i.transform(u.value,l)).then(f=>({status:n.value,value:f})):Be);at.assertNever(i)}}Gi.create=(e,t,n)=>new Gi({schema:e,typeName:ze.ZodEffects,effect:t,...$e(n)});Gi.createWithPreprocess=(e,t,n)=>new Gi({schema:t,effect:{type:"preprocess",transform:e},typeName:ze.ZodEffects,...$e(n)});class Us extends rt{_parse(t){return this._getType(t)===Ce.undefined?Kn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Us.create=(e,t)=>new Us({innerType:e,typeName:ze.ZodOptional,...$e(t)});class $i extends rt{_parse(t){return this._getType(t)===Ce.null?Kn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$i.create=(e,t)=>new $i({innerType:e,typeName:ze.ZodNullable,...$e(t)});class Lp extends rt{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===Ce.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Lp.create=(e,t)=>new Lp({innerType:e,typeName:ze.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$e(t)});class Bp extends rt{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return df(i)?i.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new ss(s.common.issues)},input:s.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ss(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Bp.create=(e,t)=>new Bp({innerType:e,typeName:ze.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$e(t)});class FS extends rt{_parse(t){if(this._getType(t)!==Ce.nan){const s=this._getOrReturnCtx(t);return be(s,{code:le.invalid_type,expected:Ce.nan,received:s.parsedType}),Be}return{status:"valid",value:t.data}}}FS.create=e=>new FS({typeName:ze.ZodNaN,...$e(e)});class N6 extends rt{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class ng extends rt{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Be:l.status==="dirty"?(n.dirty(),wl(l.value)):this._def.out._parseAsync({data:l.value,path:s.path,parent:s})})();{const i=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?Be:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:s.path,parent:s})}}static create(t,n){return new ng({in:t,out:n,typeName:ze.ZodPipeline})}}class zp extends rt{_parse(t){const n=this._def.innerType._parse(t),s=i=>(Ii(i)&&(i.value=Object.freeze(i.value)),i);return df(n)?n.then(i=>s(i)):s(n)}unwrap(){return this._def.innerType}}zp.create=(e,t)=>new zp({innerType:e,typeName:ze.ZodReadonly,...$e(t)});var ze;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ze||(ze={}));const pl=zs.create,D6=Wl.create;Is.create;kr.create;const k6=Bt.create;hf.create;mf.create;Da.create;qi.create;pf.create;Us.create;$i.create;function gr(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function ka(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const fM=6048e5,R6=864e5;let j6={};function zf(){return j6}function ql(e,t){const n=zf(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=gr(e),l=i.getDay(),u=(l=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function HS(e){const t=gr(e);return t.setHours(0,0,0,0),t}function YS(e){const t=gr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function P6(e,t){const n=HS(e),s=HS(t),i=+n-YS(n),l=+s-YS(s);return Math.round((i-l)/R6)}function V6(e){const t=dM(e),n=ka(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),yf(n)}function L6(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function B6(e){if(!L6(e)&&typeof e!="number")return!1;const t=gr(e);return!isNaN(Number(t))}function z6(e){const t=gr(e),n=ka(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const U6={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},F6=(e,t,n)=>{let s;const i=U6[e];return typeof i=="string"?s=i:t===1?s=i.one:s=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Vm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const H6={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y6={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},W6={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},I6={date:Vm({formats:H6,defaultWidth:"full"}),time:Vm({formats:Y6,defaultWidth:"full"}),dateTime:Vm({formats:W6,defaultWidth:"full"})},q6={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},G6=(e,t,n,s)=>q6[e];function yl(e){return(t,n)=>{const s=n?.context?String(n.context):"standalone";let i;if(s==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=n?.width?String(n.width):u;i=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=n?.width?String(n.width):e.defaultWidth;i=e.values[f]||e.values[u]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const $6={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Z6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},X6={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},K6={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Q6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J6={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eB=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},tB={ordinalNumber:eB,era:yl({values:$6,defaultWidth:"wide"}),quarter:yl({values:Z6,defaultWidth:"wide",argumentCallback:e=>e-1}),month:yl({values:X6,defaultWidth:"wide"}),day:yl({values:K6,defaultWidth:"wide"}),dayPeriod:yl({values:Q6,defaultWidth:"wide",formattingValues:J6,defaultFormattingWidth:"wide"})};function gl(e){return(t,n={})=>{const s=n.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const u=l[0],f=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?rB(f,v=>v.test(u)):nB(f,v=>v.test(u));let m;m=e.valueCallback?e.valueCallback(h):h,m=n.valueCallback?n.valueCallback(m):m;const y=t.slice(u.length);return{value:m,rest:y}}}function nB(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rB(e,t){for(let n=0;n{const s=t.match(e.matchPattern);if(!s)return null;const i=s[0],l=t.match(e.parsePattern);if(!l)return null;let u=e.valueCallback?e.valueCallback(l[0]):l[0];u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}const aB=/^(\d+)(th|st|nd|rd)?/i,iB=/\d+/i,oB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lB={any:[/^b/i,/^(a|c)/i]},cB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uB={any:[/1/i,/2/i,/3/i,/4/i]},fB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},dB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},mB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pB={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},gB={ordinalNumber:sB({matchPattern:aB,parsePattern:iB,valueCallback:e=>parseInt(e,10)}),era:gl({matchPatterns:oB,defaultMatchWidth:"wide",parsePatterns:lB,defaultParseWidth:"any"}),quarter:gl({matchPatterns:cB,defaultMatchWidth:"wide",parsePatterns:uB,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gl({matchPatterns:fB,defaultMatchWidth:"wide",parsePatterns:dB,defaultParseWidth:"any"}),day:gl({matchPatterns:hB,defaultMatchWidth:"wide",parsePatterns:mB,defaultParseWidth:"any"}),dayPeriod:gl({matchPatterns:pB,defaultMatchWidth:"any",parsePatterns:yB,defaultParseWidth:"any"})},vB={code:"en-US",formatDistance:F6,formatLong:I6,formatRelative:G6,localize:tB,match:gB,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bB(e){const t=gr(e);return P6(t,z6(t))+1}function xB(e){const t=gr(e),n=+yf(t)-+V6(t);return Math.round(n/fM)+1}function hM(e,t){const n=gr(e),s=n.getFullYear(),i=zf(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=ka(e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);const f=ql(u,t),h=ka(e,0);h.setFullYear(s,0,l),h.setHours(0,0,0,0);const m=ql(h,t);return n.getTime()>=f.getTime()?s+1:n.getTime()>=m.getTime()?s:s-1}function wB(e,t){const n=zf(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=hM(e,t),l=ka(e,0);return l.setFullYear(i,0,s),l.setHours(0,0,0,0),ql(l,t)}function SB(e,t){const n=gr(e),s=+ql(n,t)-+wB(n,t);return Math.round(s/fM)+1}function ft(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const Rs={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return ft(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ft(n+1,2)},d(e,t){return ft(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return ft(e.getHours()%12||12,t.length)},H(e,t){return ft(e.getHours(),t.length)},m(e,t){return ft(e.getMinutes(),t.length)},s(e,t){return ft(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),i=Math.trunc(s*Math.pow(10,n-3));return ft(i,t.length)}},Ti={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},WS={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),i=s>0?s:1-s;return n.ordinalNumber(i,{unit:"year"})}return Rs.y(e,t)},Y:function(e,t,n,s){const i=hM(e,s),l=i>0?i:1-i;if(t==="YY"){const u=l%100;return ft(u,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):ft(l,t.length)},R:function(e,t){const n=dM(e);return ft(n,t.length)},u:function(e,t){const n=e.getFullYear();return ft(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return ft(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return ft(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return Rs.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return ft(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const i=SB(e,s);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ft(i,t.length)},I:function(e,t,n){const s=xB(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):ft(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Rs.d(e,t)},D:function(e,t,n){const s=bB(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):ft(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return ft(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return ft(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),i=s===0?7:s;switch(t){case"i":return String(i);case"ii":return ft(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let i;switch(s===12?i=Ti.noon:s===0?i=Ti.midnight:i=s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let i;switch(s>=17?i=Ti.evening:s>=12?i=Ti.afternoon:s>=4?i=Ti.morning:i=Ti.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return Rs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Rs.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):ft(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):ft(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Rs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Rs.s(e,t)},S:function(e,t){return Rs.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return qS(s);case"XXXX":case"XX":return ba(s);default:return ba(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return qS(s);case"xxxx":case"xx":return ba(s);default:return ba(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+IS(s,":");default:return"GMT"+ba(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+IS(s,":");default:return"GMT"+ba(s,":")}},t:function(e,t,n){const s=Math.trunc(e.getTime()/1e3);return ft(s,t.length)},T:function(e,t,n){const s=e.getTime();return ft(s,t.length)}};function IS(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=Math.trunc(s/60),l=s%60;return l===0?n+String(i):n+String(i)+t+ft(l,2)}function qS(e,t){return e%60===0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):ba(e,t)}function ba(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=ft(Math.trunc(s/60),2),l=ft(s%60,2);return n+i+t+l}const GS=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},mM=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},TB=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],i=n[2];if(!i)return GS(e,t);let l;switch(s){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",GS(s,t)).replace("{{time}}",mM(i,t))},EB={p:mM,P:TB},CB=/^D+$/,MB=/^Y+$/,_B=["D","DD","YY","YYYY"];function AB(e){return CB.test(e)}function OB(e){return MB.test(e)}function NB(e,t,n){const s=DB(e,t,n);if(console.warn(s),_B.includes(e))throw new RangeError(s)}function DB(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const kB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jB=/^'([^]*?)'?$/,PB=/''/g,VB=/[a-zA-Z]/;function $S(e,t,n){const s=zf(),i=s.locale??vB,l=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,f=gr(e);if(!B6(f))throw new RangeError("Invalid time value");let h=t.match(RB).map(y=>{const v=y[0];if(v==="p"||v==="P"){const b=EB[v];return b(y,i.formatLong)}return y}).join("").match(kB).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const v=y[0];if(v==="'")return{isToken:!1,value:LB(y)};if(WS[v])return{isToken:!0,value:y};if(v.match(VB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(h=i.localize.preprocessor(f,h));const m={firstWeekContainsDate:l,weekStartsOn:u,locale:i};return h.map(y=>{if(!y.isToken)return y.value;const v=y.value;(OB(v)||AB(v))&&NB(v,t,String(e));const b=WS[v[0]];return b(f,v,i.localize,m)}).join("")}function LB(e){const t=e.match(jB);return t?t[1].replace(PB,"'"):e}var BB=Symbol.for("react.lazy"),gf=xf[" use ".trim().toString()];function zB(e){return typeof e=="object"&&e!==null&&"then"in e}function pM(e){return e!=null&&typeof e=="object"&&"$typeof"in e&&e.$typeof===BB&&"_payload"in e&&zB(e._payload)}function yM(e){const t=UB(e),n=x.forwardRef((s,i)=>{let{children:l,...u}=s;pM(l)&&typeof gf=="function"&&(l=gf(l._payload));const f=x.Children.toArray(l),h=f.find(HB);if(h){const m=h.props.children,y=f.map(v=>v===h?x.Children.count(m)>1?x.Children.only(null):x.isValidElement(m)?m.props.children:null:v);return g.jsx(t,{...u,ref:i,children:x.isValidElement(m)?x.cloneElement(m,void 0,y):null})}return g.jsx(t,{...u,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var gM=yM("Slot");function UB(e){const t=x.forwardRef((n,s)=>{let{children:i,...l}=n;if(pM(i)&&typeof gf=="function"&&(i=gf(i._payload)),x.isValidElement(i)){const u=WB(i),f=YB(l,i.props);return i.type!==x.Fragment&&(f.ref=s?Qp(s,u):u),x.cloneElement(i,f)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FB=Symbol("radix.slottable");function HB(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FB}function YB(e,t){const n={...t};for(const s in t){const i=e[s],l=t[s];/^on[A-Z]/.test(s)?i&&l?n[s]=(...f)=>{const h=l(...f);return i(...f),h}:i&&(n[s]=i):s==="style"?n[s]={...i,...l}:s==="className"&&(n[s]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function WB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Up=ny("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),rg=x.forwardRef(({className:e,variant:t,size:n,asChild:s=!1,...i},l)=>{const u=s?gM:"button";return g.jsx(u,{className:Me(Up({variant:t,size:n,className:e})),ref:l,...i})});rg.displayName="Button";function IB(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const qB={},Sl={};function Aa(e,t){try{const s=(qB[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return s in Sl?Sl[s]:ZS(s,s.split(":"))}catch{if(e in Sl)return Sl[e];const n=e?.match(GB);return n?ZS(e,n.slice(1)):NaN}}const GB=/([+-]\d\d):?(\d\d)?/;function ZS(e,t){const n=+(t[0]||0),s=+(t[1]||0),i=+(t[2]||0)/60;return Sl[e]=n*60+s>0?n*60+s+i:n*60-s-i}class Or extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Aa(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),vM(this),Fp(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Or(...n,t):new Or(Date.now(),t)}withTimeZone(t){return new Or(+this,t)}getTimezoneOffset(){const t=-Aa(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Fp(this),+this}[Symbol.for("constructDateFrom")](t){return new Or(+new Date(t),this.timeZone)}}const XS=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!XS.test(e))return;const t=e.replace(XS,"$1UTC");Or.prototype[t]&&(e.startsWith("get")?Or.prototype[e]=function(){return this.internal[t]()}:(Or.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),$B(this),+this},Or.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Fp(this),+this}))});function Fp(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Aa(e.timeZone,e)*60))}function $B(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),vM(e)}function vM(e){const t=Aa(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),s=new Date(+e);s.setUTCHours(s.getUTCHours()-1);const i=-new Date(+e).getTimezoneOffset(),l=-new Date(+s).getTimezoneOffset(),u=i-l,f=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();u&&f&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+u);const h=i-n;h&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+h);const m=new Date(+e);m.setUTCSeconds(0);const y=i>0?m.getSeconds():(m.getSeconds()-60)%60,v=Math.round(-(Aa(e.timeZone,e)*60))%60;(v||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+v),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+v+y));const b=Aa(e.timeZone,e),S=b>0?Math.floor(b):Math.ceil(b),T=-new Date(+e).getTimezoneOffset()-S,C=S!==n,N=T-h;if(C&&N){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+N);const _=Aa(e.timeZone,e),O=_>0?Math.floor(_):Math.ceil(_),k=S-O;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class an extends Or{static tz(t,...n){return n.length?new an(...n,t):new an(Date.now(),t)}toISOString(){const[t,n,s]=this.tzComponents(),i=`${t}${n}:${s}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,s,i]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${s} ${n} ${i}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,s,i]=this.tzComponents();return`${t} GMT${n}${s}${i} (${IB(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",s=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),i=String(Math.abs(t)%60).padStart(2,"0");return[n,s,i]}withTimeZone(t){return new an(+this,t)}[Symbol.for("constructDateFrom")](t){return new an(+new Date(t),this.timeZone)}}const bM=6048e5,ZB=864e5,KS=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&KS in e?e[KS](t):e instanceof Date?new e.constructor(t):new Date(t)}function yt(e,t){return Ut(t||e,e)}function xM(e,t,n){const s=yt(e,n?.in);return isNaN(t)?Ut(e,NaN):(t&&s.setDate(s.getDate()+t),s)}function wM(e,t,n){const s=yt(e,n?.in);if(isNaN(t))return Ut(e,NaN);if(!t)return s;const i=s.getDate(),l=Ut(e,s.getTime());l.setMonth(s.getMonth()+t+1,0);const u=l.getDate();return i>=u?l:(s.setFullYear(l.getFullYear(),l.getMonth(),i),s)}let XB={};function ic(){return XB}function Zi(e,t){const n=ic(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=yt(e,t?.in),l=i.getDay(),u=(l=l.getTime()?s+1:n.getTime()>=f.getTime()?s:s-1}function QS(e){const t=yt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function io(e,...t){const n=Ut.bind(null,t.find(s=>typeof s=="object"));return t.map(n)}function $l(e,t){const n=yt(e,t?.in);return n.setHours(0,0,0,0),n}function sg(e,t,n){const[s,i]=io(n?.in,e,t),l=$l(s),u=$l(i),f=+l-QS(l),h=+u-QS(u);return Math.round((f-h)/ZB)}function KB(e,t){const n=SM(e,t),s=Ut(e,0);return s.setFullYear(n,0,4),s.setHours(0,0,0,0),Gl(s)}function QB(e,t,n){return xM(e,t*7,n)}function JB(e,t,n){return wM(e,t*12,n)}function ez(e,t){let n,s=t?.in;return e.forEach(i=>{!s&&typeof i=="object"&&(s=Ut.bind(null,i));const l=yt(i,s);(!n||n{!s&&typeof i=="object"&&(s=Ut.bind(null,i));const l=yt(i,s);(!n||n>l||isNaN(+l))&&(n=l)}),Ut(s,n||NaN)}function nz(e,t,n){const[s,i]=io(n?.in,e,t);return+$l(s)==+$l(i)}function TM(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function rz(e){return!(!TM(e)&&typeof e!="number"||isNaN(+yt(e)))}function EM(e,t,n){const[s,i]=io(n?.in,e,t),l=s.getFullYear()-i.getFullYear(),u=s.getMonth()-i.getMonth();return l*12+u}function sz(e,t){const n=yt(e,t?.in),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function CM(e,t){const[n,s]=io(e,t.start,t.end);return{start:n,end:s}}function az(e,t){const{start:n,end:s}=CM(t?.in,e);let i=+n>+s;const l=i?+n:+s,u=i?s:n;u.setHours(0,0,0,0),u.setDate(1);let f=1;const h=[];for(;+u<=l;)h.push(Ut(n,u)),u.setMonth(u.getMonth()+f);return i?h.reverse():h}function iz(e,t){const n=yt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function oz(e,t){const n=yt(e,t?.in),s=n.getFullYear();return n.setFullYear(s+1,0,0),n.setHours(23,59,59,999),n}function MM(e,t){const n=yt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function lz(e,t){const{start:n,end:s}=CM(t?.in,e);let i=+n>+s;const l=i?+n:+s,u=i?s:n;u.setHours(0,0,0,0),u.setMonth(0,1);let f=1;const h=[];for(;+u<=l;)h.push(Ut(n,u)),u.setFullYear(u.getFullYear()+f);return i?h.reverse():h}function _M(e,t){const n=ic(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=yt(e,t?.in),l=i.getDay(),u=(l{let s;const i=uz[e];return typeof i=="string"?s=i:t===1?s=i.one:s=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Lm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},hz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pz={date:Lm({formats:dz,defaultWidth:"full"}),time:Lm({formats:hz,defaultWidth:"full"}),dateTime:Lm({formats:mz,defaultWidth:"full"})},yz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gz=(e,t,n,s)=>yz[e];function vl(e){return(t,n)=>{const s=n?.context?String(n.context):"standalone";let i;if(s==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,f=n?.width?String(n.width):u;i=e.formattingValues[f]||e.formattingValues[u]}else{const u=e.defaultWidth,f=n?.width?String(n.width):e.defaultWidth;i=e.values[f]||e.values[u]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const vz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},wz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Sz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Tz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ez=(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Cz={ordinalNumber:Ez,era:vl({values:vz,defaultWidth:"wide"}),quarter:vl({values:bz,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vl({values:xz,defaultWidth:"wide"}),day:vl({values:wz,defaultWidth:"wide"}),dayPeriod:vl({values:Sz,defaultWidth:"wide",formattingValues:Tz,defaultFormattingWidth:"wide"})};function bl(e){return(t,n={})=>{const s=n.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const u=l[0],f=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(f)?_z(f,v=>v.test(u)):Mz(f,v=>v.test(u));let m;m=e.valueCallback?e.valueCallback(h):h,m=n.valueCallback?n.valueCallback(m):m;const y=t.slice(u.length);return{value:m,rest:y}}}function Mz(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function _z(e,t){for(let n=0;n{const s=t.match(e.matchPattern);if(!s)return null;const i=s[0],l=t.match(e.parsePattern);if(!l)return null;let u=e.valueCallback?e.valueCallback(l[0]):l[0];u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(i.length);return{value:u,rest:f}}}const Oz=/^(\d+)(th|st|nd|rd)?/i,Nz=/\d+/i,Dz={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kz={any:[/^b/i,/^(a|c)/i]},Rz={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},jz={any:[/1/i,/2/i,/3/i,/4/i]},Pz={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Lz={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bz={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zz={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Uz={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Fz={ordinalNumber:Az({matchPattern:Oz,parsePattern:Nz,valueCallback:e=>parseInt(e,10)}),era:bl({matchPatterns:Dz,defaultMatchWidth:"wide",parsePatterns:kz,defaultParseWidth:"any"}),quarter:bl({matchPatterns:Rz,defaultMatchWidth:"wide",parsePatterns:jz,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bl({matchPatterns:Pz,defaultMatchWidth:"wide",parsePatterns:Vz,defaultParseWidth:"any"}),day:bl({matchPatterns:Lz,defaultMatchWidth:"wide",parsePatterns:Bz,defaultParseWidth:"any"}),dayPeriod:bl({matchPatterns:zz,defaultMatchWidth:"any",parsePatterns:Uz,defaultParseWidth:"any"})},Ri={code:"en-US",formatDistance:fz,formatLong:pz,formatRelative:gz,localize:Cz,match:Fz,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Hz(e,t){const n=yt(e,t?.in);return sg(n,MM(n))+1}function ag(e,t){const n=yt(e,t?.in),s=+Gl(n)-+KB(n);return Math.round(s/bM)+1}function AM(e,t){const n=yt(e,t?.in),s=n.getFullYear(),i=ic(),l=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=Ut(t?.in||e,0);u.setFullYear(s+1,0,l),u.setHours(0,0,0,0);const f=Zi(u,t),h=Ut(t?.in||e,0);h.setFullYear(s,0,l),h.setHours(0,0,0,0);const m=Zi(h,t);return+n>=+f?s+1:+n>=+m?s:s-1}function Yz(e,t){const n=ic(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=AM(e,t),l=Ut(t?.in||e,0);return l.setFullYear(i,0,s),l.setHours(0,0,0,0),Zi(l,t)}function ig(e,t){const n=yt(e,t?.in),s=+Zi(n,t)-+Yz(n,t);return Math.round(s/bM)+1}function dt(e,t){const n=e<0?"-":"",s=Math.abs(e).toString().padStart(t,"0");return n+s}const js={y(e,t){const n=e.getFullYear(),s=n>0?n:1-n;return dt(t==="yy"?s%100:s,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):dt(n+1,2)},d(e,t){return dt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return dt(e.getHours()%12||12,t.length)},H(e,t){return dt(e.getHours(),t.length)},m(e,t){return dt(e.getMinutes(),t.length)},s(e,t){return dt(e.getSeconds(),t.length)},S(e,t){const n=t.length,s=e.getMilliseconds(),i=Math.trunc(s*Math.pow(10,n-3));return dt(i,t.length)}},Ei={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},JS={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const s=e.getFullYear(),i=s>0?s:1-s;return n.ordinalNumber(i,{unit:"year"})}return js.y(e,t)},Y:function(e,t,n,s){const i=AM(e,s),l=i>0?i:1-i;if(t==="YY"){const u=l%100;return dt(u,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):dt(l,t.length)},R:function(e,t){const n=SM(e);return dt(n,t.length)},u:function(e,t){const n=e.getFullYear();return dt(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return dt(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return dt(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return js.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return dt(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const i=ig(e,s);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):dt(i,t.length)},I:function(e,t,n){const s=ag(e);return t==="Io"?n.ordinalNumber(s,{unit:"week"}):dt(s,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):js.d(e,t)},D:function(e,t,n){const s=Hz(e);return t==="Do"?n.ordinalNumber(s,{unit:"dayOfYear"}):dt(s,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return dt(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const i=e.getDay(),l=(i-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return dt(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),i=s===0?7:s;switch(t){case"i":return String(i);case"ii":return dt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let i;switch(s===12?i=Ei.noon:s===0?i=Ei.midnight:i=s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let i;switch(s>=17?i=Ei.evening:s>=12?i=Ei.afternoon:s>=4?i=Ei.morning:i=Ei.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let s=e.getHours()%12;return s===0&&(s=12),n.ordinalNumber(s,{unit:"hour"})}return js.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):js.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return t==="Ko"?n.ordinalNumber(s,{unit:"hour"}):dt(s,t.length)},k:function(e,t,n){let s=e.getHours();return s===0&&(s=24),t==="ko"?n.ordinalNumber(s,{unit:"hour"}):dt(s,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):js.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):js.s(e,t)},S:function(e,t){return js.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return t1(s);case"XXXX":case"XX":return xa(s);default:return xa(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return t1(s);case"xxxx":case"xx":return xa(s);default:return xa(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+e1(s,":");default:return"GMT"+xa(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+e1(s,":");default:return"GMT"+xa(s,":")}},t:function(e,t,n){const s=Math.trunc(+e/1e3);return dt(s,t.length)},T:function(e,t,n){return dt(+e,t.length)}};function e1(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=Math.trunc(s/60),l=s%60;return l===0?n+String(i):n+String(i)+t+dt(l,2)}function t1(e,t){return e%60===0?(e>0?"-":"+")+dt(Math.abs(e)/60,2):xa(e,t)}function xa(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=dt(Math.trunc(s/60),2),l=dt(s%60,2);return n+i+t+l}const n1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},OM=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Wz=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],s=n[1],i=n[2];if(!i)return n1(e,t);let l;switch(s){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",n1(s,t)).replace("{{time}}",OM(i,t))},Iz={p:OM,P:Wz},qz=/^D+$/,Gz=/^Y+$/,$z=["D","DD","YY","YYYY"];function Zz(e){return qz.test(e)}function Xz(e){return Gz.test(e)}function Kz(e,t,n){const s=Qz(e,t,n);if(console.warn(s),$z.includes(e))throw new RangeError(s)}function Qz(e,t,n){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Jz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tU=/^'([^]*?)'?$/,nU=/''/g,rU=/[a-zA-Z]/;function Tl(e,t,n){const s=ic(),i=n?.locale??s.locale??Ri,l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,f=yt(e,n?.in);if(!rz(f))throw new RangeError("Invalid time value");let h=t.match(eU).map(y=>{const v=y[0];if(v==="p"||v==="P"){const b=Iz[v];return b(y,i.formatLong)}return y}).join("").match(Jz).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const v=y[0];if(v==="'")return{isToken:!1,value:sU(y)};if(JS[v])return{isToken:!0,value:y};if(v.match(rU))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:y}});i.localize.preprocessor&&(h=i.localize.preprocessor(f,h));const m={firstWeekContainsDate:l,weekStartsOn:u,locale:i};return h.map(y=>{if(!y.isToken)return y.value;const v=y.value;(!n?.useAdditionalWeekYearTokens&&Xz(v)||!n?.useAdditionalDayOfYearTokens&&Zz(v))&&Kz(v,t,String(e));const b=JS[v[0]];return b(f,v,i.localize,m)}).join("")}function sU(e){const t=e.match(tU);return t?t[1].replace(nU,"'"):e}function aU(e,t){const n=yt(e,t?.in),s=n.getFullYear(),i=n.getMonth(),l=Ut(n,0);return l.setFullYear(s,i+1,0),l.setHours(0,0,0,0),l.getDate()}function iU(e,t){return yt(e,t?.in).getMonth()}function oU(e,t){return yt(e,t?.in).getFullYear()}function lU(e,t){return+yt(e)>+yt(t)}function cU(e,t){return+yt(e)<+yt(t)}function uU(e,t,n){const[s,i]=io(n?.in,e,t);return s.getFullYear()===i.getFullYear()&&s.getMonth()===i.getMonth()}function fU(e,t,n){const[s,i]=io(n?.in,e,t);return s.getFullYear()===i.getFullYear()}function dU(e,t,n){const s=yt(e,n?.in),i=s.getFullYear(),l=s.getDate(),u=Ut(e,0);u.setFullYear(i,t,15),u.setHours(0,0,0,0);const f=aU(u);return s.setMonth(t,Math.min(l,f)),s}function hU(e,t,n){const s=yt(e,n?.in);return isNaN(+s)?Ut(e,NaN):(s.setFullYear(t),s)}const r1=5,mU=4;function pU(e,t){const n=t.startOfMonth(e),s=n.getDay()>0?n.getDay():7,i=t.addDays(e,-s+1),l=t.addDays(i,r1*7-1);return t.getMonth(e)===t.getMonth(l)?r1:mU}function NM(e,t){const n=t.startOfMonth(e),s=n.getDay();return s===1?n:s===0?t.addDays(n,-6):t.addDays(n,-1*(s-1))}function yU(e,t){const n=NM(e,t),s=pU(e,t);return t.addDays(n,s*7-1)}const DM={...Ri,labels:{labelDayButton:(e,t,n,s)=>{let i;s&&typeof s.format=="function"?i=s.format.bind(s):i=(u,f)=>Tl(u,f,{locale:Ri,...n});let l=i(e,"PPPP");return t.today&&(l=`Today, ${l}`),t.selected&&(l=`${l}, selected`),l},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let s;return n&&typeof n.format=="function"?s=n.format.bind(n):s=(i,l)=>Tl(i,l,{locale:Ri,...t}),s(e,"LLLL yyyy")},labelGridcell:(e,t,n,s)=>{let i;s&&typeof s.format=="function"?i=s.format.bind(s):i=(u,f)=>Tl(u,f,{locale:Ri,...n});let l=i(e,"PPPP");return t?.today&&(l=`Today, ${l}`),l},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let s;return n&&typeof n.format=="function"?s=n.format.bind(n):s=(i,l)=>Tl(i,l,{locale:Ri,...t}),s(e,"cccc")}}};class Vn{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?an.tz(this.options.timeZone):new this.Date,this.newDate=(s,i,l)=>this.overrides?.newDate?this.overrides.newDate(s,i,l):this.options.timeZone?new an(s,i,l,this.options.timeZone):new Date(s,i,l),this.addDays=(s,i)=>this.overrides?.addDays?this.overrides.addDays(s,i):xM(s,i),this.addMonths=(s,i)=>this.overrides?.addMonths?this.overrides.addMonths(s,i):wM(s,i),this.addWeeks=(s,i)=>this.overrides?.addWeeks?this.overrides.addWeeks(s,i):QB(s,i),this.addYears=(s,i)=>this.overrides?.addYears?this.overrides.addYears(s,i):JB(s,i),this.differenceInCalendarDays=(s,i)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(s,i):sg(s,i),this.differenceInCalendarMonths=(s,i)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(s,i):EM(s,i),this.eachMonthOfInterval=s=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(s):az(s),this.eachYearOfInterval=s=>{const i=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(s):lz(s),l=new Set(i.map(f=>this.getYear(f)));if(l.size===i.length)return i;const u=[];return l.forEach(f=>{u.push(new Date(f,0,1))}),u},this.endOfBroadcastWeek=s=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(s):yU(s,this),this.endOfISOWeek=s=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(s):cz(s),this.endOfMonth=s=>this.overrides?.endOfMonth?this.overrides.endOfMonth(s):sz(s),this.endOfWeek=(s,i)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(s,i):_M(s,this.options),this.endOfYear=s=>this.overrides?.endOfYear?this.overrides.endOfYear(s):oz(s),this.format=(s,i,l)=>{const u=this.overrides?.format?this.overrides.format(s,i,this.options):Tl(s,i,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(u):u},this.getISOWeek=s=>this.overrides?.getISOWeek?this.overrides.getISOWeek(s):ag(s),this.getMonth=(s,i)=>this.overrides?.getMonth?this.overrides.getMonth(s,this.options):iU(s,this.options),this.getYear=(s,i)=>this.overrides?.getYear?this.overrides.getYear(s,this.options):oU(s,this.options),this.getWeek=(s,i)=>this.overrides?.getWeek?this.overrides.getWeek(s,this.options):ig(s,this.options),this.isAfter=(s,i)=>this.overrides?.isAfter?this.overrides.isAfter(s,i):lU(s,i),this.isBefore=(s,i)=>this.overrides?.isBefore?this.overrides.isBefore(s,i):cU(s,i),this.isDate=s=>this.overrides?.isDate?this.overrides.isDate(s):TM(s),this.isSameDay=(s,i)=>this.overrides?.isSameDay?this.overrides.isSameDay(s,i):nz(s,i),this.isSameMonth=(s,i)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(s,i):uU(s,i),this.isSameYear=(s,i)=>this.overrides?.isSameYear?this.overrides.isSameYear(s,i):fU(s,i),this.max=s=>this.overrides?.max?this.overrides.max(s):ez(s),this.min=s=>this.overrides?.min?this.overrides.min(s):tz(s),this.setMonth=(s,i)=>this.overrides?.setMonth?this.overrides.setMonth(s,i):dU(s,i),this.setYear=(s,i)=>this.overrides?.setYear?this.overrides.setYear(s,i):hU(s,i),this.startOfBroadcastWeek=(s,i)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(s,this):NM(s,this),this.startOfDay=s=>this.overrides?.startOfDay?this.overrides.startOfDay(s):$l(s),this.startOfISOWeek=s=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(s):Gl(s),this.startOfMonth=s=>this.overrides?.startOfMonth?this.overrides.startOfMonth(s):iz(s),this.startOfWeek=(s,i)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(s,this.options):Zi(s,this.options),this.startOfYear=s=>this.overrides?.startOfYear?this.overrides.startOfYear(s):MM(s),this.options={locale:DM,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),s={};for(let i=0;i<10;i++)s[i.toString()]=n.format(i);return s}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,s=>n[s]||s)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Vn.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:s,numerals:i}=this.options,l=n?.code;if(l&&Vn.yearFirstLocales.has(l))try{return new Intl.DateTimeFormat(l,{month:"long",year:"numeric",timeZone:s,numberingSystem:i}).format(t)}catch{}const u=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,u)}}Vn.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Pr=new Vn;class kM{constructor(t,n,s=Pr){this.date=t,this.displayMonth=n,this.outside=!!(n&&!s.isSameMonth(t,n)),this.dateLib=s,this.isoDate=s.format(t,"yyyy-MM-dd"),this.displayMonthId=s.format(n,"yyyy-MM"),this.dateMonthId=s.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class gU{constructor(t,n){this.date=t,this.weeks=n}}class vU{constructor(t,n){this.days=n,this.weekNumber=t}}function bU(e){return X.createElement("button",{...e})}function xU(e){return X.createElement("span",{...e})}function wU(e){const{size:t=24,orientation:n="left",className:s}=e;return X.createElement("svg",{className:s,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&X.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&X.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&X.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&X.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function SU(e){const{day:t,modifiers:n,...s}=e;return X.createElement("td",{...s})}function TU(e){const{day:t,modifiers:n,...s}=e,i=X.useRef(null);return X.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),X.createElement("button",{ref:i,...s})}var Ne;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ne||(Ne={}));var Ct;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Ct||(Ct={}));var fr;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(fr||(fr={}));var Nn;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Nn||(Nn={}));function EU(e){const{options:t,className:n,components:s,classNames:i,...l}=e,u=[i[Ne.Dropdown],n].join(" "),f=t?.find(({value:h})=>h===l.value);return X.createElement("span",{"data-disabled":l.disabled,className:i[Ne.DropdownRoot]},X.createElement(s.Select,{className:u,...l},t?.map(({value:h,label:m,disabled:y})=>X.createElement(s.Option,{key:h,value:h,disabled:y},m))),X.createElement("span",{className:i[Ne.CaptionLabel],"aria-hidden":!0},f?.label,X.createElement(s.Chevron,{orientation:"down",size:18,className:i[Ne.Chevron]})))}function CU(e){return X.createElement("div",{...e})}function MU(e){return X.createElement("div",{...e})}function _U(e){const{calendarMonth:t,displayIndex:n,...s}=e;return X.createElement("div",{...s},e.children)}function AU(e){const{calendarMonth:t,displayIndex:n,...s}=e;return X.createElement("div",{...s})}function OU(e){return X.createElement("table",{...e})}function NU(e){return X.createElement("div",{...e})}const RM=x.createContext(void 0);function oc(){const e=x.useContext(RM);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function DU(e){const{components:t}=oc();return X.createElement(t.Dropdown,{...e})}function kU(e){const{onPreviousClick:t,onNextClick:n,previousMonth:s,nextMonth:i,...l}=e,{components:u,classNames:f,labels:{labelPrevious:h,labelNext:m}}=oc(),y=x.useCallback(b=>{i&&n?.(b)},[i,n]),v=x.useCallback(b=>{s&&t?.(b)},[s,t]);return X.createElement("nav",{...l},X.createElement(u.PreviousMonthButton,{type:"button",className:f[Ne.PreviousMonthButton],tabIndex:s?void 0:-1,"aria-disabled":s?void 0:!0,"aria-label":h(s),onClick:v},X.createElement(u.Chevron,{disabled:s?void 0:!0,className:f[Ne.Chevron],orientation:"left"})),X.createElement(u.NextMonthButton,{type:"button",className:f[Ne.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":m(i),onClick:y},X.createElement(u.Chevron,{disabled:i?void 0:!0,orientation:"right",className:f[Ne.Chevron]})))}function RU(e){const{components:t}=oc();return X.createElement(t.Button,{...e})}function jU(e){return X.createElement("option",{...e})}function PU(e){const{components:t}=oc();return X.createElement(t.Button,{...e})}function VU(e){const{rootRef:t,...n}=e;return X.createElement("div",{...n,ref:t})}function LU(e){return X.createElement("select",{...e})}function BU(e){const{week:t,...n}=e;return X.createElement("tr",{...n})}function zU(e){return X.createElement("th",{...e})}function UU(e){return X.createElement("thead",{"aria-hidden":!0},X.createElement("tr",{...e}))}function FU(e){const{week:t,...n}=e;return X.createElement("th",{...n})}function HU(e){return X.createElement("th",{...e})}function YU(e){return X.createElement("tbody",{...e})}function WU(e){const{components:t}=oc();return X.createElement(t.Dropdown,{...e})}const IU=Object.freeze(Object.defineProperty({__proto__:null,Button:bU,CaptionLabel:xU,Chevron:wU,Day:SU,DayButton:TU,Dropdown:EU,DropdownNav:CU,Footer:MU,Month:_U,MonthCaption:AU,MonthGrid:OU,Months:NU,MonthsDropdown:DU,Nav:kU,NextMonthButton:RU,Option:jU,PreviousMonthButton:PU,Root:VU,Select:LU,Week:BU,WeekNumber:FU,WeekNumberHeader:HU,Weekday:zU,Weekdays:UU,Weeks:YU,YearsDropdown:WU},Symbol.toStringTag,{value:"Module"}));function Jr(e,t,n=!1,s=Pr){let{from:i,to:l}=e;const{differenceInCalendarDays:u,isSameDay:f}=s;return i&&l?(u(l,i)<0&&([i,l]=[l,i]),u(t,i)>=(n?1:0)&&u(l,t)>=(n?1:0)):!n&&l?f(l,t):!n&&i?f(i,t):!1}function og(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Uf(e){return!!(e&&typeof e=="object"&&"from"in e)}function lg(e){return!!(e&&typeof e=="object"&&"after"in e)}function cg(e){return!!(e&&typeof e=="object"&&"before"in e)}function jM(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function PM(e,t){return Array.isArray(e)&&e.every(t.isDate)}function es(e,t,n=Pr){const s=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:l,isAfter:u}=n;return s.some(f=>{if(typeof f=="boolean")return f;if(n.isDate(f))return i(e,f);if(PM(f,n))return f.some(h=>i(e,h));if(Uf(f))return Jr(f,e,!1,n);if(jM(f))return Array.isArray(f.dayOfWeek)?f.dayOfWeek.includes(e.getDay()):f.dayOfWeek===e.getDay();if(og(f)){const h=l(f.before,e),m=l(f.after,e),y=h>0,v=m<0;return u(f.before,f.after)?v&&y:y||v}return lg(f)?l(e,f.after)>0:cg(f)?l(f.before,e)>0:typeof f=="function"?f(e):!1})}function qU(e,t,n,s,i){const{disabled:l,hidden:u,modifiers:f,showOutsideDays:h,broadcastCalendar:m,today:y=i.today()}=t,{isSameDay:v,isSameMonth:b,startOfMonth:S,isBefore:M,endOfMonth:T,isAfter:C}=i,N=n&&S(n),_=s&&T(s),O={[Ct.focused]:[],[Ct.outside]:[],[Ct.disabled]:[],[Ct.hidden]:[],[Ct.today]:[]},k={};for(const D of e){const{date:V,displayMonth:F}=D,B=!!(F&&!b(V,F)),te=!!(N&&M(V,N)),re=!!(_&&C(V,_)),ye=!!(l&&es(V,l,i)),ne=!!(u&&es(V,u,i))||te||re||!m&&!h&&B||m&&h===!1&&B,ce=v(V,y);B&&O.outside.push(D),ye&&O.disabled.push(D),ne&&O.hidden.push(D),ce&&O.today.push(D),f&&Object.keys(f).forEach(J=>{const fe=f?.[J];fe&&es(V,fe,i)&&(k[J]?k[J].push(D):k[J]=[D])})}return D=>{const V={[Ct.focused]:!1,[Ct.disabled]:!1,[Ct.hidden]:!1,[Ct.outside]:!1,[Ct.today]:!1},F={};for(const B in O){const te=O[B];V[B]=te.some(re=>re===D)}for(const B in k)F[B]=k[B].some(te=>te===D);return{...V,...F}}}function GU(e,t,n={}){return Object.entries(e).filter(([,i])=>i===!0).reduce((i,[l])=>(n[l]?i.push(n[l]):t[Ct[l]]?i.push(t[Ct[l]]):t[fr[l]]&&i.push(t[fr[l]]),i),[t[Ne.Day]])}function $U(e){return{...IU,...e}}function ZU(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,s])=>{n.startsWith("data-")&&(t[n]=s)}),t}function ug(){const e={};for(const t in Ne)e[Ne[t]]=`rdp-${Ne[t]}`;for(const t in Ct)e[Ct[t]]=`rdp-${Ct[t]}`;for(const t in fr)e[fr[t]]=`rdp-${fr[t]}`;for(const t in Nn)e[Nn[t]]=`rdp-${Nn[t]}`;return e}function VM(e,t,n){return(n??new Vn(t)).formatMonthYear(e)}const XU=VM;function KU(e,t,n){return(n??new Vn(t)).format(e,"d")}function QU(e,t=Pr){return t.format(e,"LLLL")}function JU(e,t,n){return(n??new Vn(t)).format(e,"cccccc")}function eF(e,t=Pr){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function tF(){return""}function LM(e,t=Pr){return t.format(e,"yyyy")}const nF=LM,rF=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:VM,formatDay:KU,formatMonthCaption:XU,formatMonthDropdown:QU,formatWeekNumber:eF,formatWeekNumberHeader:tF,formatWeekdayName:JU,formatYearCaption:nF,formatYearDropdown:LM},Symbol.toStringTag,{value:"Module"}));function sF(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...rF,...e}}function fg(e,t,n,s){let i=(s??new Vn(n)).format(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}const aF=fg;function dg(e,t,n){return(n??new Vn(t)).formatMonthYear(e)}const iF=dg;function BM(e,t,n,s){let i=(s??new Vn(n)).format(e,"PPPP");return t?.today&&(i=`Today, ${i}`),i}function zM(e){return"Choose the Month"}function UM(){return""}const oF="Go to the Next Month";function FM(e,t){return oF}function HM(e){return"Go to the Previous Month"}function YM(e,t,n){return(n??new Vn(t)).format(e,"cccc")}function WM(e,t){return`Week ${e}`}function IM(e){return"Week Number"}function qM(e){return"Choose the Year"}const lF=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:iF,labelDay:aF,labelDayButton:fg,labelGrid:dg,labelGridcell:BM,labelMonthDropdown:zM,labelNav:UM,labelNext:FM,labelPrevious:HM,labelWeekNumber:WM,labelWeekNumberHeader:IM,labelWeekday:YM,labelYearDropdown:qM},Symbol.toStringTag,{value:"Module"})),ar=(e,t,n)=>t||(n?typeof n=="function"?n:(...s)=>n:e);function cF(e,t){const n=t.locale?.labels??{};return{...lF,...e??{},labelDayButton:ar(fg,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:ar(zM,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:ar(FM,e?.labelNext,n.labelNext),labelPrevious:ar(HM,e?.labelPrevious,n.labelPrevious),labelWeekNumber:ar(WM,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:ar(qM,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:ar(dg,e?.labelGrid,n.labelGrid),labelGridcell:ar(BM,e?.labelGridcell,n.labelGridcell),labelNav:ar(UM,e?.labelNav,n.labelNav),labelWeekNumberHeader:ar(IM,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:ar(YM,e?.labelWeekday,n.labelWeekday)}}function uF(e,t,n,s,i){const{startOfMonth:l,startOfYear:u,endOfYear:f,eachMonthOfInterval:h,getMonth:m}=i;return h({start:u(e),end:f(e)}).map(b=>{const S=s.formatMonthDropdown(b,i),M=m(b),T=t&&bl(n)||!1;return{value:M,label:S,disabled:T}})}function fF(e,t={},n={}){let s={...t?.[Ne.Day]};return Object.entries(e).filter(([,i])=>i===!0).forEach(([i])=>{s={...s,...n?.[i]}}),s}function dF(e,t,n,s){const i=s??e.today(),l=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),u=[];for(let f=0;f<7;f++){const h=e.addDays(l,f);u.push(h)}return u}function hF(e,t,n,s,i=!1){if(!e||!t)return;const{startOfYear:l,endOfYear:u,eachYearOfInterval:f,getYear:h}=s,m=l(e),y=u(t),v=f({start:m,end:y});return i&&v.reverse(),v.map(b=>{const S=n.formatYearDropdown(b,s);return{value:h(b),label:S,disabled:!1}})}function mF(e,t={}){const{weekStartsOn:n,locale:s}=t,i=n??s?.options?.weekStartsOn??0,l=f=>{const h=typeof f=="number"||typeof f=="string"?new Date(f):f;return new an(h.getFullYear(),h.getMonth(),h.getDate(),12,0,0,e)},u=f=>{const h=l(f);return new Date(h.getFullYear(),h.getMonth(),h.getDate(),0,0,0,0)};return{today:()=>l(an.tz(e)),newDate:(f,h,m)=>new an(f,h,m,12,0,0,e),startOfDay:f=>l(f),startOfWeek:(f,h)=>{const m=l(f),y=h?.weekStartsOn??i,v=(m.getDay()-y+7)%7;return m.setDate(m.getDate()-v),m},startOfISOWeek:f=>{const h=l(f),m=(h.getDay()-1+7)%7;return h.setDate(h.getDate()-m),h},startOfMonth:f=>{const h=l(f);return h.setDate(1),h},startOfYear:f=>{const h=l(f);return h.setMonth(0,1),h},endOfWeek:(f,h)=>{const m=l(f),b=(((h?.weekStartsOn??i)+6)%7-m.getDay()+7)%7;return m.setDate(m.getDate()+b),m},endOfISOWeek:f=>{const h=l(f),m=(7-h.getDay())%7;return h.setDate(h.getDate()+m),h},endOfMonth:f=>{const h=l(f);return h.setMonth(h.getMonth()+1,0),h},endOfYear:f=>{const h=l(f);return h.setMonth(11,31),h},eachMonthOfInterval:f=>{const h=l(f.start),m=l(f.end),y=[],v=new an(h.getFullYear(),h.getMonth(),1,12,0,0,e),b=m.getFullYear()*12+m.getMonth();for(;v.getFullYear()*12+v.getMonth()<=b;)y.push(new an(v,e)),v.setMonth(v.getMonth()+1,1);return y},addDays:(f,h)=>{const m=l(f);return m.setDate(m.getDate()+h),m},addWeeks:(f,h)=>{const m=l(f);return m.setDate(m.getDate()+h*7),m},addMonths:(f,h)=>{const m=l(f);return m.setMonth(m.getMonth()+h),m},addYears:(f,h)=>{const m=l(f);return m.setFullYear(m.getFullYear()+h),m},eachYearOfInterval:f=>{const h=l(f.start),m=l(f.end),y=[],v=new an(h.getFullYear(),0,1,12,0,0,e);for(;v.getFullYear()<=m.getFullYear();)y.push(new an(v,e)),v.setFullYear(v.getFullYear()+1,0,1);return y},getWeek:(f,h)=>{const m=u(f);return ig(m,{weekStartsOn:h?.weekStartsOn??i,firstWeekContainsDate:h?.firstWeekContainsDate??s?.options?.firstWeekContainsDate??1})},getISOWeek:f=>{const h=u(f);return ag(h)},differenceInCalendarDays:(f,h)=>{const m=u(f),y=u(h);return sg(m,y)},differenceInCalendarMonths:(f,h)=>{const m=u(f),y=u(h);return EM(m,y)}}}const lc=e=>e instanceof HTMLElement?e:null,Bm=e=>[...e.querySelectorAll("[data-animated-month]")??[]],pF=e=>lc(e.querySelector("[data-animated-month]")),zm=e=>lc(e.querySelector("[data-animated-caption]")),Um=e=>lc(e.querySelector("[data-animated-weeks]")),yF=e=>lc(e.querySelector("[data-animated-nav]")),gF=e=>lc(e.querySelector("[data-animated-weekdays]"));function vF(e,t,{classNames:n,months:s,focused:i,dateLib:l}){const u=x.useRef(null),f=x.useRef(s),h=x.useRef(!1);x.useLayoutEffect(()=>{const m=f.current;if(f.current=s,!t||!e.current||!(e.current instanceof HTMLElement)||s.length===0||m.length===0||s.length!==m.length)return;const y=l.isSameMonth(s[0].date,m[0].date),v=l.isAfter(s[0].date,m[0].date),b=v?n[Nn.caption_after_enter]:n[Nn.caption_before_enter],S=v?n[Nn.weeks_after_enter]:n[Nn.weeks_before_enter],M=u.current,T=e.current.cloneNode(!0);if(T instanceof HTMLElement?(Bm(T).forEach(O=>{if(!(O instanceof HTMLElement))return;const k=pF(O);k&&O.contains(k)&&O.removeChild(k);const D=zm(O);D&&D.classList.remove(b);const V=Um(O);V&&V.classList.remove(S)}),u.current=T):u.current=null,h.current||y||i)return;const C=M instanceof HTMLElement?Bm(M):[],N=Bm(e.current);if(N?.every(_=>_ instanceof HTMLElement)&&C&&C.every(_=>_ instanceof HTMLElement)){h.current=!0,e.current.style.isolation="isolate";const _=yF(e.current);_&&(_.style.zIndex="1"),N.forEach((O,k)=>{const D=C[k];if(!D)return;O.style.position="relative",O.style.overflow="hidden";const V=zm(O);V&&V.classList.add(b);const F=Um(O);F&&F.classList.add(S);const B=()=>{h.current=!1,e.current&&(e.current.style.isolation=""),_&&(_.style.zIndex=""),V&&V.classList.remove(b),F&&F.classList.remove(S),O.style.position="",O.style.overflow="",O.contains(D)&&O.removeChild(D)};D.style.pointerEvents="none",D.style.position="absolute",D.style.overflow="hidden",D.setAttribute("aria-hidden","true");const te=gF(D);te&&(te.style.opacity="0");const re=zm(D);re&&(re.classList.add(v?n[Nn.caption_before_exit]:n[Nn.caption_after_exit]),re.addEventListener("animationend",B));const ye=Um(D);ye&&ye.classList.add(v?n[Nn.weeks_before_exit]:n[Nn.weeks_after_exit]),O.insertBefore(D,O.firstChild)})}})}function bF(e,t,n,s){const i=e[0],l=e[e.length-1],{ISOWeek:u,fixedWeeks:f,broadcastCalendar:h}=n??{},{addDays:m,differenceInCalendarDays:y,differenceInCalendarMonths:v,endOfBroadcastWeek:b,endOfISOWeek:S,endOfMonth:M,endOfWeek:T,isAfter:C,startOfBroadcastWeek:N,startOfISOWeek:_,startOfWeek:O}=s,k=h?N(i,s):u?_(i):O(i),D=h?b(l):u?S(M(l)):T(M(l)),V=t&&(h?b(t):u?S(t):T(t)),F=V&&C(D,V)?V:D,B=y(F,k),te=v(l,i)+1,re=[];for(let ce=0;ce<=B;ce++){const J=m(k,ce);re.push(J)}const ne=(h?35:42)*te;if(f&&re.length{const i=s.weeks.reduce((l,u)=>l.concat(u.days.slice()),t.slice());return n.concat(i.slice())},t.slice())}function wF(e,t,n,s){const{numberOfMonths:i=1}=n,l=[];for(let u=0;ut)break;l.push(f)}return l}function s1(e,t,n,s){const{month:i,defaultMonth:l,today:u=s.today(),numberOfMonths:f=1}=e;let h=i||l||u;const{differenceInCalendarMonths:m,addMonths:y,startOfMonth:v}=s;if(n&&m(n,h){const N=n.broadcastCalendar?v(C,s):n.ISOWeek?b(C):S(C),_=n.broadcastCalendar?l(C):n.ISOWeek?u(f(C)):h(f(C)),O=t.filter(F=>F>=N&&F<=_),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&O.length{const te=k-O.length;return B>_&&B<=i(_,te)});O.push(...F)}const D=O.reduce((F,B)=>{const te=n.ISOWeek?m(B):y(B),re=F.find(ne=>ne.weekNumber===te),ye=new kM(B,C,s);return re?re.days.push(ye):F.push(new vU(te,[ye])),F},[]),V=new gU(C,D);return T.push(V),T},[]);return n.reverseMonths?M.reverse():M}function TF(e,t){let{startMonth:n,endMonth:s}=e;const{startOfYear:i,startOfDay:l,startOfMonth:u,endOfMonth:f,addYears:h,endOfYear:m,newDate:y,today:v}=t,{fromYear:b,toYear:S,fromMonth:M,toMonth:T}=e;!n&&M&&(n=M),!n&&b&&(n=t.newDate(b,0,1)),!s&&T&&(s=T),!s&&S&&(s=y(S,11,31));const C=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=u(n):b?n=y(b,0,1):!n&&C&&(n=i(h(e.today??v(),-100))),s?s=f(s):S?s=y(S,11,31):!s&&C&&(s=m(e.today??v())),[n&&l(n),s&&l(s)]}function EF(e,t,n,s){if(n.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:l=1}=n,{startOfMonth:u,addMonths:f,differenceInCalendarMonths:h}=s,m=i?l:1,y=u(e);if(!t)return f(y,m);if(!(h(t,e)n.concat(s.weeks.slice()),t.slice())}function Ff(e,t){const[n,s]=x.useState(e);return[t===void 0?n:t,s]}function _F(e,t){const[n,s]=TF(e,t),{startOfMonth:i,endOfMonth:l}=t,u=s1(e,n,s,t),[f,h]=Ff(u,e.month?u:void 0);x.useEffect(()=>{const k=s1(e,n,s,t);h(k)},[e.timeZone]);const{months:m,weeks:y,days:v,previousMonth:b,nextMonth:S}=x.useMemo(()=>{const k=wF(f,s,{numberOfMonths:e.numberOfMonths},t),D=bF(k,e.endMonth?l(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),V=SF(k,D,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),F=MF(V),B=xF(V),te=CF(f,n,e,t),re=EF(f,s,e,t);return{months:V,weeks:F,days:B,previousMonth:te,nextMonth:re}},[t,f.getTime(),s?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:M,onMonthChange:T}=e,C=k=>y.some(D=>D.days.some(V=>V.isEqualTo(k))),N=k=>{if(M)return;let D=i(k);n&&Di(s)&&(D=i(s)),h(D),T?.(D)};return{months:m,weeks:y,days:v,navStart:n,navEnd:s,previousMonth:b,nextMonth:S,goToMonth:N,goToDay:k=>{C(k)||N(k.date)}}}var Mr;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Mr||(Mr={}));function a1(e){return!e[Ct.disabled]&&!e[Ct.hidden]&&!e[Ct.outside]}function AF(e,t,n,s){let i,l=-1;for(const u of e){const f=t(u);a1(f)&&(f[Ct.focused]&&la1(t(u)))),i}function OF(e,t,n,s,i,l,u){const{ISOWeek:f,broadcastCalendar:h}=l,{addDays:m,addMonths:y,addWeeks:v,addYears:b,endOfBroadcastWeek:S,endOfISOWeek:M,endOfWeek:T,max:C,min:N,startOfBroadcastWeek:_,startOfISOWeek:O,startOfWeek:k}=u;let V={day:m,week:v,month:y,year:b,startOfWeek:F=>h?_(F,u):f?O(F):k(F),endOfWeek:F=>h?S(F):f?M(F):T(F)}[e](n,t==="after"?1:-1);return t==="before"&&s?V=C([s,V]):t==="after"&&i&&(V=N([i,V])),V}function GM(e,t,n,s,i,l,u,f=0){if(f>365)return;const h=OF(e,t,n.date,s,i,l,u),m=!!(l.disabled&&es(h,l.disabled,u)),y=!!(l.hidden&&es(h,l.hidden,u)),v=h,b=new kM(h,v,u);return!m&&!y?b:GM(e,t,b,s,i,l,u,f+1)}function NF(e,t,n,s,i){const{autoFocus:l}=e,[u,f]=x.useState(),h=AF(t.days,n,s||(()=>!1),u),[m,y]=x.useState(l?h:void 0);return{isFocusTarget:T=>!!h?.isEqualTo(T),setFocused:y,focused:m,blur:()=>{f(m),y(void 0)},moveFocus:(T,C)=>{if(!m)return;const N=GM(T,C,m,t.navStart,t.navEnd,e,i);N&&(e.disableNavigation&&!t.days.some(O=>O.isEqualTo(N))||(t.goToDay(N),y(N)))}}}function DF(e,t){const{selected:n,required:s,onSelect:i}=e,[l,u]=Ff(n,i?n:void 0),f=i?n:l,{isSameDay:h}=t,m=S=>f?.some(M=>h(M,S))??!1,{min:y,max:v}=e;return{selected:f,select:(S,M,T)=>{let C=[...f??[]];if(m(S)){if(f?.length===y||s&&f?.length===1)return;C=f?.filter(N=>!h(N,S))}else f?.length===v?C=[S]:C=[...C,S];return i||u(C),i?.(C,S,M,T),C},isSelected:m}}function kF(e,t,n=0,s=0,i=!1,l=Pr){const{from:u,to:f}=t||{},{isSameDay:h,isAfter:m,isBefore:y}=l;let v;if(!u&&!f)v={from:e,to:n>0?void 0:e};else if(u&&!f)h(u,e)?n===0?v={from:u,to:e}:i?v={from:u,to:void 0}:v=void 0:y(e,u)?v={from:e,to:u}:v={from:u,to:e};else if(u&&f)if(h(u,e)&&h(f,e))i?v={from:u,to:f}:v=void 0;else if(h(u,e))v={from:u,to:n>0?void 0:e};else if(h(f,e))v={from:e,to:n>0?void 0:e};else if(y(e,u))v={from:e,to:f};else if(m(e,u))v={from:u,to:e};else if(m(e,f))v={from:u,to:e};else throw new Error("Invalid range");if(v?.from&&v?.to){const b=l.differenceInCalendarDays(v.to,v.from);s>0&&b>s?v={from:e,to:void 0}:n>1&&btypeof f!="function").some(f=>typeof f=="boolean"?f:n.isDate(f)?Jr(e,f,!1,n):PM(f,n)?f.some(h=>Jr(e,h,!1,n)):Uf(f)?f.from&&f.to?i1(e,{from:f.from,to:f.to},n):!1:jM(f)?RF(e,f.dayOfWeek,n):og(f)?n.isAfter(f.before,f.after)?i1(e,{from:n.addDays(f.after,1),to:n.addDays(f.before,-1)},n):es(e.from,f,n)||es(e.to,f,n):lg(f)||cg(f)?es(e.from,f,n)||es(e.to,f,n):!1))return!0;const u=s.filter(f=>typeof f=="function");if(u.length){let f=e.from;const h=n.differenceInCalendarDays(e.to,e.from);for(let m=0;m<=h;m++){if(u.some(y=>y(f)))return!0;f=n.addDays(f,1)}}return!1}function PF(e,t){const{disabled:n,excludeDisabled:s,resetOnSelect:i,selected:l,required:u,onSelect:f}=e,[h,m]=Ff(l,f?l:void 0),y=f?l:h;return{selected:y,select:(S,M,T)=>{const{min:C,max:N}=e;let _;if(S){const O=y?.from,k=y?.to,D=!!O&&!!k,V=!!O&&!!k&&t.isSameDay(O,k)&&t.isSameDay(S,O);i&&(D||!y?.from)?!u&&V?_=void 0:_={from:S,to:void 0}:_=kF(S,y,C,N,u,t)}return s&&n&&_?.from&&_.to&&jF({from:_.from,to:_.to},n,t)&&(_.from=S,_.to=void 0),f||m(_),f?.(_,S,M,T),_},isSelected:S=>y&&Jr(y,S,!1,t)}}function VF(e,t){const{selected:n,required:s,onSelect:i}=e,[l,u]=Ff(n,i?n:void 0),f=i?n:l,{isSameDay:h}=t;return{selected:f,select:(v,b,S)=>{let M=v;return!s&&f&&f&&h(v,f)&&(M=void 0),i||u(M),i?.(M,v,b,S),M},isSelected:v=>f?h(f,v):!1}}function LF(e,t){const n=VF(e,t),s=DF(e,t),i=PF(e,t);switch(e.mode){case"single":return n;case"multiple":return s;case"range":return i;default:return}}function $n(e,t){return e instanceof an&&e.timeZone===t?e:new an(e,t)}function Ci(e,t,n){return $n(e,t)}function o1(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Ci(e,t):Array.isArray(e)?e.map(s=>s instanceof Date?Ci(s,t):s):Uf(e)?{...e,from:e.from?$n(e.from,t):e.from,to:e.to?$n(e.to,t):e.to}:og(e)?{before:Ci(e.before,t),after:Ci(e.after,t)}:lg(e)?{after:Ci(e.after,t)}:cg(e)?{before:Ci(e.before,t)}:e}function Fm(e,t,n){return e&&(Array.isArray(e)?e.map(s=>o1(s,t)):o1(e,t))}function BF(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=$n(t.today,n)),t.month&&(t.month=$n(t.month,n)),t.defaultMonth&&(t.defaultMonth=$n(t.defaultMonth,n)),t.startMonth&&(t.startMonth=$n(t.startMonth,n)),t.endMonth&&(t.endMonth=$n(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=$n(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Ve=>$n(Ve,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?$n(t.selected.from,n):t.selected.from,to:t.selected.to?$n(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Fm(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Fm(t.hidden,n)),t.modifiers)){const Ve={};Object.keys(t.modifiers).forEach(nt=>{Ve[nt]=Fm(t.modifiers?.[nt],n)}),t.modifiers=Ve}const{components:s,formatters:i,labels:l,dateLib:u,locale:f,classNames:h}=x.useMemo(()=>{const Ve={...DM,...t.locale},nt=t.broadcastCalendar?1:t.weekStartsOn,ke=t.noonSafe&&t.timeZone?mF(t.timeZone,{weekStartsOn:nt,locale:Ve}):void 0,Ze=t.dateLib&&ke?{...ke,...t.dateLib}:t.dateLib??ke,ln=new Vn({locale:Ve,weekStartsOn:nt,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},Ze);return{dateLib:ln,components:$U(t.components),formatters:sF(t.formatters),labels:cF(t.labels,ln.options),locale:Ve,classNames:{...ug(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:u.today()});const{captionLayout:m,mode:y,navLayout:v,numberOfMonths:b=1,onDayBlur:S,onDayClick:M,onDayFocus:T,onDayKeyDown:C,onDayMouseEnter:N,onDayMouseLeave:_,onNextClick:O,onPrevClick:k,showWeekNumber:D,styles:V}=t,{formatCaption:F,formatDay:B,formatMonthDropdown:te,formatWeekNumber:re,formatWeekNumberHeader:ye,formatWeekdayName:ne,formatYearDropdown:ce}=i,J=_F(t,u),{days:fe,months:L,navStart:q,navEnd:Z,previousMonth:ae,nextMonth:A,goToMonth:G}=J,oe=qU(fe,t,q,Z,u),{isSelected:ie,select:me,selected:Ee}=LF(t,u)??{},{blur:pe,focused:ge,isFocusTarget:Oe,moveFocus:je,setFocused:Ue}=NF(t,J,oe,ie??(()=>!1),u),{labelDayButton:Ye,labelGridcell:tt,labelGrid:xt,labelMonthDropdown:kt,labelNav:Qn,labelPrevious:vr,labelNext:qt,labelWeekday:lo,labelWeekNumber:co,labelWeekNumberHeader:Ks,labelYearDropdown:j}=l,H=x.useMemo(()=>dF(u,t.ISOWeek,t.broadcastCalendar,t.today),[u,t.ISOWeek,t.broadcastCalendar,t.today]),$=y!==void 0||M!==void 0,de=x.useCallback(()=>{ae&&(G(ae),k?.(ae))},[ae,G,k]),ue=x.useCallback(()=>{A&&(G(A),O?.(A))},[G,A,O]),se=x.useCallback((Ve,nt)=>ke=>{ke.preventDefault(),ke.stopPropagation(),Ue(Ve),!nt.disabled&&(me?.(Ve.date,nt,ke),M?.(Ve.date,nt,ke))},[me,M,Ue]),ve=x.useCallback((Ve,nt)=>ke=>{Ue(Ve),T?.(Ve.date,nt,ke)},[T,Ue]),We=x.useCallback((Ve,nt)=>ke=>{pe(),S?.(Ve.date,nt,ke)},[pe,S]),Le=x.useCallback((Ve,nt)=>ke=>{const Ze={ArrowLeft:[ke.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[ke.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[ke.shiftKey?"year":"week","after"],ArrowUp:[ke.shiftKey?"year":"week","before"],PageUp:[ke.shiftKey?"year":"month","before"],PageDown:[ke.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(Ze[ke.key]){ke.preventDefault(),ke.stopPropagation();const[ln,Xe]=Ze[ke.key];je(ln,Xe)}C?.(Ve.date,nt,ke)},[je,C,t.dir]),Ft=x.useCallback((Ve,nt)=>ke=>{N?.(Ve.date,nt,ke)},[N]),Jn=x.useCallback((Ve,nt)=>ke=>{_?.(Ve.date,nt,ke)},[_]),Bn=x.useCallback(Ve=>nt=>{const ke=Number(nt.target.value),Ze=u.setMonth(u.startOfMonth(Ve),ke);G(Ze)},[u,G]),is=x.useCallback(Ve=>nt=>{const ke=Number(nt.target.value),Ze=u.setYear(u.startOfMonth(Ve),ke);G(Ze)},[u,G]),{className:br,style:Sn}=x.useMemo(()=>({className:[h[Ne.Root],t.className].filter(Boolean).join(" "),style:{...V?.[Ne.Root],...t.style}}),[h,t.className,t.style,V]),os=ZU(t),er=x.useRef(null);vF(er,!!t.animate,{classNames:h,months:L,focused:ge,dateLib:u});const uo={dayPickerProps:t,selected:Ee,select:me,isSelected:ie,months:L,nextMonth:A,previousMonth:ae,goToMonth:G,getModifiers:oe,components:s,classNames:h,styles:V,labels:l,formatters:i};return X.createElement(RM.Provider,{value:uo},X.createElement(s.Root,{rootRef:t.animate?er:void 0,className:br,style:Sn,dir:t.dir,id:t.id,lang:t.lang??f.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...os},X.createElement(s.Months,{className:h[Ne.Months],style:V?.[Ne.Months]},!t.hideNavigation&&!v&&X.createElement(s.Nav,{"data-animated-nav":t.animate?"true":void 0,className:h[Ne.Nav],style:V?.[Ne.Nav],"aria-label":Qn(),onPreviousClick:de,onNextClick:ue,previousMonth:ae,nextMonth:A}),L.map((Ve,nt)=>X.createElement(s.Month,{"data-animated-month":t.animate?"true":void 0,className:h[Ne.Month],style:V?.[Ne.Month],key:nt,displayIndex:nt,calendarMonth:Ve},v==="around"&&!t.hideNavigation&&nt===0&&X.createElement(s.PreviousMonthButton,{type:"button",className:h[Ne.PreviousMonthButton],tabIndex:ae?void 0:-1,"aria-disabled":ae?void 0:!0,"aria-label":vr(ae),onClick:de,"data-animated-button":t.animate?"true":void 0},X.createElement(s.Chevron,{disabled:ae?void 0:!0,className:h[Ne.Chevron],orientation:t.dir==="rtl"?"right":"left"})),X.createElement(s.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:h[Ne.MonthCaption],style:V?.[Ne.MonthCaption],calendarMonth:Ve,displayIndex:nt},m?.startsWith("dropdown")?X.createElement(s.DropdownNav,{className:h[Ne.Dropdowns],style:V?.[Ne.Dropdowns]},(()=>{const ke=m==="dropdown"||m==="dropdown-months"?X.createElement(s.MonthsDropdown,{key:"month",className:h[Ne.MonthsDropdown],"aria-label":kt(),classNames:h,components:s,disabled:!!t.disableNavigation,onChange:Bn(Ve.date),options:uF(Ve.date,q,Z,i,u),style:V?.[Ne.Dropdown],value:u.getMonth(Ve.date)}):X.createElement("span",{key:"month"},te(Ve.date,u)),Ze=m==="dropdown"||m==="dropdown-years"?X.createElement(s.YearsDropdown,{key:"year",className:h[Ne.YearsDropdown],"aria-label":j(u.options),classNames:h,components:s,disabled:!!t.disableNavigation,onChange:is(Ve.date),options:hF(q,Z,i,u,!!t.reverseYears),style:V?.[Ne.Dropdown],value:u.getYear(Ve.date)}):X.createElement("span",{key:"year"},ce(Ve.date,u));return u.getMonthYearOrder()==="year-first"?[Ze,ke]:[ke,Ze]})(),X.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},F(Ve.date,u.options,u))):X.createElement(s.CaptionLabel,{className:h[Ne.CaptionLabel],role:"status","aria-live":"polite"},F(Ve.date,u.options,u))),v==="around"&&!t.hideNavigation&&nt===b-1&&X.createElement(s.NextMonthButton,{type:"button",className:h[Ne.NextMonthButton],tabIndex:A?void 0:-1,"aria-disabled":A?void 0:!0,"aria-label":qt(A),onClick:ue,"data-animated-button":t.animate?"true":void 0},X.createElement(s.Chevron,{disabled:A?void 0:!0,className:h[Ne.Chevron],orientation:t.dir==="rtl"?"left":"right"})),nt===b-1&&v==="after"&&!t.hideNavigation&&X.createElement(s.Nav,{"data-animated-nav":t.animate?"true":void 0,className:h[Ne.Nav],style:V?.[Ne.Nav],"aria-label":Qn(),onPreviousClick:de,onNextClick:ue,previousMonth:ae,nextMonth:A}),X.createElement(s.MonthGrid,{role:"grid","aria-multiselectable":y==="multiple"||y==="range","aria-label":xt(Ve.date,u.options,u)||void 0,className:h[Ne.MonthGrid],style:V?.[Ne.MonthGrid]},!t.hideWeekdays&&X.createElement(s.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:h[Ne.Weekdays],style:V?.[Ne.Weekdays]},D&&X.createElement(s.WeekNumberHeader,{"aria-label":Ks(u.options),className:h[Ne.WeekNumberHeader],style:V?.[Ne.WeekNumberHeader],scope:"col"},ye()),H.map(ke=>X.createElement(s.Weekday,{"aria-label":lo(ke,u.options,u),className:h[Ne.Weekday],key:String(ke),style:V?.[Ne.Weekday],scope:"col"},ne(ke,u.options,u)))),X.createElement(s.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:h[Ne.Weeks],style:V?.[Ne.Weeks]},Ve.weeks.map(ke=>X.createElement(s.Week,{className:h[Ne.Week],key:ke.weekNumber,style:V?.[Ne.Week],week:ke},D&&X.createElement(s.WeekNumber,{week:ke,style:V?.[Ne.WeekNumber],"aria-label":co(ke.weekNumber,{locale:f}),className:h[Ne.WeekNumber],scope:"row",role:"rowheader"},re(ke.weekNumber,u)),ke.days.map(Ze=>{const{date:ln}=Ze,Xe=oe(Ze);if(Xe[Ct.focused]=!Xe.hidden&&!!ge?.isEqualTo(Ze),Xe[fr.selected]=ie?.(ln)||Xe.selected,Uf(Ee)){const{from:Va,to:mo}=Ee;Xe[fr.range_start]=!!(Va&&mo&&u.isSameDay(ln,Va)),Xe[fr.range_end]=!!(Va&&mo&&u.isSameDay(ln,mo)),Xe[fr.range_middle]=Jr(Ee,ln,!0,u)}const uc=fF(Xe,V,t.modifiersStyles),fo=GU(Xe,h,t.modifiersClassNames),ho=!&!Xe.hidden?tt(ln,Xe,u.options,u):void 0;return X.createElement(s.Day,{key:`${Ze.isoDate}_${Ze.displayMonthId}`,day:Ze,modifiers:Xe,className:fo.join(" "),style:uc,role:"gridcell","aria-selected":Xe.selected||void 0,"aria-label":ho,"data-day":Ze.isoDate,"data-month":Ze.outside?Ze.dateMonthId:void 0,"data-selected":Xe.selected||void 0,"data-disabled":Xe.disabled||void 0,"data-hidden":Xe.hidden||void 0,"data-outside":Ze.outside||void 0,"data-focused":Xe.focused||void 0,"data-today":Xe.today||void 0},!Xe.hidden&&$?X.createElement(s.DayButton,{className:h[Ne.DayButton],style:V?.[Ne.DayButton],type:"button",day:Ze,modifiers:Xe,disabled:!Xe.focused&&Xe.disabled||void 0,"aria-disabled":Xe.focused&&Xe.disabled||void 0,tabIndex:Oe(Ze)?0:-1,"aria-label":Ye(ln,Xe,u.options,u),onClick:se(Ze,Xe),onBlur:We(Ze,Xe),onFocus:ve(Ze,Xe),onKeyDown:Le(Ze,Xe),onMouseEnter:Ft(Ze,Xe),onMouseLeave:Jn(Ze,Xe)},B(ln,u.options,u)):!Xe.hidden&&B(Ze.date,u.options,u))})))))))),t.footer&&X.createElement(s.Footer,{className:h[Ne.Footer],style:V?.[Ne.Footer],role:"status","aria-live":"polite"},t.footer)))}function zF({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:i="ghost",formatters:l,components:u,...f}){const h=ug();return g.jsx(BF,{showOutsideDays:n,className:Me("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:s,formatters:{formatMonthDropdown:m=>m.toLocaleString("default",{month:"short"}),...l},classNames:{root:Me("w-fit",h.root),months:Me("relative flex flex-col gap-4 md:flex-row",h.months),month:Me("flex w-full flex-col gap-4",h.month),nav:Me("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",h.nav),button_previous:Me(Up({variant:i}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",h.button_previous),button_next:Me(Up({variant:i}),"h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",h.button_next),month_caption:Me("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",h.month_caption),dropdowns:Me("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",h.dropdowns),dropdown_root:Me("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",h.dropdown_root),dropdown:Me("bg-popover absolute inset-0 opacity-0",h.dropdown),caption_label:Me("select-none font-medium",s==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",h.caption_label),table:"w-full border-collapse",weekdays:Me("flex",h.weekdays),weekday:Me("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",h.weekday),week:Me("mt-2 flex w-full",h.week),week_number_header:Me("w-[--cell-size] select-none",h.week_number_header),week_number:Me("text-muted-foreground select-none text-[0.8rem]",h.week_number),day:Me("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",h.day),range_start:Me("bg-accent rounded-l-md",h.range_start),range_middle:Me("rounded-none",h.range_middle),range_end:Me("bg-accent rounded-r-md",h.range_end),today:Me("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",h.today),outside:Me("text-muted-foreground aria-selected:text-muted-foreground",h.outside),disabled:Me("text-muted-foreground opacity-50",h.disabled),hidden:Me("invisible",h.hidden),...t},components:{Root:({className:m,rootRef:y,...v})=>g.jsx("div",{"data-slot":"calendar",ref:y,className:Me(m),...v}),Chevron:({className:m,orientation:y,...v})=>y==="left"?g.jsx(Rk,{className:Me("size-4",m),...v}):y==="right"?g.jsx(Pk,{className:Me("size-4",m),...v}):g.jsx(ry,{className:Me("size-4",m),...v}),DayButton:UF,WeekNumber:({children:m,...y})=>g.jsx("td",{...y,children:g.jsx("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:m})}),...u},...f})}function UF({className:e,day:t,modifiers:n,...s}){const i=ug(),l=x.useRef(null);return x.useEffect(()=>{n.focused&&l.current?.focus()},[n.focused]),g.jsx(rg,{ref:l,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:Me("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",i.day,e),...s})}var Hm=0;function $M(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??l1()),document.body.insertAdjacentElement("beforeend",e[1]??l1()),Hm++,()=>{Hm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hm--}},[])}function l1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ym="focusScope.autoFocusOnMount",Wm="focusScope.autoFocusOnUnmount",c1={bubbles:!1,cancelable:!0},FF="FocusScope",hg=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...u}=e,[f,h]=x.useState(null),m=mr(i),y=mr(l),v=x.useRef(null),b=Tt(t,T=>h(T)),S=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let T=function(O){if(S.paused||!f)return;const k=O.target;f.contains(k)?v.current=k:Vs(v.current,{select:!0})},C=function(O){if(S.paused||!f)return;const k=O.relatedTarget;k!==null&&(f.contains(k)||Vs(v.current,{select:!0}))},N=function(O){if(document.activeElement===document.body)for(const D of O)D.removedNodes.length>0&&Vs(f)};document.addEventListener("focusin",T),document.addEventListener("focusout",C);const _=new MutationObserver(N);return f&&_.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",C),_.disconnect()}}},[s,f,S.paused]),x.useEffect(()=>{if(f){f1.add(S);const T=document.activeElement;if(!f.contains(T)){const N=new CustomEvent(Ym,c1);f.addEventListener(Ym,m),f.dispatchEvent(N),N.defaultPrevented||(HF(GF(ZM(f)),{select:!0}),document.activeElement===T&&Vs(f))}return()=>{f.removeEventListener(Ym,m),setTimeout(()=>{const N=new CustomEvent(Wm,c1);f.addEventListener(Wm,y),f.dispatchEvent(N),N.defaultPrevented||Vs(T??document.body,{select:!0}),f.removeEventListener(Wm,y),f1.remove(S)},0)}}},[f,m,y,S]);const M=x.useCallback(T=>{if(!n&&!s||S.paused)return;const C=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,N=document.activeElement;if(C&&N){const _=T.currentTarget,[O,k]=YF(_);O&&k?!T.shiftKey&&N===k?(T.preventDefault(),n&&Vs(O,{select:!0})):T.shiftKey&&N===O&&(T.preventDefault(),n&&Vs(k,{select:!0})):N===_&&T.preventDefault()}},[n,s,S.paused]);return g.jsx(ot.div,{tabIndex:-1,...u,ref:b,onKeyDown:M})});hg.displayName=FF;function HF(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Vs(s,{select:t}),document.activeElement!==n)return}function YF(e){const t=ZM(e),n=u1(t,e),s=u1(t.reverse(),e);return[n,s]}function ZM(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const i=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||i?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function u1(e,t){for(const n of e)if(!WF(n,{upTo:t}))return n}function WF(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function IF(e){return e instanceof HTMLInputElement&&"select"in e}function Vs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&IF(e)&&t&&e.select()}}var f1=qF();function qF(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=d1(e,t),e.unshift(t)},remove(t){e=d1(e,t),e[0]?.resume()}}}function d1(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function GF(e){return e.filter(t=>t.tagName!=="A")}var $F=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mi=new WeakMap,Nu=new WeakMap,Du={},Im=0,XM=function(e){return e&&(e.host||XM(e.parentNode))},ZF=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=XM(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},XF=function(e,t,n,s){var i=ZF(t,Array.isArray(e)?e:[e]);Du[n]||(Du[n]=new WeakMap);var l=Du[n],u=[],f=new Set,h=new Set(i),m=function(v){!v||f.has(v)||(f.add(v),m(v.parentNode))};i.forEach(m);var y=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(b){if(f.has(b))y(b);else try{var S=b.getAttribute(s),M=S!==null&&S!=="false",T=(Mi.get(b)||0)+1,C=(l.get(b)||0)+1;Mi.set(b,T),l.set(b,C),u.push(b),T===1&&M&&Nu.set(b,!0),C===1&&b.setAttribute(n,"true"),M||b.setAttribute(s,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return y(t),f.clear(),Im++,function(){u.forEach(function(v){var b=Mi.get(v)-1,S=l.get(v)-1;Mi.set(v,b),l.set(v,S),b||(Nu.has(v)||v.removeAttribute(s),Nu.delete(v)),S||v.removeAttribute(n)}),Im--,Im||(Mi=new WeakMap,Mi=new WeakMap,Nu=new WeakMap,Du={})}},KM=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),i=$F(e);return i?(s.push.apply(s,Array.from(i.querySelectorAll("[aria-live], script"))),XF(s,i,n,"aria-hidden")):function(){return null}},_r=function(){return _r=Object.assign||function(t){for(var n,s=1,i=arguments.length;s"u")return h5;var t=m5(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},y5=t_(),Fi="data-scroll-locked",g5=function(e,t,n,s){var i=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),` .`.concat(QF,` { overflow: hidden `).concat(s,`; padding-right: `).concat(f,"px ").concat(s,`; } body[`).concat(Fi,`] { overflow: hidden `).concat(s,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(l,`px; padding-right: `).concat(u,`px; margin-left:0; margin-top:0; margin-right: `).concat(f,"px ").concat(s,`; `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(s,";")].filter(Boolean).join(""),` } .`).concat(Wu,` { right: `).concat(f,"px ").concat(s,`; } .`).concat(Iu,` { margin-right: `).concat(f,"px ").concat(s,`; } .`).concat(Wu," .").concat(Wu,` { right: 0 `).concat(s,`; } .`).concat(Iu," .").concat(Iu,` { margin-right: 0 `).concat(s,`; } body[`).concat(Fi,`] { `).concat(JF,": ").concat(f,`px; } `)},m1=function(){var e=parseInt(document.body.getAttribute(Fi)||"0",10);return isFinite(e)?e:0},v5=function(){x.useEffect(function(){return document.body.setAttribute(Fi,(m1()+1).toString()),function(){var e=m1()-1;e<=0?document.body.removeAttribute(Fi):document.body.setAttribute(Fi,e.toString())}},[])},b5=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,i=s===void 0?"margin":s;v5();var l=x.useMemo(function(){return p5(i)},[i]);return x.createElement(y5,{styles:g5(l,!t,i,n?"":"!important")})},Hp=!1;if(typeof window<"u")try{var ku=Object.defineProperty({},"passive",{get:function(){return Hp=!0,!0}});window.addEventListener("test",ku,ku),window.removeEventListener("test",ku,ku)}catch{Hp=!1}var _i=Hp?{passive:!1}:!1,x5=function(e){return e.tagName==="TEXTAREA"},n_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!x5(e)&&n[t]==="visible")},w5=function(e){return n_(e,"overflowY")},S5=function(e){return n_(e,"overflowX")},p1=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var i=r_(e,s);if(i){var l=s_(e,s),u=l[1],f=l[2];if(u>f)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},T5=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},E5=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},r_=function(e,t){return e==="v"?w5(t):S5(t)},s_=function(e,t){return e==="v"?T5(t):E5(t)},C5=function(e,t){return e==="h"&&t==="rtl"?-1:1},M5=function(e,t,n,s,i){var l=C5(e,window.getComputedStyle(t).direction),u=l*s,f=n.target,h=t.contains(f),m=!1,y=u>0,v=0,b=0;do{if(!f)break;var S=s_(e,f),M=S[0],T=S[1],C=S[2],N=T-C-l*M;(M||N)&&r_(e,f)&&(v+=N,b+=M);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&f!==document.body||h&&(t.contains(f)||t===f));return(y&&Math.abs(v)<1||!y&&Math.abs(b)<1)&&(m=!0),m},Ru=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},y1=function(e){return[e.deltaX,e.deltaY]},g1=function(e){return e&&"current"in e?e.current:e},_5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},A5=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},O5=0,Ai=[];function N5(e){var t=x.useRef([]),n=x.useRef([0,0]),s=x.useRef(),i=x.useState(O5++)[0],l=x.useState(t_)[0],u=x.useRef(e);x.useEffect(function(){u.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var T=KF([e.lockRef.current],(e.shards||[]).map(g1),!0).filter(Boolean);return T.forEach(function(C){return C.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),T.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(T,C){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!u.current.allowPinchZoom;var N=Ru(T),_=n.current,O="deltaX"in T?T.deltaX:_[0]-N[0],k="deltaY"in T?T.deltaY:_[1]-N[1],D,V=T.target,F=Math.abs(O)>Math.abs(k)?"h":"v";if("touches"in T&&F==="h"&&V.type==="range")return!1;var B=window.getSelection(),te=B&&B.anchorNode,re=te?te===V||te.contains(V):!1;if(re)return!1;var ye=p1(F,V);if(!ye)return!0;if(ye?D=F:(D=F==="v"?"h":"v",ye=p1(F,V)),!ye)return!1;if(!s.current&&"changedTouches"in T&&(O||k)&&(s.current=D),!D)return!0;var ne=s.current||D;return M5(ne,C,T,ne==="h"?O:k)},[]),h=x.useCallback(function(T){var C=T;if(!(!Ai.length||Ai[Ai.length-1]!==l)){var N="deltaY"in C?y1(C):Ru(C),_=t.current.filter(function(D){return D.name===C.type&&(D.target===C.target||C.target===D.shadowParent)&&_5(D.delta,N)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var O=(u.current.shards||[]).map(g1).filter(Boolean).filter(function(D){return D.contains(C.target)}),k=O.length>0?f(C,O[0]):!u.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),m=x.useCallback(function(T,C,N,_){var O={name:T,delta:C,target:N,should:_,shadowParent:D5(N)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(k){return k!==O})},1)},[]),y=x.useCallback(function(T){n.current=Ru(T),s.current=void 0},[]),v=x.useCallback(function(T){m(T.type,y1(T),T.target,f(T,e.lockRef.current))},[]),b=x.useCallback(function(T){m(T.type,Ru(T),T.target,f(T,e.lockRef.current))},[]);x.useEffect(function(){return Ai.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",h,_i),document.addEventListener("touchmove",h,_i),document.addEventListener("touchstart",y,_i),function(){Ai=Ai.filter(function(T){return T!==l}),document.removeEventListener("wheel",h,_i),document.removeEventListener("touchmove",h,_i),document.removeEventListener("touchstart",y,_i)}},[]);var S=e.removeScrollBar,M=e.inert;return x.createElement(x.Fragment,null,M?x.createElement(l,{styles:A5(i)}):null,S?x.createElement(b5,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k5=i5(e_,N5);var mg=x.forwardRef(function(e,t){return x.createElement(Hf,_r({},e,{ref:t,sideCar:k5}))});mg.classNames=Hf.classNames;var Yf="Popover",[a_]=Qi(Yf,[no]),cc=no(),[R5,$s]=a_(Yf),i_=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:i,onOpenChange:l,modal:u=!1}=e,f=cc(t),h=x.useRef(null),[m,y]=x.useState(!1),[v,b]=$u({prop:s,defaultProp:i??!1,onChange:l,caller:Yf});return g.jsx(QT,{...f,children:g.jsx(R5,{scope:t,contentId:Mf(),triggerRef:h,open:v,onOpenChange:b,onOpenToggle:x.useCallback(()=>b(S=>!S),[b]),hasCustomAnchor:m,onCustomAnchorAdd:x.useCallback(()=>y(!0),[]),onCustomAnchorRemove:x.useCallback(()=>y(!1),[]),modal:u,children:n})})};i_.displayName=Yf;var o_="PopoverAnchor",j5=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=$s(o_,n),l=cc(n),{onCustomAnchorAdd:u,onCustomAnchorRemove:f}=i;return x.useEffect(()=>(u(),()=>f()),[u,f]),g.jsx(Df,{...l,...s,ref:t})});j5.displayName=o_;var l_="PopoverTrigger",c_=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=$s(l_,n),l=cc(n),u=Tt(t,i.triggerRef),f=g.jsx(ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":m_(i.open),...s,ref:u,onClick:He(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?f:g.jsx(Df,{asChild:!0,...l,children:f})});c_.displayName=l_;var pg="PopoverPortal",[P5,V5]=a_(pg,{forceMount:void 0}),u_=e=>{const{__scopePopover:t,forceMount:n,children:s,container:i}=e,l=$s(pg,t);return g.jsx(P5,{scope:t,forceMount:n,children:g.jsx(Ji,{present:n||l.open,children:g.jsx(Kl,{asChild:!0,container:i,children:s})})})};u_.displayName=pg;var Xi="PopoverContent",f_=x.forwardRef((e,t)=>{const n=V5(Xi,e.__scopePopover),{forceMount:s=n.forceMount,...i}=e,l=$s(Xi,e.__scopePopover);return g.jsx(Ji,{present:s||l.open,children:l.modal?g.jsx(B5,{...i,ref:t}):g.jsx(z5,{...i,ref:t})})});f_.displayName=Xi;var L5=jl("PopoverContent.RemoveScroll"),B5=x.forwardRef((e,t)=>{const n=$s(Xi,e.__scopePopover),s=x.useRef(null),i=Tt(t,s),l=x.useRef(!1);return x.useEffect(()=>{const u=s.current;if(u)return KM(u)},[]),g.jsx(mg,{as:L5,allowPinchZoom:!0,children:g.jsx(d_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:He(e.onCloseAutoFocus,u=>{u.preventDefault(),l.current||n.triggerRef.current?.focus()}),onPointerDownOutside:He(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,m=f.button===2||h;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:He(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),z5=x.forwardRef((e,t)=>{const n=$s(Xi,e.__scopePopover),s=x.useRef(!1),i=x.useRef(!1);return g.jsx(d_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(s.current||n.triggerRef.current?.focus(),l.preventDefault()),s.current=!1,i.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(s.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const u=l.target;n.triggerRef.current?.contains(u)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),d_=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:y,...v}=e,b=$s(Xi,n),S=cc(n);return $M(),g.jsx(hg,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:i,onUnmountAutoFocus:l,children:g.jsx(Xl,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:g.jsx(my,{"data-state":m_(b.open),role:"dialog",id:b.contentId,...S,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),h_="PopoverClose",U5=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=$s(h_,n);return g.jsx(ot.button,{type:"button",...s,ref:t,onClick:He(e.onClick,()=>i.onOpenChange(!1))})});U5.displayName=h_;var F5="PopoverArrow",H5=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,i=cc(n);return g.jsx(py,{...i,...s,ref:t})});H5.displayName=F5;function m_(e){return e?"open":"closed"}var Y5=i_,W5=c_,I5=u_,p_=f_;const q5=Y5,G5=W5,y_=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},i)=>g.jsx(I5,{children:g.jsx(p_,{ref:i,align:t,sideOffset:n,className:Me("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...s})}));y_.displayName=p_.displayName;var $5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z5=$5.reduce((e,t)=>{const n=yM(`Primitive.${t}`),s=x.forwardRef((i,l)=>{const{asChild:u,...f}=i,h=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...f,ref:l})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),X5="Label",g_=x.forwardRef((e,t)=>g.jsx(Z5.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));g_.displayName=X5;var v_=g_;const K5=ny("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),b_=x.forwardRef(({className:e,...t},n)=>g.jsx(v_,{ref:n,className:Me(K5(),e),...t}));b_.displayName=v_.displayName;const Q5=zL,x_=x.createContext(null),Oi=({...e})=>g.jsx(x_.Provider,{value:{name:e.name},children:g.jsx(LL,{...e})}),Wf=()=>{const e=x.useContext(x_),t=x.useContext(w_),{getFieldState:n,formState:s}=BL();if(!e)throw new Error("useFormField should be used within ");if(!t)throw new Error("useFormField should be used within ");const i=n(e.name,s),{id:l}=t;return{id:l,name:e.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...i}},w_=x.createContext(null),wa=x.forwardRef(({className:e,...t},n)=>{const s=x.useId();return g.jsx(w_.Provider,{value:{id:s},children:g.jsx("div",{ref:n,className:Me("space-y-2",e),...t})})});wa.displayName="FormItem";const Sa=x.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:i}=Wf();return g.jsx(b_,{ref:n,className:Me(s&&"text-destructive",e),htmlFor:i,...t})});Sa.displayName="FormLabel";const Ta=x.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:i,formMessageId:l}=Wf();return g.jsx(gM,{ref:t,id:s,"aria-describedby":n?`${i} ${l}`:`${i}`,"aria-invalid":!!n,...e})});Ta.displayName="FormControl";const J5=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Wf();return g.jsx("p",{ref:n,id:s,className:Me("text-[0.8rem] text-muted-foreground",e),...t})});J5.displayName="FormDescription";const Ea=x.forwardRef(({className:e,children:t,...n},s)=>{const{error:i,formMessageId:l}=Wf(),u=i?String(i?.message??""):t;return u?g.jsx("p",{ref:s,id:l,className:Me("text-[0.8rem] font-medium text-destructive",e),...n,children:u}):null});Ea.displayName="FormMessage";const qu=x.forwardRef(({className:e,type:t,...n},s)=>g.jsx("input",{type:t,className:Me("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:s,...n}));qu.displayName="Input";function v1(e,[t,n]){return Math.min(n,Math.max(t,e))}var eH=x.createContext(void 0);function tH(e){const t=x.useContext(eH);return e||t||"ltr"}function nH(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rH=[" ","Enter","ArrowUp","ArrowDown"],sH=[" ","Enter"],Ra="Select",[If,qf,aH]=B1(Ra),[oo]=Qi(Ra,[aH,no]),Gf=no(),[iH,Zs]=oo(Ra),[oH,lH]=oo(Ra),S_=e=>{const{__scopeSelect:t,children:n,open:s,defaultOpen:i,onOpenChange:l,value:u,defaultValue:f,onValueChange:h,dir:m,name:y,autoComplete:v,disabled:b,required:S,form:M}=e,T=Gf(t),[C,N]=x.useState(null),[_,O]=x.useState(null),[k,D]=x.useState(!1),V=tH(m),[F,B]=$u({prop:s,defaultProp:i??!1,onChange:l,caller:Ra}),[te,re]=$u({prop:u,defaultProp:f,onChange:h,caller:Ra}),ye=x.useRef(null),ne=C?M||!!C.closest("form"):!0,[ce,J]=x.useState(new Set),fe=Array.from(ce).map(L=>L.props.value).join(";");return g.jsx(QT,{...T,children:g.jsxs(iH,{required:S,scope:t,trigger:C,onTriggerChange:N,valueNode:_,onValueNodeChange:O,valueNodeHasChildren:k,onValueNodeHasChildrenChange:D,contentId:Mf(),value:te,onValueChange:re,open:F,onOpenChange:B,dir:V,triggerPointerDownPosRef:ye,disabled:b,children:[g.jsx(If.Provider,{scope:t,children:g.jsx(oH,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(L=>{J(q=>new Set(q).add(L))},[]),onNativeOptionRemove:x.useCallback(L=>{J(q=>{const Z=new Set(q);return Z.delete(L),Z})},[]),children:n})}),ne?g.jsxs(q_,{"aria-hidden":!0,required:S,tabIndex:-1,name:y,autoComplete:v,value:te,onChange:L=>re(L.target.value),disabled:b,form:M,children:[te===void 0?g.jsx("option",{value:""}):null,Array.from(ce)]},fe):null]})})};S_.displayName=Ra;var T_="SelectTrigger",E_=x.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:s=!1,...i}=e,l=Gf(n),u=Zs(T_,n),f=u.disabled||s,h=Tt(t,u.onTriggerChange),m=qf(n),y=x.useRef("touch"),[v,b,S]=$_(T=>{const C=m().filter(O=>!O.disabled),N=C.find(O=>O.value===u.value),_=Z_(C,T,N);_!==void 0&&u.onValueChange(_.value)}),M=T=>{f||(u.onOpenChange(!0),S()),T&&(u.triggerPointerDownPosRef.current={x:Math.round(T.pageX),y:Math.round(T.pageY)})};return g.jsx(Df,{asChild:!0,...l,children:g.jsx(ot.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":G_(u.value)?"":void 0,...i,ref:h,onClick:He(i.onClick,T=>{T.currentTarget.focus(),y.current!=="mouse"&&M(T)}),onPointerDown:He(i.onPointerDown,T=>{y.current=T.pointerType;const C=T.target;C.hasPointerCapture(T.pointerId)&&C.releasePointerCapture(T.pointerId),T.button===0&&T.ctrlKey===!1&&T.pointerType==="mouse"&&(M(T),T.preventDefault())}),onKeyDown:He(i.onKeyDown,T=>{const C=v.current!=="";!(T.ctrlKey||T.altKey||T.metaKey)&&T.key.length===1&&b(T.key),!(C&&T.key===" ")&&rH.includes(T.key)&&(M(),T.preventDefault())})})})});E_.displayName=T_;var C_="SelectValue",M_=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,children:l,placeholder:u="",...f}=e,h=Zs(C_,n),{onValueNodeHasChildrenChange:m}=h,y=l!==void 0,v=Tt(t,h.onValueNodeChange);return tn(()=>{m(y)},[m,y]),g.jsx(ot.span,{...f,ref:v,style:{pointerEvents:"none"},children:G_(h.value)?g.jsx(g.Fragment,{children:u}):l})});M_.displayName=C_;var cH="SelectIcon",__=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:s,...i}=e;return g.jsx(ot.span,{"aria-hidden":!0,...i,ref:t,children:s||"▼"})});__.displayName=cH;var uH="SelectPortal",A_=e=>g.jsx(Kl,{asChild:!0,...e});A_.displayName=uH;var ja="SelectContent",O_=x.forwardRef((e,t)=>{const n=Zs(ja,e.__scopeSelect),[s,i]=x.useState();if(tn(()=>{i(new DocumentFragment)},[]),!n.open){const l=s;return l?Ki.createPortal(g.jsx(N_,{scope:e.__scopeSelect,children:g.jsx(If.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),l):null}return g.jsx(D_,{...e,ref:t})});O_.displayName=ja;var or=10,[N_,Xs]=oo(ja),fH="SelectContentImpl",dH=jl("SelectContent.RemoveScroll"),D_=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:s="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:S,sticky:M,hideWhenDetached:T,avoidCollisions:C,...N}=e,_=Zs(ja,n),[O,k]=x.useState(null),[D,V]=x.useState(null),F=Tt(t,ge=>k(ge)),[B,te]=x.useState(null),[re,ye]=x.useState(null),ne=qf(n),[ce,J]=x.useState(!1),fe=x.useRef(!1);x.useEffect(()=>{if(O)return KM(O)},[O]),$M();const L=x.useCallback(ge=>{const[Oe,...je]=ne().map(tt=>tt.ref.current),[Ue]=je.slice(-1),Ye=document.activeElement;for(const tt of ge)if(tt===Ye||(tt?.scrollIntoView({block:"nearest"}),tt===Oe&&D&&(D.scrollTop=0),tt===Ue&&D&&(D.scrollTop=D.scrollHeight),tt?.focus(),document.activeElement!==Ye))return},[ne,D]),q=x.useCallback(()=>L([B,O]),[L,B,O]);x.useEffect(()=>{ce&&q()},[ce,q]);const{onOpenChange:Z,triggerPointerDownPosRef:ae}=_;x.useEffect(()=>{if(O){let ge={x:0,y:0};const Oe=Ue=>{ge={x:Math.abs(Math.round(Ue.pageX)-(ae.current?.x??0)),y:Math.abs(Math.round(Ue.pageY)-(ae.current?.y??0))}},je=Ue=>{ge.x<=10&&ge.y<=10?Ue.preventDefault():O.contains(Ue.target)||Z(!1),document.removeEventListener("pointermove",Oe),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",Oe),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Oe),document.removeEventListener("pointerup",je,{capture:!0})}}},[O,Z,ae]),x.useEffect(()=>{const ge=()=>Z(!1);return window.addEventListener("blur",ge),window.addEventListener("resize",ge),()=>{window.removeEventListener("blur",ge),window.removeEventListener("resize",ge)}},[Z]);const[A,G]=$_(ge=>{const Oe=ne().filter(Ye=>!Ye.disabled),je=Oe.find(Ye=>Ye.ref.current===document.activeElement),Ue=Z_(Oe,ge,je);Ue&&setTimeout(()=>Ue.ref.current.focus())}),oe=x.useCallback((ge,Oe,je)=>{const Ue=!fe.current&&!je;(_.value!==void 0&&_.value===Oe||Ue)&&(te(ge),Ue&&(fe.current=!0))},[_.value]),ie=x.useCallback(()=>O?.focus(),[O]),me=x.useCallback((ge,Oe,je)=>{const Ue=!fe.current&&!je;(_.value!==void 0&&_.value===Oe||Ue)&&ye(ge)},[_.value]),Ee=s==="popper"?Yp:k_,pe=Ee===Yp?{side:f,sideOffset:h,align:m,alignOffset:y,arrowPadding:v,collisionBoundary:b,collisionPadding:S,sticky:M,hideWhenDetached:T,avoidCollisions:C}:{};return g.jsx(N_,{scope:n,content:O,viewport:D,onViewportChange:V,itemRefCallback:oe,selectedItem:B,onItemLeave:ie,itemTextRefCallback:me,focusSelectedItem:q,selectedItemText:re,position:s,isPositioned:ce,searchRef:A,children:g.jsx(mg,{as:dH,allowPinchZoom:!0,children:g.jsx(hg,{asChild:!0,trapped:_.open,onMountAutoFocus:ge=>{ge.preventDefault()},onUnmountAutoFocus:He(i,ge=>{_.trigger?.focus({preventScroll:!0}),ge.preventDefault()}),children:g.jsx(Xl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:ge=>ge.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:g.jsx(Ee,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ge=>ge.preventDefault(),...N,...pe,onPlaced:()=>J(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:He(N.onKeyDown,ge=>{const Oe=ge.ctrlKey||ge.altKey||ge.metaKey;if(ge.key==="Tab"&&ge.preventDefault(),!Oe&&ge.key.length===1&&G(ge.key),["ArrowUp","ArrowDown","Home","End"].includes(ge.key)){let Ue=ne().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(ge.key)&&(Ue=Ue.slice().reverse()),["ArrowUp","ArrowDown"].includes(ge.key)){const Ye=ge.target,tt=Ue.indexOf(Ye);Ue=Ue.slice(tt+1)}setTimeout(()=>L(Ue)),ge.preventDefault()}})})})})})})});D_.displayName=fH;var hH="SelectItemAlignedPosition",k_=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:s,...i}=e,l=Zs(ja,n),u=Xs(ja,n),[f,h]=x.useState(null),[m,y]=x.useState(null),v=Tt(t,F=>y(F)),b=qf(n),S=x.useRef(!1),M=x.useRef(!0),{viewport:T,selectedItem:C,selectedItemText:N,focusSelectedItem:_}=u,O=x.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&m&&T&&C&&N){const F=l.trigger.getBoundingClientRect(),B=m.getBoundingClientRect(),te=l.valueNode.getBoundingClientRect(),re=N.getBoundingClientRect();if(l.dir!=="rtl"){const Ye=re.left-B.left,tt=te.left-Ye,xt=F.left-tt,kt=F.width+xt,Qn=Math.max(kt,B.width),vr=window.innerWidth-or,qt=v1(tt,[or,Math.max(or,vr-Qn)]);f.style.minWidth=kt+"px",f.style.left=qt+"px"}else{const Ye=B.right-re.right,tt=window.innerWidth-te.right-Ye,xt=window.innerWidth-F.right-tt,kt=F.width+xt,Qn=Math.max(kt,B.width),vr=window.innerWidth-or,qt=v1(tt,[or,Math.max(or,vr-Qn)]);f.style.minWidth=kt+"px",f.style.right=qt+"px"}const ye=b(),ne=window.innerHeight-or*2,ce=T.scrollHeight,J=window.getComputedStyle(m),fe=parseInt(J.borderTopWidth,10),L=parseInt(J.paddingTop,10),q=parseInt(J.borderBottomWidth,10),Z=parseInt(J.paddingBottom,10),ae=fe+L+ce+Z+q,A=Math.min(C.offsetHeight*5,ae),G=window.getComputedStyle(T),oe=parseInt(G.paddingTop,10),ie=parseInt(G.paddingBottom,10),me=F.top+F.height/2-or,Ee=ne-me,pe=C.offsetHeight/2,ge=C.offsetTop+pe,Oe=fe+L+ge,je=ae-Oe;if(Oe<=me){const Ye=ye.length>0&&C===ye[ye.length-1].ref.current;f.style.bottom="0px";const tt=m.clientHeight-T.offsetTop-T.offsetHeight,xt=Math.max(Ee,pe+(Ye?ie:0)+tt+q),kt=Oe+xt;f.style.height=kt+"px"}else{const Ye=ye.length>0&&C===ye[0].ref.current;f.style.top="0px";const xt=Math.max(me,fe+T.offsetTop+(Ye?oe:0)+pe)+je;f.style.height=xt+"px",T.scrollTop=Oe-me+T.offsetTop}f.style.margin=`${or}px 0`,f.style.minHeight=A+"px",f.style.maxHeight=ne+"px",s?.(),requestAnimationFrame(()=>S.current=!0)}},[b,l.trigger,l.valueNode,f,m,T,C,N,l.dir,s]);tn(()=>O(),[O]);const[k,D]=x.useState();tn(()=>{m&&D(window.getComputedStyle(m).zIndex)},[m]);const V=x.useCallback(F=>{F&&M.current===!0&&(O(),_?.(),M.current=!1)},[O,_]);return g.jsx(pH,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:S,onScrollButtonChange:V,children:g.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:g.jsx(ot.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});k_.displayName=hH;var mH="SelectPopperPosition",Yp=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:s="start",collisionPadding:i=or,...l}=e,u=Gf(n);return g.jsx(my,{...u,...l,ref:t,align:s,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Yp.displayName=mH;var[pH,yg]=oo(ja,{}),Wp="SelectViewport",R_=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:s,...i}=e,l=Xs(Wp,n),u=yg(Wp,n),f=Tt(t,l.onViewportChange),h=x.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),g.jsx(If.Slot,{scope:n,children:g.jsx(ot.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:He(i.onScroll,m=>{const y=m.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:b}=u;if(b?.current&&v){const S=Math.abs(h.current-y.scrollTop);if(S>0){const M=window.innerHeight-or*2,T=parseFloat(v.style.minHeight),C=parseFloat(v.style.height),N=Math.max(T,C);if(N0?k:0,v.style.justifyContent="flex-end")}}}h.current=y.scrollTop})})})]})});R_.displayName=Wp;var j_="SelectGroup",[yH,gH]=oo(j_),vH=x.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Mf();return g.jsx(yH,{scope:n,id:i,children:g.jsx(ot.div,{role:"group","aria-labelledby":i,...s,ref:t})})});vH.displayName=j_;var P_="SelectLabel",V_=x.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=gH(P_,n);return g.jsx(ot.div,{id:i.id,...s,ref:t})});V_.displayName=P_;var vf="SelectItem",[bH,L_]=oo(vf),B_=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:s,disabled:i=!1,textValue:l,...u}=e,f=Zs(vf,n),h=Xs(vf,n),m=f.value===s,[y,v]=x.useState(l??""),[b,S]=x.useState(!1),M=Tt(t,_=>h.itemRefCallback?.(_,s,i)),T=Mf(),C=x.useRef("touch"),N=()=>{i||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(bH,{scope:n,value:s,disabled:i,textId:T,isSelected:m,onItemTextChange:x.useCallback(_=>{v(O=>O||(_?.textContent??"").trim())},[]),children:g.jsx(If.ItemSlot,{scope:n,value:s,disabled:i,textValue:y,children:g.jsx(ot.div,{role:"option","aria-labelledby":T,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...u,ref:M,onFocus:He(u.onFocus,()=>S(!0)),onBlur:He(u.onBlur,()=>S(!1)),onClick:He(u.onClick,()=>{C.current!=="mouse"&&N()}),onPointerUp:He(u.onPointerUp,()=>{C.current==="mouse"&&N()}),onPointerDown:He(u.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:He(u.onPointerMove,_=>{C.current=_.pointerType,i?h.onItemLeave?.():C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:He(u.onPointerLeave,_=>{_.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:He(u.onKeyDown,_=>{h.searchRef?.current!==""&&_.key===" "||(sH.includes(_.key)&&N(),_.key===" "&&_.preventDefault())})})})})});B_.displayName=vf;var El="SelectItemText",z_=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:s,style:i,...l}=e,u=Zs(El,n),f=Xs(El,n),h=L_(El,n),m=lH(El,n),[y,v]=x.useState(null),b=Tt(t,N=>v(N),h.onItemTextChange,N=>f.itemTextRefCallback?.(N,h.value,h.disabled)),S=y?.textContent,M=x.useMemo(()=>g.jsx("option",{value:h.value,disabled:h.disabled,children:S},h.value),[h.disabled,h.value,S]),{onNativeOptionAdd:T,onNativeOptionRemove:C}=m;return tn(()=>(T(M),()=>C(M)),[T,C,M]),g.jsxs(g.Fragment,{children:[g.jsx(ot.span,{id:h.textId,...l,ref:b}),h.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Ki.createPortal(l.children,u.valueNode):null]})});z_.displayName=El;var U_="SelectItemIndicator",F_=x.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return L_(U_,n).isSelected?g.jsx(ot.span,{"aria-hidden":!0,...s,ref:t}):null});F_.displayName=U_;var Ip="SelectScrollUpButton",H_=x.forwardRef((e,t)=>{const n=Xs(Ip,e.__scopeSelect),s=yg(Ip,e.__scopeSelect),[i,l]=x.useState(!1),u=Tt(t,s.onScrollButtonChange);return tn(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=h.scrollTop>0;l(m)};const h=n.viewport;return f(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?g.jsx(W_,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop-h.offsetHeight)}}):null});H_.displayName=Ip;var qp="SelectScrollDownButton",Y_=x.forwardRef((e,t)=>{const n=Xs(qp,e.__scopeSelect),s=yg(qp,e.__scopeSelect),[i,l]=x.useState(!1),u=Tt(t,s.onScrollButtonChange);return tn(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=h.scrollHeight-h.clientHeight,y=Math.ceil(h.scrollTop)h.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),i?g.jsx(W_,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:h}=n;f&&h&&(f.scrollTop=f.scrollTop+h.offsetHeight)}}):null});Y_.displayName=qp;var W_=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:s,...i}=e,l=Xs("SelectScrollButton",n),u=x.useRef(null),f=qf(n),h=x.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return x.useEffect(()=>()=>h(),[h]),tn(()=>{f().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(ot.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:He(i.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(s,50))}),onPointerMove:He(i.onPointerMove,()=>{l.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(s,50))}),onPointerLeave:He(i.onPointerLeave,()=>{h()})})}),xH="SelectSeparator",I_=x.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e;return g.jsx(ot.div,{"aria-hidden":!0,...s,ref:t})});I_.displayName=xH;var Gp="SelectArrow",wH=x.forwardRef((e,t)=>{const{__scopeSelect:n,...s}=e,i=Gf(n),l=Zs(Gp,n),u=Xs(Gp,n);return l.open&&u.position==="popper"?g.jsx(py,{...i,...s,ref:t}):null});wH.displayName=Gp;var SH="SelectBubbleInput",q_=x.forwardRef(({__scopeSelect:e,value:t,...n},s)=>{const i=x.useRef(null),l=Tt(s,i),u=nH(t);return x.useEffect(()=>{const f=i.current;if(!f)return;const h=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(h,"value").set;if(u!==t&&y){const v=new Event("change",{bubbles:!0});y.call(f,t),f.dispatchEvent(v)}},[u,t]),g.jsx(ot.select,{...n,style:{...Y1,...n.style},ref:l,defaultValue:t})});q_.displayName=SH;function G_(e){return e===""||e===void 0}function $_(e){const t=mr(e),n=x.useRef(""),s=x.useRef(0),i=x.useCallback(u=>{const f=n.current+u;t(f),(function h(m){n.current=m,window.clearTimeout(s.current),m!==""&&(s.current=window.setTimeout(()=>h(""),1e3))})(f)},[t]),l=x.useCallback(()=>{n.current="",window.clearTimeout(s.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(s.current),[]),[n,i,l]}function Z_(e,t,n){const i=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=TH(e,Math.max(l,0));i.length===1&&(u=u.filter(m=>m!==n));const h=u.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==n?h:void 0}function TH(e,t){return e.map((n,s)=>e[(t+s)%e.length])}var EH=S_,X_=E_,CH=M_,MH=__,_H=A_,K_=O_,AH=R_,Q_=V_,J_=B_,OH=z_,NH=F_,eA=H_,tA=Y_,nA=I_;const DH=EH,kH=CH,rA=x.forwardRef(({className:e,children:t,...n},s)=>g.jsxs(X_,{ref:s,className:Me("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,g.jsx(MH,{asChild:!0,children:g.jsx(ry,{className:"h-4 w-4 opacity-50"})})]}));rA.displayName=X_.displayName;const sA=x.forwardRef(({className:e,...t},n)=>g.jsx(eA,{ref:n,className:Me("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(Lk,{className:"h-4 w-4"})}));sA.displayName=eA.displayName;const aA=x.forwardRef(({className:e,...t},n)=>g.jsx(tA,{ref:n,className:Me("flex cursor-default items-center justify-center py-1",e),...t,children:g.jsx(ry,{className:"h-4 w-4"})}));aA.displayName=tA.displayName;const iA=x.forwardRef(({className:e,children:t,position:n="popper",...s},i)=>g.jsx(_H,{children:g.jsxs(K_,{ref:i,className:Me("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[g.jsx(sA,{}),g.jsx(AH,{className:Me("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),g.jsx(aA,{})]})}));iA.displayName=K_.displayName;const RH=x.forwardRef(({className:e,...t},n)=>g.jsx(Q_,{ref:n,className:Me("px-2 py-1.5 text-sm font-semibold",e),...t}));RH.displayName=Q_.displayName;const oA=x.forwardRef(({className:e,children:t,...n},s)=>g.jsxs(J_,{ref:s,className:Me("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(NH,{children:g.jsx(Nk,{className:"h-4 w-4"})})}),g.jsx(OH,{children:t})]}));oA.displayName=J_.displayName;const jH=x.forwardRef(({className:e,...t},n)=>g.jsx(nA,{ref:n,className:Me("-mx-1 my-1 h-px bg-muted",e),...t}));jH.displayName=nA.displayName;const lA=x.forwardRef(({className:e,...t},n)=>g.jsx("textarea",{className:Me("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));lA.displayName="Textarea";const PH="YOUR_FORM_ID",VH=["Classic Taper Cut","Signature Fade","Textured Crop","Pompadour & Styling","Scalp Treatment","Hair Restoration Consultation","Hair System Application","Hair System Maintenance"],LH=k6({clientName:pl().min(2,"Name must be at least 2 characters"),clientEmail:pl().email("Invalid email address"),clientPhone:pl().min(10,"Valid phone number required"),service:pl().min(1,"Please select a service"),preferredDate:D6({required_error:"Please select a preferred date."}),notes:pl().optional()});function BH(){const[e,t]=x.useState(!1),[n,s]=x.useState(!1),i=e6({resolver:s6(LH),defaultValues:{clientName:"",clientEmail:"",clientPhone:"",notes:""}}),l=async u=>{s(!0);try{(await fetch(`https://formspree.io/f/${PH}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({name:u.clientName,email:u.clientEmail,phone:u.clientPhone,service:u.service,preferredDate:$S(u.preferredDate,"PPP"),notes:u.notes||""})})).ok?t(!0):alert("There was a problem submitting your request. Please try calling us directly.")}catch{alert("There was a problem submitting your request. Please try calling us directly.")}finally{s(!1)}};return g.jsx("section",{id:"booking",className:"py-24 bg-card border-t border-border",children:g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl",children:g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-start",children:[g.jsxs(Je.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-4",children:"Secure Your Spot"}),g.jsx("h3",{className:"text-4xl md:text-5xl font-serif mb-6",children:"Request an Appointment"}),g.jsx("p",{className:"text-muted-foreground font-light mb-8",children:"We operate strictly by appointment to ensure every client receives undivided attention and absolute privacy. Fill out the request form and our concierge will contact you to confirm the time."}),g.jsxs("div",{className:"space-y-4 text-sm text-muted-foreground font-light",children:[g.jsxs("p",{children:[g.jsx("strong",{className:"text-foreground font-serif mr-2",children:"PHONE"})," ",g.jsx("a",{href:"tel:5184779163",className:"hover:text-primary transition-colors",children:"518 477-9163"})]}),g.jsxs("p",{children:[g.jsx("strong",{className:"text-foreground font-serif mr-2",children:"HOURS"})," Tues – Thurs, 8:00 am – 5:00 pm"]}),g.jsxs("p",{className:"flex gap-2",children:[g.jsx("strong",{className:"text-foreground font-serif shrink-0",children:"LOCATION"}),g.jsxs("span",{children:["689 Columbia Turnpike",g.jsx("br",{}),"East Greenbush"]})]}),g.jsxs("p",{children:[g.jsx("strong",{className:"text-foreground font-serif mr-2",children:"EMAIL"})," ",g.jsx("a",{href:"mailto:thom@thomshairsalon.com",className:"hover:text-primary transition-colors",children:"thom@thomshairsalon.com"})]})]})]}),g.jsx(Je.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"bg-background border border-border/50 p-6 md:p-8",children:e?g.jsxs("div",{className:"text-center py-12 space-y-4",children:[g.jsx(Fk,{className:"w-16 h-16 text-primary mx-auto mb-4"}),g.jsx("h4",{className:"text-2xl font-serif",children:"Request Received"}),g.jsx("p",{className:"text-muted-foreground font-light",children:"Our concierge will contact you shortly to confirm your appointment time."}),g.jsx("button",{onClick:()=>{t(!1),i.reset()},className:"mt-8 text-primary uppercase text-xs tracking-widest hover:underline",children:"Make another request"})]}):g.jsxs(g.Fragment,{children:[g.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-primary mb-6 text-center",children:"Please Call — Appointment Date Selection Coming Soon"}),g.jsx(Q5,{...i,children:g.jsxs("form",{onSubmit:i.handleSubmit(l),className:"space-y-6",children:[g.jsx(Oi,{control:i.control,name:"clientName",render:({field:u})=>g.jsxs(wa,{children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Full Name"}),g.jsx(Ta,{children:g.jsx(qu,{className:"bg-card border-border/50 focus-visible:ring-primary rounded-none",...u})}),g.jsx(Ea,{})]})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx(Oi,{control:i.control,name:"clientEmail",render:({field:u})=>g.jsxs(wa,{children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Email"}),g.jsx(Ta,{children:g.jsx(qu,{type:"email",className:"bg-card border-border/50 focus-visible:ring-primary rounded-none",...u})}),g.jsx(Ea,{})]})}),g.jsx(Oi,{control:i.control,name:"clientPhone",render:({field:u})=>g.jsxs(wa,{children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Phone"}),g.jsx(Ta,{children:g.jsx(qu,{type:"tel",className:"bg-card border-border/50 focus-visible:ring-primary rounded-none",...u})}),g.jsx(Ea,{})]})})]}),g.jsx(Oi,{control:i.control,name:"service",render:({field:u})=>g.jsxs(wa,{children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Service"}),g.jsxs(DH,{onValueChange:u.onChange,defaultValue:u.value,children:[g.jsx(Ta,{children:g.jsx(rA,{className:"bg-card border-border/50 focus:ring-primary rounded-none",children:g.jsx(kH,{placeholder:"Select a service"})})}),g.jsx(iA,{className:"bg-card border-border rounded-none",children:VH.map(f=>g.jsx(oA,{value:f,className:"focus:bg-primary/20",children:f},f))})]}),g.jsx(Ea,{})]})}),g.jsx(Oi,{control:i.control,name:"preferredDate",render:({field:u})=>g.jsxs(wa,{className:"flex flex-col",children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Preferred Date"}),g.jsxs(q5,{children:[g.jsx(G5,{asChild:!0,children:g.jsx(Ta,{children:g.jsxs(rg,{variant:"outline",className:Me("w-full pl-3 text-left font-normal bg-card border-border/50 hover:bg-card hover:text-foreground rounded-none",!u.value&&"text-muted-foreground"),children:[u.value?$S(u.value,"PPP"):g.jsx("span",{children:"Pick a date"}),g.jsx(Ak,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),g.jsx(y_,{className:"w-auto p-0 bg-card border-border rounded-none",align:"start",children:g.jsx(zF,{mode:"single",selected:u.value,onSelect:u.onChange,disabled:f=>fg.jsxs(wa,{children:[g.jsx(Sa,{className:"text-xs uppercase tracking-widest text-muted-foreground",children:"Notes (Optional)"}),g.jsx(Ta,{children:g.jsx(lA,{className:"resize-none bg-card border-border/50 focus-visible:ring-primary rounded-none",...u})}),g.jsx(Ea,{})]})}),g.jsx("button",{type:"submit",disabled:n,className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 px-8 py-4 uppercase tracking-widest text-sm font-semibold transition-all disabled:opacity-50",children:n?"Submitting...":"Submit Request"})]})})]})})]})})})}function zH(){return g.jsx("section",{id:"location",className:"py-24 bg-card border-t border-border",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-6xl",children:[g.jsx("div",{className:"text-center mb-12",children:g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-4",children:"Find Us"}),g.jsx("h3",{className:"text-4xl md:text-5xl font-serif mb-4",children:"Our Location"}),g.jsx("p",{className:"text-muted-foreground font-light",children:"689 Columbia Turnpike, East Greenbush, NY 12061"})]})}),g.jsx(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"relative overflow-hidden ring-1 ring-white/10",style:{paddingBottom:"45%",height:0},children:g.jsx("iframe",{title:"Thom's Unisex Hair Salon Location",src:"https://maps.google.com/maps?q=689+Columbia+Turnpike,+East+Greenbush,+NY+12061&output=embed&z=15",className:"absolute inset-0 w-full h-full border-0",style:{filter:"hue-rotate(70deg) saturate(1.0) brightness(0.78)"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})}),g.jsxs(Je.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.4},className:"flex flex-col sm:flex-row justify-center gap-8 mt-10 text-sm text-muted-foreground font-light text-center",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-foreground uppercase tracking-widest text-xs mb-2",children:"Address"}),g.jsx("p",{children:"689 Columbia Turnpike"}),g.jsx("p",{children:"East Greenbush, NY 12061"})]}),g.jsx("div",{className:"hidden sm:block w-px bg-border"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-foreground uppercase tracking-widest text-xs mb-2",children:"Hours"}),g.jsx("p",{children:"Tues – Thurs: 8:00 am – 5:00 pm"})]}),g.jsx("div",{className:"hidden sm:block w-px bg-border"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-foreground uppercase tracking-widest text-xs mb-2",children:"Phone"}),g.jsx("p",{children:g.jsx("a",{href:"tel:+15184779163",className:"hover:text-primary transition-colors",children:"518 477-9163"})})]}),g.jsx("div",{className:"hidden sm:block w-px bg-border"}),g.jsxs("div",{children:[g.jsx("p",{className:"text-foreground uppercase tracking-widest text-xs mb-2",children:"Email"}),g.jsx("p",{children:g.jsx("a",{href:"mailto:thom@thomshairsalon.com",className:"hover:text-primary transition-colors",children:"thom@thomshairsalon.com"})})]})]})]})})}function UH(){return x.useEffect(()=>{const e=window.location.hash.slice(1);if(!e){window.scrollTo(0,0);return}const t=n=>{const s=document.getElementById(e);s?s.scrollIntoView({behavior:"smooth"}):n>0&&setTimeout(()=>t(n-1),150)};t(10)},[]),g.jsxs("div",{className:"min-h-screen bg-background text-foreground selection:bg-primary selection:text-primary-foreground",children:[g.jsx(Rf,{}),g.jsxs("main",{children:[g.jsx(xL,{}),g.jsx(wL,{}),g.jsx(TL,{}),g.jsx(CL,{}),g.jsx(_L,{}),g.jsx(OL,{}),g.jsx(DL,{}),g.jsx(BH,{}),g.jsx(zH,{})]}),g.jsx(jf,{})]})}const FH=[{heading:"Completely Private",body:"Your consultation takes place in a discreet, one-on-one setting. No waiting room audiences, no pressure, no awkwardness. Just an honest conversation."},{heading:"Zero Obligation",body:"We never push you toward a decision. The goal of the consultation is to give you accurate information so you can decide what's right for you — on your own terms."},{heading:"Expert Assessment",body:"Thom evaluates your hair type, scalp condition, and personal goals to map out the options that will actually work for your specific situation."},{heading:"Honest Answers",body:"We'll walk you through realistic expectations, maintenance requirements, and costs. No upselling, no exaggerated promises."},{heading:"Photographic Review",body:"We review real before-and-after photos from past clients with similar profiles so you know exactly what to expect."},{heading:"Custom System Preview",body:"If you're a candidate for a hair system, we'll show you samples matched to your natural hair color, density, and texture before any commitment."}];function HH(){return x.useEffect(()=>{window.scrollTo(0,0)},[]),g.jsxs("div",{className:"min-h-screen bg-background text-foreground selection:bg-primary selection:text-primary-foreground",children:[g.jsx(Rf,{}),g.jsxs("section",{className:"pt-40 pb-24 bg-card relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent pointer-events-none"}),g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl text-center",children:g.jsxs(Je.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[g.jsx("h1",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-6",children:"No Pressure. No Judgment."}),g.jsxs("h2",{className:"text-5xl md:text-7xl font-serif mb-8 leading-tight",children:["Free",g.jsx("br",{}),g.jsx("span",{className:"italic text-muted-foreground",children:"Consultations"})]}),g.jsx("p",{className:"text-muted-foreground font-light text-lg leading-relaxed max-w-2xl mx-auto mb-10",children:"Every hair replacement journey begins with a private, no-obligation consultation. It costs you nothing but an hour of your time — and it may change everything."}),g.jsxs("a",{href:"tel:5184779163",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/90 transition-colors",children:[g.jsx(Pl,{className:"w-4 h-4"}),"Call to Schedule — 518 477-9163"]}),g.jsxs("p",{className:"mt-6 text-base text-red-600 font-light",children:["Researching your options?"," ",g.jsx(wn,{href:"/alternatives",className:"underline underline-offset-4 hover:text-red-400 transition-colors",children:"See how Thom's compares to other local providers →"})]})]})})]}),g.jsx("section",{className:"py-24 bg-background",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-5xl",children:[g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-4",children:"What to Expect"}),g.jsxs("h3",{className:"text-4xl md:text-5xl font-serif",children:["What Happens",g.jsx("br",{}),g.jsx("span",{className:"italic text-muted-foreground",children:"in Your Consultation"})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:FH.map((e,t)=>g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.08},className:"flex gap-5 p-6 border border-border/50 bg-card hover:border-primary/30 transition-colors",children:[g.jsx(rp,{className:"w-5 h-5 text-primary mt-1 shrink-0"}),g.jsxs("div",{children:[g.jsx("h4",{className:"font-serif text-lg text-foreground mb-2",children:e.heading}),g.jsx("p",{className:"text-muted-foreground font-light text-sm leading-relaxed",children:e.body})]})]},t))})]})}),g.jsx("section",{className:"py-24 bg-card border-t border-border",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-3xl",children:[g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-4",children:"Common Questions"}),g.jsx("h3",{className:"text-4xl font-serif",children:"Before You Call"})]}),g.jsx("div",{className:"space-y-8",children:[{q:"Is the consultation really free?",a:"Yes, completely. No hidden charges, no minimum purchase required."},{q:"How long does it take?",a:"Typically 45–60 minutes. We don't rush it — you deserve a thorough conversation."},{q:"Do I need to prepare anything?",a:"Just come as you are. Bring any photos of hairstyles you've liked in the past if you have them — that's helpful but not required."},{q:"Will anyone else be in the room?",a:"No. Every consultation is strictly one-on-one with Thom. Your privacy is our first priority."},{q:"What if I decide it's not for me?",a:"Completely fine. Many clients come back months or years later when the time feels right. There's never any pressure."}].map(({q:e,a:t},n)=>g.jsxs(Je.div,{initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:n*.06},className:"border-b border-border/50 pb-8",children:[g.jsx("h4",{className:"font-serif text-lg text-foreground mb-3",children:e}),g.jsx("p",{className:"text-muted-foreground font-light leading-relaxed",children:t})]},n))})]})}),g.jsx("section",{className:"py-24 bg-primary/5 border-t border-border",children:g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-xl text-center",children:g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-4xl font-serif mb-4",children:"Ready to Talk?"}),g.jsx("p",{className:"text-muted-foreground font-light mb-8",children:"Call us to book your private consultation. Tuesday – Thursday, 8:00 am – 5:00 pm."}),g.jsxs("a",{href:"tel:5184779163",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/90 transition-colors",children:[g.jsx(Pl,{className:"w-4 h-4"}),"518 477-9163"]}),g.jsx("div",{className:"mt-6",children:g.jsx(wn,{href:"/",className:"text-xs text-muted-foreground uppercase tracking-widest hover:text-primary transition-colors",children:"← Back to Home"})})]})})}),g.jsx(jf,{})]})}const YH=[{number:"01",title:"Private Consultation",description:"Your journey begins with a confidential, no-obligation consultation. Thom assesses your hair loss pattern, scalp condition, lifestyle, and goals. This is where we determine whether a hair system is right for you and which type will suit you best.",detail:"Free · 45–60 minutes · Strictly private"},{number:"02",title:"System Selection",description:"We source premium human hair systems matched precisely to your natural hair color, density, texture, and hairline. You review and approve the sample before we order. Nothing is ordered until you're fully satisfied with the match.",detail:"Custom matched · Human hair · Multiple base options"},{number:"03",title:"Precision Fitting",description:"When your system arrives, Thom fits and bonds it to your scalp using medical-grade adhesives designed for long-term wear. The hairline is hand-blended and cut to frame your face perfectly. You leave looking — and feeling — completely natural.",detail:"Same-day application · Immediate results"},{number:"04",title:"Styling & Finishing",description:"Once bonded, your system is cut, styled, and finished exactly as you want it. You'll see the full transformation before you leave the chair. Most clients describe this moment as genuinely emotional — in the best possible way.",detail:"Full cut & style included"},{number:"05",title:"Monthly Maintenance",description:"Every 4–6 weeks, you return for a maintenance appointment. We remove the system, clean your scalp, re-bond the system with fresh adhesive, and restyle it. This keeps everything secure, hygienic, and looking its best.",detail:"From $150 · 90 minutes · Appointment required"},{number:"06",title:"System Replacement",description:"Premium human hair systems typically last 6–12 months with proper care. When it's time for a replacement, we repeat the fitting and application process — often using the knowledge from your existing system to make the next one even better.",detail:"6–12 month lifespan · Continuous improvement"}],WH=[{label:"Undetectable",value:"Even at close range, a properly fitted system is indistinguishable from natural hair."},{label:"Waterproof",value:"Swim, shower, sweat — the bond is designed to hold through all normal activity."},{label:"Customizable",value:"Color, density, curl pattern, hairline shape — every detail is made to order."},{label:"Reversible",value:"Unlike surgical options, a hair system can be removed or changed at any time."}];function IH(){return x.useEffect(()=>{window.scrollTo(0,0)},[]),g.jsxs("div",{className:"min-h-screen bg-background text-foreground selection:bg-primary selection:text-primary-foreground",children:[g.jsx(Rf,{}),g.jsxs("section",{className:"pt-40 pb-24 bg-card relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 to-transparent pointer-events-none"}),g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl text-center",children:g.jsxs(Je.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8},children:[g.jsx("h1",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-6",children:"Non-Surgical Hair Restoration"}),g.jsxs("h2",{className:"text-4xl md:text-6xl font-serif mb-8 leading-tight whitespace-nowrap",children:["How the ",g.jsx("span",{className:"italic text-muted-foreground",children:"System Works"})]}),g.jsx("p",{className:"text-muted-foreground font-light text-lg leading-relaxed max-w-2xl mx-auto",children:"A hair replacement system is not a toupee. It's a precision-crafted, custom-fitted solution that looks and behaves exactly like your own hair — because it's made from real human hair, bonded directly to your scalp."})]})})]}),g.jsx("section",{className:"py-16 bg-background border-b border-border",children:g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-5xl",children:g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:WH.map((e,t)=>g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.08},className:"border border-border/50 bg-card p-6 hover:border-primary/30 transition-colors",children:[g.jsx("p",{className:"text-primary font-semibold uppercase tracking-widest text-xs mb-3",children:e.label}),g.jsx("p",{className:"text-muted-foreground font-light text-sm leading-relaxed",children:e.value})]},t))})})}),g.jsx("section",{className:"py-24 bg-background",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl",children:[g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-20",children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs font-semibold mb-4",children:"The Process"}),g.jsxs("h3",{className:"text-4xl md:text-5xl font-serif",children:["Six Steps to",g.jsx("br",{}),g.jsx("span",{className:"italic text-muted-foreground",children:"a New You"})]})]}),g.jsx("div",{className:"space-y-0",children:YH.map((e,t)=>g.jsxs(Je.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:t*.08},className:"flex gap-8 pb-16 border-l border-border/40 pl-8 ml-6 relative",children:[g.jsx("span",{className:"absolute -left-6 top-0 w-12 h-12 bg-background border border-border flex items-center justify-center font-mono text-primary text-sm font-semibold",children:e.number}),g.jsxs("div",{className:"pt-2",children:[g.jsx("h4",{className:"text-2xl font-serif text-foreground mb-3",children:e.title}),g.jsx("p",{className:"text-muted-foreground font-light leading-relaxed mb-4",children:e.description}),g.jsx("span",{className:"text-xs text-primary uppercase tracking-widest border border-primary/30 px-3 py-1",children:e.detail})]})]},t))})]})}),g.jsx("section",{className:"py-24 bg-card border-t border-border",children:g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-xl text-center",children:g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-4xl font-serif mb-4",children:"The First Step Is Free"}),g.jsx("p",{className:"text-muted-foreground font-light mb-8",children:"Book a private consultation and let Thom walk you through everything in person. No pressure. No obligation."}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[g.jsxs("a",{href:"tel:5184779163",className:"inline-flex items-center justify-center gap-3 bg-primary text-primary-foreground px-10 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/90 transition-colors whitespace-nowrap",children:[g.jsx(Pl,{className:"w-4 h-4"}),"518 477-9163"]}),g.jsx(wn,{href:"/consultations",className:"inline-flex items-center justify-center gap-3 border border-primary text-primary px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/10 transition-colors",children:"Learn About Consultations"})]}),g.jsx("div",{className:"mt-8",children:g.jsx(wn,{href:"/",className:"text-xs text-muted-foreground uppercase tracking-widest hover:text-primary transition-colors",children:"← Back to Home"})})]})})}),g.jsx(jf,{})]})}const qH=[{name:"HairClub",type:"National Chain — Multiple Albany-Area Locations",summary:"One of the largest hair loss treatment franchises in North America. Offers both non-surgical hair systems and surgical procedures under one corporate roof.",pros:["Multiple service options in one place","Recognizable national brand","Financing options available"],cons:["High-pressure sales environment reported by many clients","Rotating staff — rarely the same specialist twice","Corporate pricing models with ongoing membership fees","Clinic atmosphere, not a private salon setting"]},{name:"Bosley Medical",type:"Surgical Hair Restoration — Albany Region",summary:"A nationally known surgical hair restoration brand. Primarily performs hair transplant procedures (FUE/FUT). Non-surgical options are secondary to their medical focus.",pros:["Permanent surgical results for qualifying candidates","Medically supervised procedures","Established track record in transplant surgery"],cons:["Surgical procedures are invasive and carry recovery time","Not suitable for all hair loss patterns or stages","Significantly higher cost than non-surgical alternatives","Not a private or discreet environment"]},{name:"Advanced Hair Studio",type:"National Franchise — Capital Region",summary:"An Australian-originated franchise with U.S. locations offering hair systems, laser therapy, and surgical options. Known for celebrity marketing.",pros:["Wide menu of treatments","Established franchise with global presence","Laser hair therapy options"],cons:["Franchise model means inconsistent quality between locations","Aggressive upsell of bundled treatment packages","Studio atmosphere lacks the privacy of a private specialist","Long-term contracts reported by clients"]},{name:"Generic Salon / Barber Shop",type:"Local Salons & Barbers — Rensselaer County",summary:"Most standard salons and barber shops in the Capital Region do not offer hair systems at all. Those that do rarely have a specialist with deep expertise in custom hair replacement.",pros:["Convenient walk-in availability in some cases","Lower cost for standard haircuts"],cons:["No expertise in custom non-surgical hair systems","Off-the-shelf or low-quality hair pieces, if available at all","No color-matching, density, or texture customization","No ongoing maintenance program"]}],GH=["One specialist since 1972 — Thom knows your head, your hair, and your preferences","Completely private — no waiting room, no other clients, no corporate staff","Custom-ordered systems matched to your exact hair color, density, curl, and hairline","Free consultation with zero obligation or pressure","Transparent, flat-rate pricing — no membership fees or bundled contracts","By appointment only — your time is respected"];function $H(){return x.useEffect(()=>{window.scrollTo(0,0)},[]),g.jsxs("div",{className:"min-h-screen bg-background text-foreground selection:bg-primary selection:text-primary-foreground",children:[g.jsx(Rf,{}),g.jsxs("section",{className:"pt-40 pb-24 bg-card relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-primary/5 to-transparent pointer-events-none"}),g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl text-center relative",children:g.jsxs(Je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-primary tracking-[0.3em] uppercase text-xs md:text-sm font-semibold mb-6",children:"Hair Replacement Options — Capital Region, NY"}),g.jsxs("h1",{className:"text-4xl md:text-6xl font-serif mb-8 leading-tight",children:["Considering Your"," ",g.jsx("span",{className:"italic text-muted-foreground",children:"Alternatives"})]}),g.jsx("p",{className:"text-muted-foreground font-light text-lg leading-relaxed max-w-2xl mx-auto mb-10",children:"We believe you should make an informed choice. Here is an honest look at what else is available for non-surgical hair replacement in the Albany and East Greenbush area — and how Thom's compares."}),g.jsxs("a",{href:"tel:+15184779163",className:"inline-flex items-center gap-3 bg-primary text-primary-foreground px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/90 transition-colors",children:[g.jsx(Pl,{className:"w-4 h-4"}),"Call Thom — Free Consultation"]})]})})]}),g.jsx("section",{className:"py-24 bg-background",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl",children:[g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mb-16 text-center",children:[g.jsx("h2",{className:"text-3xl md:text-4xl font-serif mb-4",children:"What Sets Thom's Apart"}),g.jsx("p",{className:"text-muted-foreground font-light max-w-xl mx-auto",children:"Before comparing the alternatives, here is what you get at Thom's that is simply not available anywhere else in the region."})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:GH.map((e,t)=>g.jsxs(Je.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.07},className:"flex items-start gap-3 p-5 border border-border bg-card",children:[g.jsx(rp,{className:"w-5 h-5 text-primary shrink-0 mt-0.5"}),g.jsx("p",{className:"text-sm font-light leading-relaxed",children:e})]},t))})]})}),g.jsx("section",{className:"py-24 bg-card",children:g.jsxs("div",{className:"container mx-auto px-4 md:px-6 max-w-4xl",children:[g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mb-16 text-center",children:[g.jsx("h2",{className:"text-3xl md:text-4xl font-serif mb-4",children:"Local & National Alternatives"}),g.jsx("p",{className:"text-muted-foreground font-light max-w-xl mx-auto",children:"An honest assessment of what else exists for hair replacement in the Capital Region."})]}),g.jsx("div",{className:"space-y-10",children:qH.map((e,t)=>g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.08},className:"border border-border bg-background p-8",children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"text-2xl font-serif mb-1",children:e.name}),g.jsx("p",{className:"text-xs uppercase tracking-widest text-muted-foreground",children:e.type})]}),g.jsx("p",{className:"text-muted-foreground font-light leading-relaxed mb-8",children:e.summary}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[g.jsxs("div",{children:[g.jsx("p",{className:"text-xs uppercase tracking-widest text-foreground font-semibold mb-4",children:"Strengths"}),g.jsx("ul",{className:"space-y-3",children:e.pros.map((n,s)=>g.jsxs("li",{className:"flex items-start gap-2 text-sm font-light text-muted-foreground",children:[g.jsx(rp,{className:"w-4 h-4 text-primary shrink-0 mt-0.5"}),n]},s))})]}),g.jsxs("div",{children:[g.jsx("p",{className:"text-xs uppercase tracking-widest text-foreground font-semibold mb-4",children:"Limitations"}),g.jsx("ul",{className:"space-y-3",children:e.cons.map((n,s)=>g.jsxs("li",{className:"flex items-start gap-2 text-sm font-light text-muted-foreground",children:[g.jsx(Wk,{className:"w-4 h-4 text-destructive shrink-0 mt-0.5"}),n]},s))})]})]})]},t))})]})}),g.jsx("section",{className:"py-24 bg-background text-center",children:g.jsx("div",{className:"container mx-auto px-4 md:px-6 max-w-2xl",children:g.jsxs(Je.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[g.jsx("h2",{className:"text-3xl md:text-4xl font-serif mb-6",children:"Ready to Talk It Through?"}),g.jsx("p",{className:"text-muted-foreground font-light text-lg leading-relaxed mb-10",children:"The consultation is free, private, and carries no obligation. Come in, ask every question you have, and decide for yourself."}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[g.jsxs("a",{href:"tel:+15184779163",className:"inline-flex items-center justify-center gap-3 bg-primary text-primary-foreground px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:bg-primary/90 transition-colors",children:[g.jsx(Pl,{className:"w-4 h-4"}),"518 477-9163"]}),g.jsx(wn,{href:"/consultations",className:"inline-flex items-center justify-center gap-3 border border-border text-foreground px-8 py-4 uppercase tracking-widest text-sm font-semibold hover:border-primary hover:text-primary transition-colors",children:"About Consultations"})]})]})})}),g.jsx(jf,{})]})}const ZH=new TD;function XH(){return g.jsxs(XN,{children:[g.jsx(fl,{path:"/",component:UH}),g.jsx(fl,{path:"/consultations",component:HH}),g.jsx(fl,{path:"/how-it-works",component:IH}),g.jsx(fl,{path:"/alternatives",component:$H}),g.jsx(fl,{component:A2})]})}function KH(){return g.jsx(CD,{client:ZH,children:g.jsxs(S2,{children:[g.jsx(O1,{base:"/".replace(/\/$/,""),children:g.jsx(XH,{})}),g.jsx(HR,{})]})})}AN.createRoot(document.getElementById("root")).render(g.jsx(KH,{}));
THOM'S UNISEX HAIR SALON

No Pressure. No Judgment.

Free
Consultations

Every hair replacement journey begins with a private, no-obligation consultation. It costs you nothing but an hour of your time — and it may change everything.

Call to Schedule — 518 477-9163

Researching your options? See how Thom's compares to other local providers →

What to Expect

What Happens
in Your Consultation

Completely Private

Your consultation takes place in a discreet, one-on-one setting. No waiting room audiences, no pressure, no awkwardness. Just an honest conversation.

Zero Obligation

We never push you toward a decision. The goal of the consultation is to give you accurate information so you can decide what's right for you — on your own terms.

Expert Assessment

Thom evaluates your hair type, scalp condition, and personal goals to map out the options that will actually work for your specific situation.

Honest Answers

We'll walk you through realistic expectations, maintenance requirements, and costs. No upselling, no exaggerated promises.

Photographic Review

We review real before-and-after photos from past clients with similar profiles so you know exactly what to expect.

Custom System Preview

If you're a candidate for a hair system, we'll show you samples matched to your natural hair color, density, and texture before any commitment.

Common Questions

Before You Call

Is the consultation really free?

Yes, completely. No hidden charges, no minimum purchase required.

How long does it take?

Typically 45–60 minutes. We don't rush it — you deserve a thorough conversation.

Do I need to prepare anything?

Just come as you are. Bring any photos of hairstyles you've liked in the past if you have them — that's helpful but not required.

Will anyone else be in the room?

No. Every consultation is strictly one-on-one with Thom. Your privacy is our first priority.

What if I decide it's not for me?

Completely fine. Many clients come back months or years later when the time feels right. There's never any pressure.

Ready to Talk?

Call us to book your private consultation. Tuesday – Thursday, 8:00 am – 5:00 pm.

518 477-9163